ods-component-lib 1.21.2 → 1.21.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/dist/components/antd/currencyInput/CurrencySelect.js +16 -11
  2. package/dist/components/antd/currencyInput/CurrencySelect.js.map +1 -1
  3. package/dist/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.js +32 -43
  4. package/dist/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.js.map +1 -1
  5. package/dist/components/devextreme/OdsDataGrid.Legacy.js +4 -4
  6. package/dist/components/devextreme/OdsRemoteDataGrid.js +1 -1
  7. package/dist/index.js +10 -10
  8. package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js +6 -6
  9. package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js.map +1 -1
  10. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js +20 -20
  11. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js.map +1 -1
  12. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js.map +1 -1
  13. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js +101 -98
  14. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js.map +1 -1
  15. package/dist/node_modules/@ant-design/cssinjs/es/linters/utils.js +1 -1
  16. package/dist/node_modules/@ant-design/cssinjs/es/util/index.js +29 -27
  17. package/dist/node_modules/@ant-design/cssinjs/es/util/index.js.map +1 -1
  18. package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getComponentToken.js +1 -1
  19. package/dist/node_modules/@ant-design/fast-color/es/FastColor.js +66 -45
  20. package/dist/node_modules/@ant-design/fast-color/es/FastColor.js.map +1 -1
  21. package/dist/node_modules/@ant-design/icons/es/icons/FrownOutlined.js +5 -8
  22. package/dist/node_modules/@ant-design/icons/es/icons/HeartOutlined.js +3 -6
  23. package/dist/node_modules/@ant-design/icons/es/icons/MehOutlined.js +12 -15
  24. package/dist/node_modules/@ant-design/icons/es/icons/SmileOutlined.js +8 -11
  25. package/dist/node_modules/@ant-design/icons/es/utils.js +2 -9
  26. package/dist/node_modules/@ant-design/icons/es/utils.js.map +1 -1
  27. package/dist/node_modules/@emotion/stylis/dist/stylis.browser.esm.js +1 -9
  28. package/dist/node_modules/@emotion/stylis/dist/stylis.browser.esm.js.map +1 -1
  29. package/dist/node_modules/@rc-component/async-validator/es/index.js +20 -20
  30. package/dist/node_modules/@rc-component/async-validator/es/index.js.map +1 -1
  31. package/dist/node_modules/@rc-component/async-validator/es/messages.js +1 -0
  32. package/dist/node_modules/@rc-component/async-validator/es/messages.js.map +1 -1
  33. package/dist/node_modules/@rc-component/async-validator/es/rule/type.js +18 -8
  34. package/dist/node_modules/@rc-component/async-validator/es/rule/type.js.map +1 -1
  35. package/dist/node_modules/@rc-component/async-validator/es/util.js +1 -1
  36. package/dist/node_modules/@rc-component/async-validator/es/util.js.map +1 -1
  37. package/dist/node_modules/@rc-component/async-validator/es/validator/index.js +1 -0
  38. package/dist/node_modules/@rc-component/async-validator/es/validator/index.js.map +1 -1
  39. package/dist/node_modules/@rc-component/collapse/es/Collapse.js +1 -1
  40. package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js +88 -68
  41. package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js.map +1 -1
  42. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js +75 -96
  43. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js.map +1 -1
  44. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js +22 -20
  45. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js.map +1 -1
  46. package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js +92 -100
  47. package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js.map +1 -1
  48. package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js +40 -29
  49. package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js.map +1 -1
  50. package/dist/node_modules/@rc-component/dropdown/es/Dropdown.js +2 -2
  51. package/dist/node_modules/@rc-component/form/es/Field.js +9 -9
  52. package/dist/node_modules/@rc-component/form/es/FieldContext.js +2 -3
  53. package/dist/node_modules/@rc-component/form/es/FieldContext.js.map +1 -1
  54. package/dist/node_modules/@rc-component/form/es/Form.js +78 -92
  55. package/dist/node_modules/@rc-component/form/es/Form.js.map +1 -1
  56. package/dist/node_modules/@rc-component/form/es/List.js +1 -1
  57. package/dist/node_modules/@rc-component/form/es/{useForm.js → hooks/useForm.js} +136 -143
  58. package/dist/node_modules/@rc-component/form/es/hooks/useForm.js.map +1 -0
  59. package/dist/node_modules/@rc-component/form/es/hooks/useNotifyWatch.js +43 -0
  60. package/dist/node_modules/@rc-component/form/es/hooks/useNotifyWatch.js.map +1 -0
  61. package/dist/node_modules/@rc-component/form/es/{useWatch.js → hooks/useWatch.js} +7 -7
  62. package/dist/node_modules/@rc-component/form/es/hooks/useWatch.js.map +1 -0
  63. package/dist/node_modules/@rc-component/form/es/index.js +2 -2
  64. package/dist/node_modules/@rc-component/form/es/index.js.map +1 -1
  65. package/dist/node_modules/@rc-component/form/es/utils/NameMap.js +28 -22
  66. package/dist/node_modules/@rc-component/form/es/utils/NameMap.js.map +1 -1
  67. package/dist/node_modules/@rc-component/form/es/utils/messages.js +1 -0
  68. package/dist/node_modules/@rc-component/form/es/utils/messages.js.map +1 -1
  69. package/dist/node_modules/@rc-component/form/es/utils/validateUtil.js +1 -1
  70. package/dist/node_modules/@rc-component/form/es/utils/valueUtil.js.map +1 -1
  71. package/dist/node_modules/@rc-component/image/es/Preview/index.js +111 -105
  72. package/dist/node_modules/@rc-component/image/es/Preview/index.js.map +1 -1
  73. package/dist/node_modules/@rc-component/input-number/es/hooks/useCursor.js +1 -1
  74. package/dist/node_modules/@rc-component/menu/es/Menu.js +1 -1
  75. package/dist/node_modules/@rc-component/menu/es/MenuItem.js +1 -1
  76. package/dist/node_modules/@rc-component/menu/es/SubMenu/index.js +1 -1
  77. package/dist/node_modules/@rc-component/menu/es/hooks/useKeyRecords.js +1 -1
  78. package/dist/node_modules/@rc-component/menu/es/placements.js +0 -1
  79. package/dist/node_modules/@rc-component/menu/es/utils/warnUtil.js +1 -1
  80. package/dist/node_modules/@rc-component/pagination/es/Pagination.js +1 -1
  81. package/dist/node_modules/@rc-component/picker/es/PickerInput/RangePicker.js +1 -1
  82. package/dist/node_modules/@rc-component/picker/es/PickerInput/Selector/hooks/useClearIcon.js +1 -1
  83. package/dist/node_modules/@rc-component/picker/es/PickerInput/Selector/hooks/useInputProps.js +1 -1
  84. package/dist/node_modules/@rc-component/picker/es/PickerInput/hooks/useCellRender.js +1 -1
  85. package/dist/node_modules/@rc-component/picker/es/PickerInput/hooks/useFilledProps.js +1 -1
  86. package/dist/node_modules/@rc-component/picker/es/PickerInput/hooks/usePresets.js +1 -1
  87. package/dist/node_modules/@rc-component/picker/es/PickerPanel/index.js +1 -1
  88. package/dist/node_modules/@rc-component/picker/es/hooks/useTimeInfo.js +1 -1
  89. package/dist/node_modules/@rc-component/portal/es/Portal.js +41 -35
  90. package/dist/node_modules/@rc-component/portal/es/Portal.js.map +1 -1
  91. package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js +48 -0
  92. package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js.map +1 -0
  93. package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js +18 -54
  94. package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js.map +1 -1
  95. package/dist/node_modules/@rc-component/resize-observer/es/index.js.map +1 -1
  96. package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js +50 -0
  97. package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js.map +1 -0
  98. package/dist/node_modules/@rc-component/select/es/BaseSelect/index.js +141 -140
  99. package/dist/node_modules/@rc-component/select/es/BaseSelect/index.js.map +1 -1
  100. package/dist/node_modules/@rc-component/select/es/OptionList.js +92 -91
  101. package/dist/node_modules/@rc-component/select/es/OptionList.js.map +1 -1
  102. package/dist/node_modules/@rc-component/select/es/Select.js +5 -5
  103. package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js +50 -50
  104. package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js.map +1 -1
  105. package/dist/node_modules/@rc-component/select/es/SelectInput/Content/SingleContent.js +41 -47
  106. package/dist/node_modules/@rc-component/select/es/SelectInput/Content/SingleContent.js.map +1 -1
  107. package/dist/node_modules/@rc-component/select/es/SelectInput/index.js +85 -80
  108. package/dist/node_modules/@rc-component/select/es/SelectInput/index.js.map +1 -1
  109. package/dist/node_modules/@rc-component/select/es/hooks/useOpen.js +27 -26
  110. package/dist/node_modules/@rc-component/select/es/hooks/useOpen.js.map +1 -1
  111. package/dist/node_modules/@rc-component/select/es/utils/valueUtil.js +1 -1
  112. package/dist/node_modules/@rc-component/select/es/utils/warningPropsUtil.js +6 -6
  113. package/dist/node_modules/@rc-component/table/es/Cell/useCellRender.js +1 -1
  114. package/dist/node_modules/@rc-component/table/es/Table.js +1 -1
  115. package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js +85 -80
  116. package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js.map +1 -1
  117. package/dist/node_modules/@rc-component/table/es/VirtualTable/index.js +1 -1
  118. package/dist/node_modules/@rc-component/table/es/hooks/useColumns/index.js +1 -1
  119. package/dist/node_modules/@rc-component/table/es/hooks/useExpand.js +1 -1
  120. package/dist/node_modules/@rc-component/table/es/utils/legacyUtil.js +1 -1
  121. package/dist/node_modules/@rc-component/tabs/es/hooks/useAnimateConfig.js +1 -1
  122. package/dist/node_modules/@rc-component/tooltip/es/placements.js +0 -1
  123. package/dist/node_modules/@rc-component/tree/es/Tree.js +1 -1
  124. package/dist/node_modules/@rc-component/tree/es/util.js +1 -1
  125. package/dist/node_modules/@rc-component/tree/es/utils/conductUtil.js +1 -1
  126. package/dist/node_modules/@rc-component/tree/es/utils/treeUtil.js +1 -1
  127. package/dist/node_modules/@rc-component/tree-select/es/TreeSelect.js +1 -1
  128. package/dist/node_modules/@rc-component/tree-select/es/hooks/useDataEntities.js +1 -1
  129. package/dist/node_modules/@rc-component/tree-select/es/utils/legacyUtil.js +1 -1
  130. package/dist/node_modules/@rc-component/tree-select/es/utils/warningPropsUtil.js +1 -1
  131. package/dist/node_modules/@rc-component/trigger/es/Popup/index.js +74 -72
  132. package/dist/node_modules/@rc-component/trigger/es/Popup/index.js.map +1 -1
  133. package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js +10 -9
  134. package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js.map +1 -1
  135. package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js +126 -123
  136. package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js.map +1 -1
  137. package/dist/node_modules/@rc-component/trigger/es/index.js +150 -140
  138. package/dist/node_modules/@rc-component/trigger/es/index.js.map +1 -1
  139. package/dist/node_modules/@rc-component/trigger/es/util.js +35 -34
  140. package/dist/node_modules/@rc-component/trigger/es/util.js.map +1 -1
  141. package/dist/node_modules/@rc-component/upload/es/attr-accept.js +1 -1
  142. package/dist/node_modules/@rc-component/util/es/Dom/focus.js +65 -20
  143. package/dist/node_modules/@rc-component/util/es/Dom/focus.js.map +1 -1
  144. package/dist/node_modules/@rc-component/util/es/KeyCode.js.map +1 -1
  145. package/dist/node_modules/@rc-component/util/es/hooks/useId.js.map +1 -1
  146. package/dist/node_modules/@rc-component/util/es/hooks/useState.js +6 -6
  147. package/dist/node_modules/@rc-component/util/es/hooks/useState.js.map +1 -1
  148. package/dist/node_modules/@rc-component/util/es/hooks/useSyncState.js.map +1 -1
  149. package/dist/node_modules/@rc-component/util/es/isEqual.js +1 -1
  150. package/dist/node_modules/@rc-component/util/es/utils/set.js +21 -21
  151. package/dist/node_modules/@rc-component/util/es/utils/set.js.map +1 -1
  152. package/dist/node_modules/@rc-component/virtual-list/es/hooks/useScrollTo.js +1 -1
  153. package/dist/node_modules/antd/es/_util/warning.js +1 -1
  154. package/dist/node_modules/antd/es/_util/wave/WaveEffect.js +53 -48
  155. package/dist/node_modules/antd/es/_util/wave/WaveEffect.js.map +1 -1
  156. package/dist/node_modules/antd/es/_util/wave/index.js +1 -1
  157. package/dist/node_modules/antd/es/_util/wave/index.js.map +1 -1
  158. package/dist/node_modules/antd/es/_util/wave/style.js +8 -7
  159. package/dist/node_modules/antd/es/_util/wave/style.js.map +1 -1
  160. package/dist/node_modules/antd/es/alert/Alert.js +133 -128
  161. package/dist/node_modules/antd/es/alert/Alert.js.map +1 -1
  162. package/dist/node_modules/antd/es/badge/Badge.js +29 -28
  163. package/dist/node_modules/antd/es/badge/Badge.js.map +1 -1
  164. package/dist/node_modules/antd/es/badge/style/index.js +1 -1
  165. package/dist/node_modules/antd/es/badge/style/index.js.map +1 -1
  166. package/dist/node_modules/antd/es/button/buttonHelpers.js +47 -41
  167. package/dist/node_modules/antd/es/button/buttonHelpers.js.map +1 -1
  168. package/dist/node_modules/antd/es/button/style/compact.js +45 -36
  169. package/dist/node_modules/antd/es/button/style/compact.js.map +1 -1
  170. package/dist/node_modules/antd/es/button/style/variant.js +100 -90
  171. package/dist/node_modules/antd/es/button/style/variant.js.map +1 -1
  172. package/dist/node_modules/antd/es/calendar/generateCalendar.js +55 -57
  173. package/dist/node_modules/antd/es/calendar/generateCalendar.js.map +1 -1
  174. package/dist/node_modules/antd/es/calendar/style/index.js +18 -18
  175. package/dist/node_modules/antd/es/calendar/style/index.js.map +1 -1
  176. package/dist/node_modules/antd/es/card/CardGrid.js.map +1 -1
  177. package/dist/node_modules/antd/es/card/style/index.js +23 -11
  178. package/dist/node_modules/antd/es/card/style/index.js.map +1 -1
  179. package/dist/node_modules/antd/es/checkbox/Group.js +32 -30
  180. package/dist/node_modules/antd/es/checkbox/Group.js.map +1 -1
  181. package/dist/node_modules/antd/es/collapse/Collapse.js +61 -61
  182. package/dist/node_modules/antd/es/collapse/Collapse.js.map +1 -1
  183. package/dist/node_modules/antd/es/color-picker/color.js +9 -9
  184. package/dist/node_modules/antd/es/color-picker/color.js.map +1 -1
  185. package/dist/node_modules/antd/es/config-provider/index.js +76 -71
  186. package/dist/node_modules/antd/es/config-provider/index.js.map +1 -1
  187. package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js +29 -31
  188. package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js.map +1 -1
  189. package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js +7 -9
  190. package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js.map +1 -1
  191. package/dist/node_modules/antd/es/date-picker/generatePicker/{SuffixIcon.js → useSuffixIcon.js} +4 -4
  192. package/dist/node_modules/antd/es/date-picker/generatePicker/useSuffixIcon.js.map +1 -0
  193. package/dist/node_modules/antd/es/date-picker/style/panel.js +4 -4
  194. package/dist/node_modules/antd/es/date-picker/style/panel.js.map +1 -1
  195. package/dist/node_modules/antd/es/drawer/useFocusable.js +14 -0
  196. package/dist/node_modules/antd/es/drawer/useFocusable.js.map +1 -0
  197. package/dist/node_modules/antd/es/empty/empty.js +27 -32
  198. package/dist/node_modules/antd/es/empty/empty.js.map +1 -1
  199. package/dist/node_modules/antd/es/empty/simple.js +2 -2
  200. package/dist/node_modules/antd/es/empty/simple.js.map +1 -1
  201. package/dist/node_modules/antd/es/form/hooks/useForm.js +2 -2
  202. package/dist/node_modules/antd/es/form/index.js +1 -1
  203. package/dist/node_modules/antd/es/form/style/index.js +24 -24
  204. package/dist/node_modules/antd/es/form/style/index.js.map +1 -1
  205. package/dist/node_modules/antd/es/grid/col.js +56 -54
  206. package/dist/node_modules/antd/es/grid/col.js.map +1 -1
  207. package/dist/node_modules/antd/es/grid/style/index.js +50 -50
  208. package/dist/node_modules/antd/es/grid/style/index.js.map +1 -1
  209. package/dist/node_modules/antd/es/input/TextArea.js +16 -15
  210. package/dist/node_modules/antd/es/input/TextArea.js.map +1 -1
  211. package/dist/node_modules/antd/es/input/style/index.js +1 -0
  212. package/dist/node_modules/antd/es/input/style/index.js.map +1 -1
  213. package/dist/node_modules/antd/es/input-number/index.js +91 -91
  214. package/dist/node_modules/antd/es/input-number/index.js.map +1 -1
  215. package/dist/node_modules/antd/es/input-number/style/index.js +80 -79
  216. package/dist/node_modules/antd/es/input-number/style/index.js.map +1 -1
  217. package/dist/node_modules/antd/es/layout/Sider.js +1 -2
  218. package/dist/node_modules/antd/es/layout/style/sider.js +9 -9
  219. package/dist/node_modules/antd/es/layout/style/sider.js.map +1 -1
  220. package/dist/node_modules/antd/es/menu/MenuItem.js +6 -6
  221. package/dist/node_modules/antd/es/menu/MenuItem.js.map +1 -1
  222. package/dist/node_modules/antd/es/menu/SubMenu.js +8 -8
  223. package/dist/node_modules/antd/es/menu/SubMenu.js.map +1 -1
  224. package/dist/node_modules/antd/es/menu/style/horizontal.js +1 -1
  225. package/dist/node_modules/antd/es/menu/style/horizontal.js.map +1 -1
  226. package/dist/node_modules/antd/es/menu/style/index.js +58 -58
  227. package/dist/node_modules/antd/es/menu/style/index.js.map +1 -1
  228. package/dist/node_modules/antd/es/menu/style/vertical.js +1 -1
  229. package/dist/node_modules/antd/es/menu/style/vertical.js.map +1 -1
  230. package/dist/node_modules/antd/es/message/index.js +1 -1
  231. package/dist/node_modules/antd/es/modal/ConfirmDialog.js +117 -112
  232. package/dist/node_modules/antd/es/modal/ConfirmDialog.js.map +1 -1
  233. package/dist/node_modules/antd/es/modal/Modal.js +115 -109
  234. package/dist/node_modules/antd/es/modal/Modal.js.map +1 -1
  235. package/dist/node_modules/antd/es/modal/confirm.js +3 -3
  236. package/dist/node_modules/antd/es/modal/style/index.js +83 -80
  237. package/dist/node_modules/antd/es/modal/style/index.js.map +1 -1
  238. package/dist/node_modules/antd/es/pagination/Pagination.js +85 -81
  239. package/dist/node_modules/antd/es/pagination/Pagination.js.map +1 -1
  240. package/dist/node_modules/antd/es/pagination/style/bordered.js +2 -2
  241. package/dist/node_modules/antd/es/pagination/style/bordered.js.map +1 -1
  242. package/dist/node_modules/antd/es/pagination/style/index.js +100 -133
  243. package/dist/node_modules/antd/es/pagination/style/index.js.map +1 -1
  244. package/dist/node_modules/antd/es/popover/index.js +77 -82
  245. package/dist/node_modules/antd/es/popover/index.js.map +1 -1
  246. package/dist/node_modules/antd/es/popover/style/index.js +65 -63
  247. package/dist/node_modules/antd/es/popover/style/index.js.map +1 -1
  248. package/dist/node_modules/antd/es/progress/progress.js +4 -4
  249. package/dist/node_modules/antd/es/radio/context.js +3 -3
  250. package/dist/node_modules/antd/es/radio/context.js.map +1 -1
  251. package/dist/node_modules/antd/es/radio/group.js +31 -29
  252. package/dist/node_modules/antd/es/radio/group.js.map +1 -1
  253. package/dist/node_modules/antd/es/radio/style/index.js +1 -1
  254. package/dist/node_modules/antd/es/radio/style/index.js.map +1 -1
  255. package/dist/node_modules/antd/es/select/style/dropdown.js +1 -1
  256. package/dist/node_modules/antd/es/select/style/dropdown.js.map +1 -1
  257. package/dist/node_modules/antd/es/select/style/select-input-multiple.js +71 -69
  258. package/dist/node_modules/antd/es/select/style/select-input-multiple.js.map +1 -1
  259. package/dist/node_modules/antd/es/select/style/select-input.js +113 -98
  260. package/dist/node_modules/antd/es/select/style/select-input.js.map +1 -1
  261. package/dist/node_modules/antd/es/skeleton/Image.js +9 -9
  262. package/dist/node_modules/antd/es/skeleton/Image.js.map +1 -1
  263. package/dist/node_modules/antd/es/space/Item.js +2 -2
  264. package/dist/node_modules/antd/es/space/Item.js.map +1 -1
  265. package/dist/node_modules/antd/es/space/index.js +4 -4
  266. package/dist/node_modules/antd/es/space/index.js.map +1 -1
  267. package/dist/node_modules/antd/es/space/style/addon.js +47 -46
  268. package/dist/node_modules/antd/es/space/style/addon.js.map +1 -1
  269. package/dist/node_modules/antd/es/steps/PanelArrow.js +2 -2
  270. package/dist/node_modules/antd/es/steps/PanelArrow.js.map +1 -1
  271. package/dist/node_modules/antd/es/steps/ProgressIcon.js +12 -10
  272. package/dist/node_modules/antd/es/steps/ProgressIcon.js.map +1 -1
  273. package/dist/node_modules/antd/es/steps/index.js +108 -106
  274. package/dist/node_modules/antd/es/steps/index.js.map +1 -1
  275. package/dist/node_modules/antd/es/steps/style/horizontal.js +13 -11
  276. package/dist/node_modules/antd/es/steps/style/horizontal.js.map +1 -1
  277. package/dist/node_modules/antd/es/steps/style/icon.js +23 -18
  278. package/dist/node_modules/antd/es/steps/style/icon.js.map +1 -1
  279. package/dist/node_modules/antd/es/steps/style/index.js +41 -41
  280. package/dist/node_modules/antd/es/steps/style/index.js.map +1 -1
  281. package/dist/node_modules/antd/es/steps/style/inline.js +28 -23
  282. package/dist/node_modules/antd/es/steps/style/inline.js.map +1 -1
  283. package/dist/node_modules/antd/es/steps/style/label-placement.js +44 -39
  284. package/dist/node_modules/antd/es/steps/style/label-placement.js.map +1 -1
  285. package/dist/node_modules/antd/es/steps/style/nav.js +29 -27
  286. package/dist/node_modules/antd/es/steps/style/nav.js.map +1 -1
  287. package/dist/node_modules/antd/es/steps/style/panel.js +61 -56
  288. package/dist/node_modules/antd/es/steps/style/panel.js.map +1 -1
  289. package/dist/node_modules/antd/es/steps/style/progress-dot.js +28 -26
  290. package/dist/node_modules/antd/es/steps/style/progress-dot.js.map +1 -1
  291. package/dist/node_modules/antd/es/steps/style/progress.js +24 -57
  292. package/dist/node_modules/antd/es/steps/style/progress.js.map +1 -1
  293. package/dist/node_modules/antd/es/steps/style/rtl.js +10 -8
  294. package/dist/node_modules/antd/es/steps/style/rtl.js.map +1 -1
  295. package/dist/node_modules/antd/es/steps/style/small.js +21 -16
  296. package/dist/node_modules/antd/es/steps/style/small.js.map +1 -1
  297. package/dist/node_modules/antd/es/steps/style/status.js +187 -176
  298. package/dist/node_modules/antd/es/steps/style/status.js.map +1 -1
  299. package/dist/node_modules/antd/es/steps/style/util.js +18 -16
  300. package/dist/node_modules/antd/es/steps/style/util.js.map +1 -1
  301. package/dist/node_modules/antd/es/steps/style/vertical.js +21 -16
  302. package/dist/node_modules/antd/es/steps/style/vertical.js.map +1 -1
  303. package/dist/node_modules/antd/es/style/placementArrow.js +31 -29
  304. package/dist/node_modules/antd/es/style/placementArrow.js.map +1 -1
  305. package/dist/node_modules/antd/es/table/InternalTable.js +65 -62
  306. package/dist/node_modules/antd/es/table/InternalTable.js.map +1 -1
  307. package/dist/node_modules/antd/es/table/TableMeasureRowContext.js +6 -0
  308. package/dist/node_modules/antd/es/table/TableMeasureRowContext.js.map +1 -0
  309. package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js +145 -137
  310. package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js.map +1 -1
  311. package/dist/node_modules/antd/es/table/style/index.js +3 -3
  312. package/dist/node_modules/antd/es/table/style/index.js.map +1 -1
  313. package/dist/node_modules/antd/es/table/style/radius.js +10 -0
  314. package/dist/node_modules/antd/es/table/style/radius.js.map +1 -1
  315. package/dist/node_modules/antd/es/table/style/virtual.js +5 -5
  316. package/dist/node_modules/antd/es/table/style/virtual.js.map +1 -1
  317. package/dist/node_modules/antd/es/tag/style/index.js +5 -5
  318. package/dist/node_modules/antd/es/tag/style/index.js.map +1 -1
  319. package/dist/node_modules/antd/es/theme/util/genStyleUtils.js +29 -32
  320. package/dist/node_modules/antd/es/theme/util/genStyleUtils.js.map +1 -1
  321. package/dist/node_modules/antd/es/timeline/Timeline.js +76 -74
  322. package/dist/node_modules/antd/es/timeline/Timeline.js.map +1 -1
  323. package/dist/node_modules/antd/es/timeline/style/horizontal.js +21 -18
  324. package/dist/node_modules/antd/es/timeline/style/horizontal.js.map +1 -1
  325. package/dist/node_modules/antd/es/timeline/style/index.js +85 -70
  326. package/dist/node_modules/antd/es/timeline/style/index.js.map +1 -1
  327. package/dist/node_modules/antd/es/timeline/useItems.js +38 -37
  328. package/dist/node_modules/antd/es/timeline/useItems.js.map +1 -1
  329. package/dist/node_modules/antd/es/tooltip/PurePanel.js +27 -27
  330. package/dist/node_modules/antd/es/tooltip/PurePanel.js.map +1 -1
  331. package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js +17 -22
  332. package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js.map +1 -1
  333. package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js +27 -26
  334. package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js.map +1 -1
  335. package/dist/node_modules/antd/es/tooltip/index.js +52 -51
  336. package/dist/node_modules/antd/es/tooltip/index.js.map +1 -1
  337. package/dist/node_modules/antd/es/tooltip/style/index.js +55 -52
  338. package/dist/node_modules/antd/es/tooltip/style/index.js.map +1 -1
  339. package/dist/node_modules/antd/es/tooltip/util.js +13 -12
  340. package/dist/node_modules/antd/es/tooltip/util.js.map +1 -1
  341. package/dist/node_modules/antd/es/transfer/ListBody.js +16 -16
  342. package/dist/node_modules/antd/es/transfer/ListBody.js.map +1 -1
  343. package/dist/node_modules/antd/es/transfer/ListItem.js +43 -43
  344. package/dist/node_modules/antd/es/transfer/ListItem.js.map +1 -1
  345. package/dist/node_modules/antd/es/transfer/style/index.js +1 -1
  346. package/dist/node_modules/antd/es/tree/DirectoryTree.js +42 -41
  347. package/dist/node_modules/antd/es/tree/DirectoryTree.js.map +1 -1
  348. package/dist/node_modules/antd/es/typography/Base/index.js +43 -42
  349. package/dist/node_modules/antd/es/typography/Base/index.js.map +1 -1
  350. package/dist/node_modules/antd/es/typography/style/index.js +43 -43
  351. package/dist/node_modules/antd/es/typography/style/index.js.map +1 -1
  352. package/dist/node_modules/antd/es/typography/style/mixins.js +1 -1
  353. package/dist/node_modules/antd/es/typography/style/mixins.js.map +1 -1
  354. package/dist/node_modules/antd/es/version/version.js +1 -1
  355. package/dist/node_modules/antd/es/version/version.js.map +1 -1
  356. package/dist/node_modules/antd/es/watermark/context.js +5 -6
  357. package/dist/node_modules/antd/es/watermark/context.js.map +1 -1
  358. package/dist/node_modules/antd-style/node_modules/@ant-design/cssinjs/es/StyleContext.js +1 -2
  359. package/dist/node_modules/antd-style/node_modules/@ant-design/cssinjs/es/StyleContext.js.map +1 -1
  360. package/dist/node_modules/exceljs/dist/exceljs.min.js +91 -508
  361. package/dist/node_modules/exceljs/dist/exceljs.min.js.map +1 -1
  362. package/dist/node_modules/html2canvas/dist/html2canvas.esm.js +5 -55
  363. package/dist/node_modules/html2canvas/dist/html2canvas.esm.js.map +1 -1
  364. package/dist/node_modules/jspdf/dist/jspdf.es.min.js +8 -53
  365. package/dist/node_modules/jspdf/dist/jspdf.es.min.js.map +1 -1
  366. package/dist/node_modules/lodash/lodash.js +295 -278
  367. package/dist/node_modules/lodash/lodash.js.map +1 -1
  368. package/dist/node_modules/moment/dist/moment.js +2 -8
  369. package/dist/node_modules/moment/dist/moment.js.map +1 -1
  370. package/dist/node_modules/rc-util/es/isEqual.js +1 -1
  371. package/package.json +1 -1
  372. package/dist/node_modules/@rc-component/form/es/BatchUpdate.js +0 -21
  373. package/dist/node_modules/@rc-component/form/es/BatchUpdate.js.map +0 -1
  374. package/dist/node_modules/@rc-component/form/es/useForm.js.map +0 -1
  375. package/dist/node_modules/@rc-component/form/es/useWatch.js.map +0 -1
  376. package/dist/node_modules/antd/es/date-picker/generatePicker/SuffixIcon.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.js","sources":["../../../../../node_modules/antd/es/alert/Alert.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport CheckCircleFilled from \"@ant-design/icons/es/icons/CheckCircleFilled\";\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport ExclamationCircleFilled from \"@ant-design/icons/es/icons/ExclamationCircleFilled\";\nimport InfoCircleFilled from \"@ant-design/icons/es/icons/InfoCircleFilled\";\nimport CSSMotion from '@rc-component/motion';\nimport pickAttrs from \"@rc-component/util/es/pickAttrs\";\nimport { composeRef } from \"@rc-component/util/es/ref\";\nimport { clsx } from 'clsx';\nimport { useMergeSemantic } from '../_util/hooks';\nimport isNonNullable from '../_util/isNonNullable';\nimport { replaceElement } from '../_util/reactNode';\nimport { devUseWarning } from '../_util/warning';\nimport { useComponentConfig } from '../config-provider/context';\nimport useStyle from './style';\nconst iconMapFilled = {\n success: CheckCircleFilled,\n info: InfoCircleFilled,\n error: CloseCircleFilled,\n warning: ExclamationCircleFilled\n};\nconst IconNode = props => {\n const {\n icon,\n prefixCls,\n type,\n className,\n style\n } = props;\n const iconType = iconMapFilled[type] || null;\n if (icon) {\n return replaceElement(icon, /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-icon`\n }, icon), () => ({\n className: clsx(icon.props.className, className),\n style\n }));\n }\n return /*#__PURE__*/React.createElement(iconType, {\n className,\n style\n });\n};\nconst CloseIconNode = props => {\n const {\n isClosable,\n prefixCls,\n closeIcon,\n handleClose,\n ariaProps,\n className,\n style\n } = props;\n const mergedCloseIcon = closeIcon === true || closeIcon === undefined ? /*#__PURE__*/React.createElement(CloseOutlined, null) : closeIcon;\n return isClosable ? (/*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: handleClose,\n className: clsx(`${prefixCls}-close-icon`, className),\n tabIndex: 0,\n style: style,\n ...ariaProps\n }, mergedCloseIcon)) : null;\n};\nconst Alert = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n description,\n prefixCls: customizePrefixCls,\n message,\n title,\n banner,\n className,\n rootClassName,\n style,\n onMouseEnter,\n onMouseLeave,\n onClick,\n afterClose,\n showIcon,\n closable,\n closeText,\n closeIcon,\n action,\n id,\n styles,\n classNames,\n ...otherProps\n } = props;\n const mergedTitle = title ?? message;\n const [closed, setClosed] = React.useState(false);\n if (process.env.NODE_ENV !== 'production') {\n const warning = devUseWarning('Alert');\n [['closeText', 'closable.closeIcon'], ['message', 'title']].forEach(([deprecatedName, newName]) => {\n warning.deprecated(!(deprecatedName in props), deprecatedName, newName);\n });\n }\n const internalRef = React.useRef(null);\n React.useImperativeHandle(ref, () => ({\n nativeElement: internalRef.current\n }));\n const {\n getPrefixCls,\n direction,\n closable: contextClosable,\n closeIcon: contextCloseIcon,\n className: contextClassName,\n style: contextStyle,\n classNames: contextClassNames,\n styles: contextStyles\n } = useComponentConfig('alert');\n const prefixCls = getPrefixCls('alert', customizePrefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls);\n const {\n onClose: closableOnClose,\n afterClose: closableAfterClose\n } = closable && typeof closable === 'object' ? closable : {};\n const handleClose = e => {\n setClosed(true);\n (closableOnClose ?? props.onClose)?.(e);\n };\n const type = React.useMemo(() => {\n if (props.type !== undefined) {\n return props.type;\n }\n // banner mode defaults to 'warning'\n return banner ? 'warning' : 'info';\n }, [props.type, banner]);\n // closeable when closeText or closeIcon is assigned\n const isClosable = React.useMemo(() => {\n if (typeof closable === 'object' && closable.closeIcon) {\n return true;\n }\n if (closeText) {\n return true;\n }\n if (typeof closable === 'boolean') {\n return closable;\n }\n // should be true when closeIcon is 0 or ''\n if (closeIcon !== false && isNonNullable(closeIcon)) {\n return true;\n }\n return !!contextClosable;\n }, [closeText, closeIcon, closable, contextClosable]);\n // banner mode defaults to Icon\n const isShowIcon = banner && showIcon === undefined ? true : showIcon;\n // =========== Merged Props for Semantic ==========\n const mergedProps = {\n ...props,\n prefixCls,\n type,\n showIcon: isShowIcon,\n closable: isClosable\n };\n const [mergedClassNames, mergedStyles] = useMergeSemantic([contextClassNames, classNames], [contextStyles, styles], {\n props: mergedProps\n });\n const alertCls = clsx(prefixCls, `${prefixCls}-${type}`, {\n [`${prefixCls}-with-description`]: !!description,\n [`${prefixCls}-no-icon`]: !isShowIcon,\n [`${prefixCls}-banner`]: !!banner,\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, contextClassName, className, rootClassName, mergedClassNames.root, cssVarCls, hashId);\n const restProps = pickAttrs(otherProps, {\n aria: true,\n data: true\n });\n const mergedCloseIcon = React.useMemo(() => {\n if (typeof closable === 'object' && closable.closeIcon) {\n return closable.closeIcon;\n }\n if (closeText) {\n return closeText;\n }\n if (closeIcon !== undefined) {\n return closeIcon;\n }\n if (typeof contextClosable === 'object' && contextClosable.closeIcon) {\n return contextClosable.closeIcon;\n }\n return contextCloseIcon;\n }, [closeIcon, closable, contextClosable, closeText, contextCloseIcon]);\n const mergedAriaProps = React.useMemo(() => {\n const merged = closable ?? contextClosable;\n if (typeof merged === 'object') {\n return pickAttrs(merged, {\n data: true,\n aria: true\n });\n }\n return {};\n }, [closable, contextClosable]);\n return /*#__PURE__*/React.createElement(CSSMotion, {\n visible: !closed,\n motionName: `${prefixCls}-motion`,\n motionAppear: false,\n motionEnter: false,\n onLeaveStart: node => ({\n maxHeight: node.offsetHeight\n }),\n onLeaveEnd: closableAfterClose ?? afterClose\n }, ({\n className: motionClassName,\n style: motionStyle\n }, setRef) => (/*#__PURE__*/React.createElement(\"div\", {\n id: id,\n ref: composeRef(internalRef, setRef),\n \"data-show\": !closed,\n className: clsx(alertCls, motionClassName),\n style: {\n ...mergedStyles.root,\n ...contextStyle,\n ...style,\n ...motionStyle\n },\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave,\n onClick: onClick,\n role: \"alert\",\n ...restProps\n }, isShowIcon ? (/*#__PURE__*/React.createElement(IconNode, {\n className: clsx(`${prefixCls}-icon`, mergedClassNames.icon),\n style: mergedStyles.icon,\n description: description,\n icon: props.icon,\n prefixCls: prefixCls,\n type: type\n })) : null, /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(`${prefixCls}-section`, mergedClassNames.section),\n style: mergedStyles.section\n }, mergedTitle ? (/*#__PURE__*/React.createElement(\"div\", {\n className: clsx(`${prefixCls}-title`, mergedClassNames.title),\n style: mergedStyles.title\n }, mergedTitle)) : null, description ? (/*#__PURE__*/React.createElement(\"div\", {\n className: clsx(`${prefixCls}-description`, mergedClassNames.description),\n style: mergedStyles.description\n }, description)) : null), action ? (/*#__PURE__*/React.createElement(\"div\", {\n className: clsx(`${prefixCls}-actions`, mergedClassNames.actions),\n style: mergedStyles.actions\n }, action)) : null, /*#__PURE__*/React.createElement(CloseIconNode, {\n className: mergedClassNames.close,\n style: mergedStyles.close,\n isClosable: isClosable,\n prefixCls: prefixCls,\n closeIcon: mergedCloseIcon,\n handleClose: handleClose,\n ariaProps: mergedAriaProps\n }))));\n});\nif (process.env.NODE_ENV !== 'production') {\n Alert.displayName = 'Alert';\n}\nexport default Alert;"],"names":["iconMapFilled","CheckCircleFilled","InfoCircleFilled","CloseCircleFilled","ExclamationCircleFilled","IconNode","props","icon","prefixCls","type","className","style","iconType","replaceElement","React","clsx","CloseIconNode","isClosable","closeIcon","handleClose","ariaProps","mergedCloseIcon","CloseOutlined","Alert","ref","description","customizePrefixCls","message","title","banner","rootClassName","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","action","id","styles","classNames","otherProps","mergedTitle","closed","setClosed","process","warning","devUseWarning","deprecatedName","newName","internalRef","getPrefixCls","direction","contextClosable","contextCloseIcon","contextClassName","contextStyle","contextClassNames","contextStyles","useComponentConfig","hashId","cssVarCls","useStyle","closableOnClose","closableAfterClose","e","isNonNullable","isShowIcon","mergedProps","mergedClassNames","mergedStyles","useMergeSemantic","alertCls","restProps","pickAttrs","mergedAriaProps","merged","CSSMotion","node","motionClassName","motionStyle","setRef","composeRef"],"mappings":";;;;;;;;;;;;;;;;;AAkBA,MAAMA,KAAgB;AAAA,EACpB,SAASC;AAAAA,EACT,MAAMC;AAAAA,EACN,OAAOC;AAAAA,EACP,SAASC;AACX,GACMC,KAAW,CAAAC,MAAS;AACxB,QAAM;AAAA,IACJ,MAAAC;AAAA,IACA,WAAAC;AAAA,IACA,MAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,EACJ,IAAML,GACEM,IAAWZ,GAAcS,CAAI,KAAK;AACxC,SAAIF,IACKM,GAAeN,GAAmB,gBAAAO,EAAM,cAAc,QAAQ;AAAA,IACnE,WAAW,GAAGN,CAAS;AAAA,EAC7B,GAAOD,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K,GAAGP,CAAS,gBAAgB8D,EAAiB,WAAW;AAAA,IACxE,OAAOC,EAAa;AAAA,EACxB,GAAK9C,CAAW,IAAK,IAAI,GAAGa,IAAuB,gBAAAxB,EAAM,cAAc,OAAO;AAAA,IAC1E,WAAWC,EAAK,GAAGP,CAAS,YAAY8D,EAAiB,OAAO;AAAA,IAChE,OAAOC,EAAa;AAAA,EACxB,GAAKjC,CAAM,IAAK,MAAmB,gBAAAxB,EAAM,cAAcE,IAAe;AAAA,IAClE,WAAWsD,EAAiB;AAAA,IAC5B,OAAOC,EAAa;AAAA,IACpB,YAAYtD;AAAA,IACZ,WAAWT;AAAA,IACX,WAAWa;AAAA,IACX,aAAaF;AAAA,IACb,WAAWyD;AAAA,EACf,CAAG,CAAC,CAAE;AACN,CAAC;AACG9B,EAAQ,IAAI,aAAa,iBAC3BvB,GAAM,cAAc;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"Alert.js","sources":["../../../../../node_modules/antd/es/alert/Alert.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport CheckCircleFilled from \"@ant-design/icons/es/icons/CheckCircleFilled\";\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport ExclamationCircleFilled from \"@ant-design/icons/es/icons/ExclamationCircleFilled\";\nimport InfoCircleFilled from \"@ant-design/icons/es/icons/InfoCircleFilled\";\nimport CSSMotion from '@rc-component/motion';\nimport pickAttrs from \"@rc-component/util/es/pickAttrs\";\nimport { composeRef } from \"@rc-component/util/es/ref\";\nimport { clsx } from 'clsx';\nimport { useMergeSemantic } from '../_util/hooks';\nimport isNonNullable from '../_util/isNonNullable';\nimport { devUseWarning } from '../_util/warning';\nimport { useComponentConfig } from '../config-provider/context';\nimport useStyle from './style';\nconst IconNode = props => {\n const {\n icon,\n type,\n className,\n style,\n successIcon,\n infoIcon,\n warningIcon,\n errorIcon\n } = props;\n const iconMapFilled = {\n success: successIcon ?? /*#__PURE__*/React.createElement(CheckCircleFilled, null),\n info: infoIcon ?? /*#__PURE__*/React.createElement(InfoCircleFilled, null),\n error: errorIcon ?? /*#__PURE__*/React.createElement(CloseCircleFilled, null),\n warning: warningIcon ?? /*#__PURE__*/React.createElement(ExclamationCircleFilled, null)\n };\n return /*#__PURE__*/React.createElement(\"span\", {\n className: className,\n style: style\n }, icon ?? iconMapFilled[type]);\n};\nconst CloseIconNode = props => {\n const {\n isClosable,\n prefixCls,\n closeIcon,\n handleClose,\n ariaProps,\n className,\n style\n } = props;\n const mergedCloseIcon = closeIcon === true || closeIcon === undefined ? /*#__PURE__*/React.createElement(CloseOutlined, null) : closeIcon;\n return isClosable ? (/*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: handleClose,\n className: clsx(`${prefixCls}-close-icon`, className),\n tabIndex: 0,\n style: style,\n ...ariaProps\n }, mergedCloseIcon)) : null;\n};\nconst Alert = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n description,\n prefixCls: customizePrefixCls,\n message,\n title,\n banner,\n className,\n rootClassName,\n style,\n onMouseEnter,\n onMouseLeave,\n onClick,\n afterClose,\n showIcon,\n closable,\n closeText,\n closeIcon,\n action,\n id,\n styles,\n classNames,\n ...otherProps\n } = props;\n const mergedTitle = title ?? message;\n const [closed, setClosed] = React.useState(false);\n if (process.env.NODE_ENV !== 'production') {\n const warning = devUseWarning('Alert');\n [['closeText', 'closable.closeIcon'], ['message', 'title']].forEach(([deprecatedName, newName]) => {\n warning.deprecated(!(deprecatedName in props), deprecatedName, newName);\n });\n }\n const internalRef = React.useRef(null);\n React.useImperativeHandle(ref, () => ({\n nativeElement: internalRef.current\n }));\n const {\n getPrefixCls,\n direction,\n closable: contextClosable,\n closeIcon: contextCloseIcon,\n className: contextClassName,\n style: contextStyle,\n classNames: contextClassNames,\n styles: contextStyles,\n successIcon,\n infoIcon,\n warningIcon,\n errorIcon\n } = useComponentConfig('alert');\n const prefixCls = getPrefixCls('alert', customizePrefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls);\n const {\n onClose: closableOnClose,\n afterClose: closableAfterClose\n } = closable && typeof closable === 'object' ? closable : {};\n const handleClose = e => {\n setClosed(true);\n (closableOnClose ?? props.onClose)?.(e);\n };\n const type = React.useMemo(() => {\n if (props.type !== undefined) {\n return props.type;\n }\n // banner mode defaults to 'warning'\n return banner ? 'warning' : 'info';\n }, [props.type, banner]);\n // closeable when closeText or closeIcon is assigned\n const isClosable = React.useMemo(() => {\n if (typeof closable === 'object' && closable.closeIcon) {\n return true;\n }\n if (closeText) {\n return true;\n }\n if (typeof closable === 'boolean') {\n return closable;\n }\n // should be true when closeIcon is 0 or ''\n if (closeIcon !== false && isNonNullable(closeIcon)) {\n return true;\n }\n return !!contextClosable;\n }, [closeText, closeIcon, closable, contextClosable]);\n // banner mode defaults to Icon\n const isShowIcon = banner && showIcon === undefined ? true : showIcon;\n // =========== Merged Props for Semantic ==========\n const mergedProps = {\n ...props,\n prefixCls,\n type,\n showIcon: isShowIcon,\n closable: isClosable\n };\n const [mergedClassNames, mergedStyles] = useMergeSemantic([contextClassNames, classNames], [contextStyles, styles], {\n props: mergedProps\n });\n const alertCls = clsx(prefixCls, `${prefixCls}-${type}`, {\n [`${prefixCls}-with-description`]: !!description,\n [`${prefixCls}-no-icon`]: !isShowIcon,\n [`${prefixCls}-banner`]: !!banner,\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, contextClassName, className, rootClassName, mergedClassNames.root, cssVarCls, hashId);\n const restProps = pickAttrs(otherProps, {\n aria: true,\n data: true\n });\n const mergedCloseIcon = React.useMemo(() => {\n if (typeof closable === 'object' && closable.closeIcon) {\n return closable.closeIcon;\n }\n if (closeText) {\n return closeText;\n }\n if (closeIcon !== undefined) {\n return closeIcon;\n }\n if (typeof contextClosable === 'object' && contextClosable.closeIcon) {\n return contextClosable.closeIcon;\n }\n return contextCloseIcon;\n }, [closeIcon, closable, contextClosable, closeText, contextCloseIcon]);\n const mergedAriaProps = React.useMemo(() => {\n const merged = closable ?? contextClosable;\n if (typeof merged === 'object') {\n return pickAttrs(merged, {\n data: true,\n aria: true\n });\n }\n return {};\n }, [closable, contextClosable]);\n return /*#__PURE__*/React.createElement(CSSMotion, {\n visible: !closed,\n motionName: `${prefixCls}-motion`,\n motionAppear: false,\n motionEnter: false,\n onLeaveStart: node => ({\n maxHeight: node.offsetHeight\n }),\n onLeaveEnd: closableAfterClose ?? afterClose\n }, ({\n className: motionClassName,\n style: motionStyle\n }, setRef) => (/*#__PURE__*/React.createElement(\"div\", {\n id: id,\n ref: composeRef(internalRef, setRef),\n \"data-show\": !closed,\n className: clsx(alertCls, motionClassName),\n style: {\n ...mergedStyles.root,\n ...contextStyle,\n ...style,\n ...motionStyle\n },\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave,\n onClick: onClick,\n role: \"alert\",\n ...restProps\n }, isShowIcon ? (/*#__PURE__*/React.createElement(IconNode, {\n className: clsx(`${prefixCls}-icon`, mergedClassNames.icon),\n style: mergedStyles.icon,\n description: description,\n icon: props.icon,\n prefixCls: prefixCls,\n type: type,\n successIcon: successIcon,\n infoIcon: infoIcon,\n warningIcon: warningIcon,\n errorIcon: errorIcon\n })) : null, /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(`${prefixCls}-section`, mergedClassNames.section),\n style: mergedStyles.section\n }, mergedTitle ? (/*#__PURE__*/React.createElement(\"div\", {\n className: clsx(`${prefixCls}-title`, mergedClassNames.title),\n style: mergedStyles.title\n }, mergedTitle)) : null, description ? (/*#__PURE__*/React.createElement(\"div\", {\n className: clsx(`${prefixCls}-description`, mergedClassNames.description),\n style: mergedStyles.description\n }, description)) : null), action ? (/*#__PURE__*/React.createElement(\"div\", {\n className: clsx(`${prefixCls}-actions`, mergedClassNames.actions),\n style: mergedStyles.actions\n }, action)) : null, /*#__PURE__*/React.createElement(CloseIconNode, {\n className: mergedClassNames.close,\n style: mergedStyles.close,\n isClosable: isClosable,\n prefixCls: prefixCls,\n closeIcon: mergedCloseIcon,\n handleClose: handleClose,\n ariaProps: mergedAriaProps\n }))));\n});\nif (process.env.NODE_ENV !== 'production') {\n Alert.displayName = 'Alert';\n}\nexport default Alert;"],"names":["IconNode","props","icon","type","className","style","successIcon","infoIcon","warningIcon","errorIcon","iconMapFilled","React","CheckCircleFilled","InfoCircleFilled","CloseCircleFilled","ExclamationCircleFilled","CloseIconNode","isClosable","prefixCls","closeIcon","handleClose","ariaProps","mergedCloseIcon","CloseOutlined","clsx","Alert","ref","description","customizePrefixCls","message","title","banner","rootClassName","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","action","id","styles","classNames","otherProps","mergedTitle","closed","setClosed","process","warning","devUseWarning","deprecatedName","newName","internalRef","getPrefixCls","direction","contextClosable","contextCloseIcon","contextClassName","contextStyle","contextClassNames","contextStyles","useComponentConfig","hashId","cssVarCls","useStyle","closableOnClose","closableAfterClose","e","isNonNullable","isShowIcon","mergedProps","mergedClassNames","mergedStyles","useMergeSemantic","alertCls","restProps","pickAttrs","mergedAriaProps","merged","CSSMotion","node","motionClassName","motionStyle","setRef","composeRef"],"mappings":";;;;;;;;;;;;;;;;AAiBA,MAAMA,KAAW,CAAAC,MAAS;AACxB,QAAM;AAAA,IACJ,MAAAC;AAAA,IACA,MAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,UAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,EACJ,IAAMR,GACES,IAAgB;AAAA,IACpB,SAASJ,KAA4B,gBAAAK,EAAM,cAAcC,IAAmB,IAAI;AAAA,IAChF,MAAML,KAAyB,gBAAAI,EAAM,cAAcE,IAAkB,IAAI;AAAA,IACzE,OAAOJ,KAA0B,gBAAAE,EAAM,cAAcG,IAAmB,IAAI;AAAA,IAC5E,SAASN,KAA4B,gBAAAG,EAAM,cAAcI,IAAyB,IAAI;AAAA,EAC1F;AACE,SAAoB,gB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B,IAA4B,gBAAAhB,EAAM,cAAc,OAAO;AAAA,IAC9E,WAAWa,EAAK,GAAGN,CAAS,gBAAgBsD,EAAiB,WAAW;AAAA,IACxE,OAAOC,EAAa;AAAA,EACxB,GAAK9C,CAAW,IAAK,IAAI,GAAGa,IAAuB,gBAAA7B,EAAM,cAAc,OAAO;AAAA,IAC1E,WAAWa,EAAK,GAAGN,CAAS,YAAYsD,EAAiB,OAAO;AAAA,IAChE,OAAOC,EAAa;AAAA,EACxB,GAAKjC,CAAM,IAAK,MAAmB,gBAAA7B,EAAM,cAAcK,IAAe;AAAA,IAClE,WAAWwD,EAAiB;AAAA,IAC5B,OAAOC,EAAa;AAAA,IACpB,YAAYxD;AAAA,IACZ,WAAWC;AAAA,IACX,WAAWI;AAAA,IACX,aAAaF;AAAA,IACb,WAAW0D;AAAA,EACf,CAAG,CAAC,CAAE;AACN,CAAC;AACG9B,EAAQ,IAAI,aAAa,iBAC3BvB,GAAM,cAAc;","x_google_ignoreList":[0]}
@@ -1,6 +1,6 @@
1
1
  import ut from "../../../vite-plugin-node-polyfills/shims/process/dist/index.js";
2
2
  import * as r from "react";
3
- import { useMemo as q, useRef as z } from "react";
3
+ import { useMemo as F, useRef as z } from "react";
4
4
  import ft from "../../../@rc-component/motion/es/CSSMotion.js";
5
5
  import { clsx as v } from "../../../clsx/dist/clsx.js";
6
6
  import { isPresetColor as dt } from "../_util/colors.js";
@@ -10,7 +10,7 @@ import { useComponentConfig as Nt } from "../config-provider/context.js";
10
10
  import yt from "./ScrollNumber.js";
11
11
  import Ct from "./style/index.js";
12
12
  import { useMergeSemantic as gt } from "../_util/hooks/useMergeSemantic.js";
13
- const $t = /* @__PURE__ */ r.forwardRef((I, F) => {
13
+ const $t = /* @__PURE__ */ r.forwardRef((I, T) => {
14
14
  const {
15
15
  prefixCls: G,
16
16
  scrollNumberPrefixCls: J,
@@ -20,8 +20,8 @@ const $t = /* @__PURE__ */ r.forwardRef((I, F) => {
20
20
  color: s,
21
21
  count: c = null,
22
22
  overflowCount: x = 99,
23
- dot: T = !1,
24
- size: k = "default",
23
+ dot: k = !1,
24
+ size: M = "default",
25
25
  title: K,
26
26
  offset: p,
27
27
  style: b,
@@ -30,29 +30,29 @@ const $t = /* @__PURE__ */ r.forwardRef((I, F) => {
30
30
  classNames: U,
31
31
  styles: W,
32
32
  showZero: i = !1,
33
- ...M
33
+ ...V
34
34
  } = I, {
35
- getPrefixCls: V,
35
+ getPrefixCls: A,
36
36
  direction: X,
37
37
  className: Y,
38
38
  style: S,
39
39
  classNames: tt,
40
40
  styles: et
41
- } = Nt("badge"), t = V("badge", G), [st, ot] = Ct(t), rt = {
41
+ } = Nt("badge"), t = A("badge", G), [st, ot] = Ct(t), rt = {
42
42
  ...I,
43
43
  overflowCount: x,
44
- size: k,
45
- dot: T,
44
+ size: M,
45
+ dot: k,
46
46
  showZero: i
47
47
  }, [E, N] = gt([tt, U], [et, W], {
48
48
  props: rt
49
- }), h = c > x ? `${x}+` : c, m = h === "0" || h === 0 || e === "0" || e === 0, A = c === null || m && !i, w = (d(n) || d(s)) && A, nt = d(n) || !m, u = T && !m, f = u ? "" : h, l = q(() => ((!d(f) || f === "") && (!d(e) || e === "") || m && !i) && !u, [f, m, i, u, e]), B = z(c);
50
- l || (B.current = c);
51
- const a = B.current, O = z(f);
52
- l || (O.current = f);
53
- const P = O.current, Z = z(u);
54
- l || (Z.current = u);
55
- const y = q(() => {
49
+ }), h = c > x ? `${x}+` : c, m = h === "0" || h === 0 || e === "0" || e === 0, B = c === null || m && !i, w = (d(n) || d(s)) && B, nt = d(n) || !m, u = k && !m, f = u ? "" : h, l = F(() => ((!d(f) || f === "") && (!d(e) || e === "") || m && !i) && !u, [f, m, i, u, e]), O = z(c);
50
+ l || (O.current = c);
51
+ const a = O.current, Z = z(f);
52
+ l || (Z.current = f);
53
+ const P = Z.current, j = z(u);
54
+ l || (j.current = u);
55
+ const y = F(() => {
56
56
  if (!p)
57
57
  return {
58
58
  ...S,
@@ -67,7 +67,7 @@ const $t = /* @__PURE__ */ r.forwardRef((I, F) => {
67
67
  ...S,
68
68
  ...b
69
69
  };
70
- }, [p, b, S]), lt = K ?? (typeof a == "string" || typeof a == "number" ? a : void 0), j = !l && (e === 0 ? i : !!e && e !== !0), at = j ? /* @__PURE__ */ r.createElement("span", {
70
+ }, [p, b, S]), lt = K ?? (typeof a == "string" || typeof a == "number" ? a : void 0), H = !l && (e === 0 ? i : !!e && e !== !0), at = H ? /* @__PURE__ */ r.createElement("span", {
71
71
  className: `${t}-status-text`
72
72
  }, e) : null, ct = !a || typeof a != "object" ? void 0 : pt(a, (o) => ({
73
73
  style: {
@@ -80,16 +80,17 @@ const $t = /* @__PURE__ */ r.forwardRef((I, F) => {
80
80
  [`${t}-color-${s}`]: C
81
81
  }), D = {};
82
82
  s && !C && (D.color = s, D.background = s);
83
- const H = v(t, {
83
+ const _ = v(t, {
84
84
  [`${t}-status`]: w,
85
85
  [`${t}-not-a-wrapper`]: !$,
86
86
  [`${t}-rtl`]: X === "rtl"
87
87
  }, L, Q, Y, E.root, st, ot);
88
- if (!$ && w && (e || nt || !A)) {
88
+ if (!$ && w && (e || nt || !B)) {
89
89
  const o = y.color;
90
90
  return /* @__PURE__ */ r.createElement("span", {
91
- ...M,
92
- className: H,
91
+ ref: T,
92
+ ...V,
93
+ className: _,
93
94
  style: {
94
95
  ...N.root,
95
96
  ...y
@@ -100,7 +101,7 @@ const $t = /* @__PURE__ */ r.forwardRef((I, F) => {
100
101
  ...N.indicator,
101
102
  ...D
102
103
  }
103
- }), j && /* @__PURE__ */ r.createElement("span", {
104
+ }), H && /* @__PURE__ */ r.createElement("span", {
104
105
  style: {
105
106
  color: o
106
107
  },
@@ -108,9 +109,9 @@ const $t = /* @__PURE__ */ r.forwardRef((I, F) => {
108
109
  }, e));
109
110
  }
110
111
  return /* @__PURE__ */ r.createElement("span", {
111
- ref: F,
112
- ...M,
113
- className: H,
112
+ ref: T,
113
+ ...V,
114
+ className: _,
114
115
  style: N.root
115
116
  }, $, /* @__PURE__ */ r.createElement(ft, {
116
117
  visible: !l,
@@ -120,10 +121,10 @@ const $t = /* @__PURE__ */ r.forwardRef((I, F) => {
120
121
  }, ({
121
122
  className: o
122
123
  }) => {
123
- const _ = V("scroll-number", J), R = Z.current, mt = v(E.indicator, {
124
+ const q = A("scroll-number", J), R = j.current, mt = v(E.indicator, {
124
125
  [`${t}-dot`]: R,
125
126
  [`${t}-count`]: !R,
126
- [`${t}-count-sm`]: k === "small",
127
+ [`${t}-count-sm`]: M === "small",
127
128
  [`${t}-multiple-words`]: !R && P && P.toString().length > 1,
128
129
  [`${t}-status-${n}`]: !!n,
129
130
  [`${t}-color-${s}`]: C
@@ -133,7 +134,7 @@ const $t = /* @__PURE__ */ r.forwardRef((I, F) => {
133
134
  ...y
134
135
  };
135
136
  return s && !C && (g = g || {}, g.background = s), /* @__PURE__ */ r.createElement(yt, {
136
- prefixCls: _,
137
+ prefixCls: q,
137
138
  show: !l,
138
139
  motionClassName: o,
139
140
  className: mt,
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.js","sources":["../../../../../node_modules/antd/es/badge/Badge.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { useMemo, useRef } from 'react';\nimport CSSMotion from '@rc-component/motion';\nimport { clsx } from 'clsx';\nimport { isPresetColor } from '../_util/colors';\nimport { useMergeSemantic } from '../_util/hooks';\nimport isNonNullable from '../_util/isNonNullable';\nimport { cloneElement } from '../_util/reactNode';\nimport { useComponentConfig } from '../config-provider/context';\nimport ScrollNumber from './ScrollNumber';\nimport useStyle from './style';\nconst Badge = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n scrollNumberPrefixCls: customizeScrollNumberPrefixCls,\n children,\n status,\n text,\n color,\n count = null,\n overflowCount = 99,\n dot = false,\n size = 'default',\n title,\n offset,\n style,\n className,\n rootClassName,\n classNames,\n styles,\n showZero = false,\n ...restProps\n } = props;\n const {\n getPrefixCls,\n direction,\n className: contextClassName,\n style: contextStyle,\n classNames: contextClassNames,\n styles: contextStyles\n } = useComponentConfig('badge');\n const prefixCls = getPrefixCls('badge', customizePrefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls);\n // =========== Merged Props for Semantic ===========\n const mergedProps = {\n ...props,\n overflowCount,\n size,\n dot,\n showZero\n };\n const [mergedClassNames, mergedStyles] = useMergeSemantic([contextClassNames, classNames], [contextStyles, styles], {\n props: mergedProps\n });\n // ================================ Misc ================================\n const numberedDisplayCount = count > overflowCount ? `${overflowCount}+` : count;\n const isZero = numberedDisplayCount === '0' || numberedDisplayCount === 0 || text === '0' || text === 0;\n const ignoreCount = count === null || isZero && !showZero;\n const hasStatus = (isNonNullable(status) || isNonNullable(color)) && ignoreCount;\n const hasStatusValue = isNonNullable(status) || !isZero;\n const showAsDot = dot && !isZero;\n const mergedCount = showAsDot ? '' : numberedDisplayCount;\n const isHidden = useMemo(() => {\n const isEmpty = (!isNonNullable(mergedCount) || mergedCount === '') && (!isNonNullable(text) || text === '');\n return (isEmpty || isZero && !showZero) && !showAsDot;\n }, [mergedCount, isZero, showZero, showAsDot, text]);\n // Count should be cache in case hidden change it\n const countRef = useRef(count);\n if (!isHidden) {\n countRef.current = count;\n }\n const livingCount = countRef.current;\n // We need cache count since remove motion should not change count display\n const displayCountRef = useRef(mergedCount);\n if (!isHidden) {\n displayCountRef.current = mergedCount;\n }\n const displayCount = displayCountRef.current;\n // We will cache the dot status to avoid shaking on leaved motion\n const isDotRef = useRef(showAsDot);\n if (!isHidden) {\n isDotRef.current = showAsDot;\n }\n // =============================== Styles ===============================\n const mergedStyle = useMemo(() => {\n if (!offset) {\n return {\n ...contextStyle,\n ...style\n };\n }\n const horizontalOffset = Number.parseInt(offset[0], 10);\n const offsetStyle = {\n marginTop: offset[1],\n insetInlineEnd: -horizontalOffset\n };\n return {\n ...offsetStyle,\n ...contextStyle,\n ...style\n };\n }, [offset, style, contextStyle]);\n // =============================== Render ===============================\n // >>> Title\n const titleNode = title ?? (typeof livingCount === 'string' || typeof livingCount === 'number' ? livingCount : undefined);\n // >>> Status Text\n const showStatusTextNode = !isHidden && (text === 0 ? showZero : !!text && text !== true);\n const statusTextNode = !showStatusTextNode ? null : (/*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-status-text`\n }, text));\n // >>> Display Component\n const displayNode = !livingCount || typeof livingCount !== 'object' ? undefined : cloneElement(livingCount, oriProps => ({\n style: {\n ...mergedStyle,\n ...oriProps.style\n }\n }));\n // InternalColor\n const isInternalColor = isPresetColor(color, false);\n // Shared styles\n const statusCls = clsx(mergedClassNames.indicator, {\n [`${prefixCls}-status-dot`]: hasStatus,\n [`${prefixCls}-status-${status}`]: !!status,\n [`${prefixCls}-color-${color}`]: isInternalColor\n });\n const statusStyle = {};\n if (color && !isInternalColor) {\n statusStyle.color = color;\n statusStyle.background = color;\n }\n const badgeClassName = clsx(prefixCls, {\n [`${prefixCls}-status`]: hasStatus,\n [`${prefixCls}-not-a-wrapper`]: !children,\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, className, rootClassName, contextClassName, mergedClassNames.root, hashId, cssVarCls);\n // <Badge status=\"success\" />\n if (!children && hasStatus && (text || hasStatusValue || !ignoreCount)) {\n const statusTextColor = mergedStyle.color;\n return /*#__PURE__*/React.createElement(\"span\", {\n ...restProps,\n className: badgeClassName,\n style: {\n ...mergedStyles.root,\n ...mergedStyle\n }\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: statusCls,\n style: {\n ...mergedStyles.indicator,\n ...statusStyle\n }\n }), showStatusTextNode && (/*#__PURE__*/React.createElement(\"span\", {\n style: {\n color: statusTextColor\n },\n className: `${prefixCls}-status-text`\n }, text)));\n }\n return /*#__PURE__*/React.createElement(\"span\", {\n ref: ref,\n ...restProps,\n className: badgeClassName,\n style: mergedStyles.root\n }, children, /*#__PURE__*/React.createElement(CSSMotion, {\n visible: !isHidden,\n motionName: `${prefixCls}-zoom`,\n motionAppear: false,\n motionDeadline: 1000\n }, ({\n className: motionClassName\n }) => {\n const scrollNumberPrefixCls = getPrefixCls('scroll-number', customizeScrollNumberPrefixCls);\n const isDot = isDotRef.current;\n const scrollNumberCls = clsx(mergedClassNames.indicator, {\n [`${prefixCls}-dot`]: isDot,\n [`${prefixCls}-count`]: !isDot,\n [`${prefixCls}-count-sm`]: size === 'small',\n [`${prefixCls}-multiple-words`]: !isDot && displayCount && displayCount.toString().length > 1,\n [`${prefixCls}-status-${status}`]: !!status,\n [`${prefixCls}-color-${color}`]: isInternalColor\n });\n let scrollNumberStyle = {\n ...mergedStyles.indicator,\n ...mergedStyle\n };\n if (color && !isInternalColor) {\n scrollNumberStyle = scrollNumberStyle || {};\n scrollNumberStyle.background = color;\n }\n return /*#__PURE__*/React.createElement(ScrollNumber, {\n prefixCls: scrollNumberPrefixCls,\n show: !isHidden,\n motionClassName: motionClassName,\n className: scrollNumberCls,\n count: displayCount,\n title: titleNode,\n style: scrollNumberStyle,\n key: \"scrollNumber\"\n }, displayNode);\n }), statusTextNode);\n});\nif (process.env.NODE_ENV !== 'production') {\n Badge.displayName = 'Badge';\n}\nexport default Badge;"],"names":["Badge","React","props","ref","customizePrefixCls","customizeScrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero","restProps","getPrefixCls","direction","contextClassName","contextStyle","contextClassNames","contextStyles","useComponentConfig","prefixCls","hashId","cssVarCls","useStyle","mergedProps","mergedClassNames","mergedStyles","useMergeSemantic","numberedDisplayCount","isZero","ignoreCount","hasStatus","isNonNullable","hasStatusValue","showAsDot","mergedCount","isHidden","useMemo","countRef","useRef","livingCount","displayCountRef","displayCount","isDotRef","mergedStyle","horizontalOffset","titleNode","showStatusTextNode","statusTextNode","displayNode","cloneElement","oriProps","isInternalColor","isPresetColor","statusCls","clsx","statusStyle","badgeClassName","statusTextColor","CSSMotion","motionClassName","scrollNumberPrefixCls","isDot","scrollNumberCls","scrollNumberStyle","ScrollNumber","process"],"mappings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A,IACX,GAAOf,EAAW;AAAA,EAChB,CAAC,GAAGD,EAAc;AACpB,CAAC;AACGkB,GAAQ,IAAI,aAAa,iBAC3B5E,GAAM,cAAc;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"Badge.js","sources":["../../../../../node_modules/antd/es/badge/Badge.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { useMemo, useRef } from 'react';\nimport CSSMotion from '@rc-component/motion';\nimport { clsx } from 'clsx';\nimport { isPresetColor } from '../_util/colors';\nimport { useMergeSemantic } from '../_util/hooks';\nimport isNonNullable from '../_util/isNonNullable';\nimport { cloneElement } from '../_util/reactNode';\nimport { useComponentConfig } from '../config-provider/context';\nimport ScrollNumber from './ScrollNumber';\nimport useStyle from './style';\nconst Badge = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n scrollNumberPrefixCls: customizeScrollNumberPrefixCls,\n children,\n status,\n text,\n color,\n count = null,\n overflowCount = 99,\n dot = false,\n size = 'default',\n title,\n offset,\n style,\n className,\n rootClassName,\n classNames,\n styles,\n showZero = false,\n ...restProps\n } = props;\n const {\n getPrefixCls,\n direction,\n className: contextClassName,\n style: contextStyle,\n classNames: contextClassNames,\n styles: contextStyles\n } = useComponentConfig('badge');\n const prefixCls = getPrefixCls('badge', customizePrefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls);\n // =========== Merged Props for Semantic ===========\n const mergedProps = {\n ...props,\n overflowCount,\n size,\n dot,\n showZero\n };\n const [mergedClassNames, mergedStyles] = useMergeSemantic([contextClassNames, classNames], [contextStyles, styles], {\n props: mergedProps\n });\n // ================================ Misc ================================\n const numberedDisplayCount = count > overflowCount ? `${overflowCount}+` : count;\n const isZero = numberedDisplayCount === '0' || numberedDisplayCount === 0 || text === '0' || text === 0;\n const ignoreCount = count === null || isZero && !showZero;\n const hasStatus = (isNonNullable(status) || isNonNullable(color)) && ignoreCount;\n const hasStatusValue = isNonNullable(status) || !isZero;\n const showAsDot = dot && !isZero;\n const mergedCount = showAsDot ? '' : numberedDisplayCount;\n const isHidden = useMemo(() => {\n const isEmpty = (!isNonNullable(mergedCount) || mergedCount === '') && (!isNonNullable(text) || text === '');\n return (isEmpty || isZero && !showZero) && !showAsDot;\n }, [mergedCount, isZero, showZero, showAsDot, text]);\n // Count should be cache in case hidden change it\n const countRef = useRef(count);\n if (!isHidden) {\n countRef.current = count;\n }\n const livingCount = countRef.current;\n // We need cache count since remove motion should not change count display\n const displayCountRef = useRef(mergedCount);\n if (!isHidden) {\n displayCountRef.current = mergedCount;\n }\n const displayCount = displayCountRef.current;\n // We will cache the dot status to avoid shaking on leaved motion\n const isDotRef = useRef(showAsDot);\n if (!isHidden) {\n isDotRef.current = showAsDot;\n }\n // =============================== Styles ===============================\n const mergedStyle = useMemo(() => {\n if (!offset) {\n return {\n ...contextStyle,\n ...style\n };\n }\n const horizontalOffset = Number.parseInt(offset[0], 10);\n const offsetStyle = {\n marginTop: offset[1],\n insetInlineEnd: -horizontalOffset\n };\n return {\n ...offsetStyle,\n ...contextStyle,\n ...style\n };\n }, [offset, style, contextStyle]);\n // =============================== Render ===============================\n // >>> Title\n const titleNode = title ?? (typeof livingCount === 'string' || typeof livingCount === 'number' ? livingCount : undefined);\n // >>> Status Text\n const showStatusTextNode = !isHidden && (text === 0 ? showZero : !!text && text !== true);\n const statusTextNode = !showStatusTextNode ? null : (/*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-status-text`\n }, text));\n // >>> Display Component\n const displayNode = !livingCount || typeof livingCount !== 'object' ? undefined : cloneElement(livingCount, oriProps => ({\n style: {\n ...mergedStyle,\n ...oriProps.style\n }\n }));\n // InternalColor\n const isInternalColor = isPresetColor(color, false);\n // Shared styles\n const statusCls = clsx(mergedClassNames.indicator, {\n [`${prefixCls}-status-dot`]: hasStatus,\n [`${prefixCls}-status-${status}`]: !!status,\n [`${prefixCls}-color-${color}`]: isInternalColor\n });\n const statusStyle = {};\n if (color && !isInternalColor) {\n statusStyle.color = color;\n statusStyle.background = color;\n }\n const badgeClassName = clsx(prefixCls, {\n [`${prefixCls}-status`]: hasStatus,\n [`${prefixCls}-not-a-wrapper`]: !children,\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, className, rootClassName, contextClassName, mergedClassNames.root, hashId, cssVarCls);\n // <Badge status=\"success\" />\n if (!children && hasStatus && (text || hasStatusValue || !ignoreCount)) {\n const statusTextColor = mergedStyle.color;\n return /*#__PURE__*/React.createElement(\"span\", {\n ref: ref,\n ...restProps,\n className: badgeClassName,\n style: {\n ...mergedStyles.root,\n ...mergedStyle\n }\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: statusCls,\n style: {\n ...mergedStyles.indicator,\n ...statusStyle\n }\n }), showStatusTextNode && (/*#__PURE__*/React.createElement(\"span\", {\n style: {\n color: statusTextColor\n },\n className: `${prefixCls}-status-text`\n }, text)));\n }\n return /*#__PURE__*/React.createElement(\"span\", {\n ref: ref,\n ...restProps,\n className: badgeClassName,\n style: mergedStyles.root\n }, children, /*#__PURE__*/React.createElement(CSSMotion, {\n visible: !isHidden,\n motionName: `${prefixCls}-zoom`,\n motionAppear: false,\n motionDeadline: 1000\n }, ({\n className: motionClassName\n }) => {\n const scrollNumberPrefixCls = getPrefixCls('scroll-number', customizeScrollNumberPrefixCls);\n const isDot = isDotRef.current;\n const scrollNumberCls = clsx(mergedClassNames.indicator, {\n [`${prefixCls}-dot`]: isDot,\n [`${prefixCls}-count`]: !isDot,\n [`${prefixCls}-count-sm`]: size === 'small',\n [`${prefixCls}-multiple-words`]: !isDot && displayCount && displayCount.toString().length > 1,\n [`${prefixCls}-status-${status}`]: !!status,\n [`${prefixCls}-color-${color}`]: isInternalColor\n });\n let scrollNumberStyle = {\n ...mergedStyles.indicator,\n ...mergedStyle\n };\n if (color && !isInternalColor) {\n scrollNumberStyle = scrollNumberStyle || {};\n scrollNumberStyle.background = color;\n }\n return /*#__PURE__*/React.createElement(ScrollNumber, {\n prefixCls: scrollNumberPrefixCls,\n show: !isHidden,\n motionClassName: motionClassName,\n className: scrollNumberCls,\n count: displayCount,\n title: titleNode,\n style: scrollNumberStyle,\n key: \"scrollNumber\"\n }, displayNode);\n }), statusTextNode);\n});\nif (process.env.NODE_ENV !== 'production') {\n Badge.displayName = 'Badge';\n}\nexport default Badge;"],"names":["Badge","React","props","ref","customizePrefixCls","customizeScrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero","restProps","getPrefixCls","direction","contextClassName","contextStyle","contextClassNames","contextStyles","useComponentConfig","prefixCls","hashId","cssVarCls","useStyle","mergedProps","mergedClassNames","mergedStyles","useMergeSemantic","numberedDisplayCount","isZero","ignoreCount","hasStatus","isNonNullable","hasStatusValue","showAsDot","mergedCount","isHidden","useMemo","countRef","useRef","livingCount","displayCountRef","displayCount","isDotRef","mergedStyle","horizontalOffset","titleNode","showStatusTextNode","statusTextNode","displayNode","cloneElement","oriProps","isInternalColor","isPresetColor","statusCls","clsx","statusStyle","badgeClassName","statusTextColor","CSSMotion","motionClassName","scrollNumberPrefixCls","isDot","scrollNumberCls","scrollNumberStyle","ScrollNumber","process"],"mappings":";;;;;;;;;;;;AAaK,MAACA,KAAqB,gBAAAC,EAAM,WAAW,CAACC,GAAOC,MAAQ;AAC1D,QAAM;AAAA,IACJ,WAAWC;AAAA,IACX,uBAAuBC;AAAA,IACvB,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,IACR,eAAAC,IAAgB;AAAA,IAChB,KAAAC,IAAM;AAAA,IACN,MAAAC,IAAO;AAAA,IACP,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,OAAAC;AAAA,IACA,WAAAC;AAAA,IACA,eAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,GAAGC;AAAA,EACP,IAAMpB,GACE;AAAA,IACJ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;AAAA,MACvD,CAAC,GAAGL,CAAS,MAAM,GAAG0C;AAAA,MACtB,CAAC,GAAG1C,CAAS,QAAQ,GAAG,CAAC0C;AAAA,MACzB,CAAC,GAAG1C,CAAS,WAAW,GAAGjB,MAAS;AAAA,MACpC,CAAC,GAAGiB,CAAS,iBAAiB,GAAG,CAAC0C,KAASpB,KAAgBA,EAAa,WAAW,SAAS;AAAA,MAC5F,CAAC,GAAGtB,CAAS,WAAWvB,CAAM,EAAE,GAAG,CAAC,CAACA;AAAA,MACrC,CAAC,GAAGuB,CAAS,UAAUrB,CAAK,EAAE,GAAGqD;AAAA,IACvC,CAAK;AACD,QAAIY,IAAoB;AAAA,MACtB,GAAGtC,EAAa;AAAA,MAChB,GAAGkB;AAAA,IACT;AACI,WAAI7C,KAAS,CAACqD,MACZY,IAAoBA,KAAqB,CAAA,GACzCA,EAAkB,aAAajE,IAEb,gBAAAR,EAAM,cAAc0E,IAAc;AAAA,MACpD,WAAWJ;AAAA,MACX,MAAM,CAACzB;AAAA,MACP,iBAAiBwB;AAAA,MACjB,WAAWG;AAAA,MACX,OAAOrB;AAAA,MACP,OAAOI;AAAA,MACP,OAAOkB;AAAA,MACP,KAAK;AAAA,IACX,GAAOf,EAAW;AAAA,EAChB,CAAC,GAAGD,EAAc;AACpB,CAAC;AACGkB,GAAQ,IAAI,aAAa,iBAC3B5E,GAAM,cAAc;","x_google_ignoreList":[0]}
@@ -103,7 +103,7 @@ const z = new r("antStatusProcessing", {
103
103
  background: o.badgeColor,
104
104
  borderRadius: h(e).div(2).equal(),
105
105
  boxShadow: `0 0 0 ${c(a)} ${o.badgeShadowColor}`,
106
- transition: `background ${o.motionDurationMid}`,
106
+ transition: `background-color ${o.motionDurationMid}`,
107
107
  a: {
108
108
  color: o.badgeTextColor
109
109
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/badge/style/index.js"],"sourcesContent":["import { Keyframes, unit } from '@ant-design/cssinjs';\nimport { resetComponent } from '../../style';\nimport { genPresetColor, genStyleHooks, mergeToken } from '../../theme/internal';\nconst antStatusProcessing = new Keyframes('antStatusProcessing', {\n '0%': {\n transform: 'scale(0.8)',\n opacity: 0.5\n },\n '100%': {\n transform: 'scale(2.4)',\n opacity: 0\n }\n});\nconst antZoomBadgeIn = new Keyframes('antZoomBadgeIn', {\n '0%': {\n transform: 'scale(0) translate(50%, -50%)',\n opacity: 0\n },\n '100%': {\n transform: 'scale(1) translate(50%, -50%)'\n }\n});\nconst antZoomBadgeOut = new Keyframes('antZoomBadgeOut', {\n '0%': {\n transform: 'scale(1) translate(50%, -50%)'\n },\n '100%': {\n transform: 'scale(0) translate(50%, -50%)',\n opacity: 0\n }\n});\nconst antNoWrapperZoomBadgeIn = new Keyframes('antNoWrapperZoomBadgeIn', {\n '0%': {\n transform: 'scale(0)',\n opacity: 0\n },\n '100%': {\n transform: 'scale(1)'\n }\n});\nconst antNoWrapperZoomBadgeOut = new Keyframes('antNoWrapperZoomBadgeOut', {\n '0%': {\n transform: 'scale(1)'\n },\n '100%': {\n transform: 'scale(0)',\n opacity: 0\n }\n});\nconst antBadgeLoadingCircle = new Keyframes('antBadgeLoadingCircle', {\n '0%': {\n transformOrigin: '50%'\n },\n '100%': {\n transform: 'translate(50%, -50%) rotate(360deg)',\n transformOrigin: '50%'\n }\n});\nconst genSharedBadgeStyle = token => {\n const {\n componentCls,\n iconCls,\n antCls,\n badgeShadowSize,\n textFontSize,\n textFontSizeSM,\n statusSize,\n dotSize,\n textFontWeight,\n indicatorHeight,\n indicatorHeightSM,\n marginXS,\n calc\n } = token;\n const numberPrefixCls = `${antCls}-scroll-number`;\n const colorPreset = genPresetColor(token, (colorKey, {\n darkColor\n }) => ({\n [`&${componentCls} ${componentCls}-color-${colorKey}`]: {\n background: darkColor,\n [`&:not(${componentCls}-count)`]: {\n color: darkColor\n },\n 'a:hover &': {\n background: darkColor\n }\n }\n }));\n return {\n [componentCls]: {\n ...resetComponent(token),\n position: 'relative',\n display: 'inline-block',\n width: 'fit-content',\n lineHeight: 1,\n [`${componentCls}-count`]: {\n display: 'inline-flex',\n justifyContent: 'center',\n zIndex: token.indicatorZIndex,\n minWidth: indicatorHeight,\n height: indicatorHeight,\n color: token.badgeTextColor,\n fontWeight: textFontWeight,\n fontSize: textFontSize,\n lineHeight: unit(indicatorHeight),\n whiteSpace: 'nowrap',\n textAlign: 'center',\n background: token.badgeColor,\n borderRadius: calc(indicatorHeight).div(2).equal(),\n boxShadow: `0 0 0 ${unit(badgeShadowSize)} ${token.badgeShadowColor}`,\n transition: `background ${token.motionDurationMid}`,\n a: {\n color: token.badgeTextColor\n },\n 'a:hover': {\n color: token.badgeTextColor\n },\n 'a:hover &': {\n background: token.badgeColorHover\n }\n },\n [`${componentCls}-count-sm`]: {\n minWidth: indicatorHeightSM,\n height: indicatorHeightSM,\n fontSize: textFontSizeSM,\n lineHeight: unit(indicatorHeightSM),\n borderRadius: calc(indicatorHeightSM).div(2).equal()\n },\n [`${componentCls}-multiple-words`]: {\n padding: `0 ${unit(token.paddingXS)}`,\n bdi: {\n unicodeBidi: 'plaintext'\n }\n },\n [`${componentCls}-dot`]: {\n zIndex: token.indicatorZIndex,\n width: dotSize,\n minWidth: dotSize,\n height: dotSize,\n background: token.badgeColor,\n borderRadius: '100%',\n boxShadow: `0 0 0 ${unit(badgeShadowSize)} ${token.badgeShadowColor}`\n },\n [`${componentCls}-count, ${componentCls}-dot, ${numberPrefixCls}-custom-component`]: {\n position: 'absolute',\n top: 0,\n insetInlineEnd: 0,\n transform: 'translate(50%, -50%)',\n transformOrigin: '100% 0%',\n [`&${iconCls}-spin`]: {\n animationName: antBadgeLoadingCircle,\n animationDuration: '1s',\n animationIterationCount: 'infinite',\n animationTimingFunction: 'linear'\n }\n },\n [`&${componentCls}-status`]: {\n lineHeight: 'inherit',\n verticalAlign: 'baseline',\n [`${componentCls}-status-dot`]: {\n position: 'relative',\n top: -1,\n // Magic number, but seems better experience\n display: 'inline-block',\n width: statusSize,\n height: statusSize,\n verticalAlign: 'middle',\n borderRadius: '50%'\n },\n [`${componentCls}-status-success`]: {\n backgroundColor: token.colorSuccess\n },\n [`${componentCls}-status-processing`]: {\n overflow: 'visible',\n color: token.colorInfo,\n backgroundColor: token.colorInfo,\n borderColor: 'currentcolor',\n '&::after': {\n position: 'absolute',\n top: 0,\n insetInlineStart: 0,\n width: '100%',\n height: '100%',\n borderWidth: badgeShadowSize,\n borderStyle: 'solid',\n borderColor: 'inherit',\n borderRadius: '50%',\n animationName: antStatusProcessing,\n animationDuration: token.badgeProcessingDuration,\n animationIterationCount: 'infinite',\n animationTimingFunction: 'ease-in-out',\n content: '\"\"'\n }\n },\n [`${componentCls}-status-default`]: {\n backgroundColor: token.colorTextPlaceholder\n },\n [`${componentCls}-status-error`]: {\n backgroundColor: token.colorError\n },\n [`${componentCls}-status-warning`]: {\n backgroundColor: token.colorWarning\n },\n [`${componentCls}-status-text`]: {\n marginInlineStart: marginXS,\n color: token.colorText,\n fontSize: token.fontSize\n }\n },\n ...colorPreset,\n [`${componentCls}-zoom-appear, ${componentCls}-zoom-enter`]: {\n animationName: antZoomBadgeIn,\n animationDuration: token.motionDurationSlow,\n animationTimingFunction: token.motionEaseOutBack,\n animationFillMode: 'both'\n },\n [`${componentCls}-zoom-leave`]: {\n animationName: antZoomBadgeOut,\n animationDuration: token.motionDurationSlow,\n animationTimingFunction: token.motionEaseOutBack,\n animationFillMode: 'both'\n },\n [`&${componentCls}-not-a-wrapper`]: {\n [`${componentCls}-zoom-appear, ${componentCls}-zoom-enter`]: {\n animationName: antNoWrapperZoomBadgeIn,\n animationDuration: token.motionDurationSlow,\n animationTimingFunction: token.motionEaseOutBack\n },\n [`${componentCls}-zoom-leave`]: {\n animationName: antNoWrapperZoomBadgeOut,\n animationDuration: token.motionDurationSlow,\n animationTimingFunction: token.motionEaseOutBack\n },\n [`&:not(${componentCls}-status)`]: {\n verticalAlign: 'middle'\n },\n [`${numberPrefixCls}-custom-component, ${componentCls}-count`]: {\n transform: 'none'\n },\n [`${numberPrefixCls}-custom-component, ${numberPrefixCls}`]: {\n position: 'relative',\n top: 'auto',\n display: 'block',\n transformOrigin: '50% 50%'\n }\n },\n [numberPrefixCls]: {\n overflow: 'hidden',\n transition: `all ${token.motionDurationMid} ${token.motionEaseOutBack}`,\n [`${numberPrefixCls}-only`]: {\n position: 'relative',\n display: 'inline-block',\n height: indicatorHeight,\n transition: `all ${token.motionDurationSlow} ${token.motionEaseOutBack}`,\n WebkitTransformStyle: 'preserve-3d',\n WebkitBackfaceVisibility: 'hidden',\n [`> p${numberPrefixCls}-only-unit`]: {\n height: indicatorHeight,\n margin: 0,\n WebkitTransformStyle: 'preserve-3d',\n WebkitBackfaceVisibility: 'hidden'\n }\n },\n [`${numberPrefixCls}-symbol`]: {\n verticalAlign: 'top'\n }\n },\n // ====================== RTL =======================\n '&-rtl': {\n direction: 'rtl',\n [`${componentCls}-count, ${componentCls}-dot, ${numberPrefixCls}-custom-component`]: {\n transform: 'translate(-50%, -50%)'\n }\n }\n }\n };\n};\n// ============================== Export ==============================\nexport const prepareToken = token => {\n const {\n fontHeight,\n lineWidth,\n marginXS,\n colorBorderBg\n } = token;\n const badgeFontHeight = fontHeight;\n const badgeShadowSize = lineWidth;\n const badgeTextColor = token.colorTextLightSolid;\n const badgeColor = token.colorError;\n const badgeColorHover = token.colorErrorHover;\n const badgeToken = mergeToken(token, {\n badgeFontHeight,\n badgeShadowSize,\n badgeTextColor,\n badgeColor,\n badgeColorHover,\n badgeShadowColor: colorBorderBg,\n badgeProcessingDuration: '1.2s',\n badgeRibbonOffset: marginXS,\n // Follow token just by Design. Not related with token\n badgeRibbonCornerTransform: 'scaleY(0.75)',\n badgeRibbonCornerFilter: `brightness(75%)`\n });\n return badgeToken;\n};\nexport const prepareComponentToken = token => {\n const {\n fontSize,\n lineHeight,\n fontSizeSM,\n lineWidth\n } = token;\n return {\n indicatorZIndex: 'auto',\n indicatorHeight: Math.round(fontSize * lineHeight) - 2 * lineWidth,\n indicatorHeightSM: fontSize,\n dotSize: fontSizeSM / 2,\n textFontSize: fontSizeSM,\n textFontSizeSM: fontSizeSM,\n textFontWeight: 'normal',\n statusSize: fontSizeSM / 2\n };\n};\nexport default genStyleHooks('Badge', token => {\n const badgeToken = prepareToken(token);\n return genSharedBadgeStyle(badgeToken);\n}, prepareComponentToken);"],"names":["antStatusProcessing","Keyframes","antZoomBadgeIn","antZoomBadgeOut","antNoWrapperZoomBadgeIn","antNoWrapperZoomBadgeOut","antBadgeLoadingCircle","genSharedBadgeStyle","token","componentCls","iconCls","antCls","badgeShadowSize","textFontSize","textFontSizeSM","statusSize","dotSize","textFontWeight","indicatorHeight","indicatorHeightSM","marginXS","calc","numberPrefixCls","colorPreset","genPresetColor","colorKey","darkColor","resetComponent","unit","prepareToken","fontHeight","lineWidth","colorBorderBg","badgeFontHeight","badgeTextColor","badgeColor","badgeColorHover","mergeToken","prepareComponentToken","fontSize","lineHeight","fontSizeSM","useStyle","genStyleHooks","badgeToken"],"mappings":";;;;;;AAGA,MAAMA,IAAsB,IAAIC,EAAU,uBAAuB;AAAA,EAC/D,MAAM;AAAA,IACJ,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AAAA,EACE,QAAQ;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AACA,CAAC,GACKC,IAAiB,IAAID,EAAU,kBAAkB;AAAA,EACrD,MAAM;AAAA,IACJ,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AAAA,EACE,QAAQ;AAAA,IACN,WAAW;AAAA,EACf;AACA,CAAC,GACKE,IAAkB,IAAIF,EAAU,mBAAmB;AAAA,EACvD,MAAM;AAAA,IACJ,WAAW;AAAA,EACf;AAAA,EACE,QAAQ;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AACA,CAAC,GACKG,IAA0B,IAAIH,EAAU,2BAA2B;AAAA,EACvE,MAAM;AAAA,IACJ,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AA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;AAAA,IACA,YAAAC;AAAA,IACA,YAAAC;AAAA,IACA,WAAAV;AAAA,EACJ,IAAMvB;AACJ,SAAO;AAAA,IACL,iBAAiB;AAAA,IACjB,iBAAiB,KAAK,MAAM+B,IAAWC,CAAU,IAAI,IAAIT;AAAA,IACzD,mBAAmBQ;AAAA,IACnB,SAASE,IAAa;AAAA,IACtB,cAAcA;AAAA,IACd,gBAAgBA;AAAA,IAChB,gBAAgB;AAAA,IAChB,YAAYA,IAAa;AAAA,EAC7B;AACA,GACAC,IAAeC,EAAc,SAAS,CAAAnC,MAAS;AAC7C,QAAMoC,IAAaf,EAAarB,CAAK;AACrC,SAAOD,EAAoBqC,CAAU;AACvC,GAAGN,CAAqB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/badge/style/index.js"],"sourcesContent":["import { Keyframes, unit } from '@ant-design/cssinjs';\nimport { resetComponent } from '../../style';\nimport { genPresetColor, genStyleHooks, mergeToken } from '../../theme/internal';\nconst antStatusProcessing = new Keyframes('antStatusProcessing', {\n '0%': {\n transform: 'scale(0.8)',\n opacity: 0.5\n },\n '100%': {\n transform: 'scale(2.4)',\n opacity: 0\n }\n});\nconst antZoomBadgeIn = new Keyframes('antZoomBadgeIn', {\n '0%': {\n transform: 'scale(0) translate(50%, -50%)',\n opacity: 0\n },\n '100%': {\n transform: 'scale(1) translate(50%, -50%)'\n }\n});\nconst antZoomBadgeOut = new Keyframes('antZoomBadgeOut', {\n '0%': {\n transform: 'scale(1) translate(50%, -50%)'\n },\n '100%': {\n transform: 'scale(0) translate(50%, -50%)',\n opacity: 0\n }\n});\nconst antNoWrapperZoomBadgeIn = new Keyframes('antNoWrapperZoomBadgeIn', {\n '0%': {\n transform: 'scale(0)',\n opacity: 0\n },\n '100%': {\n transform: 'scale(1)'\n }\n});\nconst antNoWrapperZoomBadgeOut = new Keyframes('antNoWrapperZoomBadgeOut', {\n '0%': {\n transform: 'scale(1)'\n },\n '100%': {\n transform: 'scale(0)',\n opacity: 0\n }\n});\nconst antBadgeLoadingCircle = new Keyframes('antBadgeLoadingCircle', {\n '0%': {\n transformOrigin: '50%'\n },\n '100%': {\n transform: 'translate(50%, -50%) rotate(360deg)',\n transformOrigin: '50%'\n }\n});\nconst genSharedBadgeStyle = token => {\n const {\n componentCls,\n iconCls,\n antCls,\n badgeShadowSize,\n textFontSize,\n textFontSizeSM,\n statusSize,\n dotSize,\n textFontWeight,\n indicatorHeight,\n indicatorHeightSM,\n marginXS,\n calc\n } = token;\n const numberPrefixCls = `${antCls}-scroll-number`;\n const colorPreset = genPresetColor(token, (colorKey, {\n darkColor\n }) => ({\n [`&${componentCls} ${componentCls}-color-${colorKey}`]: {\n background: darkColor,\n [`&:not(${componentCls}-count)`]: {\n color: darkColor\n },\n 'a:hover &': {\n background: darkColor\n }\n }\n }));\n return {\n [componentCls]: {\n ...resetComponent(token),\n position: 'relative',\n display: 'inline-block',\n width: 'fit-content',\n lineHeight: 1,\n [`${componentCls}-count`]: {\n display: 'inline-flex',\n justifyContent: 'center',\n zIndex: token.indicatorZIndex,\n minWidth: indicatorHeight,\n height: indicatorHeight,\n color: token.badgeTextColor,\n fontWeight: textFontWeight,\n fontSize: textFontSize,\n lineHeight: unit(indicatorHeight),\n whiteSpace: 'nowrap',\n textAlign: 'center',\n background: token.badgeColor,\n borderRadius: calc(indicatorHeight).div(2).equal(),\n boxShadow: `0 0 0 ${unit(badgeShadowSize)} ${token.badgeShadowColor}`,\n transition: `background-color ${token.motionDurationMid}`,\n a: {\n color: token.badgeTextColor\n },\n 'a:hover': {\n color: token.badgeTextColor\n },\n 'a:hover &': {\n background: token.badgeColorHover\n }\n },\n [`${componentCls}-count-sm`]: {\n minWidth: indicatorHeightSM,\n height: indicatorHeightSM,\n fontSize: textFontSizeSM,\n lineHeight: unit(indicatorHeightSM),\n borderRadius: calc(indicatorHeightSM).div(2).equal()\n },\n [`${componentCls}-multiple-words`]: {\n padding: `0 ${unit(token.paddingXS)}`,\n bdi: {\n unicodeBidi: 'plaintext'\n }\n },\n [`${componentCls}-dot`]: {\n zIndex: token.indicatorZIndex,\n width: dotSize,\n minWidth: dotSize,\n height: dotSize,\n background: token.badgeColor,\n borderRadius: '100%',\n boxShadow: `0 0 0 ${unit(badgeShadowSize)} ${token.badgeShadowColor}`\n },\n [`${componentCls}-count, ${componentCls}-dot, ${numberPrefixCls}-custom-component`]: {\n position: 'absolute',\n top: 0,\n insetInlineEnd: 0,\n transform: 'translate(50%, -50%)',\n transformOrigin: '100% 0%',\n [`&${iconCls}-spin`]: {\n animationName: antBadgeLoadingCircle,\n animationDuration: '1s',\n animationIterationCount: 'infinite',\n animationTimingFunction: 'linear'\n }\n },\n [`&${componentCls}-status`]: {\n lineHeight: 'inherit',\n verticalAlign: 'baseline',\n [`${componentCls}-status-dot`]: {\n position: 'relative',\n top: -1,\n // Magic number, but seems better experience\n display: 'inline-block',\n width: statusSize,\n height: statusSize,\n verticalAlign: 'middle',\n borderRadius: '50%'\n },\n [`${componentCls}-status-success`]: {\n backgroundColor: token.colorSuccess\n },\n [`${componentCls}-status-processing`]: {\n overflow: 'visible',\n color: token.colorInfo,\n backgroundColor: token.colorInfo,\n borderColor: 'currentcolor',\n '&::after': {\n position: 'absolute',\n top: 0,\n insetInlineStart: 0,\n width: '100%',\n height: '100%',\n borderWidth: badgeShadowSize,\n borderStyle: 'solid',\n borderColor: 'inherit',\n borderRadius: '50%',\n animationName: antStatusProcessing,\n animationDuration: token.badgeProcessingDuration,\n animationIterationCount: 'infinite',\n animationTimingFunction: 'ease-in-out',\n content: '\"\"'\n }\n },\n [`${componentCls}-status-default`]: {\n backgroundColor: token.colorTextPlaceholder\n },\n [`${componentCls}-status-error`]: {\n backgroundColor: token.colorError\n },\n [`${componentCls}-status-warning`]: {\n backgroundColor: token.colorWarning\n },\n [`${componentCls}-status-text`]: {\n marginInlineStart: marginXS,\n color: token.colorText,\n fontSize: token.fontSize\n }\n },\n ...colorPreset,\n [`${componentCls}-zoom-appear, ${componentCls}-zoom-enter`]: {\n animationName: antZoomBadgeIn,\n animationDuration: token.motionDurationSlow,\n animationTimingFunction: token.motionEaseOutBack,\n animationFillMode: 'both'\n },\n [`${componentCls}-zoom-leave`]: {\n animationName: antZoomBadgeOut,\n animationDuration: token.motionDurationSlow,\n animationTimingFunction: token.motionEaseOutBack,\n animationFillMode: 'both'\n },\n [`&${componentCls}-not-a-wrapper`]: {\n [`${componentCls}-zoom-appear, ${componentCls}-zoom-enter`]: {\n animationName: antNoWrapperZoomBadgeIn,\n animationDuration: token.motionDurationSlow,\n animationTimingFunction: token.motionEaseOutBack\n },\n [`${componentCls}-zoom-leave`]: {\n animationName: antNoWrapperZoomBadgeOut,\n animationDuration: token.motionDurationSlow,\n animationTimingFunction: token.motionEaseOutBack\n },\n [`&:not(${componentCls}-status)`]: {\n verticalAlign: 'middle'\n },\n [`${numberPrefixCls}-custom-component, ${componentCls}-count`]: {\n transform: 'none'\n },\n [`${numberPrefixCls}-custom-component, ${numberPrefixCls}`]: {\n position: 'relative',\n top: 'auto',\n display: 'block',\n transformOrigin: '50% 50%'\n }\n },\n [numberPrefixCls]: {\n overflow: 'hidden',\n transition: `all ${token.motionDurationMid} ${token.motionEaseOutBack}`,\n [`${numberPrefixCls}-only`]: {\n position: 'relative',\n display: 'inline-block',\n height: indicatorHeight,\n transition: `all ${token.motionDurationSlow} ${token.motionEaseOutBack}`,\n WebkitTransformStyle: 'preserve-3d',\n WebkitBackfaceVisibility: 'hidden',\n [`> p${numberPrefixCls}-only-unit`]: {\n height: indicatorHeight,\n margin: 0,\n WebkitTransformStyle: 'preserve-3d',\n WebkitBackfaceVisibility: 'hidden'\n }\n },\n [`${numberPrefixCls}-symbol`]: {\n verticalAlign: 'top'\n }\n },\n // ====================== RTL =======================\n '&-rtl': {\n direction: 'rtl',\n [`${componentCls}-count, ${componentCls}-dot, ${numberPrefixCls}-custom-component`]: {\n transform: 'translate(-50%, -50%)'\n }\n }\n }\n };\n};\n// ============================== Export ==============================\nexport const prepareToken = token => {\n const {\n fontHeight,\n lineWidth,\n marginXS,\n colorBorderBg\n } = token;\n const badgeFontHeight = fontHeight;\n const badgeShadowSize = lineWidth;\n const badgeTextColor = token.colorTextLightSolid;\n const badgeColor = token.colorError;\n const badgeColorHover = token.colorErrorHover;\n const badgeToken = mergeToken(token, {\n badgeFontHeight,\n badgeShadowSize,\n badgeTextColor,\n badgeColor,\n badgeColorHover,\n badgeShadowColor: colorBorderBg,\n badgeProcessingDuration: '1.2s',\n badgeRibbonOffset: marginXS,\n // Follow token just by Design. Not related with token\n badgeRibbonCornerTransform: 'scaleY(0.75)',\n badgeRibbonCornerFilter: `brightness(75%)`\n });\n return badgeToken;\n};\nexport const prepareComponentToken = token => {\n const {\n fontSize,\n lineHeight,\n fontSizeSM,\n lineWidth\n } = token;\n return {\n indicatorZIndex: 'auto',\n indicatorHeight: Math.round(fontSize * lineHeight) - 2 * lineWidth,\n indicatorHeightSM: fontSize,\n dotSize: fontSizeSM / 2,\n textFontSize: fontSizeSM,\n textFontSizeSM: fontSizeSM,\n textFontWeight: 'normal',\n statusSize: fontSizeSM / 2\n };\n};\nexport default genStyleHooks('Badge', token => {\n const badgeToken = prepareToken(token);\n return genSharedBadgeStyle(badgeToken);\n}, prepareComponentToken);"],"names":["antStatusProcessing","Keyframes","antZoomBadgeIn","antZoomBadgeOut","antNoWrapperZoomBadgeIn","antNoWrapperZoomBadgeOut","antBadgeLoadingCircle","genSharedBadgeStyle","token","componentCls","iconCls","antCls","badgeShadowSize","textFontSize","textFontSizeSM","statusSize","dotSize","textFontWeight","indicatorHeight","indicatorHeightSM","marginXS","calc","numberPrefixCls","colorPreset","genPresetColor","colorKey","darkColor","resetComponent","unit","prepareToken","fontHeight","lineWidth","colorBorderBg","badgeFontHeight","badgeTextColor","badgeColor","badgeColorHover","mergeToken","prepareComponentToken","fontSize","lineHeight","fontSizeSM","useStyle","genStyleHooks","badgeToken"],"mappings":";;;;;;AAGA,MAAMA,IAAsB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;AACA,GAEaO,IAAe,CAAArB,MAAS;AACnC,QAAM;AAAA,IACJ,YAAAsB;AAAA,IACA,WAAAC;AAAA,IACA,UAAAX;AAAA,IACA,eAAAY;AAAA,EACJ,IAAMxB,GACEyB,IAAkBH,GAClBlB,IAAkBmB,GAClBG,IAAiB1B,EAAM,qBACvB2B,IAAa3B,EAAM,YACnB4B,IAAkB5B,EAAM;AAc9B,SAbmB6B,EAAW7B,GAAO;AAAA,IACnC,iBAAAyB;AAAA,IACA,iBAAArB;AAAA,IACA,gBAAAsB;AAAA,IACA,YAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,kBAAkBJ;AAAA,IAClB,yBAAyB;AAAA,IACzB,mBAAmBZ;AAAA;AAAA,IAEnB,4BAA4B;AAAA,IAC5B,yBAAyB;AAAA,EAC7B,CAAG;AAEH,GACakB,IAAwB,CAAA9B,MAAS;AAC5C,QAAM;AAAA,IACJ,UAAA+B;AAAA,IACA,YAAAC;AAAA,IACA,YAAAC;AAAA,IACA,WAAAV;AAAA,EACJ,IAAMvB;AACJ,SAAO;AAAA,IACL,iBAAiB;AAAA,IACjB,iBAAiB,KAAK,MAAM+B,IAAWC,CAAU,IAAI,IAAIT;AAAA,IACzD,mBAAmBQ;AAAA,IACnB,SAASE,IAAa;AAAA,IACtB,cAAcA;AAAA,IACd,gBAAgBA;AAAA,IAChB,gBAAgB;AAAA,IAChB,YAAYA,IAAa;AAAA,EAC7B;AACA,GACAC,IAAeC,EAAc,SAAS,CAAAnC,MAAS;AAC7C,QAAMoC,IAAaf,EAAarB,CAAK;AACrC,SAAOD,EAAoBqC,CAAU;AACvC,GAAGN,CAAqB;","x_google_ignoreList":[0]}
@@ -1,66 +1,72 @@
1
- import y from "../../../@babel/runtime/helpers/esm/toConsumableArray.js";
2
- import a from "react";
3
- import { clsx as d } from "../../../clsx/dist/clsx.js";
4
- import E from "../_util/isNonNullable.js";
5
- import { cloneElement as p, isFragment as N } from "../_util/reactNode.js";
1
+ import d from "../../../@babel/runtime/helpers/esm/toConsumableArray.js";
2
+ import u from "react";
3
+ import { clsx as l } from "../../../clsx/dist/clsx.js";
4
+ import N from "../_util/isNonNullable.js";
5
+ import { cloneElement as c, isFragment as E } from "../_util/reactNode.js";
6
6
  import { PresetColors as b } from "../theme/interface/presetColors.js";
7
- const l = /^[\u4E00-\u9FA5]{2}$/, C = l.test.bind(l);
8
- function j(t) {
9
- return t === "danger" ? {
7
+ const p = /^[\u4E00-\u9FA5]{2}$/, C = p.test.bind(p);
8
+ function v(e) {
9
+ return e === "danger" ? {
10
10
  danger: !0
11
11
  } : {
12
- type: t
12
+ type: e
13
13
  };
14
14
  }
15
- function c(t) {
16
- return typeof t == "string";
15
+ function g(e) {
16
+ return typeof e == "string";
17
17
  }
18
- function v(t) {
19
- return t === "text" || t === "link";
18
+ function w(e) {
19
+ return e === "text" || e === "link";
20
20
  }
21
- function x(t, i, r, n) {
22
- if (!E(t) || t === "")
21
+ function x(e, i, r, s) {
22
+ if (!N(e) || e === "")
23
23
  return;
24
24
  const o = i ? " " : "";
25
- return typeof t != "string" && typeof t != "number" && c(t.type) && C(t.props.children) ? p(t, (e) => ({
26
- ...e,
27
- children: e.children.split("").join(o),
28
- className: n,
25
+ return typeof e != "string" && typeof e != "number" && g(e.type) && C(e.props.children) ? c(e, (t) => {
26
+ const n = l(t.className, s) || void 0, a = {
27
+ ...r,
28
+ ...t.style
29
+ };
30
+ return {
31
+ ...t,
32
+ children: t.children.split("").join(o),
33
+ className: n,
34
+ style: a
35
+ };
36
+ }) : g(e) ? /* @__PURE__ */ u.createElement("span", {
37
+ className: s,
29
38
  style: r
30
- })) : c(t) ? /* @__PURE__ */ a.createElement("span", {
31
- className: n,
39
+ }, C(e) ? e.split("").join(o) : e) : E(e) ? /* @__PURE__ */ u.createElement("span", {
40
+ className: s,
32
41
  style: r
33
- }, C(t) ? t.split("").join(o) : t) : N(t) ? /* @__PURE__ */ a.createElement("span", {
34
- className: n,
35
- style: r
36
- }, t) : p(t, (e) => ({
37
- ...e,
38
- className: d(e.className, n) || void 0,
42
+ }, e) : c(e, (t) => ({
43
+ ...t,
44
+ className: l(t.className, s) || void 0,
39
45
  style: {
40
- ...e.style,
46
+ ...t.style,
41
47
  ...r
42
48
  }
43
49
  }));
44
50
  }
45
- function w(t, i, r, n) {
51
+ function F(e, i, r, s) {
46
52
  let o = !1;
47
- const e = [];
48
- return a.Children.forEach(t, (s) => {
49
- const u = typeof s, f = u === "string" || u === "number";
53
+ const t = [];
54
+ return u.Children.forEach(e, (n) => {
55
+ const a = typeof n, f = a === "string" || a === "number";
50
56
  if (o && f) {
51
- const m = e.length - 1, g = e[m];
52
- e[m] = `${g}${s}`;
57
+ const m = t.length - 1, y = t[m];
58
+ t[m] = `${y}${n}`;
53
59
  } else
54
- e.push(s);
60
+ t.push(n);
55
61
  o = f;
56
- }), a.Children.map(e, (s) => x(s, i, r, n));
62
+ }), u.Children.map(t, (n) => x(n, i, r, s));
57
63
  }
58
- ["default", "primary", "danger"].concat(y(b));
64
+ ["default", "primary", "danger"].concat(d(b));
59
65
  export {
60
- j as convertLegacyProps,
61
- c as isString,
66
+ v as convertLegacyProps,
67
+ g as isString,
62
68
  C as isTwoCNChar,
63
- v as isUnBorderedButtonVariant,
64
- w as spaceChildren
69
+ w as isUnBorderedButtonVariant,
70
+ F as spaceChildren
65
71
  };
66
72
  //# sourceMappingURL=buttonHelpers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"buttonHelpers.js","sources":["../../../../../node_modules/antd/es/button/buttonHelpers.js"],"sourcesContent":["\"use client\";\n\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport React from 'react';\nimport { clsx } from 'clsx';\nimport isNonNullable from '../_util/isNonNullable';\nimport { cloneElement, isFragment } from '../_util/reactNode';\nimport { PresetColors } from '../theme/interface';\nconst rxTwoCNChar = /^[\\u4E00-\\u9FA5]{2}$/;\nexport const isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);\nexport function convertLegacyProps(type) {\n if (type === 'danger') {\n return {\n danger: true\n };\n }\n return {\n type\n };\n}\nexport function isString(str) {\n return typeof str === 'string';\n}\nexport function isUnBorderedButtonVariant(type) {\n return type === 'text' || type === 'link';\n}\nfunction splitCNCharsBySpace(child, needInserted, style, className) {\n if (!isNonNullable(child) || child === '') {\n return;\n }\n const SPACE = needInserted ? ' ' : '';\n if (typeof child !== 'string' && typeof child !== 'number' && isString(child.type) && isTwoCNChar(child.props.children)) {\n return cloneElement(child, oriProps => ({\n ...oriProps,\n children: oriProps.children.split('').join(SPACE),\n className,\n style\n }));\n }\n if (isString(child)) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: className,\n style: style\n }, isTwoCNChar(child) ? child.split('').join(SPACE) : child);\n }\n if (isFragment(child)) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: className,\n style: style\n }, child);\n }\n return cloneElement(child, oriProps => ({\n ...oriProps,\n className: clsx(oriProps.className, className) || undefined,\n style: {\n ...oriProps.style,\n ...style\n }\n }));\n}\nexport function spaceChildren(children, needInserted, style, className) {\n let isPrevChildPure = false;\n const childList = [];\n React.Children.forEach(children, child => {\n const type = typeof child;\n const isCurrentChildPure = type === 'string' || type === 'number';\n if (isPrevChildPure && isCurrentChildPure) {\n const lastIndex = childList.length - 1;\n const lastChild = childList[lastIndex];\n childList[lastIndex] = `${lastChild}${child}`;\n } else {\n childList.push(child);\n }\n isPrevChildPure = isCurrentChildPure;\n });\n return React.Children.map(childList, child => splitCNCharsBySpace(child, needInserted, style, className));\n}\nconst _ButtonTypes = ['default', 'primary', 'dashed', 'link', 'text'];\nconst _ButtonShapes = ['default', 'circle', 'round', 'square'];\nconst _ButtonHTMLTypes = ['submit', 'button', 'reset'];\nexport const _ButtonVariantTypes = ['outlined', 'dashed', 'solid', 'filled', 'text', 'link'];\nexport const _ButtonColorTypes = ['default', 'primary', 'danger'].concat(_toConsumableArray(PresetColors));"],"names":["rxTwoCNChar","isTwoCNChar","convertLegacyProps","type","isString","str","isUnBorderedButtonVariant","splitCNCharsBySpace","child","needInserted","style","className","isNonNullable","SPACE","cloneElement","oriProps","React","isFragment","clsx","spaceChildren","children","isPrevChildPure","childList","isCurrentChildPure","lastIndex","lastChild","_toConsumableArray","PresetColors"],"mappings":";;;;;;AAQA,MAAMA,IAAc,wBACPC,IAAcD,EAAY,KAAK,KAAKA,CAAW;AACrD,SAASE,EAAmBC,GAAM;AACvC,SAAIA,MAAS,WACJ;AAAA,IACL,QAAQ;AAAA,EACd,IAES;AAAA,IACL,MAAAA;AAAA,EACJ;AACA;AACO,SAASC,EAASC,GAAK;AAC5B,SAAO,OAAOA,KAAQ;AACxB;AACO,SAASC,EAA0BH,GAAM;AAC9C,SAAOA,MAAS,UAAUA,MAAS;AACrC;AACA,SAASI,EAAoBC,GAAOC,GAAcC,GAAOC,GAAW;AAClE,MAAI,CAACC,EAAcJ,CAAK,KAAKA,MAAU;AACrC;AAEF,QAAMK,IAAQJ,IAAe,MAAM;AACnC,SAAI,OAAOD,KAAU,YAAY,OAAOA,KAAU,YAAYJ,EAASI,EAAM,IAAI,KAAKP,EAAYO,EAAM,MAAM,QAAQ,IAC7GM,EAAaN,GAAO,CAAAO,OAAa;AAAA,IACtC,GAAGA;AAAA,IACH,UAAUA,EAAS,SAAS,MAAM,EAAE,EAAE,KAAKF,CAAK;AAAA,IAChD,WAAAF;AAAA,IACA,OAAAD;AAAA,EACN,EAAM,IAEAN,EAASI,CAAK,IACIQ,gBAAAA,EAAM,cAAc,QAAQ;AAAA,IAC9C,WAAWL;AAAA,IACX,OAAOD;AAAA,EACb,GAAOT,EAAYO,CAAK,IAAIA,EAAM,MAAM,EAAE,EAAE,KAAKK,CAAK,IAAIL,CAAK,IAEzDS,EAAWT,CAAK,IACEQ,gBAAAA,EAAM,cAAc,QAAQ;AAAA,IAC9C,WAAWL;AAAA,IACX,OAAOD;AAAA,EACb,GAAOF,CAAK,IAEHM,EAAaN,GAAO,CAAAO,OAAa;AAAA,IACtC,GAAGA;AAAA,IACH,WAAWG,EAAKH,EAAS,WAAWJ,CAAS,KAAK;AAAA,IAClD,OAAO;AAAA,MACL,GAAGI,EAAS;AAAA,MACZ,GAAGL;AAAA,IACT;AAAA,EACA,EAAI;AACJ;AACO,SAASS,EAAcC,GAAUX,GAAcC,GAAOC,GAAW;AACtE,MAAIU,IAAkB;AACtB,QAAMC,IAAY,CAAA;AAClBN,SAAAA,EAAM,SAAS,QAAQI,GAAU,CAAAZ,MAAS;AACxC,UAAML,IAAO,OAAOK,GACde,IAAqBpB,MAAS,YAAYA,MAAS;AACzD,QAAIkB,KAAmBE,GAAoB;AACzC,YAAMC,IAAYF,EAAU,SAAS,GAC/BG,IAAYH,EAAUE,CAAS;AACrC,MAAAF,EAAUE,CAAS,IAAI,GAAGC,CAAS,GAAGjB,CAAK;AAAA,IAC7C;AACE,MAAAc,EAAU,KAAKd,CAAK;AAEtB,IAAAa,IAAkBE;AAAA,EACpB,CAAC,GACMP,EAAM,SAAS,IAAIM,GAAW,CAAAd,MAASD,EAAoBC,GAAOC,GAAcC,GAAOC,CAAS,CAAC;AAC1G;AAKiC,CAAC,WAAW,WAAW,QAAQ,EAAE,OAAOe,EAAmBC,CAAY,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"buttonHelpers.js","sources":["../../../../../node_modules/antd/es/button/buttonHelpers.js"],"sourcesContent":["\"use client\";\n\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport React from 'react';\nimport { clsx } from 'clsx';\nimport isNonNullable from '../_util/isNonNullable';\nimport { cloneElement, isFragment } from '../_util/reactNode';\nimport { PresetColors } from '../theme/interface';\nconst rxTwoCNChar = /^[\\u4E00-\\u9FA5]{2}$/;\nexport const isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);\nexport function convertLegacyProps(type) {\n if (type === 'danger') {\n return {\n danger: true\n };\n }\n return {\n type\n };\n}\nexport function isString(str) {\n return typeof str === 'string';\n}\nexport function isUnBorderedButtonVariant(type) {\n return type === 'text' || type === 'link';\n}\nfunction splitCNCharsBySpace(child, needInserted, style, className) {\n if (!isNonNullable(child) || child === '') {\n return;\n }\n const SPACE = needInserted ? ' ' : '';\n if (typeof child !== 'string' && typeof child !== 'number' && isString(child.type) && isTwoCNChar(child.props.children)) {\n return cloneElement(child, oriProps => {\n const mergedCls = clsx(oriProps.className, className) || undefined;\n const mergedStyle = {\n ...style,\n ...oriProps.style\n };\n return {\n ...oriProps,\n children: oriProps.children.split('').join(SPACE),\n className: mergedCls,\n style: mergedStyle\n };\n });\n }\n if (isString(child)) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: className,\n style: style\n }, isTwoCNChar(child) ? child.split('').join(SPACE) : child);\n }\n if (isFragment(child)) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: className,\n style: style\n }, child);\n }\n return cloneElement(child, oriProps => ({\n ...oriProps,\n className: clsx(oriProps.className, className) || undefined,\n style: {\n ...oriProps.style,\n ...style\n }\n }));\n}\nexport function spaceChildren(children, needInserted, style, className) {\n let isPrevChildPure = false;\n const childList = [];\n React.Children.forEach(children, child => {\n const type = typeof child;\n const isCurrentChildPure = type === 'string' || type === 'number';\n if (isPrevChildPure && isCurrentChildPure) {\n const lastIndex = childList.length - 1;\n const lastChild = childList[lastIndex];\n childList[lastIndex] = `${lastChild}${child}`;\n } else {\n childList.push(child);\n }\n isPrevChildPure = isCurrentChildPure;\n });\n return React.Children.map(childList, child => splitCNCharsBySpace(child, needInserted, style, className));\n}\nconst _ButtonTypes = ['default', 'primary', 'dashed', 'link', 'text'];\nconst _ButtonShapes = ['default', 'circle', 'round', 'square'];\nconst _ButtonHTMLTypes = ['submit', 'button', 'reset'];\nexport const _ButtonVariantTypes = ['outlined', 'dashed', 'solid', 'filled', 'text', 'link'];\nexport const _ButtonColorTypes = ['default', 'primary', 'danger'].concat(_toConsumableArray(PresetColors));"],"names":["rxTwoCNChar","isTwoCNChar","convertLegacyProps","type","isString","str","isUnBorderedButtonVariant","splitCNCharsBySpace","child","needInserted","style","className","isNonNullable","SPACE","cloneElement","oriProps","mergedCls","clsx","mergedStyle","React","isFragment","spaceChildren","children","isPrevChildPure","childList","isCurrentChildPure","lastIndex","lastChild","_toConsumableArray","PresetColors"],"mappings":";;;;;;AAQA,MAAMA,IAAc,wBACPC,IAAcD,EAAY,KAAK,KAAKA,CAAW;AACrD,SAASE,EAAmBC,GAAM;AACvC,SAAIA,MAAS,WACJ;AAAA,IACL,QAAQ;AAAA,EACd,IAES;AAAA,IACL,MAAAA;AAAA,EACJ;AACA;AACO,SAASC,EAASC,GAAK;AAC5B,SAAO,OAAOA,KAAQ;AACxB;AACO,SAASC,EAA0BH,GAAM;AAC9C,SAAOA,MAAS,UAAUA,MAAS;AACrC;AACA,SAASI,EAAoBC,GAAOC,GAAcC,GAAOC,GAAW;AAClE,MAAI,CAACC,EAAcJ,CAAK,KAAKA,MAAU;AACrC;AAEF,QAAMK,IAAQJ,IAAe,MAAM;AACnC,SAAI,OAAOD,KAAU,YAAY,OAAOA,KAAU,YAAYJ,EAASI,EAAM,IAAI,KAAKP,EAAYO,EAAM,MAAM,QAAQ,IAC7GM,EAAaN,GAAO,CAAAO,MAAY;AACrC,UAAMC,IAAYC,EAAKF,EAAS,WAAWJ,CAAS,KAAK,QACnDO,IAAc;AAAA,MAClB,GAAGR;AAAA,MACH,GAAGK,EAAS;AAAA,IACpB;AACM,WAAO;AAAA,MACL,GAAGA;AAAA,MACH,UAAUA,EAAS,SAAS,MAAM,EAAE,EAAE,KAAKF,CAAK;AAAA,MAChD,WAAWG;AAAA,MACX,OAAOE;AAAA,IACf;AAAA,EACI,CAAC,IAECd,EAASI,CAAK,IACIW,gBAAAA,EAAM,cAAc,QAAQ;AAAA,IAC9C,WAAWR;AAAA,IACX,OAAOD;AAAA,EACb,GAAOT,EAAYO,CAAK,IAAIA,EAAM,MAAM,EAAE,EAAE,KAAKK,CAAK,IAAIL,CAAK,IAEzDY,EAAWZ,CAAK,IACEW,gBAAAA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