ods-component-lib 1.22.2 → 1.22.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 (261) hide show
  1. package/dist/_virtual/index5.js +2 -3
  2. package/dist/_virtual/index5.js.map +1 -1
  3. package/dist/_virtual/index6.js +3 -2
  4. package/dist/_virtual/index6.js.map +1 -1
  5. package/dist/components/antd/currencyInput/CurrencySelect.js +15 -14
  6. package/dist/components/antd/currencyInput/CurrencySelect.js.map +1 -1
  7. package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js +6 -6
  8. package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js.map +1 -1
  9. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js +20 -20
  10. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js.map +1 -1
  11. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js.map +1 -1
  12. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js +101 -98
  13. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js.map +1 -1
  14. package/dist/node_modules/@ant-design/cssinjs/es/util/index.js +29 -27
  15. package/dist/node_modules/@ant-design/cssinjs/es/util/index.js.map +1 -1
  16. package/dist/node_modules/@rc-component/async-validator/es/index.js +20 -20
  17. package/dist/node_modules/@rc-component/async-validator/es/index.js.map +1 -1
  18. package/dist/node_modules/@rc-component/async-validator/es/messages.js +1 -0
  19. package/dist/node_modules/@rc-component/async-validator/es/messages.js.map +1 -1
  20. package/dist/node_modules/@rc-component/async-validator/es/rule/type.js +18 -8
  21. package/dist/node_modules/@rc-component/async-validator/es/rule/type.js.map +1 -1
  22. package/dist/node_modules/@rc-component/async-validator/es/util.js +1 -1
  23. package/dist/node_modules/@rc-component/async-validator/es/util.js.map +1 -1
  24. package/dist/node_modules/@rc-component/async-validator/es/validator/index.js +1 -0
  25. package/dist/node_modules/@rc-component/async-validator/es/validator/index.js.map +1 -1
  26. package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js +88 -68
  27. package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js.map +1 -1
  28. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js +75 -96
  29. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js.map +1 -1
  30. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js +22 -20
  31. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js.map +1 -1
  32. package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js +92 -100
  33. package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js.map +1 -1
  34. package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js +40 -29
  35. package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js.map +1 -1
  36. package/dist/node_modules/@rc-component/form/es/hooks/useForm.js +115 -100
  37. package/dist/node_modules/@rc-component/form/es/hooks/useForm.js.map +1 -1
  38. package/dist/node_modules/@rc-component/form/es/utils/NameMap.js +28 -22
  39. package/dist/node_modules/@rc-component/form/es/utils/NameMap.js.map +1 -1
  40. package/dist/node_modules/@rc-component/form/es/utils/messages.js +1 -0
  41. package/dist/node_modules/@rc-component/form/es/utils/messages.js.map +1 -1
  42. package/dist/node_modules/@rc-component/image/es/Preview/index.js +111 -105
  43. package/dist/node_modules/@rc-component/image/es/Preview/index.js.map +1 -1
  44. package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js +42 -22
  45. package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js.map +1 -1
  46. package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js +18 -54
  47. package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js.map +1 -1
  48. package/dist/node_modules/@rc-component/resize-observer/es/index.js.map +1 -1
  49. package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js +50 -0
  50. package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js.map +1 -0
  51. package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js +50 -50
  52. package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js.map +1 -1
  53. package/dist/node_modules/@rc-component/select/es/SelectInput/index.js +85 -80
  54. package/dist/node_modules/@rc-component/select/es/SelectInput/index.js.map +1 -1
  55. package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js +85 -80
  56. package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js.map +1 -1
  57. package/dist/node_modules/@rc-component/trigger/es/Popup/index.js +74 -72
  58. package/dist/node_modules/@rc-component/trigger/es/Popup/index.js.map +1 -1
  59. package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js +10 -9
  60. package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js.map +1 -1
  61. package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js +27 -27
  62. package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js.map +1 -1
  63. package/dist/node_modules/@rc-component/trigger/es/index.js +150 -140
  64. package/dist/node_modules/@rc-component/trigger/es/index.js.map +1 -1
  65. package/dist/node_modules/@rc-component/util/es/Dom/focus.js +65 -20
  66. package/dist/node_modules/@rc-component/util/es/Dom/focus.js.map +1 -1
  67. package/dist/node_modules/@rc-component/util/es/ref.js +1 -1
  68. package/dist/node_modules/antd/es/_util/wave/WaveEffect.js +53 -48
  69. package/dist/node_modules/antd/es/_util/wave/WaveEffect.js.map +1 -1
  70. package/dist/node_modules/antd/es/_util/wave/style.js +8 -7
  71. package/dist/node_modules/antd/es/_util/wave/style.js.map +1 -1
  72. package/dist/node_modules/antd/es/alert/Alert.js +133 -128
  73. package/dist/node_modules/antd/es/alert/Alert.js.map +1 -1
  74. package/dist/node_modules/antd/es/badge/Badge.js +29 -28
  75. package/dist/node_modules/antd/es/badge/Badge.js.map +1 -1
  76. package/dist/node_modules/antd/es/badge/style/index.js +1 -1
  77. package/dist/node_modules/antd/es/badge/style/index.js.map +1 -1
  78. package/dist/node_modules/antd/es/button/buttonHelpers.js +47 -41
  79. package/dist/node_modules/antd/es/button/buttonHelpers.js.map +1 -1
  80. package/dist/node_modules/antd/es/button/style/variant.js +132 -132
  81. package/dist/node_modules/antd/es/button/style/variant.js.map +1 -1
  82. package/dist/node_modules/antd/es/calendar/generateCalendar.js +55 -57
  83. package/dist/node_modules/antd/es/calendar/generateCalendar.js.map +1 -1
  84. package/dist/node_modules/antd/es/calendar/style/index.js +18 -18
  85. package/dist/node_modules/antd/es/calendar/style/index.js.map +1 -1
  86. package/dist/node_modules/antd/es/card/CardGrid.js.map +1 -1
  87. package/dist/node_modules/antd/es/card/style/index.js +15 -7
  88. package/dist/node_modules/antd/es/card/style/index.js.map +1 -1
  89. package/dist/node_modules/antd/es/checkbox/Group.js +32 -30
  90. package/dist/node_modules/antd/es/checkbox/Group.js.map +1 -1
  91. package/dist/node_modules/antd/es/collapse/Collapse.js +61 -61
  92. package/dist/node_modules/antd/es/collapse/Collapse.js.map +1 -1
  93. package/dist/node_modules/antd/es/config-provider/index.js +76 -71
  94. package/dist/node_modules/antd/es/config-provider/index.js.map +1 -1
  95. package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js +29 -31
  96. package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js.map +1 -1
  97. package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js +7 -9
  98. package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js.map +1 -1
  99. package/dist/node_modules/antd/es/date-picker/generatePicker/{SuffixIcon.js → useSuffixIcon.js} +4 -4
  100. package/dist/node_modules/antd/es/date-picker/generatePicker/useSuffixIcon.js.map +1 -0
  101. package/dist/node_modules/antd/es/date-picker/style/panel.js +4 -4
  102. package/dist/node_modules/antd/es/date-picker/style/panel.js.map +1 -1
  103. package/dist/node_modules/antd/es/drawer/useFocusable.js +14 -0
  104. package/dist/node_modules/antd/es/drawer/useFocusable.js.map +1 -0
  105. package/dist/node_modules/antd/es/form/style/index.js +24 -24
  106. package/dist/node_modules/antd/es/form/style/index.js.map +1 -1
  107. package/dist/node_modules/antd/es/grid/col.js +56 -54
  108. package/dist/node_modules/antd/es/grid/col.js.map +1 -1
  109. package/dist/node_modules/antd/es/grid/style/index.js +50 -50
  110. package/dist/node_modules/antd/es/grid/style/index.js.map +1 -1
  111. package/dist/node_modules/antd/es/input/style/index.js +1 -0
  112. package/dist/node_modules/antd/es/input/style/index.js.map +1 -1
  113. package/dist/node_modules/antd/es/input-number/index.js +91 -91
  114. package/dist/node_modules/antd/es/input-number/index.js.map +1 -1
  115. package/dist/node_modules/antd/es/input-number/style/index.js +80 -79
  116. package/dist/node_modules/antd/es/input-number/style/index.js.map +1 -1
  117. package/dist/node_modules/antd/es/layout/style/sider.js +9 -9
  118. package/dist/node_modules/antd/es/layout/style/sider.js.map +1 -1
  119. package/dist/node_modules/antd/es/menu/MenuItem.js +6 -6
  120. package/dist/node_modules/antd/es/menu/MenuItem.js.map +1 -1
  121. package/dist/node_modules/antd/es/menu/SubMenu.js +8 -8
  122. package/dist/node_modules/antd/es/menu/SubMenu.js.map +1 -1
  123. package/dist/node_modules/antd/es/menu/style/horizontal.js +1 -1
  124. package/dist/node_modules/antd/es/menu/style/horizontal.js.map +1 -1
  125. package/dist/node_modules/antd/es/menu/style/index.js +58 -58
  126. package/dist/node_modules/antd/es/menu/style/index.js.map +1 -1
  127. package/dist/node_modules/antd/es/menu/style/vertical.js +1 -1
  128. package/dist/node_modules/antd/es/menu/style/vertical.js.map +1 -1
  129. package/dist/node_modules/antd/es/modal/ConfirmDialog.js +117 -112
  130. package/dist/node_modules/antd/es/modal/ConfirmDialog.js.map +1 -1
  131. package/dist/node_modules/antd/es/modal/Modal.js +115 -109
  132. package/dist/node_modules/antd/es/modal/Modal.js.map +1 -1
  133. package/dist/node_modules/antd/es/modal/style/index.js +83 -80
  134. package/dist/node_modules/antd/es/modal/style/index.js.map +1 -1
  135. package/dist/node_modules/antd/es/pagination/Pagination.js +85 -81
  136. package/dist/node_modules/antd/es/pagination/Pagination.js.map +1 -1
  137. package/dist/node_modules/antd/es/pagination/style/bordered.js +2 -2
  138. package/dist/node_modules/antd/es/pagination/style/bordered.js.map +1 -1
  139. package/dist/node_modules/antd/es/pagination/style/index.js +98 -132
  140. package/dist/node_modules/antd/es/pagination/style/index.js.map +1 -1
  141. package/dist/node_modules/antd/es/popover/index.js +77 -82
  142. package/dist/node_modules/antd/es/popover/index.js.map +1 -1
  143. package/dist/node_modules/antd/es/popover/style/index.js +65 -63
  144. package/dist/node_modules/antd/es/popover/style/index.js.map +1 -1
  145. package/dist/node_modules/antd/es/radio/context.js +3 -3
  146. package/dist/node_modules/antd/es/radio/context.js.map +1 -1
  147. package/dist/node_modules/antd/es/radio/group.js +31 -29
  148. package/dist/node_modules/antd/es/radio/group.js.map +1 -1
  149. package/dist/node_modules/antd/es/radio/style/index.js +1 -1
  150. package/dist/node_modules/antd/es/radio/style/index.js.map +1 -1
  151. package/dist/node_modules/antd/es/select/style/dropdown.js +1 -1
  152. package/dist/node_modules/antd/es/select/style/dropdown.js.map +1 -1
  153. package/dist/node_modules/antd/es/select/style/select-input-multiple.js +71 -69
  154. package/dist/node_modules/antd/es/select/style/select-input-multiple.js.map +1 -1
  155. package/dist/node_modules/antd/es/select/style/select-input.js +104 -98
  156. package/dist/node_modules/antd/es/select/style/select-input.js.map +1 -1
  157. package/dist/node_modules/antd/es/space/Item.js +2 -2
  158. package/dist/node_modules/antd/es/space/Item.js.map +1 -1
  159. package/dist/node_modules/antd/es/space/index.js +4 -4
  160. package/dist/node_modules/antd/es/space/index.js.map +1 -1
  161. package/dist/node_modules/antd/es/space/style/addon.js +47 -46
  162. package/dist/node_modules/antd/es/space/style/addon.js.map +1 -1
  163. package/dist/node_modules/antd/es/steps/PanelArrow.js +2 -2
  164. package/dist/node_modules/antd/es/steps/PanelArrow.js.map +1 -1
  165. package/dist/node_modules/antd/es/steps/ProgressIcon.js +12 -10
  166. package/dist/node_modules/antd/es/steps/ProgressIcon.js.map +1 -1
  167. package/dist/node_modules/antd/es/steps/index.js +108 -106
  168. package/dist/node_modules/antd/es/steps/index.js.map +1 -1
  169. package/dist/node_modules/antd/es/steps/style/horizontal.js +13 -11
  170. package/dist/node_modules/antd/es/steps/style/horizontal.js.map +1 -1
  171. package/dist/node_modules/antd/es/steps/style/icon.js +23 -18
  172. package/dist/node_modules/antd/es/steps/style/icon.js.map +1 -1
  173. package/dist/node_modules/antd/es/steps/style/index.js +41 -41
  174. package/dist/node_modules/antd/es/steps/style/index.js.map +1 -1
  175. package/dist/node_modules/antd/es/steps/style/inline.js +28 -23
  176. package/dist/node_modules/antd/es/steps/style/inline.js.map +1 -1
  177. package/dist/node_modules/antd/es/steps/style/label-placement.js +44 -39
  178. package/dist/node_modules/antd/es/steps/style/label-placement.js.map +1 -1
  179. package/dist/node_modules/antd/es/steps/style/nav.js +29 -27
  180. package/dist/node_modules/antd/es/steps/style/nav.js.map +1 -1
  181. package/dist/node_modules/antd/es/steps/style/panel.js +61 -56
  182. package/dist/node_modules/antd/es/steps/style/panel.js.map +1 -1
  183. package/dist/node_modules/antd/es/steps/style/progress-dot.js +28 -26
  184. package/dist/node_modules/antd/es/steps/style/progress-dot.js.map +1 -1
  185. package/dist/node_modules/antd/es/steps/style/progress.js +24 -57
  186. package/dist/node_modules/antd/es/steps/style/progress.js.map +1 -1
  187. package/dist/node_modules/antd/es/steps/style/rtl.js +10 -8
  188. package/dist/node_modules/antd/es/steps/style/rtl.js.map +1 -1
  189. package/dist/node_modules/antd/es/steps/style/small.js +21 -16
  190. package/dist/node_modules/antd/es/steps/style/small.js.map +1 -1
  191. package/dist/node_modules/antd/es/steps/style/status.js +187 -176
  192. package/dist/node_modules/antd/es/steps/style/status.js.map +1 -1
  193. package/dist/node_modules/antd/es/steps/style/util.js +18 -16
  194. package/dist/node_modules/antd/es/steps/style/util.js.map +1 -1
  195. package/dist/node_modules/antd/es/steps/style/vertical.js +21 -16
  196. package/dist/node_modules/antd/es/steps/style/vertical.js.map +1 -1
  197. package/dist/node_modules/antd/es/style/placementArrow.js +31 -29
  198. package/dist/node_modules/antd/es/style/placementArrow.js.map +1 -1
  199. package/dist/node_modules/antd/es/table/InternalTable.js +65 -62
  200. package/dist/node_modules/antd/es/table/InternalTable.js.map +1 -1
  201. package/dist/node_modules/antd/es/table/TableMeasureRowContext.js +6 -0
  202. package/dist/node_modules/antd/es/table/TableMeasureRowContext.js.map +1 -0
  203. package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js +145 -137
  204. package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js.map +1 -1
  205. package/dist/node_modules/antd/es/table/style/index.js +3 -3
  206. package/dist/node_modules/antd/es/table/style/index.js.map +1 -1
  207. package/dist/node_modules/antd/es/table/style/radius.js +10 -0
  208. package/dist/node_modules/antd/es/table/style/radius.js.map +1 -1
  209. package/dist/node_modules/antd/es/table/style/virtual.js +5 -5
  210. package/dist/node_modules/antd/es/table/style/virtual.js.map +1 -1
  211. package/dist/node_modules/antd/es/theme/util/genStyleUtils.js +29 -32
  212. package/dist/node_modules/antd/es/theme/util/genStyleUtils.js.map +1 -1
  213. package/dist/node_modules/antd/es/timeline/Timeline.js +76 -74
  214. package/dist/node_modules/antd/es/timeline/Timeline.js.map +1 -1
  215. package/dist/node_modules/antd/es/timeline/style/horizontal.js +21 -18
  216. package/dist/node_modules/antd/es/timeline/style/horizontal.js.map +1 -1
  217. package/dist/node_modules/antd/es/timeline/style/index.js +85 -70
  218. package/dist/node_modules/antd/es/timeline/style/index.js.map +1 -1
  219. package/dist/node_modules/antd/es/timeline/useItems.js +38 -37
  220. package/dist/node_modules/antd/es/timeline/useItems.js.map +1 -1
  221. package/dist/node_modules/antd/es/tooltip/PurePanel.js +27 -27
  222. package/dist/node_modules/antd/es/tooltip/PurePanel.js.map +1 -1
  223. package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js +17 -22
  224. package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js.map +1 -1
  225. package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js +27 -26
  226. package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js.map +1 -1
  227. package/dist/node_modules/antd/es/tooltip/index.js +50 -50
  228. package/dist/node_modules/antd/es/tooltip/index.js.map +1 -1
  229. package/dist/node_modules/antd/es/tooltip/style/index.js +55 -52
  230. package/dist/node_modules/antd/es/tooltip/style/index.js.map +1 -1
  231. package/dist/node_modules/antd/es/tooltip/util.js +13 -12
  232. package/dist/node_modules/antd/es/tooltip/util.js.map +1 -1
  233. package/dist/node_modules/antd/es/tree/DirectoryTree.js +42 -41
  234. package/dist/node_modules/antd/es/tree/DirectoryTree.js.map +1 -1
  235. package/dist/node_modules/antd/es/version/version.js +1 -1
  236. package/dist/node_modules/antd/es/version/version.js.map +1 -1
  237. package/dist/node_modules/canvg/lib/index.es.js +84 -84
  238. package/dist/node_modules/canvg/lib/index.es.js.map +1 -1
  239. package/dist/node_modules/compute-scroll-into-view/dist/index.js +17 -17
  240. package/dist/node_modules/compute-scroll-into-view/dist/index.js.map +1 -1
  241. package/dist/node_modules/dompurify/dist/purify.es.js +217 -223
  242. package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
  243. package/dist/node_modules/fflate/esm/browser.js +295 -335
  244. package/dist/node_modules/fflate/esm/browser.js.map +1 -1
  245. package/dist/node_modules/jspdf/dist/jspdf.es.min.js +1771 -1781
  246. package/dist/node_modules/jspdf/dist/jspdf.es.min.js.map +1 -1
  247. package/dist/node_modules/raf/index.js +1 -1
  248. package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
  249. package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
  250. package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
  251. package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
  252. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
  253. package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
  254. package/dist/node_modules/uuid/dist/esm-browser/v4.js +6 -9
  255. package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
  256. package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
  257. package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
  258. package/package.json +1 -1
  259. package/dist/node_modules/antd/es/date-picker/generatePicker/SuffixIcon.js.map +0 -1
  260. package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
  261. package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
@@ -1,107 +1,102 @@
1
- import $ from "../../../vite-plugin-node-polyfills/shims/process/dist/index.js";
1
+ import i from "../../../vite-plugin-node-polyfills/shims/process/dist/index.js";
2
2
  import * as a from "react";
3
- import { isValidElement as G } from "react";
4
- import H from "../../../@rc-component/util/es/KeyCode.js";
5
- import { clsx as J } from "../../../clsx/dist/clsx.js";
6
- import { getRenderPropValue as w } from "../_util/getRenderPropValue.js";
7
- import { getTransitionName as Q } from "../_util/motion.js";
8
- import { cloneElement as X } from "../_util/reactNode.js";
9
- import { useComponentConfig as Z } from "../config-provider/context.js";
10
- import ee from "../tooltip/index.js";
11
- import oe from "../tooltip/hook/useMergedArrow.js";
12
- import re, { Overlay as te } from "./PurePanel.js";
13
- import ne from "./style/index.js";
14
- import se from "../../../@rc-component/util/es/hooks/useControlledState.js";
15
- import { useMergeSemantic as ae } from "../_util/hooks/useMergeSemantic.js";
16
- const me = /* @__PURE__ */ a.forwardRef((o, v) => {
3
+ import { clsx as Y } from "../../../clsx/dist/clsx.js";
4
+ import { getRenderPropValue as C } from "../_util/getRenderPropValue.js";
5
+ import { getTransitionName as $ } from "../_util/motion.js";
6
+ import { devUseWarning as G } from "../_util/warning.js";
7
+ import { useComponentConfig as H } from "../config-provider/context.js";
8
+ import J from "../tooltip/index.js";
9
+ import K from "../tooltip/hook/useMergedArrow.js";
10
+ import Q, { Overlay as X } from "./PurePanel.js";
11
+ import Z from "./style/index.js";
12
+ import ee from "../../../@rc-component/util/es/hooks/useControlledState.js";
13
+ import { useMergeSemantic as oe } from "../_util/hooks/useMergeSemantic.js";
14
+ const re = /* @__PURE__ */ a.forwardRef((e, P) => {
17
15
  const {
18
- prefixCls: P,
19
- title: D,
16
+ prefixCls: w,
17
+ title: O,
20
18
  content: E,
21
- overlayClassName: O,
22
- placement: m = "top",
23
- trigger: S,
24
- children: n,
25
- mouseEnterDelay: l = 0.1,
26
- mouseLeaveDelay: i = 0.1,
27
- onOpenChange: h,
19
+ overlayClassName: h,
20
+ placement: l = "top",
21
+ trigger: D,
22
+ children: S,
23
+ mouseEnterDelay: m = 0.1,
24
+ mouseLeaveDelay: p = 0.1,
25
+ onOpenChange: n,
28
26
  overlayStyle: c = {},
29
- styles: p,
30
- classNames: f,
31
- motion: g,
32
- arrow: A,
33
- ...I
34
- } = o, {
35
- getPrefixCls: y,
36
- className: K,
37
- style: T,
38
- classNames: V,
27
+ styles: f,
28
+ classNames: g,
29
+ motion: d,
30
+ arrow: T,
31
+ ...V
32
+ } = e, {
33
+ getPrefixCls: u,
34
+ className: A,
35
+ style: _,
36
+ classNames: I,
39
37
  styles: R,
40
38
  arrow: z,
41
39
  trigger: L
42
- } = Z("popover"), s = y("popover", P), [M, _] = ne(s), b = y(), j = oe(A, z), d = S || L || "hover", k = {
43
- ...o,
44
- placement: m,
45
- trigger: d,
46
- mouseEnterDelay: l,
47
- mouseLeaveDelay: i,
40
+ } = H("popover"), s = u("popover", w), [M, U] = Z(s), W = u(), b = K(T, z), N = D || L || "hover";
41
+ if (i.env.NODE_ENV !== "production") {
42
+ const t = G("Popover");
43
+ i.env.NODE_ENV !== "production" && t(!n || n.length <= 1, "usage", "The second `onOpenChange` parameter is internal and unsupported. Please lock to a previous version if needed.");
44
+ }
45
+ const j = {
46
+ ...e,
47
+ placement: l,
48
+ trigger: N,
49
+ mouseEnterDelay: m,
50
+ mouseLeaveDelay: p,
48
51
  overlayStyle: c,
49
- styles: p,
50
- classNames: f
51
- }, [r, t] = ae([V, f], [R, p], {
52
- props: k
53
- }), q = J(O, M, _, K, r.root), [B, F] = se(o.defaultOpen ?? !1, o.open), C = (e, Y) => {
54
- F(e), h?.(e, Y);
55
- }, U = (e) => {
56
- e.keyCode === H.ESC && C(!1, e);
57
- }, W = (e) => {
58
- C(e);
59
- }, u = w(D), N = w(E);
60
- return /* @__PURE__ */ a.createElement(ee, {
52
+ styles: f,
53
+ classNames: g
54
+ }, [o, r] = oe([I, g], [R, f], {
55
+ props: j
56
+ }), k = Y(h, M, U, A, o.root), [q, B] = ee(e.defaultOpen ?? !1, e.open), F = (t) => {
57
+ B(t), n?.(t);
58
+ }, v = C(O), y = C(E);
59
+ return /* @__PURE__ */ a.createElement(J, {
61
60
  unique: !1,
62
- arrow: j,
63
- placement: m,
64
- trigger: d,
65
- mouseEnterDelay: l,
66
- mouseLeaveDelay: i,
67
- ...I,
61
+ arrow: b,
62
+ placement: l,
63
+ trigger: N,
64
+ mouseEnterDelay: m,
65
+ mouseLeaveDelay: p,
66
+ ...V,
68
67
  prefixCls: s,
69
68
  classNames: {
70
- root: q,
71
- container: r.container,
72
- arrow: r.arrow
69
+ root: k,
70
+ container: o.container,
71
+ arrow: o.arrow
73
72
  },
74
73
  styles: {
75
74
  root: {
76
- ...t.root,
77
- ...T,
75
+ ...r.root,
76
+ ..._,
78
77
  ...c
79
78
  },
80
- container: t.container,
81
- arrow: t.arrow
79
+ container: r.container,
80
+ arrow: r.arrow
82
81
  },
83
- ref: v,
84
- open: B,
85
- onOpenChange: W,
86
- overlay: u || N ? /* @__PURE__ */ a.createElement(te, {
82
+ ref: P,
83
+ open: q,
84
+ onOpenChange: F,
85
+ overlay: v || y ? /* @__PURE__ */ a.createElement(X, {
87
86
  prefixCls: s,
88
- title: u,
89
- content: N,
90
- classNames: r,
91
- styles: t
87
+ title: v,
88
+ content: y,
89
+ classNames: o,
90
+ styles: r
92
91
  }) : null,
93
92
  motion: {
94
- motionName: Q(b, "zoom-big", typeof g?.motionName == "string" ? g?.motionName : void 0)
93
+ motionName: $(W, "zoom-big", typeof d?.motionName == "string" ? d?.motionName : void 0)
95
94
  },
96
95
  "data-popover-inject": !0
97
- }, X(n, {
98
- onKeyDown: (e) => {
99
- /* @__PURE__ */ G(n) && n?.props.onKeyDown?.(e), U(e);
100
- }
101
- }));
102
- }), x = me;
103
- x._InternalPanelDoNotUseOrYouWillBeFired = re;
104
- $.env.NODE_ENV !== "production" && (x.displayName = "Popover");
96
+ }, S);
97
+ }), x = re;
98
+ x._InternalPanelDoNotUseOrYouWillBeFired = Q;
99
+ i.env.NODE_ENV !== "production" && (x.displayName = "Popover");
105
100
  export {
106
101
  x as default
107
102
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../node_modules/antd/es/popover/index.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { isValidElement } from 'react';\nimport { useControlledState } from '@rc-component/util';\nimport KeyCode from \"@rc-component/util/es/KeyCode\";\nimport { clsx } from 'clsx';\nimport { getRenderPropValue } from '../_util/getRenderPropValue';\nimport { useMergeSemantic } from '../_util/hooks';\nimport { getTransitionName } from '../_util/motion';\nimport { cloneElement } from '../_util/reactNode';\nimport { useComponentConfig } from '../config-provider/context';\nimport Tooltip from '../tooltip';\nimport useMergedArrow from '../tooltip/hook/useMergedArrow';\nimport PurePanel, { Overlay } from './PurePanel';\n// CSSINJS\nimport useStyle from './style';\nconst InternalPopover = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n title,\n content,\n overlayClassName,\n placement = 'top',\n trigger,\n children,\n mouseEnterDelay = 0.1,\n mouseLeaveDelay = 0.1,\n onOpenChange,\n overlayStyle = {},\n styles,\n classNames,\n motion,\n arrow: popoverArrow,\n ...restProps\n } = props;\n const {\n getPrefixCls,\n className: contextClassName,\n style: contextStyle,\n classNames: contextClassNames,\n styles: contextStyles,\n arrow: contextArrow,\n trigger: contextTrigger\n } = useComponentConfig('popover');\n const prefixCls = getPrefixCls('popover', customizePrefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls);\n const rootPrefixCls = getPrefixCls();\n const mergedArrow = useMergedArrow(popoverArrow, contextArrow);\n const mergedTrigger = trigger || contextTrigger || 'hover';\n // ============================= Styles =============================\n const mergedProps = {\n ...props,\n placement,\n trigger: mergedTrigger,\n mouseEnterDelay,\n mouseLeaveDelay,\n overlayStyle,\n styles,\n classNames\n };\n const [mergedClassNames, mergedStyles] = useMergeSemantic([contextClassNames, classNames], [contextStyles, styles], {\n props: mergedProps\n });\n const rootClassNames = clsx(overlayClassName, hashId, cssVarCls, contextClassName, mergedClassNames.root);\n const [open, setOpen] = useControlledState(props.defaultOpen ?? false, props.open);\n const settingOpen = (value, e) => {\n setOpen(value);\n onOpenChange?.(value, e);\n };\n const onKeyDown = e => {\n if (e.keyCode === KeyCode.ESC) {\n settingOpen(false, e);\n }\n };\n const onInternalOpenChange = value => {\n settingOpen(value);\n };\n const titleNode = getRenderPropValue(title);\n const contentNode = getRenderPropValue(content);\n return /*#__PURE__*/React.createElement(Tooltip, {\n unique: false,\n arrow: mergedArrow,\n placement: placement,\n trigger: mergedTrigger,\n mouseEnterDelay: mouseEnterDelay,\n mouseLeaveDelay: mouseLeaveDelay,\n ...restProps,\n prefixCls: prefixCls,\n classNames: {\n root: rootClassNames,\n container: mergedClassNames.container,\n arrow: mergedClassNames.arrow\n },\n styles: {\n root: {\n ...mergedStyles.root,\n ...contextStyle,\n ...overlayStyle\n },\n container: mergedStyles.container,\n arrow: mergedStyles.arrow\n },\n ref: ref,\n open: open,\n onOpenChange: onInternalOpenChange,\n overlay: titleNode || contentNode ? (/*#__PURE__*/React.createElement(Overlay, {\n prefixCls: prefixCls,\n title: titleNode,\n content: contentNode,\n classNames: mergedClassNames,\n styles: mergedStyles\n })) : null,\n motion: {\n motionName: getTransitionName(rootPrefixCls, 'zoom-big', typeof motion?.motionName === 'string' ? motion?.motionName : undefined)\n },\n \"data-popover-inject\": true\n }, cloneElement(children, {\n onKeyDown: e => {\n if (/*#__PURE__*/isValidElement(children)) {\n children?.props.onKeyDown?.(e);\n }\n onKeyDown(e);\n }\n }));\n});\nconst Popover = InternalPopover;\nPopover._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nif (process.env.NODE_ENV !== 'production') {\n Popover.displayName = 'Popover';\n}\nexport default Popover;"],"names":["InternalPopover","React","props","ref","customizePrefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames","motion","popoverArrow","restProps","getPrefixCls","contextClassName","contextStyle","contextClassNames","contextStyles","contextArrow","contextTrigger","useComponentConfig","prefixCls","hashId","cssVarCls","useStyle","rootPrefixCls","mergedArrow","useMergedArrow","mergedTrigger","mergedProps","mergedClassNames","mergedStyles","useMergeSemantic","rootClassNames","clsx","open","setOpen","useControlledState","settingOpen","value","e","onKeyDown","KeyCode","onInternalOpenChange","titleNode","getRenderPropValue","contentNode","Tooltip","Overlay","getTransitionName","cloneElement","isValidElement","Popover","PurePanel","process"],"mappings":";;;;;;;;;;;;;;;AAiBA,MAAMA,KAA+B,gBAAAC,EAAM,WAAW,CAACC,GAAOC,MAAQ;AACpE,QAAM;AAAA,IACJ,WAAWC;AAAA,IACX,OAAAC;AAAA,IACA,SAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,SAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC,IAAkB;AAAA,IAClB,iBAAAC,IAAkB;AAAA,IAClB,cAAAC;AAAA,IACA,cAAAC,IAAe,CAAA;AAAA,IACf,QAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAAC;AAAA,IACA,OAAOC;AAAA,IACP,GAAGC;AAAA,EACP,IAAMjB,GACE;AAAA,IACJ,cAAAkB;AAAA,IACA,WAAWC;AAAA,IACX,OAAOC;AAAA,IACP,YAAYC;AAAA,IACZ,QA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,YAAY;AAAA,MACV,MAAMY;AAAA,MACN,WAAWH,EAAiB;AAAA,MAC5B,OAAOA,EAAiB;AAAA,IAC9B;AAAA,IACI,QAAQ;AAAA,MACN,MAAM;AAAA,QACJ,GAAGC,EAAa;AAAA,QAChB,GAAGhB;AAAA,QACH,GAAGR;AAAA,MACX;AAAA,MACM,WAAWwB,EAAa;AAAA,MACxB,OAAOA,EAAa;AAAA,IAC1B;AAAA,IACI,KAAKnC;AAAA,IACL,MAAMuC;AAAA,IACN,cAAcQ;AAAA,IACd,SAASC,KAAaE,IAA4B,gBAAApD,EAAM,cAAcsD,IAAS;AAAA,MAC7E,WAAW3B;AAAA,MACX,OAAOuB;AAAA,MACP,SAASE;AAAA,MACT,YAAYhB;AAAA,MACZ,QAAQC;AAAA,IACd,CAAK,IAAK;AAAA,IACN,QAAQ;AAAA,MACN,YAAYkB,EAAkBxB,GAAe,YAAY,OAAOf,GAAQ,cAAe,WAAWA,GAAQ,aAAa,MAAS;AAAA,IACtI;AAAA,IACI,uBAAuB;AAAA,EAC3B,GAAKwC,EAAa/C,GAAU;AAAA,IACxB,WAAW,OAAK;AACd,MAAiB,gBAAAgD,EAAehD,CAAQ,KACtCA,GAAU,MAAM,YAAY,CAAC,GAE/BsC,EAAU,CAAC;AAAA,IACb;AAAA,EACJ,CAAG,CAAC;AACJ,CAAC,GACKW,IAAU3D;AAChB2D,EAAQ,yCAAyCC;AAC7CC,EAAQ,IAAI,aAAa,iBAC3BF,EAAQ,cAAc;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/antd/es/popover/index.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { useControlledState } from '@rc-component/util';\nimport { clsx } from 'clsx';\nimport { getRenderPropValue } from '../_util/getRenderPropValue';\nimport { useMergeSemantic } from '../_util/hooks';\nimport { getTransitionName } from '../_util/motion';\nimport { devUseWarning } from '../_util/warning';\nimport { useComponentConfig } from '../config-provider/context';\nimport Tooltip from '../tooltip';\nimport useMergedArrow from '../tooltip/hook/useMergedArrow';\nimport PurePanel, { Overlay } from './PurePanel';\n// CSSINJS\nimport useStyle from './style';\nconst InternalPopover = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n title,\n content,\n overlayClassName,\n placement = 'top',\n trigger,\n children,\n mouseEnterDelay = 0.1,\n mouseLeaveDelay = 0.1,\n onOpenChange,\n overlayStyle = {},\n styles,\n classNames,\n motion,\n arrow: popoverArrow,\n ...restProps\n } = props;\n const {\n getPrefixCls,\n className: contextClassName,\n style: contextStyle,\n classNames: contextClassNames,\n styles: contextStyles,\n arrow: contextArrow,\n trigger: contextTrigger\n } = useComponentConfig('popover');\n const prefixCls = getPrefixCls('popover', customizePrefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls);\n const rootPrefixCls = getPrefixCls();\n const mergedArrow = useMergedArrow(popoverArrow, contextArrow);\n const mergedTrigger = trigger || contextTrigger || 'hover';\n // ========================== Warning ===========================\n if (process.env.NODE_ENV !== 'production') {\n const warning = devUseWarning('Popover');\n process.env.NODE_ENV !== \"production\" ? warning(!onOpenChange || onOpenChange.length <= 1, 'usage', 'The second `onOpenChange` parameter is internal and unsupported. Please lock to a previous version if needed.') : void 0;\n }\n // ============================= Styles =============================\n const mergedProps = {\n ...props,\n placement,\n trigger: mergedTrigger,\n mouseEnterDelay,\n mouseLeaveDelay,\n overlayStyle,\n styles,\n classNames\n };\n const [mergedClassNames, mergedStyles] = useMergeSemantic([contextClassNames, classNames], [contextStyles, styles], {\n props: mergedProps\n });\n const rootClassNames = clsx(overlayClassName, hashId, cssVarCls, contextClassName, mergedClassNames.root);\n const [open, setOpen] = useControlledState(props.defaultOpen ?? false, props.open);\n const settingOpen = value => {\n setOpen(value);\n onOpenChange?.(value);\n };\n const titleNode = getRenderPropValue(title);\n const contentNode = getRenderPropValue(content);\n return /*#__PURE__*/React.createElement(Tooltip, {\n unique: false,\n arrow: mergedArrow,\n placement: placement,\n trigger: mergedTrigger,\n mouseEnterDelay: mouseEnterDelay,\n mouseLeaveDelay: mouseLeaveDelay,\n ...restProps,\n prefixCls: prefixCls,\n classNames: {\n root: rootClassNames,\n container: mergedClassNames.container,\n arrow: mergedClassNames.arrow\n },\n styles: {\n root: {\n ...mergedStyles.root,\n ...contextStyle,\n ...overlayStyle\n },\n container: mergedStyles.container,\n arrow: mergedStyles.arrow\n },\n ref: ref,\n open: open,\n onOpenChange: settingOpen,\n overlay: titleNode || contentNode ? (/*#__PURE__*/React.createElement(Overlay, {\n prefixCls: prefixCls,\n title: titleNode,\n content: contentNode,\n classNames: mergedClassNames,\n styles: mergedStyles\n })) : null,\n motion: {\n motionName: getTransitionName(rootPrefixCls, 'zoom-big', typeof motion?.motionName === 'string' ? motion?.motionName : undefined)\n },\n \"data-popover-inject\": true\n }, children);\n});\nconst Popover = InternalPopover;\nPopover._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nif (process.env.NODE_ENV !== 'production') {\n Popover.displayName = 'Popover';\n}\nexport default Popover;"],"names":["InternalPopover","React","props","ref","customizePrefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames","motion","popoverArrow","restProps","getPrefixCls","contextClassName","contextStyle","contextClassNames","contextStyles","contextArrow","contextTrigger","useComponentConfig","prefixCls","hashId","cssVarCls","useStyle","rootPrefixCls","mergedArrow","useMergedArrow","mergedTrigger","process","warning","devUseWarning","mergedProps","mergedClassNames","mergedStyles","useMergeSemantic","rootClassNames","clsx","open","setOpen","useControlledState","settingOpen","value","titleNode","getRenderPropValue","contentNode","Tooltip","Overlay","getTransitionName","Popover","PurePanel"],"mappings":";;;;;;;;;;;;;AAeA,MAAMA,KAA+B,gBAAAC,EAAM,WAAW,CAACC,GAAOC,MAAQ;AACpE,QAAM;AAAA,IACJ,WAAWC;AAAA,IACX,OAAAC;AAAA,IACA,SAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,WAA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AAM,IAAI,GAC3E8C,IAAc,CAAAC,MAAS;AAC3B,IAAAH,EAAQG,CAAK,GACbpC,IAAeoC,CAAK;AAAA,EACtB,GACMC,IAAYC,EAAmB9C,CAAK,GACpC+C,IAAcD,EAAmB7C,CAAO;AAC9C,SAAoB,gBAAAL,EAAM,cAAcoD,GAAS;AAAA,IAC/C,QAAQ;AAAA,IACR,OAAOpB;AAAA,IACP,WAAWzB;AAAA,IACX,SAAS2B;AAAA,IACT,iBAAiBxB;AAAA,IACjB,iBAAiBC;AAAA,IACjB,GAAGO;AAAA,IACH,WAAWS;AAAA,IACX,YAAY;AAAA,MACV,MAAMe;AAAA,MACN,WAAWH,EAAiB;AAAA,MAC5B,OAAOA,EAAiB;AAAA,IAC9B;AAAA,IACI,QAAQ;AAAA,MACN,MAAM;AAAA,QACJ,GAAGC,EAAa;AAAA,QAChB,GAAGnB;AAAA,QACH,GAAGR;AAAA,MACX;AAAA,MACM,WAAW2B,EAAa;AAAA,MACxB,OAAOA,EAAa;AAAA,IAC1B;AAAA,IACI,KAAKtC;AAAA,IACL,MAAM0C;AAAA,IACN,cAAcG;AAAA,IACd,SAASE,KAAaE,IAA4B,gBAAAnD,EAAM,cAAcqD,GAAS;AAAA,MAC7E,WAAW1B;AAAA,MACX,OAAOsB;AAAA,MACP,SAASE;AAAA,MACT,YAAYZ;AAAA,MACZ,QAAQC;AAAA,IACd,CAAK,IAAK;AAAA,IACN,QAAQ;AAAA,MACN,YAAYc,EAAkBvB,GAAe,YAAY,OAAOf,GAAQ,cAAe,WAAWA,GAAQ,aAAa,MAAS;AAAA,IACtI;AAAA,IACI,uBAAuB;AAAA,EAC3B,GAAKP,CAAQ;AACb,CAAC,GACK8C,IAAUxD;AAChBwD,EAAQ,yCAAyCC;AAC7CrB,EAAQ,IAAI,aAAa,iBAC3BoB,EAAQ,cAAc;","x_google_ignoreList":[0]}
@@ -1,32 +1,33 @@
1
- import { resetComponent as x } from "../../style/index.js";
2
- import { initZoomMotion as h } from "../../style/motion/zoom.js";
3
- import v, { getArrowOffsetToken as w } from "../../style/placementArrow.js";
4
- import { getArrowToken as B } from "../../style/roundedArrow.js";
5
- import { genStyleHooks as $ } from "../../theme/util/genStyleUtils.js";
6
- import { merge as b } from "../../../../@ant-design/cssinjs-utils/es/util/statistic.js";
7
- import { PresetColors as P } from "../../theme/interface/presetColors.js";
8
- const S = (t) => {
1
+ import { resetComponent as w } from "../../style/index.js";
2
+ import { initZoomMotion as C } from "../../style/motion/zoom.js";
3
+ import b, { getArrowOffsetToken as P } from "../../style/placementArrow.js";
4
+ import { getArrowToken as S } from "../../style/roundedArrow.js";
5
+ import { genStyleHooks as k, genCssVar as B } from "../../theme/util/genStyleUtils.js";
6
+ import { merge as W } from "../../../../@ant-design/cssinjs-utils/es/util/statistic.js";
7
+ import { PresetColors as T } from "../../theme/interface/presetColors.js";
8
+ const v = "50%", y = (t) => {
9
9
  const {
10
10
  componentCls: o,
11
- popoverColor: e,
12
- titleMinWidth: r,
13
- fontWeightStrong: d,
14
- innerPadding: n,
11
+ popoverColor: n,
12
+ titleMinWidth: e,
13
+ fontWeightStrong: i,
14
+ innerPadding: r,
15
15
  boxShadowSecondary: l,
16
16
  colorTextHeading: p,
17
- borderRadiusLG: c,
18
- zIndexPopup: g,
19
- titleMarginBottom: s,
17
+ borderRadiusLG: s,
18
+ zIndexPopup: c,
19
+ titleMarginBottom: g,
20
20
  colorBgElevated: m,
21
- popoverBg: i,
21
+ popoverBg: a,
22
22
  titleBorderBottom: u,
23
23
  innerContentPadding: f,
24
- titlePadding: a
25
- } = t;
24
+ titlePadding: d,
25
+ antCls: $
26
+ } = t, [h, x] = B($, "tooltip");
26
27
  return [
27
28
  {
28
29
  [o]: {
29
- ...x(t),
30
+ ...w(t),
30
31
  position: "absolute",
31
32
  top: 0,
32
33
  // use `left` to fix https://github.com/ant-design/ant-design/issues/39195
@@ -34,16 +35,16 @@ const S = (t) => {
34
35
  _skip_check_: !0,
35
36
  value: 0
36
37
  },
37
- zIndex: g,
38
+ zIndex: c,
38
39
  fontWeight: "normal",
39
40
  whiteSpace: "normal",
40
41
  textAlign: "start",
41
42
  cursor: "auto",
42
43
  userSelect: "text",
43
44
  // When use `autoArrow`, origin will follow the arrow position
44
- "--valid-offset-x": "var(--arrow-offset-horizontal, var(--arrow-x))",
45
- transformOrigin: ["var(--valid-offset-x, 50%)", "var(--arrow-y, 50%)"].join(" "),
46
- "--antd-arrow-background-color": m,
45
+ [h("valid-offset-x")]: x("arrow-offset-horizontal", "var(--arrow-x)"),
46
+ transformOrigin: [x("valid-offset-x", v), `var(--arrow-y, ${v})`].join(" "),
47
+ [h("arrow-background-color")]: m,
47
48
  width: "max-content",
48
49
  maxWidth: "100vw",
49
50
  "&-rtl": {
@@ -56,28 +57,28 @@ const S = (t) => {
56
57
  position: "relative"
57
58
  },
58
59
  [`${o}-container`]: {
59
- backgroundColor: i,
60
+ backgroundColor: a,
60
61
  backgroundClip: "padding-box",
61
- borderRadius: c,
62
+ borderRadius: s,
62
63
  boxShadow: l,
63
- padding: n
64
+ padding: r
64
65
  },
65
66
  [`${o}-title`]: {
66
- minWidth: r,
67
- marginBottom: s,
67
+ minWidth: e,
68
+ marginBottom: g,
68
69
  color: p,
69
- fontWeight: d,
70
+ fontWeight: i,
70
71
  borderBottom: u,
71
- padding: a
72
+ padding: d
72
73
  },
73
74
  [`${o}-content`]: {
74
- color: e,
75
+ color: n,
75
76
  padding: f
76
77
  }
77
78
  }
78
79
  },
79
80
  // Arrow Style
80
- v(t, "var(--antd-arrow-background-color)"),
81
+ b(t, x("arrow-background-color")),
81
82
  // Pure Render
82
83
  {
83
84
  [`${o}-pure`]: {
@@ -88,16 +89,17 @@ const S = (t) => {
88
89
  }
89
90
  }
90
91
  ];
91
- }, C = (t) => {
92
+ }, z = (t) => {
92
93
  const {
93
- componentCls: o
94
- } = t;
94
+ componentCls: o,
95
+ antCls: n
96
+ } = t, [e] = B(n, "tooltip");
95
97
  return {
96
- [o]: P.map((e) => {
97
- const r = t[`${e}6`];
98
+ [o]: T.map((i) => {
99
+ const r = t[`${i}6`];
98
100
  return {
99
- [`&${o}-${e}`]: {
100
- "--antd-arrow-background-color": r,
101
+ [`&${o}-${i}`]: {
102
+ [e("arrow-background-color")]: r,
101
103
  [`${o}-inner`]: {
102
104
  backgroundColor: r
103
105
  },
@@ -108,50 +110,50 @@ const S = (t) => {
108
110
  };
109
111
  })
110
112
  };
111
- }, k = (t) => {
113
+ }, M = (t) => {
112
114
  const {
113
115
  lineWidth: o,
114
- controlHeight: e,
115
- fontHeight: r,
116
- padding: d,
117
- wireframe: n,
116
+ controlHeight: n,
117
+ fontHeight: e,
118
+ padding: i,
119
+ wireframe: r,
118
120
  zIndexPopupBase: l,
119
121
  borderRadiusLG: p,
120
- marginXS: c,
121
- lineType: g,
122
- colorSplit: s,
122
+ marginXS: s,
123
+ lineType: c,
124
+ colorSplit: g,
123
125
  paddingSM: m
124
- } = t, i = e - r, u = i / 2, f = i / 2 - o, a = d;
126
+ } = t, a = n - e, u = a / 2, f = a / 2 - o, d = i;
125
127
  return {
126
128
  titleMinWidth: 177,
127
129
  zIndexPopup: l + 30,
128
- ...B(t),
129
- ...w({
130
+ ...S(t),
131
+ ...P({
130
132
  contentRadius: p,
131
133
  limitVerticalRadius: !0
132
134
  }),
133
135
  // internal
134
- innerPadding: n ? 0 : 12,
135
- titleMarginBottom: n ? 0 : c,
136
- titlePadding: n ? `${u}px ${a}px ${f}px` : 0,
137
- titleBorderBottom: n ? `${o}px ${g} ${s}` : "none",
138
- innerContentPadding: n ? `${m}px ${a}px` : 0
136
+ innerPadding: r ? 0 : 12,
137
+ titleMarginBottom: r ? 0 : s,
138
+ titlePadding: r ? `${u}px ${d}px ${f}px` : 0,
139
+ titleBorderBottom: r ? `${o}px ${c} ${g}` : "none",
140
+ innerContentPadding: r ? `${m}px ${d}px` : 0
139
141
  };
140
- }, R = $("Popover", (t) => {
142
+ }, N = k("Popover", (t) => {
141
143
  const {
142
144
  colorBgElevated: o,
143
- colorText: e
144
- } = t, r = b(t, {
145
+ colorText: n
146
+ } = t, e = W(t, {
145
147
  popoverBg: o,
146
- popoverColor: e
148
+ popoverColor: n
147
149
  });
148
- return [S(r), C(r), h(r, "zoom-big")];
149
- }, k, {
150
+ return [y(e), z(e), C(e, "zoom-big")];
151
+ }, M, {
150
152
  resetStyle: !1,
151
153
  deprecatedTokens: [["width", "titleMinWidth"], ["minWidth", "titleMinWidth"]]
152
154
  });
153
155
  export {
154
- R as default,
155
- k as prepareComponentToken
156
+ N as default,
157
+ M as prepareComponentToken
156
158
  };
157
159
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/popover/style/index.js"],"sourcesContent":["import { resetComponent } from '../../style';\nimport { initZoomMotion } from '../../style/motion';\nimport getArrowStyle, { getArrowOffsetToken } from '../../style/placementArrow';\nimport { getArrowToken } from '../../style/roundedArrow';\nimport { genStyleHooks, mergeToken, PresetColors } from '../../theme/internal';\nconst genBaseStyle = token => {\n const {\n componentCls,\n popoverColor,\n titleMinWidth,\n fontWeightStrong,\n innerPadding,\n boxShadowSecondary,\n colorTextHeading,\n borderRadiusLG,\n zIndexPopup,\n titleMarginBottom,\n colorBgElevated,\n popoverBg,\n titleBorderBottom,\n innerContentPadding,\n titlePadding\n } = token;\n return [{\n [componentCls]: {\n ...resetComponent(token),\n position: 'absolute',\n top: 0,\n // use `left` to fix https://github.com/ant-design/ant-design/issues/39195\n left: {\n _skip_check_: true,\n value: 0\n },\n zIndex: zIndexPopup,\n fontWeight: 'normal',\n whiteSpace: 'normal',\n textAlign: 'start',\n cursor: 'auto',\n userSelect: 'text',\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 '--antd-arrow-background-color': colorBgElevated,\n width: 'max-content',\n maxWidth: '100vw',\n '&-rtl': {\n direction: 'rtl'\n },\n '&-hidden': {\n display: 'none'\n },\n [`${componentCls}-content`]: {\n position: 'relative'\n },\n [`${componentCls}-container`]: {\n backgroundColor: popoverBg,\n backgroundClip: 'padding-box',\n borderRadius: borderRadiusLG,\n boxShadow: boxShadowSecondary,\n padding: innerPadding\n },\n [`${componentCls}-title`]: {\n minWidth: titleMinWidth,\n marginBottom: titleMarginBottom,\n color: colorTextHeading,\n fontWeight: fontWeightStrong,\n borderBottom: titleBorderBottom,\n padding: titlePadding\n },\n [`${componentCls}-content`]: {\n color: popoverColor,\n padding: innerContentPadding\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 display: 'inline-block'\n }\n }];\n};\nconst genColorStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [componentCls]: PresetColors.map(colorKey => {\n const lightColor = token[`${colorKey}6`];\n return {\n [`&${componentCls}-${colorKey}`]: {\n '--antd-arrow-background-color': lightColor,\n [`${componentCls}-inner`]: {\n backgroundColor: lightColor\n },\n [`${componentCls}-arrow`]: {\n background: 'transparent'\n }\n }\n };\n })\n };\n};\nexport const prepareComponentToken = token => {\n const {\n lineWidth,\n controlHeight,\n fontHeight,\n padding,\n wireframe,\n zIndexPopupBase,\n borderRadiusLG,\n marginXS,\n lineType,\n colorSplit,\n paddingSM\n } = token;\n const titlePaddingBlockDist = controlHeight - fontHeight;\n const popoverTitlePaddingBlockTop = titlePaddingBlockDist / 2;\n const popoverTitlePaddingBlockBottom = titlePaddingBlockDist / 2 - lineWidth;\n const popoverPaddingHorizontal = padding;\n return {\n titleMinWidth: 177,\n zIndexPopup: zIndexPopupBase + 30,\n ...getArrowToken(token),\n ...getArrowOffsetToken({\n contentRadius: borderRadiusLG,\n limitVerticalRadius: true\n }),\n // internal\n innerPadding: wireframe ? 0 : 12,\n titleMarginBottom: wireframe ? 0 : marginXS,\n titlePadding: wireframe ? `${popoverTitlePaddingBlockTop}px ${popoverPaddingHorizontal}px ${popoverTitlePaddingBlockBottom}px` : 0,\n titleBorderBottom: wireframe ? `${lineWidth}px ${lineType} ${colorSplit}` : 'none',\n innerContentPadding: wireframe ? `${paddingSM}px ${popoverPaddingHorizontal}px` : 0\n };\n};\nexport default genStyleHooks('Popover', token => {\n const {\n colorBgElevated,\n colorText\n } = token;\n const popoverToken = mergeToken(token, {\n popoverBg: colorBgElevated,\n popoverColor: colorText\n });\n return [genBaseStyle(popoverToken), genColorStyle(popoverToken), initZoomMotion(popoverToken, 'zoom-big')];\n}, prepareComponentToken, {\n resetStyle: false,\n deprecatedTokens: [['width', 'titleMinWidth'], ['minWidth', 'titleMinWidth']]\n});"],"names":["genBaseStyle","token","componentCls","popoverColor","titleMinWidth","fontWeightStrong","innerPadding","boxShadowSecondary","colorTextHeading","borderRadiusLG","zIndexPopup","titleMarginBottom","colorBgElevated","popoverBg","titleBorderBottom","innerContentPadding","titlePadding","resetComponent","getArrowStyle","genColorStyle","PresetColors","colorKey","lightColor","prepareComponentToken","lineWidth","controlHeight","fontHeight","padding","wireframe","zIndexPopupBase","marginXS","lineType","colorSplit","paddingSM","titlePaddingBlockDist","popoverTitlePaddingBlockTop","popoverTitlePaddingBlockBottom","popoverPaddingHorizontal","getArrowToken","getArrowOffsetToken","useStyle","genStyleHooks","colorText","popoverToken","mergeToken","initZoomMotion"],"mappings":";;;;;;;AAKA,MAAMA,IAAe,CAAAC,MAAS;AAC5B,QAAM;AAAA,IACJ,cAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,qBAAAC;AAAA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,OAAO;AAAA,IACjI,mBAAmBR,IAAY,GAAGJ,CAAS,MAAMO,CAAQ,IAAIC,CAAU,KAAK;AAAA,IAC5E,qBAAqBJ,IAAY,GAAGK,CAAS,MAAMI,CAAwB,OAAO;AAAA,EACtF;AACA,GACAG,IAAeC,EAAc,WAAW,CAAAxC,MAAS;AAC/C,QAAM;AAAA,IACJ,iBAAAW;AAAA,IACA,WAAA8B;AAAA,EACJ,IAAMzC,GACE0C,IAAeC,EAAW3C,GAAO;AAAA,IACrC,WAAWW;AAAA,IACX,cAAc8B;AAAA,EAClB,CAAG;AACD,SAAO,CAAC1C,EAAa2C,CAAY,GAAGxB,EAAcwB,CAAY,GAAGE,EAAeF,GAAc,UAAU,CAAC;AAC3G,GAAGpB,GAAuB;AAAA,EACxB,YAAY;AAAA,EACZ,kBAAkB,CAAC,CAAC,SAAS,eAAe,GAAG,CAAC,YAAY,eAAe,CAAC;AAC9E,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/popover/style/index.js"],"sourcesContent":["import { resetComponent } from '../../style';\nimport { initZoomMotion } from '../../style/motion';\nimport getArrowStyle, { getArrowOffsetToken } from '../../style/placementArrow';\nimport { getArrowToken } from '../../style/roundedArrow';\nimport { genStyleHooks, mergeToken, PresetColors } from '../../theme/internal';\nimport { genCssVar } from '../../theme/util/genStyleUtils';\nconst FALL_BACK_ORIGIN = '50%';\nconst genBaseStyle = token => {\n const {\n componentCls,\n popoverColor,\n titleMinWidth,\n fontWeightStrong,\n innerPadding,\n boxShadowSecondary,\n colorTextHeading,\n borderRadiusLG,\n zIndexPopup,\n titleMarginBottom,\n colorBgElevated,\n popoverBg,\n titleBorderBottom,\n innerContentPadding,\n titlePadding,\n antCls\n } = token;\n const [varName, varRef] = genCssVar(antCls, 'tooltip');\n return [{\n [componentCls]: {\n ...resetComponent(token),\n position: 'absolute',\n top: 0,\n // use `left` to fix https://github.com/ant-design/ant-design/issues/39195\n left: {\n _skip_check_: true,\n value: 0\n },\n zIndex: zIndexPopup,\n fontWeight: 'normal',\n whiteSpace: 'normal',\n textAlign: 'start',\n cursor: 'auto',\n userSelect: 'text',\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 [varName('arrow-background-color')]: colorBgElevated,\n width: 'max-content',\n maxWidth: '100vw',\n '&-rtl': {\n direction: 'rtl'\n },\n '&-hidden': {\n display: 'none'\n },\n [`${componentCls}-content`]: {\n position: 'relative'\n },\n [`${componentCls}-container`]: {\n backgroundColor: popoverBg,\n backgroundClip: 'padding-box',\n borderRadius: borderRadiusLG,\n boxShadow: boxShadowSecondary,\n padding: innerPadding\n },\n [`${componentCls}-title`]: {\n minWidth: titleMinWidth,\n marginBottom: titleMarginBottom,\n color: colorTextHeading,\n fontWeight: fontWeightStrong,\n borderBottom: titleBorderBottom,\n padding: titlePadding\n },\n [`${componentCls}-content`]: {\n color: popoverColor,\n padding: innerContentPadding\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 display: 'inline-block'\n }\n }];\n};\nconst genColorStyle = token => {\n const {\n componentCls,\n antCls\n } = token;\n const [varName] = genCssVar(antCls, 'tooltip');\n return {\n [componentCls]: PresetColors.map(colorKey => {\n const lightColor = token[`${colorKey}6`];\n return {\n [`&${componentCls}-${colorKey}`]: {\n [varName('arrow-background-color')]: lightColor,\n [`${componentCls}-inner`]: {\n backgroundColor: lightColor\n },\n [`${componentCls}-arrow`]: {\n background: 'transparent'\n }\n }\n };\n })\n };\n};\nexport const prepareComponentToken = token => {\n const {\n lineWidth,\n controlHeight,\n fontHeight,\n padding,\n wireframe,\n zIndexPopupBase,\n borderRadiusLG,\n marginXS,\n lineType,\n colorSplit,\n paddingSM\n } = token;\n const titlePaddingBlockDist = controlHeight - fontHeight;\n const popoverTitlePaddingBlockTop = titlePaddingBlockDist / 2;\n const popoverTitlePaddingBlockBottom = titlePaddingBlockDist / 2 - lineWidth;\n const popoverPaddingHorizontal = padding;\n return {\n titleMinWidth: 177,\n zIndexPopup: zIndexPopupBase + 30,\n ...getArrowToken(token),\n ...getArrowOffsetToken({\n contentRadius: borderRadiusLG,\n limitVerticalRadius: true\n }),\n // internal\n innerPadding: wireframe ? 0 : 12,\n titleMarginBottom: wireframe ? 0 : marginXS,\n titlePadding: wireframe ? `${popoverTitlePaddingBlockTop}px ${popoverPaddingHorizontal}px ${popoverTitlePaddingBlockBottom}px` : 0,\n titleBorderBottom: wireframe ? `${lineWidth}px ${lineType} ${colorSplit}` : 'none',\n innerContentPadding: wireframe ? `${paddingSM}px ${popoverPaddingHorizontal}px` : 0\n };\n};\nexport default genStyleHooks('Popover', token => {\n const {\n colorBgElevated,\n colorText\n } = token;\n const popoverToken = mergeToken(token, {\n popoverBg: colorBgElevated,\n popoverColor: colorText\n });\n return [genBaseStyle(popoverToken), genColorStyle(popoverToken), initZoomMotion(popoverToken, 'zoom-big')];\n}, prepareComponentToken, {\n resetStyle: false,\n deprecatedTokens: [['width', 'titleMinWidth'], ['minWidth', 'titleMinWidth']]\n});"],"names":["FALL_BACK_ORIGIN","genBaseStyle","token","componentCls","popoverColor","titleMinWidth","fontWeightStrong","innerPadding","boxShadowSecondary","colorTextHeading","borderRadiusLG","zIndexPopup","titleMarginBottom","colorBgElevated","popoverBg","titleBorderBottom","innerContentPadding","titlePadding","antCls","varName","varRef","genCssVar","resetComponent","getArrowStyle","genColorStyle","PresetColors","colorKey","lightColor","prepareComponentToken","lineWidth","controlHeight","fontHeight","padding","wireframe","zIndexPopupBase","marginXS","lineType","colorSplit","paddingSM","titlePaddingBlockDist","popoverTitlePaddingBlockTop","popoverTitlePaddingBlockBottom","popoverPaddingHorizontal","getArrowToken","getArrowOffsetToken","useStyle","genStyleHooks","colorText","popoverToken","mergeToken","initZoomMotion"],"mappings":";;;;;;;AAMA,MAAMA,IAAmB,OACnBC,IAAe,CAAAC,MAAS;AAC5B,QAAM;AAAA,IACJ,cAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,QAAAC;AAAA,EACJ,IAAMhB,GACE,CAACiB,GAASC,CAAM,IAAIC,EAAUH,GAAQ,SAAS;AACrD,SAAO;AAAA,IAAC;AAAA,MACN,CAACf,CAAY,GAAG;AAAA,QACd,GAAGmB,EAAepB,CAAK;AAAA,QACvB,UAAU;AAAA,QACV,KAAK;AAAA;AAAA,QAEL,MAAM;AAAA,UACJ,cAAc;AAAA,UACd,OAAO;AAAA,QACf;AAAA,QACM,QAAQS;AAAA,QACR,YAAY;AAAA,QACZ,YAAY;AAAA,QACZ,WAAW;AAAA,QACX,QAAQ;AAAA,QACR,YAAY;AAAA;AAAA,QAEZ,CAACQ,EAAQ,gBAAgB,CAAC,GAAGC,EAAO,2BAA2B,gBAAgB;AAAA,QAC/E,iBAAiB,CAACA,EAAO,kBAAkBpB,CAAgB,GAAG,kBAAkBA,CAAgB,GAAG,EAAE,KAAK,GAAG;AAAA,QAC7G,CAACmB,EAAQ,wBAAwB,CAAC,GAAGN;AAAA,QACrC,OAAO;AAAA,QACP,UAAU;AAAA,QACV,SAAS;AAAA,UACP,WAAW;AAAA,QACnB;AAAA,QACM,YAAY;AAAA,UACV,SAAS;AAAA,QACjB;AAAA,QACM,CAAC,GAAGV,CAAY,UAAU,GAAG;AAAA,UAC3B,UA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,CAAC,SAAS,eAAe,GAAG,CAAC,YAAY,eAAe,CAAC;AAC9E,CAAC;","x_google_ignoreList":[0]}
@@ -1,9 +1,9 @@
1
1
  import * as o from "react";
2
- const t = /* @__PURE__ */ o.createContext(null), r = t.Provider, e = /* @__PURE__ */ o.createContext(null), n = e.Provider;
2
+ const t = /* @__PURE__ */ o.createContext(void 0), n = t.Provider, e = /* @__PURE__ */ o.createContext(void 0), r = e.Provider;
3
3
  export {
4
- r as RadioGroupContextProvider,
4
+ n as RadioGroupContextProvider,
5
5
  e as RadioOptionTypeContext,
6
- n as RadioOptionTypeContextProvider,
6
+ r as RadioOptionTypeContextProvider,
7
7
  t as default
8
8
  };
9
9
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sources":["../../../../../node_modules/antd/es/radio/context.js"],"sourcesContent":["import * as React from 'react';\nconst RadioGroupContext = /*#__PURE__*/React.createContext(null);\nexport const RadioGroupContextProvider = RadioGroupContext.Provider;\nexport default RadioGroupContext;\nexport const RadioOptionTypeContext = /*#__PURE__*/React.createContext(null);\nexport const RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;"],"names":["RadioGroupContext","React","RadioGroupContextProvider","RadioOptionTypeContext","RadioOptionTypeContextProvider"],"mappings":";AACK,MAACA,IAAiC,gBAAAC,EAAM,cAAc,IAAI,GAClDC,IAA4BF,EAAkB,UAE9CG,IAAsC,gBAAAF,EAAM,cAAc,IAAI,GAC9DG,IAAiCD,EAAuB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"context.js","sources":["../../../../../node_modules/antd/es/radio/context.js"],"sourcesContent":["import * as React from 'react';\nconst RadioGroupContext = /*#__PURE__*/React.createContext(undefined);\nexport const RadioGroupContextProvider = RadioGroupContext.Provider;\nexport default RadioGroupContext;\nexport const RadioOptionTypeContext = /*#__PURE__*/React.createContext(undefined);\nexport const RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;"],"names":["RadioGroupContext","React","RadioGroupContextProvider","RadioOptionTypeContext","RadioOptionTypeContextProvider"],"mappings":";AACK,MAACA,IAAiC,gBAAAC,EAAM,cAAc,MAAS,GACvDC,IAA4BF,EAAkB,UAE9CG,IAAsC,gBAAAF,EAAM,cAAc,MAAS,GACnEG,IAAiCD,EAAuB;","x_google_ignoreList":[0]}
@@ -1,25 +1,25 @@
1
1
  import * as t from "react";
2
- import Q from "../../../@rc-component/util/es/hooks/useId.js";
3
- import U from "../../../@rc-component/util/es/pickAttrs.js";
2
+ import U from "../../../@rc-component/util/es/hooks/useId.js";
3
+ import W from "../../../@rc-component/util/es/pickAttrs.js";
4
4
  import { clsx as x } from "../../../clsx/dist/clsx.js";
5
5
  import "../config-provider/index.js";
6
- import W from "../config-provider/hooks/useCSSVarCls.js";
7
- import X from "../config-provider/hooks/useSize.js";
8
- import { FormItemInputContext as Y } from "../form/context.js";
9
- import { toNamePathStr as Z } from "../form/hooks/useForm.js";
10
- import { RadioGroupContextProvider as _ } from "./context.js";
6
+ import X from "../config-provider/hooks/useCSSVarCls.js";
7
+ import Y from "../config-provider/hooks/useSize.js";
8
+ import { FormItemInputContext as Z } from "../form/context.js";
9
+ import { toNamePathStr as _ } from "../form/hooks/useForm.js";
10
+ import { RadioGroupContextProvider as ee } from "./context.js";
11
11
  import h from "./radio.js";
12
- import ee from "./style/index.js";
13
- import { ConfigContext as te } from "../config-provider/context.js";
14
- import re from "../../../@rc-component/util/es/hooks/useControlledState.js";
15
- import { useOrientation as oe } from "../_util/hooks/useOrientation.js";
16
- const ae = /* @__PURE__ */ t.forwardRef((l, y) => {
12
+ import te from "./style/index.js";
13
+ import { ConfigContext as re } from "../config-provider/context.js";
14
+ import oe from "../../../@rc-component/util/es/hooks/useControlledState.js";
15
+ import { useOrientation as ae } from "../_util/hooks/useOrientation.js";
16
+ const se = /* @__PURE__ */ t.forwardRef((l, y) => {
17
17
  const {
18
18
  getPrefixCls: S,
19
19
  direction: b
20
- } = t.useContext(te), {
20
+ } = t.useContext(re), {
21
21
  name: $
22
- } = t.useContext(Y), k = Q(Z($)), {
22
+ } = t.useContext(Z), k = U(_($)), {
23
23
  prefixCls: z,
24
24
  className: N,
25
25
  rootClassName: V,
@@ -41,11 +41,12 @@ const ae = /* @__PURE__ */ t.forwardRef((l, y) => {
41
41
  onFocus: L,
42
42
  onBlur: T,
43
43
  orientation: w,
44
- vertical: A
45
- } = l, [r, d] = re(F, G), f = t.useCallback((e) => {
46
- const K = r, g = e.target.value;
47
- "value" in l || d(g), g !== K && c?.(e);
48
- }, [r, d, c]), o = S("radio", z), a = `${o}-group`, C = W(o), [O, j] = ee(o, C);
44
+ vertical: A,
45
+ role: O = "radiogroup"
46
+ } = l, [r, d] = oe(F, G), f = t.useCallback((e) => {
47
+ const Q = r, v = e.target.value;
48
+ "value" in l || d(v), v !== Q && c?.(e);
49
+ }, [r, d, c]), o = S("radio", z), a = `${o}-group`, C = X(o), [j, D] = te(o, C);
49
50
  let p = E;
50
51
  i && i.length > 0 && (p = i.map((e) => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ t.createElement(h, {
51
52
  key: e.toString(),
@@ -65,11 +66,11 @@ const ae = /* @__PURE__ */ t.forwardRef((l, y) => {
65
66
  id: e.id,
66
67
  required: e.required
67
68
  }, e.label)));
68
- const v = X(I), [, D] = oe(w, A), H = x(a, `${a}-${R}`, {
69
- [`${a}-${v}`]: v,
69
+ const g = Y(I), [, H] = ae(w, A), J = x(a, `${a}-${R}`, {
70
+ [`${a}-${g}`]: g,
70
71
  [`${a}-rtl`]: b === "rtl",
71
72
  [`${a}-block`]: m
72
- }, N, V, O, j, C), J = t.useMemo(() => ({
73
+ }, N, V, j, D, C), K = t.useMemo(() => ({
73
74
  onChange: f,
74
75
  value: r,
75
76
  disabled: s,
@@ -78,12 +79,13 @@ const ae = /* @__PURE__ */ t.forwardRef((l, y) => {
78
79
  block: m
79
80
  }), [f, r, s, n, u, m]);
80
81
  return /* @__PURE__ */ t.createElement("div", {
81
- ...U(l, {
82
+ ...W(l, {
82
83
  aria: !0,
83
84
  data: !0
84
85
  }),
85
- className: x(H, {
86
- [`${o}-group-vertical`]: D
86
+ role: O,
87
+ className: x(J, {
88
+ [`${o}-group-vertical`]: H
87
89
  }),
88
90
  style: M,
89
91
  onMouseEnter: q,
@@ -92,11 +94,11 @@ const ae = /* @__PURE__ */ t.forwardRef((l, y) => {
92
94
  onBlur: T,
93
95
  id: P,
94
96
  ref: y
95
- }, /* @__PURE__ */ t.createElement(_, {
96
- value: J
97
+ }, /* @__PURE__ */ t.createElement(ee, {
98
+ value: K
97
99
  }, p));
98
- }), he = /* @__PURE__ */ t.memo(ae);
100
+ }), ye = /* @__PURE__ */ t.memo(se);
99
101
  export {
100
- he as default
102
+ ye as default
101
103
  };
102
104
  //# sourceMappingURL=group.js.map