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":"index.js","sources":["../../../../../node_modules/antd/es/tooltip/index.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport RcTooltip from '@rc-component/tooltip';\nimport { useControlledState } from '@rc-component/util';\nimport { clsx } from 'clsx';\nimport ContextIsolator from '../_util/ContextIsolator';\nimport { useMergeSemantic, useZIndex } from '../_util/hooks';\nimport { getTransitionName } from '../_util/motion';\nimport getPlacements from '../_util/placements';\nimport { cloneElement, isFragment } from '../_util/reactNode';\nimport { devUseWarning } from '../_util/warning';\nimport zIndexContext from '../_util/zindexContext';\nimport { useComponentConfig } from '../config-provider/context';\nimport useCSSVarCls from '../config-provider/hooks/useCSSVarCls';\nimport { useToken } from '../theme/internal';\nimport useMergedArrow from './hook/useMergedArrow';\nimport PurePanel from './PurePanel';\nimport useStyle from './style';\nimport UniqueProvider from './UniqueProvider';\nimport { parseColor } from './util';\nconst InternalTooltip = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n openClassName,\n getTooltipContainer,\n color,\n children,\n afterOpenChange,\n arrow: tooltipArrow,\n destroyTooltipOnHide,\n destroyOnHidden,\n title,\n overlay,\n trigger,\n builtinPlacements,\n autoAdjustOverflow = true,\n motion,\n getPopupContainer,\n placement = 'top',\n mouseEnterDelay = 0.1,\n mouseLeaveDelay = 0.1,\n rootClassName,\n styles,\n classNames,\n onOpenChange,\n // Legacy\n overlayInnerStyle,\n overlayStyle,\n overlayClassName,\n ...restProps\n } = props;\n const [, token] = useToken();\n const {\n getPopupContainer: getContextPopupContainer,\n getPrefixCls,\n direction,\n className: contextClassName,\n style: contextStyle,\n classNames: contextClassNames,\n styles: contextStyles,\n arrow: contextArrow,\n trigger: contextTrigger\n } = useComponentConfig('tooltip');\n const mergedArrow = useMergedArrow(tooltipArrow, contextArrow);\n const mergedShowArrow = mergedArrow.show;\n const mergedTrigger = trigger || contextTrigger || 'hover';\n // ============================== Ref ===============================\n const warning = devUseWarning('Tooltip');\n const tooltipRef = React.useRef(null);\n const forceAlign = () => {\n tooltipRef.current?.forceAlign();\n };\n React.useImperativeHandle(ref, () => ({\n forceAlign,\n nativeElement: tooltipRef.current?.nativeElement,\n popupElement: tooltipRef.current?.popupElement\n }));\n // ============================== Warn ==============================\n if (process.env.NODE_ENV !== 'production') {\n [['overlayStyle', 'styles.root'], ['overlayInnerStyle', 'styles.container'], ['overlayClassName', 'classNames.root'], ['destroyTooltipOnHide', 'destroyOnHidden']].forEach(([deprecatedName, newName]) => {\n warning.deprecated(!(deprecatedName in props), deprecatedName, newName);\n });\n process.env.NODE_ENV !== \"production\" ? warning(!destroyTooltipOnHide || typeof destroyTooltipOnHide === 'boolean', 'usage', '`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly.') : void 0;\n }\n // ============================== Open ==============================\n const [open, setOpen] = useControlledState(props.defaultOpen ?? false, props.open);\n const noTitle = !title && !overlay && title !== 0; // overlay for old version compatibility\n const onInternalOpenChange = vis => {\n setOpen(noTitle ? false : vis);\n if (!noTitle && onOpenChange) {\n onOpenChange(vis);\n }\n };\n const tooltipPlacements = React.useMemo(() => {\n return builtinPlacements || getPlacements({\n arrowPointAtCenter: mergedArrow?.pointAtCenter ?? false,\n autoAdjustOverflow,\n arrowWidth: mergedShowArrow ? token.sizePopupArrow : 0,\n borderRadius: token.borderRadius,\n offset: token.marginXXS,\n visibleFirst: true\n });\n }, [mergedArrow, builtinPlacements, token, mergedShowArrow, autoAdjustOverflow]);\n const memoOverlay = React.useMemo(() => {\n if (title === 0) {\n return title;\n }\n return overlay || title || '';\n }, [overlay, title]);\n const memoOverlayWrapper = /*#__PURE__*/React.createElement(ContextIsolator, {\n space: true\n }, typeof memoOverlay === 'function' ? memoOverlay() : memoOverlay);\n // =========== Merged Props for Semantic ===========\n const mergedProps = {\n ...props,\n trigger: mergedTrigger,\n color,\n placement,\n builtinPlacements,\n openClassName,\n arrow: tooltipArrow,\n autoAdjustOverflow,\n getPopupContainer,\n children,\n destroyTooltipOnHide,\n destroyOnHidden\n };\n const [mergedClassNames, mergedStyles] = useMergeSemantic([contextClassNames, classNames], [contextStyles, styles], {\n props: mergedProps\n });\n const prefixCls = getPrefixCls('tooltip', customizePrefixCls);\n const rootPrefixCls = getPrefixCls();\n const injectFromPopover = props['data-popover-inject'];\n let tempOpen = open;\n // Hide tooltip when there is no title\n if (!('open' in props) && noTitle) {\n tempOpen = false;\n }\n // ============================= Render =============================\n const child = /*#__PURE__*/React.isValidElement(children) && !isFragment(children) ? children : /*#__PURE__*/React.createElement(\"span\", null, children);\n const childProps = child.props;\n const childCls = !childProps.className || typeof childProps.className === 'string' ? clsx(childProps.className, openClassName || `${prefixCls}-open`) : childProps.className;\n // Style\n const rootCls = useCSSVarCls(prefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls, rootCls, !injectFromPopover);\n // Color\n const colorInfo = parseColor(prefixCls, color);\n const arrowContentStyle = colorInfo.arrowStyle;\n const themeCls = clsx(rootCls, hashId, cssVarCls);\n const rootClassNames = clsx(overlayClassName, {\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, colorInfo.className, rootClassName, themeCls, contextClassName, mergedClassNames.root);\n // ============================ zIndex ============================\n const [zIndex, contextZIndex] = useZIndex('Tooltip', restProps.zIndex);\n const containerStyle = {\n ...mergedStyles.container,\n ...overlayInnerStyle,\n ...colorInfo.overlayStyle\n };\n const content = /*#__PURE__*/React.createElement(RcTooltip, {\n unique: true,\n ...restProps,\n trigger: mergedTrigger,\n zIndex: zIndex,\n showArrow: mergedShowArrow,\n placement: placement,\n mouseEnterDelay: mouseEnterDelay,\n mouseLeaveDelay: mouseLeaveDelay,\n prefixCls: prefixCls,\n classNames: {\n root: rootClassNames,\n container: mergedClassNames.container,\n arrow: mergedClassNames.arrow,\n uniqueContainer: clsx(themeCls, mergedClassNames.container)\n },\n styles: {\n root: {\n ...arrowContentStyle,\n ...mergedStyles.root,\n ...contextStyle,\n ...overlayStyle\n },\n container: containerStyle,\n uniqueContainer: containerStyle,\n arrow: mergedStyles.arrow\n },\n getTooltipContainer: getPopupContainer || getTooltipContainer || getContextPopupContainer,\n ref: tooltipRef,\n builtinPlacements: tooltipPlacements,\n overlay: memoOverlayWrapper,\n visible: tempOpen,\n onVisibleChange: onInternalOpenChange,\n afterVisibleChange: afterOpenChange,\n arrowContent: /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-arrow-content`\n }),\n motion: {\n motionName: getTransitionName(rootPrefixCls, 'zoom-big-fast', typeof motion?.motionName === 'string' ? motion?.motionName : undefined),\n motionDeadline: 1000\n },\n destroyOnHidden: destroyOnHidden ?? !!destroyTooltipOnHide\n }, tempOpen ? cloneElement(child, {\n className: childCls\n }) : child);\n return /*#__PURE__*/React.createElement(zIndexContext.Provider, {\n value: contextZIndex\n }, content);\n});\nconst Tooltip = InternalTooltip;\nif (process.env.NODE_ENV !== 'production') {\n Tooltip.displayName = 'Tooltip';\n}\nTooltip._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nTooltip.UniqueProvider = UniqueProvider;\nexport default Tooltip;"],"names":["InternalTooltip","React","props","ref","customizePrefixCls","openClassName","getTooltipContainer","color","children","afterOpenChange","tooltipArrow","destroyTooltipOnHide","destroyOnHidden","title","overlay","trigger","builtinPlacements","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","rootClassName","styles","classNames","onOpenChange","overlayInnerStyle","overlayStyle","overlayClassName","restProps","token","useToken","getContextPopupContainer","getPrefixCls","direction","contextClassName","contextStyle","contextClassNames","contextStyles","contextArrow","contextTrigger","useComponentConfig","mergedArrow","useMergedArrow","mergedShowArrow","mergedTrigger","warning","devUseWarning","tooltipRef","forceAlign","process","deprecatedName","newName","open","setOpen","useControlledState","noTitle","onInternalOpenChange","vis","tooltipPlacements","getPlacements","memoOverlay","memoOverlayWrapper","ContextIsolator","mergedProps","mergedClassNames","mergedStyles","useMergeSemantic","prefixCls","rootPrefixCls","injectFromPopover","tempOpen","child","isFragment","childProps","childCls","clsx","rootCls","useCSSVarCls","hashId","cssVarCls","useStyle","colorInfo","parseColor","arrowContentStyle","themeCls","rootClassNames","zIndex","contextZIndex","useZIndex","containerStyle","content","RcTooltip","getTransitionName","cloneElement","zIndexContext","Tooltip","PurePanel","UniqueProvider"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,KAA+B,gBAAAC,EAAM,WAAW,CAACC,GAAOC,MAAQ;AACpE,QAAM;AAAA,IACJ,WAAWC;AAAA,IACX,eAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,OAAOC;AAAA,IACP,sBAAAC;AAAA,IAC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ACjB,iBAAiBC;AAAA,IACjB,WAAW+C;AAAA,IACX,YAAY;AAAA,MACV,MAAMkB;AAAA,MACN,WAAWrB,EAAiB;AAAA,MAC5B,OAAOA,EAAiB;AAAA,MACxB,iBAAiBW,EAAKS,GAAUpB,EAAiB,SAAS;AAAA,IAChE;AAAA,IACI,QAAQ;AAAA,MACN,MAAM;AAAA,QACJ,GAAGmB;AAAA,QACH,GAAGlB,EAAa;AAAA,QAChB,GAAG9B;AAAA,QACH,GAAGT;AAAA,MACX;AAAA,MACM,WAAW+D;AAAA,MACX,iBAAiBA;AAAA,MACjB,OAAOxB,EAAa;AAAA,IAC1B;AAAA,IACI,qBAAqBhD,KAAqBb,KAAuB2B;AAAA,IACjE,KAAKgB;AAAA,IACL,mBAAmBW;AAAA,IACnB,SAASG;AAAA,IACT,SAASS;AAAA,IACT,iBAAiBd;AAAA,IACjB,oBAAoBjD;AAAA,IACpB,cAA2B,gBAAAR,EAAM,cAAc,QAAQ;AAAA,MACrD,WAAW,GAAGoE,CAAS;AAAA,IAC7B,CAAK;AAAA,IACD,QAAQ;AAAA,MACN,YAAYyB,GAAkBxB,IAAe,iBAAiB,OAAOpD,GAAQ,cAAe,WAAWA,GAAQ,aAAa,MAAS;AAAA,MACrI,gBAAgB;AAAA,IACtB;AAAA,IACI,iBAAiBN,KAAmB,CAAC,CAACD;AAAA,EAC1C,GAAK6D,IAAWuB,GAAatB,GAAO;AAAA,IAChC,WAAWG;AAAA,EACf,CAAG,IAAIH,CAAK;AACV,SAAoB,gBAAAxE,EAAM,cAAc+F,GAAc,UAAU;AAAA,IAC9D,OAAOP;AAAA,EACX,GAAKG,EAAO;AACZ,CAAC,GACKK,IAAUjG;AACZmD,EAAQ,IAAI,aAAa,iBAC3B8C,EAAQ,cAAc;AAExBA,EAAQ,yCAAyCC;AACjDD,EAAQ,iBAAiBE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/antd/es/tooltip/index.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport RcTooltip from '@rc-component/tooltip';\nimport { useControlledState } from '@rc-component/util';\nimport { clsx } from 'clsx';\nimport ContextIsolator from '../_util/ContextIsolator';\nimport { useMergeSemantic, useZIndex } from '../_util/hooks';\nimport { getTransitionName } from '../_util/motion';\nimport getPlacements from '../_util/placements';\nimport { cloneElement, isFragment } from '../_util/reactNode';\nimport { devUseWarning } from '../_util/warning';\nimport zIndexContext from '../_util/zindexContext';\nimport { useComponentConfig } from '../config-provider/context';\nimport useCSSVarCls from '../config-provider/hooks/useCSSVarCls';\nimport { useToken } from '../theme/internal';\nimport useMergedArrow from './hook/useMergedArrow';\nimport PurePanel from './PurePanel';\nimport useStyle from './style';\nimport UniqueProvider from './UniqueProvider';\nimport { parseColor } from './util';\nconst InternalTooltip = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n openClassName,\n getTooltipContainer,\n color,\n children,\n afterOpenChange,\n arrow: tooltipArrow,\n destroyTooltipOnHide,\n destroyOnHidden,\n title,\n overlay,\n trigger,\n builtinPlacements,\n autoAdjustOverflow = true,\n motion,\n getPopupContainer,\n placement = 'top',\n mouseEnterDelay = 0.1,\n mouseLeaveDelay = 0.1,\n rootClassName,\n styles,\n classNames,\n onOpenChange,\n // Legacy\n overlayInnerStyle,\n overlayStyle,\n overlayClassName,\n ...restProps\n } = props;\n const [, token] = useToken();\n const {\n getPopupContainer: getContextPopupContainer,\n getPrefixCls,\n direction,\n className: contextClassName,\n style: contextStyle,\n classNames: contextClassNames,\n styles: contextStyles,\n arrow: contextArrow,\n trigger: contextTrigger\n } = useComponentConfig('tooltip');\n const mergedArrow = useMergedArrow(tooltipArrow, contextArrow);\n const mergedShowArrow = mergedArrow.show;\n const mergedTrigger = trigger || contextTrigger || 'hover';\n // ============================== Ref ===============================\n const warning = devUseWarning('Tooltip');\n const tooltipRef = React.useRef(null);\n const forceAlign = () => {\n tooltipRef.current?.forceAlign();\n };\n React.useImperativeHandle(ref, () => ({\n forceAlign,\n nativeElement: tooltipRef.current?.nativeElement,\n popupElement: tooltipRef.current?.popupElement\n }));\n // ============================== Warn ==============================\n if (process.env.NODE_ENV !== 'production') {\n [['overlayStyle', 'styles.root'], ['overlayInnerStyle', 'styles.container'], ['overlayClassName', 'classNames.root'], ['destroyTooltipOnHide', 'destroyOnHidden']].forEach(([deprecatedName, newName]) => {\n warning.deprecated(!(deprecatedName in props), deprecatedName, newName);\n });\n process.env.NODE_ENV !== \"production\" ? warning(!destroyTooltipOnHide || typeof destroyTooltipOnHide === 'boolean', 'usage', '`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly.') : void 0;\n }\n // ============================== Open ==============================\n const [open, setOpen] = useControlledState(props.defaultOpen ?? false, props.open);\n const noTitle = !title && !overlay && title !== 0; // overlay for old version compatibility\n const onInternalOpenChange = vis => {\n setOpen(noTitle ? false : vis);\n if (!noTitle && onOpenChange) {\n onOpenChange(vis);\n }\n };\n const tooltipPlacements = React.useMemo(() => {\n return builtinPlacements || getPlacements({\n arrowPointAtCenter: mergedArrow?.pointAtCenter ?? false,\n autoAdjustOverflow,\n arrowWidth: mergedShowArrow ? token.sizePopupArrow : 0,\n borderRadius: token.borderRadius,\n offset: token.marginXXS,\n visibleFirst: true\n });\n }, [mergedArrow, builtinPlacements, token, mergedShowArrow, autoAdjustOverflow]);\n const memoOverlay = React.useMemo(() => {\n if (title === 0) {\n return title;\n }\n return overlay || title || '';\n }, [overlay, title]);\n const memoOverlayWrapper = /*#__PURE__*/React.createElement(ContextIsolator, {\n space: true,\n form: true\n }, typeof memoOverlay === 'function' ? memoOverlay() : memoOverlay);\n // =========== Merged Props for Semantic ===========\n const mergedProps = {\n ...props,\n trigger: mergedTrigger,\n color,\n placement,\n builtinPlacements,\n openClassName,\n arrow: tooltipArrow,\n autoAdjustOverflow,\n getPopupContainer,\n children,\n destroyTooltipOnHide,\n destroyOnHidden\n };\n const [mergedClassNames, mergedStyles] = useMergeSemantic([contextClassNames, classNames], [contextStyles, styles], {\n props: mergedProps\n });\n const prefixCls = getPrefixCls('tooltip', customizePrefixCls);\n const rootPrefixCls = getPrefixCls();\n const injectFromPopover = props['data-popover-inject'];\n let tempOpen = open;\n // Hide tooltip when there is no title\n if (!('open' in props) && noTitle) {\n tempOpen = false;\n }\n // ============================= Render =============================\n const child = /*#__PURE__*/React.isValidElement(children) && !isFragment(children) ? children : /*#__PURE__*/React.createElement(\"span\", null, children);\n const childProps = child.props;\n const childCls = !childProps.className || typeof childProps.className === 'string' ? clsx(childProps.className, openClassName || `${prefixCls}-open`) : childProps.className;\n // Style\n const rootCls = useCSSVarCls(prefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls, rootCls, !injectFromPopover);\n // Color\n const colorInfo = parseColor(rootPrefixCls, prefixCls, color);\n const arrowContentStyle = colorInfo.arrowStyle;\n const themeCls = clsx(rootCls, hashId, cssVarCls);\n const rootClassNames = clsx(overlayClassName, {\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, colorInfo.className, rootClassName, themeCls, contextClassName, mergedClassNames.root);\n // ============================ zIndex ============================\n const [zIndex, contextZIndex] = useZIndex('Tooltip', restProps.zIndex);\n const containerStyle = {\n ...mergedStyles.container,\n ...overlayInnerStyle,\n ...colorInfo.overlayStyle\n };\n const content = /*#__PURE__*/React.createElement(RcTooltip, {\n unique: true,\n ...restProps,\n trigger: mergedTrigger,\n zIndex: zIndex,\n showArrow: mergedShowArrow,\n placement: placement,\n mouseEnterDelay: mouseEnterDelay,\n mouseLeaveDelay: mouseLeaveDelay,\n prefixCls: prefixCls,\n classNames: {\n root: rootClassNames,\n container: mergedClassNames.container,\n arrow: mergedClassNames.arrow,\n uniqueContainer: clsx(themeCls, mergedClassNames.container)\n },\n styles: {\n root: {\n ...arrowContentStyle,\n ...mergedStyles.root,\n ...contextStyle,\n ...overlayStyle\n },\n container: containerStyle,\n uniqueContainer: containerStyle,\n arrow: mergedStyles.arrow\n },\n getTooltipContainer: getPopupContainer || getTooltipContainer || getContextPopupContainer,\n ref: tooltipRef,\n builtinPlacements: tooltipPlacements,\n overlay: memoOverlayWrapper,\n visible: tempOpen,\n onVisibleChange: onInternalOpenChange,\n afterVisibleChange: afterOpenChange,\n arrowContent: /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-arrow-content`\n }),\n motion: {\n motionName: getTransitionName(rootPrefixCls, 'zoom-big-fast', typeof motion?.motionName === 'string' ? motion?.motionName : undefined),\n motionDeadline: 1000\n },\n destroyOnHidden: destroyOnHidden ?? !!destroyTooltipOnHide\n }, tempOpen ? cloneElement(child, {\n className: childCls\n }) : child);\n return /*#__PURE__*/React.createElement(zIndexContext.Provider, {\n value: contextZIndex\n }, content);\n});\nconst Tooltip = InternalTooltip;\nif (process.env.NODE_ENV !== 'production') {\n Tooltip.displayName = 'Tooltip';\n}\nTooltip._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nTooltip.UniqueProvider = UniqueProvider;\nexport default Tooltip;"],"names":["InternalTooltip","React","props","ref","customizePrefixCls","openClassName","getTooltipContainer","color","children","afterOpenChange","tooltipArrow","destroyTooltipOnHide","destroyOnHidden","title","overlay","trigger","builtinPlacements","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","rootClassName","styles","classNames","onOpenChange","overlayInnerStyle","overlayStyle","overlayClassName","restProps","token","useToken","getContextPopupContainer","getPrefixCls","direction","contextClassName","contextStyle","contextClassNames","contextStyles","contextArrow","contextTrigger","useComponentConfig","mergedArrow","useMergedArrow","mergedShowArrow","mergedTrigger","warning","devUseWarning","tooltipRef","forceAlign","process","deprecatedName","newName","open","setOpen","useControlledState","noTitle","onInternalOpenChange","vis","tooltipPlacements","getPlacements","memoOverlay","memoOverlayWrapper","ContextIsolator","mergedProps","mergedClassNames","mergedStyles","useMergeSemantic","prefixCls","rootPrefixCls","injectFromPopover","tempOpen","child","isFragment","childProps","childCls","clsx","rootCls","useCSSVarCls","hashId","cssVarCls","useStyle","colorInfo","parseColor","arrowContentStyle","themeCls","rootClassNames","zIndex","contextZIndex","useZIndex","containerStyle","content","RcTooltip","getTransitionName","cloneElement","zIndexContext","Tooltip","PurePanel","UniqueProvider"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,KAA+B,gBAAAC,EAAM,WAAW,CAACC,GAAOC,MAAQ;AACpE,QAAM;AAAA,IACJ,WAAWC;AAAA,IACX,eAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,OAAOC;AAAA,IACP,sBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC;AAAA,IACA,SAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,oBAAAC,IAAqB;AAAA,IACrB,QAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,iBAAAC,IAAkB;AAAA,IAClB,iBAAAC,IAAkB;AAAA,IAClB,eAAAC;AAAA,IACA,QAAAC;AAAA,IACA,YAAAC;AAAA,IACA,cAAAC;AAAA;AAAA,IAEA,mBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAM5B,GACE,CAAA,EAAG6B,CAAK,IAAIC,GAAQ,GACpB;AAAA,IACJ,mBAAmBC;AAAA,IACnB,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAWC;AAAA,IACX,OAAOC;AAAA,IACP,YAAYC;AAAA,IACZ,QAAQC;AAAA,IACR,OAAOC;AAAA,IACP,SAASC;AAAA,EACb,IAAMC,GAAmB,SAAS,GAC1BC,IAAcC,GAAelC,GAAc8B,EAAY,GACvDK,IAAkBF,EAAY,MAC9BG,IAAgB/B,KAAW0B,MAAkB,SAE7CM,IAAUC,GAAc,SAAS,GACjCC,IAAahD,EAAM,OAAO,IAAI,GAC9BiD,KAAa,MAAM;AACvB,IAAAD,E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iBN,KAAmB,CAAC,CAACD;AAAA,EAC1C,GAAK6D,IAAWuB,GAAatB,GAAO;AAAA,IAChC,WAAWG;AAAA,EACf,CAAG,IAAIH,CAAK;AACV,SAAoB,gBAAAxE,EAAM,cAAc+F,GAAc,UAAU;AAAA,IAC9D,OAAOP;AAAA,EACX,GAAKG,EAAO;AACZ,CAAC,GACKK,IAAUjG;AACZmD,EAAQ,IAAI,aAAa,iBAC3B8C,EAAQ,cAAc;AAExBA,EAAQ,yCAAyCC;AACjDD,EAAQ,iBAAiBE;","x_google_ignoreList":[0]}
@@ -1,62 +1,63 @@
1
- import { unit as u } from "../../../../@ant-design/cssinjs/es/util/index.js";
2
- import { resetComponent as y } from "../../style/index.js";
3
- import { initFadeMotion as $ } from "../../style/motion/fade.js";
4
- import { initZoomMotion as v } from "../../style/motion/zoom.js";
5
- import R, { getArrowOffsetToken as T, MAX_VERTICAL_CONTENT_RADIUS as A } from "../../style/placementArrow.js";
6
- import { getArrowToken as z } from "../../style/roundedArrow.js";
7
- import { genStyleHooks as M } from "../../theme/util/genStyleUtils.js";
8
- import W from "../../theme/util/genPresetColor.js";
9
- import { merge as g } from "../../../../@ant-design/cssinjs-utils/es/util/statistic.js";
10
- const B = (o) => {
1
+ import { unit as b } from "../../../../@ant-design/cssinjs/es/util/index.js";
2
+ import { resetComponent as T } from "../../style/index.js";
3
+ import { initFadeMotion as v } from "../../style/motion/fade.js";
4
+ import { initZoomMotion as C } from "../../style/motion/zoom.js";
5
+ import W, { MAX_VERTICAL_CONTENT_RADIUS as z, getArrowOffsetToken as B } from "../../style/placementArrow.js";
6
+ import { getArrowToken as M } from "../../style/roundedArrow.js";
7
+ import { genStyleHooks as I, genCssVar as O } from "../../theme/util/genStyleUtils.js";
8
+ import q from "../../theme/util/genPresetColor.js";
9
+ import { merge as x } from "../../../../@ant-design/cssinjs-utils/es/util/statistic.js";
10
+ const f = "50%", L = (o) => {
11
11
  const {
12
12
  calc: e,
13
13
  componentCls: t,
14
14
  // ant-tooltip
15
- tooltipMaxWidth: d,
15
+ tooltipMaxWidth: c,
16
16
  tooltipColor: i,
17
17
  tooltipBg: n,
18
18
  tooltipBorderRadius: r,
19
19
  zIndexPopup: a,
20
- controlHeight: l,
21
- boxShadowSecondary: b,
22
- paddingSM: f,
23
- paddingXS: h,
24
- arrowOffsetHorizontal: x,
25
- sizePopupArrow: p
26
- } = o, w = e(r).add(p).add(x).equal(), s = {
27
- minWidth: e(r).mul(2).add(p).equal(),
28
- minHeight: l,
29
- padding: `${u(o.calc(f).div(2).equal())} ${u(h)}`,
30
- color: `var(--ant-tooltip-color, ${i})`,
20
+ controlHeight: d,
21
+ boxShadowSecondary: s,
22
+ paddingSM: w,
23
+ paddingXS: S,
24
+ arrowOffsetHorizontal: y,
25
+ sizePopupArrow: m,
26
+ antCls: R
27
+ } = o, [p, l] = O(R, "tooltip"), $ = e(r).add(m).add(y).equal(), u = {
28
+ minWidth: e(r).mul(2).add(m).equal(),
29
+ minHeight: d,
30
+ padding: `${b(o.calc(w).div(2).equal())} ${b(S)}`,
31
+ color: l("overlay-color", i),
31
32
  textAlign: "start",
32
33
  textDecoration: "none",
33
34
  wordWrap: "break-word",
34
35
  backgroundColor: n,
35
36
  borderRadius: r,
36
- boxShadow: b,
37
+ boxShadow: s,
37
38
  boxSizing: "border-box"
38
- }, c = {
39
+ }, g = {
39
40
  // When use `autoArrow`, origin will follow the arrow position
40
- "--valid-offset-x": "var(--arrow-offset-horizontal, var(--arrow-x))",
41
- transformOrigin: ["var(--valid-offset-x, 50%)", "var(--arrow-y, 50%)"].join(" ")
41
+ [p("valid-offset-x")]: l("arrow-offset-horizontal", "var(--arrow-x)"),
42
+ transformOrigin: [l("valid-offset-x", f), `var(--arrow-y, ${f})`].join(" ")
42
43
  };
43
44
  return [
44
45
  {
45
46
  [t]: {
46
- ...y(o),
47
+ ...T(o),
47
48
  position: "absolute",
48
49
  zIndex: a,
49
50
  display: "block",
50
51
  width: "max-content",
51
- maxWidth: d,
52
+ maxWidth: c,
52
53
  visibility: "visible",
53
- ...c,
54
+ ...g,
54
55
  "&-hidden": {
55
56
  display: "none"
56
57
  },
57
- "--antd-arrow-background-color": n,
58
+ [p("arrow-background-color")]: n,
58
59
  // Wrapper for the tooltip content
59
- [`${t}-container`]: [s, $(o, !0)],
60
+ [`${t}-container`]: [u, v(o, !0)],
60
61
  [`&:has(~ ${t}-unique-container)`]: {
61
62
  [`${t}-container`]: {
62
63
  border: "none",
@@ -66,27 +67,27 @@ const B = (o) => {
66
67
  },
67
68
  // Align placement should have another min width
68
69
  [["&-placement-topLeft", "&-placement-topRight", "&-placement-bottomLeft", "&-placement-bottomRight"].join(",")]: {
69
- minWidth: w
70
+ minWidth: $
70
71
  },
71
72
  // Limit left and right placement radius
72
73
  [["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(",")]: {
73
74
  [`${t}-inner`]: {
74
- borderRadius: o.min(r, A)
75
+ borderRadius: o.min(r, z)
75
76
  }
76
77
  },
77
78
  [`${t}-content`]: {
78
79
  position: "relative"
79
80
  },
80
81
  // generator for preset color
81
- ...W(o, (S, {
82
- darkColor: m
82
+ ...q(o, (A, {
83
+ darkColor: h
83
84
  }) => ({
84
- [`&${t}-${S}`]: {
85
+ [`&${t}-${A}`]: {
85
86
  [`${t}-container`]: {
86
- backgroundColor: m
87
+ backgroundColor: h
87
88
  },
88
89
  [`${t}-arrow`]: {
89
- "--antd-arrow-background-color": m
90
+ [p("arrow-background-color")]: h
90
91
  }
91
92
  }
92
93
  })),
@@ -97,7 +98,7 @@ const B = (o) => {
97
98
  }
98
99
  },
99
100
  // Arrow Style
100
- R(o, "var(--antd-arrow-background-color)"),
101
+ W(o, l("arrow-background-color")),
101
102
  // Pure Render
102
103
  {
103
104
  [`${t}-pure`]: {
@@ -109,8 +110,8 @@ const B = (o) => {
109
110
  // Unique Body
110
111
  {
111
112
  [`${t}-unique-container`]: {
112
- ...s,
113
- ...c,
113
+ ...u,
114
+ ...g,
114
115
  position: "absolute",
115
116
  zIndex: e(a).sub(1).equal(),
116
117
  "&-hidden": {
@@ -122,35 +123,37 @@ const B = (o) => {
122
123
  }
123
124
  }
124
125
  ];
125
- }, C = (o) => ({
126
+ }, P = (o) => ({
126
127
  zIndexPopup: o.zIndexPopupBase + 70,
127
- ...T({
128
+ maxWidth: 250,
129
+ ...B({
128
130
  contentRadius: o.borderRadius,
129
131
  limitVerticalRadius: !0
130
132
  }),
131
- ...z(g(o, {
133
+ ...M(x(o, {
132
134
  borderRadiusOuter: Math.min(o.borderRadiusOuter, 4)
133
135
  }))
134
- }), N = (o, e, t = !0) => M("Tooltip", (i) => {
136
+ }), K = (o, e, t = !0) => I("Tooltip", (i) => {
135
137
  const {
136
138
  borderRadius: n,
137
139
  colorTextLightSolid: r,
138
- colorBgSpotlight: a
139
- } = i, l = g(i, {
140
+ colorBgSpotlight: a,
141
+ maxWidth: d
142
+ } = i, s = x(i, {
140
143
  // default variables
141
- tooltipMaxWidth: 250,
144
+ tooltipMaxWidth: d,
142
145
  tooltipColor: r,
143
146
  tooltipBorderRadius: n,
144
147
  tooltipBg: a
145
148
  });
146
- return [B(l), v(i, "zoom-big-fast")];
147
- }, C, {
149
+ return [L(s), C(i, "zoom-big-fast")];
150
+ }, P, {
148
151
  resetStyle: !1,
149
152
  // Popover use Tooltip as internal component. We do not need to handle this.
150
153
  injectStyle: t
151
154
  })(o, e);
152
155
  export {
153
- N as default,
154
- C as prepareComponentToken
156
+ K as default,
157
+ P as prepareComponentToken
155
158
  };
156
159
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/tooltip/style/index.js"],"sourcesContent":["import { unit } from '@ant-design/cssinjs';\nimport { resetComponent } from '../../style';\nimport { initFadeMotion, initZoomMotion } from '../../style/motion';\nimport getArrowStyle, { getArrowOffsetToken, MAX_VERTICAL_CONTENT_RADIUS } from '../../style/placementArrow';\nimport { getArrowToken } from '../../style/roundedArrow';\nimport { genPresetColor, genStyleHooks, mergeToken } from '../../theme/internal';\nconst genTooltipStyle = token => {\n const {\n calc,\n componentCls,\n // ant-tooltip\n tooltipMaxWidth,\n tooltipColor,\n tooltipBg,\n tooltipBorderRadius,\n zIndexPopup,\n controlHeight,\n boxShadowSecondary,\n paddingSM,\n paddingXS,\n arrowOffsetHorizontal,\n sizePopupArrow\n } = token;\n // arrowOffsetHorizontal + arrowWidth + borderRadius\n const edgeAlignMinWidth = calc(tooltipBorderRadius).add(sizePopupArrow).add(arrowOffsetHorizontal).equal();\n // borderRadius * 2 + arrowWidth\n const centerAlignMinWidth = calc(tooltipBorderRadius).mul(2).add(sizePopupArrow).equal();\n const sharedBodyStyle = {\n minWidth: centerAlignMinWidth,\n minHeight: controlHeight,\n padding: `${unit(token.calc(paddingSM).div(2).equal())} ${unit(paddingXS)}`,\n color: `var(--ant-tooltip-color, ${tooltipColor})`,\n textAlign: 'start',\n textDecoration: 'none',\n wordWrap: 'break-word',\n backgroundColor: tooltipBg,\n borderRadius: tooltipBorderRadius,\n boxShadow: boxShadowSecondary,\n boxSizing: 'border-box'\n };\n const sharedTransformOrigin = {\n // When use `autoArrow`, origin will follow the arrow position\n '--valid-offset-x': 'var(--arrow-offset-horizontal, var(--arrow-x))',\n transformOrigin: [`var(--valid-offset-x, 50%)`, `var(--arrow-y, 50%)`].join(' ')\n };\n return [{\n [componentCls]: {\n ...resetComponent(token),\n position: 'absolute',\n zIndex: zIndexPopup,\n display: 'block',\n width: 'max-content',\n maxWidth: tooltipMaxWidth,\n visibility: 'visible',\n ...sharedTransformOrigin,\n '&-hidden': {\n display: 'none'\n },\n '--antd-arrow-background-color': tooltipBg,\n // Wrapper for the tooltip content\n [`${componentCls}-container`]: [sharedBodyStyle, initFadeMotion(token, true)],\n [`&:has(~ ${componentCls}-unique-container)`]: {\n [`${componentCls}-container`]: {\n border: 'none',\n background: 'transparent',\n boxShadow: 'none'\n }\n },\n // Align placement should have another min width\n [[`&-placement-topLeft`, `&-placement-topRight`, `&-placement-bottomLeft`, `&-placement-bottomRight`].join(',')]: {\n minWidth: edgeAlignMinWidth\n },\n // Limit left and right placement radius\n [[`&-placement-left`, `&-placement-leftTop`, `&-placement-leftBottom`, `&-placement-right`, `&-placement-rightTop`, `&-placement-rightBottom`].join(',')]: {\n [`${componentCls}-inner`]: {\n borderRadius: token.min(tooltipBorderRadius, MAX_VERTICAL_CONTENT_RADIUS)\n }\n },\n [`${componentCls}-content`]: {\n position: 'relative'\n },\n // generator for preset color\n ...genPresetColor(token, (colorKey, {\n darkColor\n }) => ({\n [`&${componentCls}-${colorKey}`]: {\n [`${componentCls}-container`]: {\n backgroundColor: darkColor\n },\n [`${componentCls}-arrow`]: {\n '--antd-arrow-background-color': darkColor\n }\n }\n })),\n // RTL\n '&-rtl': {\n direction: 'rtl'\n }\n }\n },\n // Arrow Style\n getArrowStyle(token, 'var(--antd-arrow-background-color)'),\n // Pure Render\n {\n [`${componentCls}-pure`]: {\n position: 'relative',\n maxWidth: 'none',\n margin: token.sizePopupArrow\n }\n },\n // Unique Body\n {\n [`${componentCls}-unique-container`]: {\n ...sharedBodyStyle,\n ...sharedTransformOrigin,\n position: 'absolute',\n zIndex: calc(zIndexPopup).sub(1).equal(),\n '&-hidden': {\n display: 'none'\n },\n '&-visible': {\n transition: `all ${token.motionDurationSlow}`\n }\n }\n }];\n};\n// ============================== Export ==============================\nexport const prepareComponentToken = token => ({\n zIndexPopup: token.zIndexPopupBase + 70,\n ...getArrowOffsetToken({\n contentRadius: token.borderRadius,\n limitVerticalRadius: true\n }),\n ...getArrowToken(mergeToken(token, {\n borderRadiusOuter: Math.min(token.borderRadiusOuter, 4)\n }))\n});\nexport default (prefixCls, rootCls, injectStyle = true) => {\n const useStyle = genStyleHooks('Tooltip', token => {\n const {\n borderRadius,\n colorTextLightSolid,\n colorBgSpotlight\n } = token;\n const TooltipToken = mergeToken(token, {\n // default variables\n tooltipMaxWidth: 250,\n tooltipColor: colorTextLightSolid,\n tooltipBorderRadius: borderRadius,\n tooltipBg: colorBgSpotlight\n });\n return [genTooltipStyle(TooltipToken), initZoomMotion(token, 'zoom-big-fast')];\n }, prepareComponentToken, {\n resetStyle: false,\n // Popover use Tooltip as internal component. We do not need to handle this.\n injectStyle\n });\n return useStyle(prefixCls, rootCls);\n};"],"names":["genTooltipStyle","token","calc","componentCls","tooltipMaxWidth","tooltipColor","tooltipBg","tooltipBorderRadius","zIndexPopup","controlHeight","boxShadowSecondary","paddingSM","paddingXS","arrowOffsetHorizontal","sizePopupArrow","edgeAlignMinWidth","sharedBodyStyle","unit","sharedTransformOrigin","resetComponent","initFadeMotion","MAX_VERTICAL_CONTENT_RADIUS","genPresetColor","colorKey","darkColor","getArrowStyle","prepareComponentToken","getArrowOffsetToken","getArrowToken","mergeToken","useStyle","prefixCls","rootCls","injectStyle","genStyleHooks","borderRadius","colorTextLightSolid","colorBgSpotlight","TooltipToken","initZoomMotion"],"mappings":";;;;;;;;;AAMA,MAAMA,IAAkB,CAAAC,MAAS;AAC/B,QAAM;AAAA,IACJ,MAAAC;AAAA,IACA,cAAAC;AAAA;AAAA,IAEA,iBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,eAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,uBAAAC;AAAA,IACA,gBAAAC;AAAA,EACJ,IAAMb,GAEEc,IAAoBb,EAAKK,CAAmB,EAAE,IAAIO,CAAc,EAAE,IAAID,CAAqB,EAAE,MAAK,GAGlGG,IAAkB;AAAA,IACtB,UAF0Bd,EAAKK,CAAmB,EAAE,IAAI,CAAC,EAAE,IAAIO,CAAc,EAAE,MAAK;AAAA,IAGpF,WAAWL;AAAA,IACX,SAAS,GAAGQ,EAAKhB,EAAM,KAAKU,CAAS,EAAE,IAAI,CAAC,EAAE,MAAK,CAAE,CAA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AC;AAAA,EAC1D,CAAG,CAAC;AACJ,IACA6B,IAAe,CAACC,GAAWC,GAASC,IAAc,OAC/BC,EAAc,WAAW,CAAAjC,MAAS;AACjD,QAAM;AAAA,IACJ,cAAAkC;AAAA,IACA,qBAAAC;AAAA,IACA,kBAAAC;AAAA,EACN,IAAQpC,GACEqC,IAAeT,EAAW5B,GAAO;AAAA;AAAA,IAErC,iBAAiB;AAAA,IACjB,cAAcmC;AAAA,IACd,qBAAqBD;AAAA,IACrB,WAAWE;AAAA,EACjB,CAAK;AACD,SAAO,CAACrC,EAAgBsC,CAAY,GAAGC,EAAetC,GAAO,eAAe,CAAC;AAC/E,GAAGyB,GAAuB;AAAA,EACxB,YAAY;AAAA;AAAA,EAEZ,aAAAO;AACJ,CAAG,EACeF,GAAWC,CAAO;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/tooltip/style/index.js"],"sourcesContent":["import { unit } from '@ant-design/cssinjs';\nimport { resetComponent } from '../../style';\nimport { initFadeMotion, initZoomMotion } from '../../style/motion';\nimport getArrowStyle, { getArrowOffsetToken, MAX_VERTICAL_CONTENT_RADIUS } from '../../style/placementArrow';\nimport { getArrowToken } from '../../style/roundedArrow';\nimport { genPresetColor, genStyleHooks, mergeToken } from '../../theme/internal';\nimport { genCssVar } from '../../theme/util/genStyleUtils';\nconst FALL_BACK_ORIGIN = '50%';\nconst genTooltipStyle = token => {\n const {\n calc,\n componentCls,\n // ant-tooltip\n tooltipMaxWidth,\n tooltipColor,\n tooltipBg,\n tooltipBorderRadius,\n zIndexPopup,\n controlHeight,\n boxShadowSecondary,\n paddingSM,\n paddingXS,\n arrowOffsetHorizontal,\n sizePopupArrow,\n antCls\n } = token;\n const [varName, varRef] = genCssVar(antCls, 'tooltip');\n // arrowOffsetHorizontal + arrowWidth + borderRadius\n const edgeAlignMinWidth = calc(tooltipBorderRadius).add(sizePopupArrow).add(arrowOffsetHorizontal).equal();\n // borderRadius * 2 + arrowWidth\n const centerAlignMinWidth = calc(tooltipBorderRadius).mul(2).add(sizePopupArrow).equal();\n const sharedBodyStyle = {\n minWidth: centerAlignMinWidth,\n minHeight: controlHeight,\n padding: `${unit(token.calc(paddingSM).div(2).equal())} ${unit(paddingXS)}`,\n color: varRef('overlay-color', tooltipColor),\n textAlign: 'start',\n textDecoration: 'none',\n wordWrap: 'break-word',\n backgroundColor: tooltipBg,\n borderRadius: tooltipBorderRadius,\n boxShadow: boxShadowSecondary,\n boxSizing: 'border-box'\n };\n const sharedTransformOrigin = {\n // When use `autoArrow`, origin will follow the arrow position\n [varName('valid-offset-x')]: varRef('arrow-offset-horizontal', 'var(--arrow-x)'),\n transformOrigin: [varRef('valid-offset-x', FALL_BACK_ORIGIN), `var(--arrow-y, ${FALL_BACK_ORIGIN})`].join(' ')\n };\n return [{\n [componentCls]: {\n ...resetComponent(token),\n position: 'absolute',\n zIndex: zIndexPopup,\n display: 'block',\n width: 'max-content',\n maxWidth: tooltipMaxWidth,\n visibility: 'visible',\n ...sharedTransformOrigin,\n '&-hidden': {\n display: 'none'\n },\n [varName('arrow-background-color')]: tooltipBg,\n // Wrapper for the tooltip content\n [`${componentCls}-container`]: [sharedBodyStyle, initFadeMotion(token, true)],\n [`&:has(~ ${componentCls}-unique-container)`]: {\n [`${componentCls}-container`]: {\n border: 'none',\n background: 'transparent',\n boxShadow: 'none'\n }\n },\n // Align placement should have another min width\n [[`&-placement-topLeft`, `&-placement-topRight`, `&-placement-bottomLeft`, `&-placement-bottomRight`].join(',')]: {\n minWidth: edgeAlignMinWidth\n },\n // Limit left and right placement radius\n [[`&-placement-left`, `&-placement-leftTop`, `&-placement-leftBottom`, `&-placement-right`, `&-placement-rightTop`, `&-placement-rightBottom`].join(',')]: {\n [`${componentCls}-inner`]: {\n borderRadius: token.min(tooltipBorderRadius, MAX_VERTICAL_CONTENT_RADIUS)\n }\n },\n [`${componentCls}-content`]: {\n position: 'relative'\n },\n // generator for preset color\n ...genPresetColor(token, (colorKey, {\n darkColor\n }) => ({\n [`&${componentCls}-${colorKey}`]: {\n [`${componentCls}-container`]: {\n backgroundColor: darkColor\n },\n [`${componentCls}-arrow`]: {\n [varName('arrow-background-color')]: darkColor\n }\n }\n })),\n // RTL\n '&-rtl': {\n direction: 'rtl'\n }\n }\n },\n // Arrow Style\n getArrowStyle(token, varRef('arrow-background-color')),\n // Pure Render\n {\n [`${componentCls}-pure`]: {\n position: 'relative',\n maxWidth: 'none',\n margin: token.sizePopupArrow\n }\n },\n // Unique Body\n {\n [`${componentCls}-unique-container`]: {\n ...sharedBodyStyle,\n ...sharedTransformOrigin,\n position: 'absolute',\n zIndex: calc(zIndexPopup).sub(1).equal(),\n '&-hidden': {\n display: 'none'\n },\n '&-visible': {\n transition: `all ${token.motionDurationSlow}`\n }\n }\n }];\n};\n// ============================== Export ==============================\nexport const prepareComponentToken = token => ({\n zIndexPopup: token.zIndexPopupBase + 70,\n maxWidth: 250,\n ...getArrowOffsetToken({\n contentRadius: token.borderRadius,\n limitVerticalRadius: true\n }),\n ...getArrowToken(mergeToken(token, {\n borderRadiusOuter: Math.min(token.borderRadiusOuter, 4)\n }))\n});\nexport default (prefixCls, rootCls, injectStyle = true) => {\n const useStyle = genStyleHooks('Tooltip', token => {\n const {\n borderRadius,\n colorTextLightSolid,\n colorBgSpotlight,\n maxWidth\n } = token;\n const TooltipToken = mergeToken(token, {\n // default variables\n tooltipMaxWidth: maxWidth,\n tooltipColor: colorTextLightSolid,\n tooltipBorderRadius: borderRadius,\n tooltipBg: colorBgSpotlight\n });\n return [genTooltipStyle(TooltipToken), initZoomMotion(token, 'zoom-big-fast')];\n }, prepareComponentToken, {\n resetStyle: false,\n // Popover use Tooltip as internal component. We do not need to handle this.\n injectStyle\n });\n return useStyle(prefixCls, rootCls);\n};"],"names":["FALL_BACK_ORIGIN","genTooltipStyle","token","calc","componentCls","tooltipMaxWidth","tooltipColor","tooltipBg","tooltipBorderRadius","zIndexPopup","controlHeight","boxShadowSecondary","paddingSM","paddingXS","arrowOffsetHorizontal","sizePopupArrow","antCls","varName","varRef","genCssVar","edgeAlignMinWidth","sharedBodyStyle","unit","sharedTransformOrigin","resetComponent","initFadeMotion","MAX_VERTICAL_CONTENT_RADIUS","genPresetColor","colorKey","darkColor","getArrowStyle","prepareComponentToken","getArrowOffsetToken","getArrowToken","mergeToken","useStyle","prefixCls","rootCls","injectStyle","genStyleHooks","borderRadius","colorTextLightSolid","colorBgSpotlight","maxWidth","TooltipToken","initZoomMotion"],"mappings":";;;;;;;;;AAOA,MAAMA,IAAmB,OACnBC,IAAkB,CAAAC,MAAS;AAC/B,QAAM;AAAA,IACJ,MAAAC;AAAA,IACA,cAAAC;AAAA;AAAA,IAEA,iBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,eAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,uBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,QAAAC;AAAA,EACJ,IAAMd,GACE,CAACe,GAASC,CAAM,IAAIC,EAAUH,GAAQ,SAAS,GAE/CI,IAAoBjB,EAAKK,CAAmB,EAAE,IAAIO,CAAc,EAAE,IAAID,CAAqB,EAAE,MAAK,GAGlGO,IAAkB;AAAA,IACtB,UAF0BlB,EAAKK,CAAmB,EAAE,IAAI,CAAC,EAAE,IAAIO,CAAc,EAAE,MAAK;AAAA,IAGpF,WAAWL;AAAA,IACX,SAAS,GAAGY,EAAKpB,EAAM,KAAKU,CAAS,EAAE,IAAI,CAAC,EAAE,MAAK,CAAE,CAAC,IAAIU,EAAKT,CAAS,CAAC;AAAA,IACzE,OAAOK,EAAO,iBAAiBZ,CAAY;AAAA,IAC3C,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,UAAU;AAAA,IACV,iBAAiBC;AAAA,IACjB,cAAcC;AAAA,IACd,WAAWG;AAAA,IACX,WAAW;AAAA,EACf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IACAiC,IAAe,CAACC,GAAWC,GAASC,IAAc,OAC/BC,EAAc,WAAW,CAAArC,MAAS;AACjD,QAAM;AAAA,IACJ,cAAAsC;AAAA,IACA,qBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,UAAAC;AAAA,EACN,IAAQzC,GACE0C,IAAeV,EAAWhC,GAAO;AAAA;AAAA,IAErC,iBAAiByC;AAAA,IACjB,cAAcF;AAAA,IACd,qBAAqBD;AAAA,IACrB,WAAWE;AAAA,EACjB,CAAK;AACD,SAAO,CAACzC,EAAgB2C,CAAY,GAAGC,EAAe3C,GAAO,eAAe,CAAC;AAC/E,GAAG6B,GAAuB;AAAA,EACxB,YAAY;AAAA;AAAA,EAEZ,aAAAO;AACJ,CAAG,EACeF,GAAWC,CAAO;","x_google_ignoreList":[0]}
@@ -1,17 +1,18 @@
1
1
  import { clsx as i } from "../../../clsx/dist/clsx.js";
2
- import { isPresetColor as l } from "../_util/colors.js";
3
- import { generateColor as m } from "../color-picker/util.js";
4
- function f(a, o) {
5
- const n = l(o), s = i({
6
- [`${a}-${o}`]: o && n
7
- }), t = {}, e = {}, r = m(o).toRgb(), c = (0.299 * r.r + 0.587 * r.g + 0.114 * r.b) / 255 < 0.5 ? "#FFF" : "#000";
8
- return o && !n && (t.background = o, t["--ant-tooltip-color"] = c, e["--antd-arrow-background-color"] = o), {
9
- className: s,
10
- overlayStyle: t,
11
- arrowStyle: e
2
+ import { isPresetColor as g } from "../_util/colors.js";
3
+ import { generateColor as p } from "../color-picker/util.js";
4
+ import { genCssVar as C } from "../theme/util/genStyleUtils.js";
5
+ const x = (a, m, o) => {
6
+ const n = g(o), [e] = C(a, "tooltip"), c = i({
7
+ [`${m}-${o}`]: o && n
8
+ }), r = {}, s = {}, t = p(o).toRgb(), l = (0.299 * t.r + 0.587 * t.g + 0.114 * t.b) / 255 < 0.5 ? "#FFF" : "#000";
9
+ return o && !n && (r.background = o, r[e("overlay-color")] = l, s[e("arrow-background-color")] = o), {
10
+ className: c,
11
+ overlayStyle: r,
12
+ arrowStyle: s
12
13
  };
13
- }
14
+ };
14
15
  export {
15
- f as parseColor
16
+ x as parseColor
16
17
  };
17
18
  //# sourceMappingURL=util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sources":["../../../../../node_modules/antd/es/tooltip/util.js"],"sourcesContent":["import { clsx } from 'clsx';\nimport { isPresetColor } from '../_util/colors';\nimport { generateColor } from '../color-picker/util';\nexport function parseColor(prefixCls, color) {\n const isInternalColor = isPresetColor(color);\n const className = clsx({\n [`${prefixCls}-${color}`]: color && isInternalColor\n });\n const overlayStyle = {};\n const arrowStyle = {};\n const rgb = generateColor(color).toRgb();\n const luminance = (0.299 * rgb.r + 0.587 * rgb.g + 0.114 * rgb.b) / 255;\n const textColor = luminance < 0.5 ? '#FFF' : '#000';\n if (color && !isInternalColor) {\n overlayStyle.background = color;\n overlayStyle['--ant-tooltip-color'] = textColor;\n // @ts-ignore\n arrowStyle['--antd-arrow-background-color'] = color;\n }\n return {\n className,\n overlayStyle,\n arrowStyle\n };\n}"],"names":["parseColor","prefixCls","color","isInternalColor","isPresetColor","className","clsx","overlayStyle","arrowStyle","rgb","generateColor","textColor"],"mappings":";;;AAGO,SAASA,EAAWC,GAAWC,GAAO;AAC3C,QAAMC,IAAkBC,EAAcF,CAAK,GACrCG,IAAYC,EAAK;AAAA,IACrB,CAAC,GAAGL,CAAS,IAAIC,CAAK,EAAE,GAAGA,KAASC;AAAA,EACxC,CAAG,GACKI,IAAe,CAAA,GACfC,IAAa,CAAA,GACbC,IAAMC,EAAcR,CAAK,EAAE,MAAK,GAEhCS,KADa,QAAQF,EAAI,IAAI,QAAQA,EAAI,IAAI,QAAQA,EAAI,KAAK,MACtC,MAAM,SAAS;AAC7C,SAAIP,KAAS,CAACC,MACZI,EAAa,aAAaL,GAC1BK,EAAa,qBAAqB,IAAII,GAEtCH,EAAW,+BAA+B,IAAIN,IAEzC;AAAA,IACL,WAAAG;AAAA,IACA,cAAAE;AAAA,IACA,YAAAC;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"util.js","sources":["../../../../../node_modules/antd/es/tooltip/util.js"],"sourcesContent":["import { clsx } from 'clsx';\nimport { isPresetColor } from '../_util/colors';\nimport { generateColor } from '../color-picker/util';\nimport { genCssVar } from '../theme/util/genStyleUtils';\nexport const parseColor = (rootPrefixCls, prefixCls, color) => {\n const isInternalColor = isPresetColor(color);\n const [varName] = genCssVar(rootPrefixCls, 'tooltip');\n const className = clsx({\n [`${prefixCls}-${color}`]: color && isInternalColor\n });\n const overlayStyle = {};\n const arrowStyle = {};\n const rgb = generateColor(color).toRgb();\n const luminance = (0.299 * rgb.r + 0.587 * rgb.g + 0.114 * rgb.b) / 255;\n const textColor = luminance < 0.5 ? '#FFF' : '#000';\n if (color && !isInternalColor) {\n overlayStyle.background = color;\n overlayStyle[varName('overlay-color')] = textColor;\n arrowStyle[varName('arrow-background-color')] = color;\n }\n return {\n className,\n overlayStyle,\n arrowStyle\n };\n};"],"names":["parseColor","rootPrefixCls","prefixCls","color","isInternalColor","isPresetColor","varName","genCssVar","className","clsx","overlayStyle","arrowStyle","rgb","generateColor","textColor"],"mappings":";;;;AAIY,MAACA,IAAa,CAACC,GAAeC,GAAWC,MAAU;AAC7D,QAAMC,IAAkBC,EAAcF,CAAK,GACrC,CAACG,CAAO,IAAIC,EAAUN,GAAe,SAAS,GAC9CO,IAAYC,EAAK;AAAA,IACrB,CAAC,GAAGP,CAAS,IAAIC,CAAK,EAAE,GAAGA,KAASC;AAAA,EACxC,CAAG,GACKM,IAAe,CAAA,GACfC,IAAa,CAAA,GACbC,IAAMC,EAAcV,CAAK,EAAE,MAAK,GAEhCW,KADa,QAAQF,EAAI,IAAI,QAAQA,EAAI,IAAI,QAAQA,EAAI,KAAK,MACtC,MAAM,SAAS;AAC7C,SAAIT,KAAS,CAACC,MACZM,EAAa,aAAaP,GAC1BO,EAAaJ,EAAQ,eAAe,CAAC,IAAIQ,GACzCH,EAAWL,EAAQ,wBAAwB,CAAC,IAAIH,IAE3C;AAAA,IACL,WAAAK;AAAA,IACA,cAAAE;AAAA,IACA,YAAAC;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
@@ -1,17 +1,17 @@
1
- import b from "../../../vite-plugin-node-polyfills/shims/process/dist/index.js";
1
+ import L from "../../../vite-plugin-node-polyfills/shims/process/dist/index.js";
2
2
  import * as t from "react";
3
- import { clsx as L } from "../../../clsx/dist/clsx.js";
3
+ import { clsx as b } from "../../../clsx/dist/clsx.js";
4
4
  import x from "../pagination/Pagination.js";
5
5
  import M from "./ListItem.js";
6
6
  import $ from "../../../@rc-component/util/es/hooks/useControlledState.js";
7
- const j = ["handleFilter", "handleClear", "checkedKeys"], B = (m) => ({
7
+ const j = ["handleFilter", "handleClear", "checkedKeys"], B = (c) => ({
8
8
  ...{
9
9
  simple: !0,
10
10
  showSizeChanger: !1,
11
11
  showLessItems: !1
12
12
  },
13
- ...m
14
- }), S = (m, g) => {
13
+ ...c
14
+ }), S = (c, g) => {
15
15
  const {
16
16
  prefixCls: l,
17
17
  classNames: p,
@@ -24,11 +24,11 @@ const j = ["handleFilter", "handleClear", "checkedKeys"], B = (m) => ({
24
24
  onScroll: I,
25
25
  onItemSelect: w,
26
26
  onItemRemove: z
27
- } = m, [a, d] = t.useState(1), s = t.useMemo(() => r ? B(typeof r == "object" ? r : {}) : null, [r]), [o, P] = $(10, s?.pageSize);
27
+ } = c, [a, m] = t.useState(1), s = t.useMemo(() => r ? B(typeof r == "object" ? r : {}) : null, [r]), [o, P] = $(10, s?.pageSize);
28
28
  t.useEffect(() => {
29
29
  if (s) {
30
30
  const e = Math.ceil(n.length / o);
31
- d(Math.min(a, e));
31
+ m(Math.min(a, e));
32
32
  }
33
33
  }, [n, s, o]);
34
34
  const k = (e, i) => {
@@ -36,9 +36,9 @@ const j = ["handleFilter", "handleClear", "checkedKeys"], B = (m) => ({
36
36
  }, v = (e) => {
37
37
  z?.([e.key]);
38
38
  }, E = (e) => {
39
- d(e);
39
+ m(e);
40
40
  }, N = (e, i) => {
41
- d(e), P(i);
41
+ m(e), P(i);
42
42
  }, C = t.useMemo(() => s ? n.slice((a - 1) * o, a * o) : n, [a, n, s, o]);
43
43
  t.useImperativeHandle(g, () => ({
44
44
  items: C
@@ -57,7 +57,7 @@ const j = ["handleFilter", "handleClear", "checkedKeys"], B = (m) => ({
57
57
  onShowSizeChange: N
58
58
  }) : null;
59
59
  return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("ul", {
60
- className: L(`${l}-content`, p.list, {
60
+ className: b(`${l}-content`, p.list, {
61
61
  [`${l}-content-show-remove`]: y
62
62
  }),
63
63
  style: u.list,
@@ -65,23 +65,23 @@ const j = ["handleFilter", "handleClear", "checkedKeys"], B = (m) => ({
65
65
  }, (C || []).map(({
66
66
  renderedEl: e,
67
67
  renderedText: i,
68
- item: c
68
+ item: d
69
69
  }) => /* @__PURE__ */ t.createElement(M, {
70
- key: c.key,
70
+ key: d.key,
71
71
  prefixCls: l,
72
72
  classNames: p,
73
73
  styles: u,
74
- item: c,
74
+ item: d,
75
75
  renderedText: i,
76
76
  renderedEl: e,
77
77
  showRemove: y,
78
78
  onClick: k,
79
79
  onRemove: v,
80
- checked: f.includes(c.key),
81
- disabled: h || c.disabled
80
+ checked: f.includes(d.key),
81
+ disabled: h
82
82
  }))), R);
83
83
  };
84
- b.env.NODE_ENV !== "production" && (S.displayName = "TransferListBody");
84
+ L.env.NODE_ENV !== "production" && (S.displayName = "TransferListBody");
85
85
  const H = /* @__PURE__ */ t.forwardRef(S);
86
86
  export {
87
87
  j as OmitProps,
@@ -1 +1 @@
1
- {"version":3,"file":"ListBody.js","sources":["../../../../../node_modules/antd/es/transfer/ListBody.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { useControlledState } from '@rc-component/util';\nimport { clsx } from 'clsx';\nimport Pagination from '../pagination';\nimport ListItem from './ListItem';\nexport const OmitProps = ['handleFilter', 'handleClear', 'checkedKeys'];\nconst parsePagination = pagination => {\n const defaultPagination = {\n simple: true,\n showSizeChanger: false,\n showLessItems: false\n };\n return {\n ...defaultPagination,\n ...pagination\n };\n};\nconst TransferListBody = (props, ref) => {\n const {\n prefixCls,\n classNames,\n styles,\n filteredRenderItems,\n selectedKeys,\n disabled: globalDisabled,\n showRemove,\n pagination,\n onScroll,\n onItemSelect,\n onItemRemove\n } = props;\n const [current, setCurrent] = React.useState(1);\n const mergedPagination = React.useMemo(() => {\n if (!pagination) {\n return null;\n }\n const convertPagination = typeof pagination === 'object' ? pagination : {};\n return parsePagination(convertPagination);\n }, [pagination]);\n const [pageSize, setPageSize] = useControlledState(10, mergedPagination?.pageSize);\n React.useEffect(() => {\n if (mergedPagination) {\n const maxPageCount = Math.ceil(filteredRenderItems.length / pageSize);\n setCurrent(Math.min(current, maxPageCount));\n }\n }, [filteredRenderItems, mergedPagination, pageSize]);\n const onInternalClick = (item, e) => {\n onItemSelect(item.key, !selectedKeys.includes(item.key), e);\n };\n const onRemove = item => {\n onItemRemove?.([item.key]);\n };\n const onPageChange = cur => {\n setCurrent(cur);\n };\n const onSizeChange = (cur, size) => {\n setCurrent(cur);\n setPageSize(size);\n };\n const memoizedItems = React.useMemo(() => {\n const displayItems = mergedPagination ? filteredRenderItems.slice((current - 1) * pageSize, current * pageSize) : filteredRenderItems;\n return displayItems;\n }, [current, filteredRenderItems, mergedPagination, pageSize]);\n React.useImperativeHandle(ref, () => ({\n items: memoizedItems\n }));\n const paginationNode = mergedPagination ? (/*#__PURE__*/React.createElement(Pagination, {\n size: \"small\",\n disabled: globalDisabled,\n simple: mergedPagination.simple,\n pageSize: pageSize,\n showLessItems: mergedPagination.showLessItems,\n showSizeChanger: mergedPagination.showSizeChanger,\n className: `${prefixCls}-pagination`,\n total: filteredRenderItems.length,\n current: current,\n onChange: onPageChange,\n onShowSizeChange: onSizeChange\n })) : null;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"ul\", {\n className: clsx(`${prefixCls}-content`, classNames.list, {\n [`${prefixCls}-content-show-remove`]: showRemove\n }),\n style: styles.list,\n onScroll: onScroll\n }, (memoizedItems || []).map(({\n renderedEl,\n renderedText,\n item\n }) => (/*#__PURE__*/React.createElement(ListItem, {\n key: item.key,\n prefixCls: prefixCls,\n classNames: classNames,\n styles: styles,\n item: item,\n renderedText: renderedText,\n renderedEl: renderedEl,\n showRemove: showRemove,\n onClick: onInternalClick,\n onRemove: onRemove,\n checked: selectedKeys.includes(item.key),\n disabled: globalDisabled || item.disabled\n })))), paginationNode);\n};\nif (process.env.NODE_ENV !== 'production') {\n TransferListBody.displayName = 'TransferListBody';\n}\nexport default /*#__PURE__*/React.forwardRef(TransferListBody);"],"names":["OmitProps","parsePagination","pagination","TransferListBody","props","ref","prefixCls","classNames","styles","filteredRenderItems","selectedKeys","globalDisabled","showRemove","onScroll","onItemSelect","onItemRemove","current","setCurrent","React","mergedPagination","pageSize","setPageSize","useControlledState","maxPageCount","onInternalClick","item","e","onRemove","onPageChange","cur","onSizeChange","size","memoizedItems","paginationNode","Pagination","clsx","renderedEl","renderedText","ListItem","process","DefaultListBody"],"mappings":";;;;;;AAOY,MAACA,IAAY,CAAC,gBAAgB,eAAe,aAAa,GAChEC,IAAkB,CAAAC,OAMf;AAAA,EACL,GANwB;AAAA,IACxB,QAAQ;AAAA,IACR,iBAAiB;AAAA,IACjB,eAAe;AAAA,EACnB;AAAA,EAGI,GAAGA;AACP,IAEMC,IAAmB,CAACC,GAAOC,MAAQ;AACvC,QAAM;AAAA,IACJ,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,UAAUC;AAAA,IACV,YAAAC;AAAA,IACA,YAAAV;AAAA,IACA,UAAAW;AAAA,IACA,cAAAC;AAAA,IACA,cAAAC;AAAA,EACJ,IAAMX,GACE,CAACY,GAASC,CAAU,IAAIC,EAAM,SAAS,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,IACvB,OAAOG,EAAoB;AAAA,IAC3B,SAASO;AAAA,IACT,UAAUY;AAAA,IACV,kBAAkBE;AAAA,EACtB,CAAG,IAAK;AACN,SAAoB,gBAAAZ,EAAM,cAAcA,EAAM,UAAU,MAAmB,gBAAAA,EAAM,cAAc,MAAM;AAAA,IACnG,WAAWiB,EAAK,GAAG7B,CAAS,YAAYC,EAAW,MAAM;AAAA,MACvD,CAAC,GAAGD,CAAS,sBAAsB,GAAGM;AAAA,IAC5C,CAAK;AAAA,IACD,OAAOJ,EAAO;AAAA,IACd,UAAUK;AAAA,EACd,IAAMmB,KAAiB,IAAI,IAAI,CAAC;AAAA,IAC5B,YAAAI;AAAA,IACA,cAAAC;AAAA,IACA,MAAAZ;AAAA,EACJ,MAAsB,gBAAAP,EAAM,cAAcoB,GAAU;AAAA,IAChD,KAAKb,EAAK;AAAA,IACV,WAAWnB;AAAA,IACX,YAAYC;AAAA,IACZ,QAAQC;AAAA,IACR,MAAMiB;AAAA,IACN,cAAcY;AAAA,IACd,YAAYD;AAAA,IACZ,YAAYxB;AAAA,IACZ,SAASY;AAAA,IACT,UAAUG;AAAA,IACV,SAASjB,EAAa,SAASe,EAAK,GAAG;AAAA,IACvC,UAAUd,KAAkBc,EAAK;AAAA,EACrC,CAAG,CAAE,CAAC,GAAGQ,CAAc;AACvB;AACIM,EAAQ,IAAI,aAAa,iBAC3BpC,EAAiB,cAAc;AAEjC,MAAAqC,IAA4B,gBAAAtB,EAAM,WAAWf,CAAgB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ListBody.js","sources":["../../../../../node_modules/antd/es/transfer/ListBody.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { useControlledState } from '@rc-component/util';\nimport { clsx } from 'clsx';\nimport Pagination from '../pagination';\nimport ListItem from './ListItem';\nexport const OmitProps = ['handleFilter', 'handleClear', 'checkedKeys'];\nconst parsePagination = pagination => {\n const defaultPagination = {\n simple: true,\n showSizeChanger: false,\n showLessItems: false\n };\n return {\n ...defaultPagination,\n ...pagination\n };\n};\nconst TransferListBody = (props, ref) => {\n const {\n prefixCls,\n classNames,\n styles,\n filteredRenderItems,\n selectedKeys,\n disabled: globalDisabled,\n showRemove,\n pagination,\n onScroll,\n onItemSelect,\n onItemRemove\n } = props;\n const [current, setCurrent] = React.useState(1);\n const mergedPagination = React.useMemo(() => {\n if (!pagination) {\n return null;\n }\n const convertPagination = typeof pagination === 'object' ? pagination : {};\n return parsePagination(convertPagination);\n }, [pagination]);\n const [pageSize, setPageSize] = useControlledState(10, mergedPagination?.pageSize);\n React.useEffect(() => {\n if (mergedPagination) {\n const maxPageCount = Math.ceil(filteredRenderItems.length / pageSize);\n setCurrent(Math.min(current, maxPageCount));\n }\n }, [filteredRenderItems, mergedPagination, pageSize]);\n const onInternalClick = (item, e) => {\n onItemSelect(item.key, !selectedKeys.includes(item.key), e);\n };\n const onRemove = item => {\n onItemRemove?.([item.key]);\n };\n const onPageChange = cur => {\n setCurrent(cur);\n };\n const onSizeChange = (cur, size) => {\n setCurrent(cur);\n setPageSize(size);\n };\n const memoizedItems = React.useMemo(() => {\n const displayItems = mergedPagination ? filteredRenderItems.slice((current - 1) * pageSize, current * pageSize) : filteredRenderItems;\n return displayItems;\n }, [current, filteredRenderItems, mergedPagination, pageSize]);\n React.useImperativeHandle(ref, () => ({\n items: memoizedItems\n }));\n const paginationNode = mergedPagination ? (/*#__PURE__*/React.createElement(Pagination, {\n size: \"small\",\n disabled: globalDisabled,\n simple: mergedPagination.simple,\n pageSize: pageSize,\n showLessItems: mergedPagination.showLessItems,\n showSizeChanger: mergedPagination.showSizeChanger,\n className: `${prefixCls}-pagination`,\n total: filteredRenderItems.length,\n current: current,\n onChange: onPageChange,\n onShowSizeChange: onSizeChange\n })) : null;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"ul\", {\n className: clsx(`${prefixCls}-content`, classNames.list, {\n [`${prefixCls}-content-show-remove`]: showRemove\n }),\n style: styles.list,\n onScroll: onScroll\n }, (memoizedItems || []).map(({\n renderedEl,\n renderedText,\n item\n }) => (/*#__PURE__*/React.createElement(ListItem, {\n key: item.key,\n prefixCls: prefixCls,\n classNames: classNames,\n styles: styles,\n item: item,\n renderedText: renderedText,\n renderedEl: renderedEl,\n showRemove: showRemove,\n onClick: onInternalClick,\n onRemove: onRemove,\n checked: selectedKeys.includes(item.key),\n disabled: globalDisabled\n })))), paginationNode);\n};\nif (process.env.NODE_ENV !== 'production') {\n TransferListBody.displayName = 'TransferListBody';\n}\nexport default /*#__PURE__*/React.forwardRef(TransferListBody);"],"names":["OmitProps","parsePagination","pagination","TransferListBody","props","ref","prefixCls","classNames","styles","filteredRenderItems","selectedKeys","globalDisabled","showRemove","onScroll","onItemSelect","onItemRemove","current","setCurrent","React","mergedPagination","pageSize","setPageSize","useControlledState","maxPageCount","onInternalClick","item","e","onRemove","onPageChange","cur","onSizeChange","size","memoizedItems","paginationNode","Pagination","clsx","renderedEl","renderedText","ListItem","process","DefaultListBody"],"mappings":";;;;;;AAOY,MAACA,IAAY,CAAC,gBAAgB,eAAe,aAAa,GAChEC,IAAkB,CAAAC,OAMf;AAAA,EACL,GANwB;AAAA,IACxB,QAAQ;AAAA,IACR,iBAAiB;AAAA,IACjB,eAAe;AAAA,EACnB;AAAA,EAGI,GAAGA;AACP,IAEMC,IAAmB,CAACC,GAAOC,MAAQ;AACvC,QAAM;AAAA,IACJ,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,UAAUC;AAAA,IACV,YAAAC;AAAA,IACA,YAAAV;AAAA,IACA,UAAAW;AAAA,IACA,cAAAC;AAAA,IACA,cAAAC;AAAA,EACJ,IAAMX,GACE,CAACY,GAASC,CAAU,IAAIC,EAAM,SAAS,CAAC,GACxCC,IAAmBD,EAAM,QAAQ,MAChChB,IAIED,EADmB,OAAOC,KAAe,WAAWA,IAAa,CAAA,CAChC,I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AG,IAAK;AACN,SAAoB,gBAAAZ,EAAM,cAAcA,EAAM,UAAU,MAAmB,gBAAAA,EAAM,cAAc,MAAM;AAAA,IACnG,WAAWiB,EAAK,GAAG7B,CAAS,YAAYC,EAAW,MAAM;AAAA,MACvD,CAAC,GAAGD,CAAS,sBAAsB,GAAGM;AAAA,IAC5C,CAAK;AAAA,IACD,OAAOJ,EAAO;AAAA,IACd,UAAUK;AAAA,EACd,IAAMmB,KAAiB,IAAI,IAAI,CAAC;AAAA,IAC5B,YAAAI;AAAA,IACA,cAAAC;AAAA,IACA,MAAAZ;AAAA,EACJ,MAAsB,gBAAAP,EAAM,cAAcoB,GAAU;AAAA,IAChD,KAAKb,EAAK;AAAA,IACV,WAAWnB;AAAA,IACX,YAAYC;AAAA,IACZ,QAAQC;AAAA,IACR,MAAMiB;AAAA,IACN,cAAcY;AAAA,IACd,YAAYD;AAAA,IACZ,YAAYxB;AAAA,IACZ,SAASY;AAAA,IACT,UAAUG;AAAA,IACV,SAASjB,EAAa,SAASe,EAAK,GAAG;AAAA,IACvC,UAAUd;AAAA,EACd,CAAG,CAAE,CAAC,GAAGsB,CAAc;AACvB;AACIM,EAAQ,IAAI,aAAa,iBAC3BpC,EAAiB,cAAc;AAEjC,MAAAqC,IAA4B,gBAAAtB,EAAM,WAAWf,CAAgB;","x_google_ignoreList":[0]}
@@ -1,54 +1,54 @@
1
- import * as t from "react";
2
- import E from "../../../@ant-design/icons/es/icons/DeleteOutlined.js";
1
+ import * as e from "react";
2
+ import $ from "../../../@ant-design/icons/es/icons/DeleteOutlined.js";
3
3
  import { clsx as i } from "../../../clsx/dist/clsx.js";
4
- import $ from "../checkbox/index.js";
5
- import h from "../locale/en_US.js";
6
- import N from "../locale/useLocale.js";
7
- const I = (b) => {
4
+ import h from "../checkbox/index.js";
5
+ import N from "../locale/en_US.js";
6
+ import I from "../locale/useLocale.js";
7
+ const v = (f) => {
8
8
  const {
9
- prefixCls: o,
10
- classNames: s,
11
- styles: l,
9
+ prefixCls: t,
10
+ classNames: n,
11
+ styles: s,
12
12
  renderedText: c,
13
- renderedEl: f,
14
- item: e,
15
- checked: a,
16
- disabled: n,
17
- onClick: p,
18
- onRemove: u,
19
- showRemove: k
20
- } = b, x = i(`${o}-content-item`, s.item, {
21
- [`${o}-content-item-disabled`]: n || e.disabled,
22
- [`${o}-content-item-checked`]: a && !e.disabled
13
+ renderedEl: b,
14
+ item: l,
15
+ checked: r,
16
+ disabled: p,
17
+ onClick: u,
18
+ onRemove: k,
19
+ showRemove: x
20
+ } = f, o = p || l?.disabled, y = i(`${t}-content-item`, n.item, {
21
+ [`${t}-content-item-disabled`]: o,
22
+ [`${t}-content-item-checked`]: r && !o
23
23
  });
24
- let r;
25
- (typeof c == "string" || typeof c == "number") && (r = String(c));
26
- const [y] = N("Transfer", h.Transfer), m = {
27
- className: x,
28
- style: l.item,
29
- title: r
30
- }, d = /* @__PURE__ */ t.createElement("span", {
31
- className: i(`${o}-content-item-text`, s.itemContent),
32
- style: l.itemContent
33
- }, f);
34
- return k ? /* @__PURE__ */ t.createElement("li", {
24
+ let a;
25
+ (typeof c == "string" || typeof c == "number") && (a = String(c));
26
+ const [C] = I("Transfer", N.Transfer), m = {
27
+ className: y,
28
+ style: s.item,
29
+ title: a
30
+ }, d = /* @__PURE__ */ e.createElement("span", {
31
+ className: i(`${t}-content-item-text`, n.itemContent),
32
+ style: s.itemContent
33
+ }, b);
34
+ return x ? /* @__PURE__ */ e.createElement("li", {
35
35
  ...m
36
- }, d, /* @__PURE__ */ t.createElement("button", {
36
+ }, d, /* @__PURE__ */ e.createElement("button", {
37
37
  type: "button",
38
- disabled: n || e.disabled,
39
- className: `${o}-content-item-remove`,
40
- "aria-label": y?.remove,
41
- onClick: () => u?.(e)
42
- }, /* @__PURE__ */ t.createElement(E, null))) : (m.onClick = n || e.disabled ? void 0 : (C) => p(e, C), /* @__PURE__ */ t.createElement("li", {
38
+ disabled: o,
39
+ className: `${t}-content-item-remove`,
40
+ "aria-label": C?.remove,
41
+ onClick: () => k?.(l)
42
+ }, /* @__PURE__ */ e.createElement($, null))) : (m.onClick = o ? void 0 : (E) => u(l, E), /* @__PURE__ */ e.createElement("li", {
43
43
  ...m
44
- }, /* @__PURE__ */ t.createElement($, {
45
- className: i(`${o}-checkbox`, s.itemIcon),
46
- style: l.itemIcon,
47
- checked: a,
48
- disabled: n || e.disabled
44
+ }, /* @__PURE__ */ e.createElement(h, {
45
+ className: i(`${t}-checkbox`, n.itemIcon),
46
+ style: s.itemIcon,
47
+ checked: r,
48
+ disabled: o
49
49
  }), d));
50
- }, w = /* @__PURE__ */ t.memo(I);
50
+ }, D = /* @__PURE__ */ e.memo(v);
51
51
  export {
52
- w as default
52
+ D as default
53
53
  };
54
54
  //# sourceMappingURL=ListItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.js","sources":["../../../../../node_modules/antd/es/transfer/ListItem.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport DeleteOutlined from \"@ant-design/icons/es/icons/DeleteOutlined\";\nimport { clsx } from 'clsx';\nimport Checkbox from '../checkbox';\nimport { useLocale } from '../locale';\nimport defaultLocale from '../locale/en_US';\nconst ListItem = props => {\n const {\n prefixCls,\n classNames,\n styles,\n renderedText,\n renderedEl,\n item,\n checked,\n disabled,\n onClick,\n onRemove,\n showRemove\n } = props;\n const classes = clsx(`${prefixCls}-content-item`, classNames.item, {\n [`${prefixCls}-content-item-disabled`]: disabled || item.disabled,\n [`${prefixCls}-content-item-checked`]: checked && !item.disabled\n });\n let title;\n if (typeof renderedText === 'string' || typeof renderedText === 'number') {\n title = String(renderedText);\n }\n const [contextLocale] = useLocale('Transfer', defaultLocale.Transfer);\n const liProps = {\n className: classes,\n style: styles.item,\n title\n };\n const labelNode = /*#__PURE__*/React.createElement(\"span\", {\n className: clsx(`${prefixCls}-content-item-text`, classNames.itemContent),\n style: styles.itemContent\n }, renderedEl);\n if (showRemove) {\n return /*#__PURE__*/React.createElement(\"li\", {\n ...liProps\n }, labelNode, /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n disabled: disabled || item.disabled,\n className: `${prefixCls}-content-item-remove`,\n \"aria-label\": contextLocale?.remove,\n onClick: () => onRemove?.(item)\n }, /*#__PURE__*/React.createElement(DeleteOutlined, null)));\n }\n // Default click to select\n liProps.onClick = disabled || item.disabled ? undefined : event => onClick(item, event);\n return /*#__PURE__*/React.createElement(\"li\", {\n ...liProps\n }, /*#__PURE__*/React.createElement(Checkbox, {\n className: clsx(`${prefixCls}-checkbox`, classNames.itemIcon),\n style: styles.itemIcon,\n checked: checked,\n disabled: disabled || item.disabled\n }), labelNode);\n};\nexport default /*#__PURE__*/React.memo(ListItem);"],"names":["ListItem","props","prefixCls","classNames","styles","renderedText","renderedEl","item","checked","disabled","onClick","onRemove","showRemove","classes","clsx","title","contextLocale","useLocale","defaultLocale","liProps","labelNode","React","DeleteOutlined","event","Checkbox","ListItem$1"],"mappings":";;;;;;AAQA,MAAMA,IAAW,CAAAC,MAAS;AACxB,QAAM;AAAA,IACJ,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,MAAAC;AAAA,IACA,SAAAC;AAAA,IACA,UAAAC;AAAA,IACA,SAAAC;AAAA,IACA,UAAAC;AAAA,IACA,YAAAC;AAAA,EACJ,IAAMX,GACEY,IAAUC,EAAK,GAAGZ,CAAS,iBAAiBC,EAAW,MAAM;AAAA,IACjE,CAAC,GAAGD,CAAS,wBAAwB,GAAGO,KAAYF,EAAK;AAAA,IACzD,CAAC,GAAGL,CAAS,uBAAuB,GAAGM,KAAW,CAACD,EAAK;AAAA,EAC5D,CAAG;AACD,MAAIQ;AACJ,GAAI,OAAOV,KAAiB,YAAY,OAAOA,KAAiB,cAC9DU,IAAQ,OAAOV,CAAY;AAE7B,QAAM,CAACW,CAAa,IAAIC,EAAU,YAAYC,EAAc,QAAQ,GAC9DC,IAAU;AAAA,IACd,WAAWN;AAAA,IACX,OAAOT,EAAO;AAAA,IACd,OAAAW;AAAA,EACJ,GACQK,IAAyB,gBAAAC,EAAM,cAAc,QAAQ;AAAA,IACzD,WAAWP,EAAK,GAAGZ,CAAS,sBAAsBC,EAAW,WAAW;AAAA,IACxE,OAAOC,EAAO;AAAA,EAClB,GAAKE,CAAU;AACb,SAAIM,IACkB,gBAAAS,EAAM,cAAc,MAAM;AAAA,IAC5C,GAAGF;AAAA,EACT,GAAOC,GAAwB,gBAAAC,EAAM,cAAc,UAAU;AAAA,IACvD,MAAM;AAAA,IACN,UAAUZ,KAAYF,EAAK;AAAA,IAC3B,WAAW,GAAGL,CAAS;AAAA,IACvB,cAAcc,GAAe;AAAA,IAC7B,SAAS,MAAML,IAAWJ,CAAI;AAAA,EACpC,GAAoB,gBAAAc,EAAM,cAAcC,GAAgB,IAAI,CAAC,CAAC,KAG5DH,EAAQ,UAAUV,KAAYF,EAAK,WAAW,SAAY,CAAAgB,MAASb,EAAQH,GAAMgB,CAAK,GAClE,gBAAAF,EAAM,cAAc,MAAM;AAAA,IAC5C,GAAGF;AAAA,EACP,GAAkB,gBAAAE,EAAM,cAAcG,GAAU;AAAA,IAC5C,WAAWV,EAAK,GAAGZ,CAAS,aAAaC,EAAW,QAAQ;AAAA,IAC5D,OAAOC,EAAO;AAAA,IACd,SAASI;AAAA,IACT,UAAUC,KAAYF,EAAK;AAAA,EAC/B,CAAG,GAAGa,CAAS;AACf,GACAK,IAA4B,gBAAAJ,EAAM,KAAKrB,CAAQ;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ListItem.js","sources":["../../../../../node_modules/antd/es/transfer/ListItem.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport DeleteOutlined from \"@ant-design/icons/es/icons/DeleteOutlined\";\nimport { clsx } from 'clsx';\nimport Checkbox from '../checkbox';\nimport { useLocale } from '../locale';\nimport defaultLocale from '../locale/en_US';\nconst ListItem = props => {\n const {\n prefixCls,\n classNames,\n styles,\n renderedText,\n renderedEl,\n item,\n checked,\n disabled,\n onClick,\n onRemove,\n showRemove\n } = props;\n const mergedDisabled = disabled || item?.disabled;\n const classes = clsx(`${prefixCls}-content-item`, classNames.item, {\n [`${prefixCls}-content-item-disabled`]: mergedDisabled,\n [`${prefixCls}-content-item-checked`]: checked && !mergedDisabled\n });\n let title;\n if (typeof renderedText === 'string' || typeof renderedText === 'number') {\n title = String(renderedText);\n }\n const [contextLocale] = useLocale('Transfer', defaultLocale.Transfer);\n const liProps = {\n className: classes,\n style: styles.item,\n title\n };\n const labelNode = /*#__PURE__*/React.createElement(\"span\", {\n className: clsx(`${prefixCls}-content-item-text`, classNames.itemContent),\n style: styles.itemContent\n }, renderedEl);\n if (showRemove) {\n return /*#__PURE__*/React.createElement(\"li\", {\n ...liProps\n }, labelNode, /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n disabled: mergedDisabled,\n className: `${prefixCls}-content-item-remove`,\n \"aria-label\": contextLocale?.remove,\n onClick: () => onRemove?.(item)\n }, /*#__PURE__*/React.createElement(DeleteOutlined, null)));\n }\n // Default click to select\n liProps.onClick = mergedDisabled ? undefined : event => onClick(item, event);\n return /*#__PURE__*/React.createElement(\"li\", {\n ...liProps\n }, /*#__PURE__*/React.createElement(Checkbox, {\n className: clsx(`${prefixCls}-checkbox`, classNames.itemIcon),\n style: styles.itemIcon,\n checked: checked,\n disabled: mergedDisabled\n }), labelNode);\n};\nexport default /*#__PURE__*/React.memo(ListItem);"],"names":["ListItem","props","prefixCls","classNames","styles","renderedText","renderedEl","item","checked","disabled","onClick","onRemove","showRemove","mergedDisabled","classes","clsx","title","contextLocale","useLocale","defaultLocale","liProps","labelNode","React","DeleteOutlined","event","Checkbox","ListItem$1"],"mappings":";;;;;;AAQA,MAAMA,IAAW,CAAAC,MAAS;AACxB,QAAM;AAAA,IACJ,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,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