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,22 +1,22 @@
1
1
  import * as d from "react";
2
2
  import h from "./Cache.js";
3
- const u = "data-token-hash", a = "data-css-hash", m = "data-cache-path", o = "__cssinjs_instance__";
3
+ const u = "data-token-hash", a = "data-css-hash", m = "data-cache-path", e = "__cssinjs_instance__";
4
4
  function i() {
5
- const e = Math.random().toString(12).slice(2);
5
+ const o = Math.random().toString(12).slice(2);
6
6
  if (typeof document < "u" && document.head && document.body) {
7
7
  const r = document.body.querySelectorAll(`style[${a}]`) || [], {
8
8
  firstChild: s
9
9
  } = document.head;
10
10
  Array.from(r).forEach((t) => {
11
- t[o] = t[o] || e, t[o] === e && document.head.insertBefore(t, s);
11
+ t[e] || (t[e] = o), t[e] === o && document.head.insertBefore(t, s);
12
12
  });
13
13
  const c = {};
14
14
  Array.from(document.querySelectorAll(`style[${a}]`)).forEach((t) => {
15
15
  const n = t.getAttribute(a);
16
- c[n] ? t[o] === e && t.parentNode?.removeChild(t) : c[n] = !0;
16
+ c[n] ? t[e] === o && t.parentNode?.removeChild(t) : c[n] = !0;
17
17
  });
18
18
  }
19
- return new h(e);
19
+ return new h(o);
20
20
  }
21
21
  const l = /* @__PURE__ */ d.createContext({
22
22
  hashPriority: "low",
@@ -28,7 +28,7 @@ export {
28
28
  m as ATTR_CACHE_PATH,
29
29
  a as ATTR_MARK,
30
30
  u as ATTR_TOKEN,
31
- o as CSS_IN_JS_INSTANCE,
31
+ e as CSS_IN_JS_INSTANCE,
32
32
  i as createCache,
33
33
  l as default
34
34
  };
@@ -1 +1 @@
1
- {"version":3,"file":"StyleContext.js","sources":["../../../../../node_modules/@ant-design/cssinjs/es/StyleContext.js"],"sourcesContent":["import useMemo from \"@rc-component/util/es/hooks/useMemo\";\nimport isEqual from \"@rc-component/util/es/isEqual\";\nimport * as React from 'react';\nimport CacheEntity from \"./Cache\";\nimport { AUTO_PREFIX } from \"./transformers/autoPrefix\";\nexport const ATTR_TOKEN = 'data-token-hash';\nexport const ATTR_MARK = 'data-css-hash';\nexport const ATTR_CACHE_PATH = 'data-cache-path';\n\n// Mark css-in-js instance in style element\nexport const CSS_IN_JS_INSTANCE = '__cssinjs_instance__';\nexport function createCache() {\n const cssinjsInstanceId = Math.random().toString(12).slice(2);\n\n // Tricky SSR: Move all inline style to the head.\n // PS: We do not recommend tricky mode.\n if (typeof document !== 'undefined' && document.head && document.body) {\n const styles = document.body.querySelectorAll(`style[${ATTR_MARK}]`) || [];\n const {\n firstChild\n } = document.head;\n Array.from(styles).forEach(style => {\n style[CSS_IN_JS_INSTANCE] = style[CSS_IN_JS_INSTANCE] || cssinjsInstanceId;\n\n // Not force move if no head\n if (style[CSS_IN_JS_INSTANCE] === cssinjsInstanceId) {\n document.head.insertBefore(style, firstChild);\n }\n });\n\n // Deduplicate of moved styles\n const styleHash = {};\n Array.from(document.querySelectorAll(`style[${ATTR_MARK}]`)).forEach(style => {\n const hash = style.getAttribute(ATTR_MARK);\n if (styleHash[hash]) {\n if (style[CSS_IN_JS_INSTANCE] === cssinjsInstanceId) {\n style.parentNode?.removeChild(style);\n }\n } else {\n styleHash[hash] = true;\n }\n });\n }\n return new CacheEntity(cssinjsInstanceId);\n}\nconst StyleContext = /*#__PURE__*/React.createContext({\n hashPriority: 'low',\n cache: createCache(),\n defaultCache: true,\n autoPrefix: false\n});\nexport const StyleProvider = props => {\n const {\n children,\n ...restProps\n } = props;\n const parentContext = React.useContext(StyleContext);\n const context = useMemo(() => {\n const mergedContext = {\n ...parentContext\n };\n Object.keys(restProps).forEach(key => {\n const value = restProps[key];\n if (restProps[key] !== undefined) {\n mergedContext[key] = value;\n }\n });\n const {\n cache,\n transformers = []\n } = restProps;\n mergedContext.cache = mergedContext.cache || createCache();\n mergedContext.defaultCache = !cache && parentContext.defaultCache;\n\n // autoPrefix\n if (transformers.includes(AUTO_PREFIX)) {\n mergedContext.autoPrefix = true;\n }\n return mergedContext;\n }, [parentContext, restProps], (prev, next) => !isEqual(prev[0], next[0], true) || !isEqual(prev[1], next[1], true));\n return /*#__PURE__*/React.createElement(StyleContext.Provider, {\n value: context\n }, children);\n};\nexport default StyleContext;"],"names":["ATTR_TOKEN","ATTR_MARK","ATTR_CACHE_PATH","CSS_IN_JS_INSTANCE","createCache","cssinjsInstanceId","styles","firstChild","style","styleHash","hash","CacheEntity","StyleContext","React"],"mappings":";;AAKY,MAACA,IAAa,mBACbC,IAAY,iBACZC,IAAkB,mBAGlBC,IAAqB;AAC3B,SAASC,IAAc;AAC5B,QAAMC,IAAoB,KAAK,OAAM,EAAG,SAAS,EAAE,EAAE,MAAM,CAAC;AAI5D,MAAI,OAAO,WAAa,OAAe,SAAS,QAAQ,SAAS,MAAM;AACrE,UAAMC,IAAS,SAAS,KAAK,iBAAiB,SAASL,CAAS,GAAG,KAAK,CAAA,GAClE;AAAA,MACJ,YAAAM;AAAA,IACN,IAAQ,SAAS;AACb,UAAM,KAAKD,CAAM,EAAE,QAAQ,CAAAE,MAAS;AAClC,MAAAA,EAAML,CAAkB,IAAIK,EAAML,CAAkB,KAAKE,GAGrDG,EAAML,CAAkB,MAAME,KAChC,SAAS,KAAK,aAAaG,GAAOD,CAAU;AAAA,IAEhD,CAAC;AAGD,UAAME,IAAY,CAAA;AAClB,UAAM,KAAK,SAAS,iBAAiB,SAASR,CAAS,GAAG,CAAC,EAAE,QAAQ,CAAAO,MAAS;AAC5E,YAAME,IAAOF,EAAM,aAAaP,CAAS;AACzC,MAAIQ,EAAUC,CAAI,IACZF,EAAML,CAAkB,MAAME,KAChCG,EAAM,YAAY,YAAYA,CAAK,IAGrCC,EAAUC,CAAI,IAAI;AAAA,IAEtB,CAAC;AAAA,EACH;AACA,SAAO,IAAIC,EAAYN,CAAiB;AAC1C;AACK,MAACO,IAA4B,gBAAAC,EAAM,cAAc;AAAA,EACpD,cAAc;AAAA,EACd,OAAOT,EAAW;AAAA,EAClB,cAAc;AAAA,EACd,YAAY;AACd,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"StyleContext.js","sources":["../../../../../node_modules/@ant-design/cssinjs/es/StyleContext.js"],"sourcesContent":["import useMemo from \"@rc-component/util/es/hooks/useMemo\";\nimport isEqual from \"@rc-component/util/es/isEqual\";\nimport * as React from 'react';\nimport CacheEntity from \"./Cache\";\nimport { AUTO_PREFIX } from \"./transformers/autoPrefix\";\nexport const ATTR_TOKEN = 'data-token-hash';\nexport const ATTR_MARK = 'data-css-hash';\nexport const ATTR_CACHE_PATH = 'data-cache-path';\n\n// Mark css-in-js instance in style element\nexport const CSS_IN_JS_INSTANCE = '__cssinjs_instance__';\nexport function createCache() {\n const cssinjsInstanceId = Math.random().toString(12).slice(2);\n\n // Tricky SSR: Move all inline style to the head.\n // PS: We do not recommend tricky mode.\n if (typeof document !== 'undefined' && document.head && document.body) {\n const styles = document.body.querySelectorAll(`style[${ATTR_MARK}]`) || [];\n const {\n firstChild\n } = document.head;\n Array.from(styles).forEach(style => {\n style[CSS_IN_JS_INSTANCE] ||= cssinjsInstanceId;\n\n // Not force move if no head\n if (style[CSS_IN_JS_INSTANCE] === cssinjsInstanceId) {\n document.head.insertBefore(style, firstChild);\n }\n });\n\n // Deduplicate of moved styles\n const styleHash = {};\n Array.from(document.querySelectorAll(`style[${ATTR_MARK}]`)).forEach(style => {\n const hash = style.getAttribute(ATTR_MARK);\n if (styleHash[hash]) {\n if (style[CSS_IN_JS_INSTANCE] === cssinjsInstanceId) {\n style.parentNode?.removeChild(style);\n }\n } else {\n styleHash[hash] = true;\n }\n });\n }\n return new CacheEntity(cssinjsInstanceId);\n}\nconst StyleContext = /*#__PURE__*/React.createContext({\n hashPriority: 'low',\n cache: createCache(),\n defaultCache: true,\n autoPrefix: false\n});\nexport const StyleProvider = props => {\n const {\n children,\n ...restProps\n } = props;\n const parentContext = React.useContext(StyleContext);\n const context = useMemo(() => {\n const mergedContext = {\n ...parentContext\n };\n Object.keys(restProps).forEach(key => {\n const value = restProps[key];\n if (restProps[key] !== undefined) {\n mergedContext[key] = value;\n }\n });\n const {\n cache,\n transformers = []\n } = restProps;\n mergedContext.cache = mergedContext.cache || createCache();\n mergedContext.defaultCache = !cache && parentContext.defaultCache;\n\n // autoPrefix\n if (transformers.includes(AUTO_PREFIX)) {\n mergedContext.autoPrefix = true;\n }\n return mergedContext;\n }, [parentContext, restProps], (prev, next) => !isEqual(prev[0], next[0], true) || !isEqual(prev[1], next[1], true));\n return /*#__PURE__*/React.createElement(StyleContext.Provider, {\n value: context\n }, children);\n};\nexport default StyleContext;"],"names":["ATTR_TOKEN","ATTR_MARK","ATTR_CACHE_PATH","CSS_IN_JS_INSTANCE","createCache","cssinjsInstanceId","styles","firstChild","style","styleHash","hash","CacheEntity","StyleContext","React"],"mappings":";;AAKY,MAACA,IAAa,mBACbC,IAAY,iBACZC,IAAkB,mBAGlBC,IAAqB;AAC3B,SAASC,IAAc;AAC5B,QAAMC,IAAoB,KAAK,OAAM,EAAG,SAAS,EAAE,EAAE,MAAM,CAAC;AAI5D,MAAI,OAAO,WAAa,OAAe,SAAS,QAAQ,SAAS,MAAM;AACrE,UAAMC,IAAS,SAAS,KAAK,iBAAiB,SAASL,CAAS,GAAG,KAAK,CAAA,GAClE;AAAA,MACJ,YAAAM;AAAA,IACN,IAAQ,SAAS;AACb,UAAM,KAAKD,CAAM,EAAE,QAAQ,CAAAE,MAAS;AAClC,MAAAA,EAAAL,OAAAK,EAAAL,KAA8BE,IAG1BG,EAAML,CAAkB,MAAME,KAChC,SAAS,KAAK,aAAaG,GAAOD,CAAU;AAAA,IAEhD,CAAC;AAGD,UAAME,IAAY,CAAA;AAClB,UAAM,KAAK,SAAS,iBAAiB,SAASR,CAAS,GAAG,CAAC,EAAE,QAAQ,CAAAO,MAAS;AAC5E,YAAME,IAAOF,EAAM,aAAaP,CAAS;AACzC,MAAIQ,EAAUC,CAAI,IACZF,EAAML,CAAkB,MAAME,KAChCG,EAAM,YAAY,YAAYA,CAAK,IAGrCC,EAAUC,CAAI,IAAI;AAAA,IAEtB,CAAC;AAAA,EACH;AACA,SAAO,IAAIC,EAAYN,CAAiB;AAC1C;AACK,MAACO,IAA4B,gBAAAC,EAAM,cAAc;AAAA,EACpD,cAAc;AAAA,EACd,OAAOT,EAAW;AAAA,EAClB,cAAc;AAAA,EACd,YAAY;AACd,CAAC;","x_google_ignoreList":[0]}
@@ -1,9 +1,9 @@
1
1
  import $ from "../../../../vite-plugin-node-polyfills/shims/process/dist/index.js";
2
- import T from "../../../../@emotion/hash/dist/hash.browser.esm.js";
2
+ import S from "../../../../@emotion/hash/dist/hash.browser.esm.js";
3
3
  import { updateCSS as x } from "../../../../@rc-component/util/es/Dom/dynamicCSS.js";
4
4
  import { useContext as I } from "react";
5
- import O, { CSS_IN_JS_INSTANCE as S, ATTR_TOKEN as C, ATTR_MARK as A } from "../StyleContext.js";
6
- import { memoResult as D, flattenToken as l, token2key as V } from "../util/index.js";
5
+ import O, { CSS_IN_JS_INSTANCE as C, ATTR_TOKEN as E, ATTR_MARK as A } from "../StyleContext.js";
6
+ import { memoResult as D, flattenToken as T, token2key as V } from "../util/index.js";
7
7
  import { transformToken as b } from "../util/css-variables.js";
8
8
  import K from "./useGlobalCache.js";
9
9
  const P = {}, M = $.env.NODE_ENV !== "production" ? "css-dev-only-do-not-override" : "css", c = /* @__PURE__ */ new Map();
@@ -11,8 +11,8 @@ function q(t) {
11
11
  c.set(t, (c.get(t) || 0) + 1);
12
12
  }
13
13
  function w(t, n) {
14
- typeof document < "u" && document.querySelectorAll(`style[${C}="${t}"]`).forEach((e) => {
15
- e[S] === n && e.parentNode?.removeChild(e);
14
+ typeof document < "u" && document.querySelectorAll(`style[${E}="${t}"]`).forEach((e) => {
15
+ e[C] === n && e.parentNode?.removeChild(e);
16
16
  });
17
17
  }
18
18
  const z = -1;
@@ -26,11 +26,11 @@ function H(t, n) {
26
26
  });
27
27
  }
28
28
  const L = (t, n, r, e) => {
29
- let d = {
29
+ let a = {
30
30
  ...r.getDerivativeToken(t),
31
31
  ...n
32
32
  };
33
- return e && (d = e(d)), d;
33
+ return e && (a = e(a)), a;
34
34
  }, j = "token";
35
35
  function Z(t, n, r) {
36
36
  const {
@@ -38,40 +38,40 @@ function Z(t, n, r) {
38
38
  instanceId: e
39
39
  },
40
40
  container: f,
41
- hashPriority: d
41
+ hashPriority: a
42
42
  } = I(O), {
43
- salt: p = "",
43
+ salt: l = "",
44
44
  override: u = P,
45
- formatToken: E,
46
- getComputedToken: k,
45
+ formatToken: g,
46
+ getComputedToken: p,
47
47
  cssVar: o
48
- } = r, m = D(() => Object.assign({}, ...n), n), g = l(m), y = l(u), _ = l(o);
49
- return K(j, [p, t.id, g, y, _], () => {
50
- const s = k ? k(m, u, t) : L(m, u, t, E), i = {
48
+ } = r, m = D(() => Object.assign({}, ...n), n), y = T(m), _ = T(u), N = T(o);
49
+ return K(j, [l, t.id, y, _, N], () => {
50
+ const s = p ? p(m, u, t) : L(m, u, t, g), i = {
51
51
  ...s
52
- }, a = `${p}_${o.prefix}`, N = T(a), h = `${M}-${T(a)}`;
53
- i._tokenKey = V(i, a);
52
+ }, d = `${l}_${o.prefix}`, k = S(d), h = `${M}-${k}`;
53
+ i._tokenKey = V(i, d);
54
54
  const [v, R] = b(s, o.key, {
55
55
  prefix: o.prefix,
56
56
  ignore: o.ignore,
57
57
  unitless: o.unitless,
58
58
  preserve: o.preserve,
59
- hashPriority: d,
59
+ hashPriority: a,
60
60
  hashCls: o.hashed ? h : void 0
61
61
  });
62
- return v._hashId = N, q(o.key), [v, h, i, R, o.key];
62
+ return v._hashId = k, q(o.key), [v, h, i, R, o.key];
63
63
  }, ([, , , , s]) => {
64
64
  H(s, e);
65
65
  }, ([, , , s, i]) => {
66
66
  if (!s)
67
67
  return;
68
- const a = x(s, T(`css-var-${i}`), {
68
+ const d = x(s, S(`css-var-${i}`), {
69
69
  mark: A,
70
70
  prepend: "queue",
71
71
  attachTo: f,
72
72
  priority: -999
73
73
  });
74
- a[S] = e, a.setAttribute(C, i);
74
+ d[C] = e, d.setAttribute(E, i);
75
75
  });
76
76
  }
77
77
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"useCacheToken.js","sources":["../../../../../../node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js"],"sourcesContent":["import hash from '@emotion/hash';\nimport { updateCSS } from \"@rc-component/util/es/Dom/dynamicCSS\";\nimport { useContext } from 'react';\nimport StyleContext, { ATTR_MARK, ATTR_TOKEN, CSS_IN_JS_INSTANCE } from \"../StyleContext\";\nimport { flattenToken, memoResult, token2key, toStyleStr } from \"../util\";\nimport { transformToken } from \"../util/css-variables\";\nimport useGlobalCache from \"./useGlobalCache\";\nconst EMPTY_OVERRIDE = {};\n\n// Generate different prefix to make user selector break in production env.\n// This helps developer not to do style override directly on the hash id.\nconst hashPrefix = process.env.NODE_ENV !== 'production' ? 'css-dev-only-do-not-override' : 'css';\nconst tokenKeys = new Map();\nfunction recordCleanToken(tokenKey) {\n tokenKeys.set(tokenKey, (tokenKeys.get(tokenKey) || 0) + 1);\n}\nfunction removeStyleTags(key, instanceId) {\n if (typeof document !== 'undefined') {\n const styles = document.querySelectorAll(`style[${ATTR_TOKEN}=\"${key}\"]`);\n styles.forEach(style => {\n if (style[CSS_IN_JS_INSTANCE] === instanceId) {\n style.parentNode?.removeChild(style);\n }\n });\n }\n}\nconst TOKEN_THRESHOLD = -1;\n\n// Remove will check current keys first\nfunction cleanTokenStyle(tokenKey, instanceId) {\n tokenKeys.set(tokenKey, (tokenKeys.get(tokenKey) || 0) - 1);\n const cleanableKeyList = new Set();\n tokenKeys.forEach((value, key) => {\n if (value <= 0) cleanableKeyList.add(key);\n });\n\n // Should keep tokens under threshold for not to insert style too often\n if (tokenKeys.size - cleanableKeyList.size > TOKEN_THRESHOLD) {\n cleanableKeyList.forEach(key => {\n removeStyleTags(key, instanceId);\n tokenKeys.delete(key);\n });\n }\n}\nexport const getComputedToken = (originToken, overrideToken, theme, format) => {\n const derivativeToken = theme.getDerivativeToken(originToken);\n\n // Merge with override\n let mergedDerivativeToken = {\n ...derivativeToken,\n ...overrideToken\n };\n\n // Format if needed\n if (format) {\n mergedDerivativeToken = format(mergedDerivativeToken);\n }\n return mergedDerivativeToken;\n};\nexport const TOKEN_PREFIX = 'token';\n/**\n * Cache theme derivative token as global shared one\n * @param theme Theme entity\n * @param tokens List of tokens, used for cache. Please do not dynamic generate object directly\n * @param option Additional config\n * @returns Call Theme.getDerivativeToken(tokenObject) to get token\n */\nexport default function useCacheToken(theme, tokens, option) {\n const {\n cache: {\n instanceId\n },\n container,\n hashPriority\n } = useContext(StyleContext);\n const {\n salt = '',\n override = EMPTY_OVERRIDE,\n formatToken,\n getComputedToken: compute,\n cssVar\n } = option;\n\n // Basic - We do basic cache here\n const mergedToken = memoResult(() => Object.assign({}, ...tokens), tokens);\n const tokenStr = flattenToken(mergedToken);\n const overrideTokenStr = flattenToken(override);\n const cssVarStr = flattenToken(cssVar);\n const cachedToken = useGlobalCache(TOKEN_PREFIX, [salt, theme.id, tokenStr, overrideTokenStr, cssVarStr], () => {\n const mergedDerivativeToken = compute ? compute(mergedToken, override, theme) : getComputedToken(mergedToken, override, theme, formatToken);\n const actualToken = {\n ...mergedDerivativeToken\n };\n\n // Optimize for `useStyleRegister` performance\n const mergedSalt = `${salt}_${cssVar.prefix}`;\n const hashId = hash(mergedSalt);\n const hashCls = `${hashPrefix}-${hash(mergedSalt)}`;\n actualToken._tokenKey = token2key(actualToken, mergedSalt);\n\n // Replace token value with css variables\n const [tokenWithCssVar, cssVarsStr] = transformToken(mergedDerivativeToken, cssVar.key, {\n prefix: cssVar.prefix,\n ignore: cssVar.ignore,\n unitless: cssVar.unitless,\n preserve: cssVar.preserve,\n hashPriority,\n hashCls: cssVar.hashed ? hashCls : undefined\n });\n tokenWithCssVar._hashId = hashId;\n recordCleanToken(cssVar.key);\n return [tokenWithCssVar, hashCls, actualToken, cssVarsStr, cssVar.key];\n }, ([,,,, themeKey]) => {\n // Remove token will remove all related style\n cleanTokenStyle(themeKey, instanceId);\n }, ([,,, cssVarsStr, themeKey]) => {\n if (!cssVarsStr) {\n return;\n }\n const style = updateCSS(cssVarsStr, hash(`css-var-${themeKey}`), {\n mark: ATTR_MARK,\n prepend: 'queue',\n attachTo: container,\n priority: -999\n });\n style[CSS_IN_JS_INSTANCE] = instanceId;\n\n // Used for `useCacheToken` to remove on batch when token removed\n style.setAttribute(ATTR_TOKEN, themeKey);\n });\n return cachedToken;\n}\nexport const extract = (cache, effectStyles, options) => {\n const [,, realToken, styleStr, cssVarKey] = cache;\n const {\n plain\n } = options || {};\n if (!styleStr) {\n return null;\n }\n const styleId = realToken._tokenKey;\n const order = -999;\n\n // ====================== Style ======================\n // Used for @rc-component/util\n const sharedAttrs = {\n 'data-rc-order': 'prependQueue',\n 'data-rc-priority': `${order}`\n };\n const styleText = toStyleStr(styleStr, cssVarKey, styleId, sharedAttrs, plain);\n return [order, styleId, styleText];\n};"],"names":["EMPTY_OVERRIDE","hashPrefix","process","tokenKeys","recordCleanToken","tokenKey","removeStyleTags","key","instanceId","ATTR_TOKEN","style","CSS_IN_JS_INSTANCE","TOKEN_THRESHOLD","cleanTokenStyle","cleanableKeyList","value","getComputedToken","originToken","overrideToken","theme","format","mergedDerivativeToken","TOKEN_PREFIX","useCacheToken","tokens","option","container","hashPriority","useContext","StyleContext","salt","override","formatToken","compute","cssVar","mergedToken","memoResult","tokenStr","flattenToken","overrideTokenStr","cssVarStr","useGlobalCache","actualToken","mergedSalt","hashId","hash","hashCls","token2key","tokenWithCssVar","cssVarsStr","transformToken","themeKey","updateCSS","ATTR_MARK"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useCacheToken.js","sources":["../../../../../../node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js"],"sourcesContent":["import hash from '@emotion/hash';\nimport { updateCSS } from \"@rc-component/util/es/Dom/dynamicCSS\";\nimport { useContext } from 'react';\nimport StyleContext, { ATTR_MARK, ATTR_TOKEN, CSS_IN_JS_INSTANCE } from \"../StyleContext\";\nimport { flattenToken, memoResult, token2key, toStyleStr } from \"../util\";\nimport { transformToken } from \"../util/css-variables\";\nimport useGlobalCache from \"./useGlobalCache\";\nconst EMPTY_OVERRIDE = {};\n\n// Generate different prefix to make user selector break in production env.\n// This helps developer not to do style override directly on the hash id.\nconst hashPrefix = process.env.NODE_ENV !== 'production' ? 'css-dev-only-do-not-override' : 'css';\nconst tokenKeys = new Map();\nfunction recordCleanToken(tokenKey) {\n tokenKeys.set(tokenKey, (tokenKeys.get(tokenKey) || 0) + 1);\n}\nfunction removeStyleTags(key, instanceId) {\n if (typeof document !== 'undefined') {\n const styles = document.querySelectorAll(`style[${ATTR_TOKEN}=\"${key}\"]`);\n styles.forEach(style => {\n if (style[CSS_IN_JS_INSTANCE] === instanceId) {\n style.parentNode?.removeChild(style);\n }\n });\n }\n}\nconst TOKEN_THRESHOLD = -1;\n\n// Remove will check current keys first\nfunction cleanTokenStyle(tokenKey, instanceId) {\n tokenKeys.set(tokenKey, (tokenKeys.get(tokenKey) || 0) - 1);\n const cleanableKeyList = new Set();\n tokenKeys.forEach((value, key) => {\n if (value <= 0) cleanableKeyList.add(key);\n });\n\n // Should keep tokens under threshold for not to insert style too often\n if (tokenKeys.size - cleanableKeyList.size > TOKEN_THRESHOLD) {\n cleanableKeyList.forEach(key => {\n removeStyleTags(key, instanceId);\n tokenKeys.delete(key);\n });\n }\n}\nexport const getComputedToken = (originToken, overrideToken, theme, format) => {\n const derivativeToken = theme.getDerivativeToken(originToken);\n\n // Merge with override\n let mergedDerivativeToken = {\n ...derivativeToken,\n ...overrideToken\n };\n\n // Format if needed\n if (format) {\n mergedDerivativeToken = format(mergedDerivativeToken);\n }\n return mergedDerivativeToken;\n};\nexport const TOKEN_PREFIX = 'token';\n/**\n * Cache theme derivative token as global shared one\n * @param theme Theme entity\n * @param tokens List of tokens, used for cache. Please do not dynamic generate object directly\n * @param option Additional config\n * @returns Call Theme.getDerivativeToken(tokenObject) to get token\n */\nexport default function useCacheToken(theme, tokens, option) {\n const {\n cache: {\n instanceId\n },\n container,\n hashPriority\n } = useContext(StyleContext);\n const {\n salt = '',\n override = EMPTY_OVERRIDE,\n formatToken,\n getComputedToken: compute,\n cssVar\n } = option;\n\n // Basic - We do basic cache here\n const mergedToken = memoResult(() => Object.assign({}, ...tokens), tokens);\n const tokenStr = flattenToken(mergedToken);\n const overrideTokenStr = flattenToken(override);\n const cssVarStr = flattenToken(cssVar);\n const cachedToken = useGlobalCache(TOKEN_PREFIX, [salt, theme.id, tokenStr, overrideTokenStr, cssVarStr], () => {\n const mergedDerivativeToken = compute ? compute(mergedToken, override, theme) : getComputedToken(mergedToken, override, theme, formatToken);\n const actualToken = {\n ...mergedDerivativeToken\n };\n\n // Optimize for `useStyleRegister` performance\n const mergedSalt = `${salt}_${cssVar.prefix}`;\n const hashId = hash(mergedSalt);\n const hashCls = `${hashPrefix}-${hashId}`;\n actualToken._tokenKey = token2key(actualToken, mergedSalt);\n\n // Replace token value with css variables\n const [tokenWithCssVar, cssVarsStr] = transformToken(mergedDerivativeToken, cssVar.key, {\n prefix: cssVar.prefix,\n ignore: cssVar.ignore,\n unitless: cssVar.unitless,\n preserve: cssVar.preserve,\n hashPriority,\n hashCls: cssVar.hashed ? hashCls : undefined\n });\n tokenWithCssVar._hashId = hashId;\n recordCleanToken(cssVar.key);\n return [tokenWithCssVar, hashCls, actualToken, cssVarsStr, cssVar.key];\n }, ([,,,, themeKey]) => {\n // Remove token will remove all related style\n cleanTokenStyle(themeKey, instanceId);\n }, ([,,, cssVarsStr, themeKey]) => {\n if (!cssVarsStr) {\n return;\n }\n const style = updateCSS(cssVarsStr, hash(`css-var-${themeKey}`), {\n mark: ATTR_MARK,\n prepend: 'queue',\n attachTo: container,\n priority: -999\n });\n style[CSS_IN_JS_INSTANCE] = instanceId;\n\n // Used for `useCacheToken` to remove on batch when token removed\n style.setAttribute(ATTR_TOKEN, themeKey);\n });\n return cachedToken;\n}\nexport const extract = (cache, effectStyles, options) => {\n const [,, realToken, styleStr, cssVarKey] = cache;\n const {\n plain\n } = options || {};\n if (!styleStr) {\n return null;\n }\n const styleId = realToken._tokenKey;\n const order = -999;\n\n // ====================== Style ======================\n // Used for @rc-component/util\n const sharedAttrs = {\n 'data-rc-order': 'prependQueue',\n 'data-rc-priority': `${order}`\n };\n const styleText = toStyleStr(styleStr, cssVarKey, styleId, sharedAttrs, plain);\n return [order, styleId, styleText];\n};"],"names":["EMPTY_OVERRIDE","hashPrefix","process","tokenKeys","recordCleanToken","tokenKey","removeStyleTags","key","instanceId","ATTR_TOKEN","style","CSS_IN_JS_INSTANCE","TOKEN_THRESHOLD","cleanTokenStyle","cleanableKeyList","value","getComputedToken","originToken","overrideToken","theme","format","mergedDerivativeToken","TOKEN_PREFIX","useCacheToken","tokens","option","container","hashPriority","useContext","StyleContext","salt","override","formatToken","compute","cssVar","mergedToken","memoResult","tokenStr","flattenToken","overrideTokenStr","cssVarStr","useGlobalCache","actualToken","mergedSalt","hashId","hash","hashCls","token2key","tokenWithCssVar","cssVarsStr","transformToken","themeKey","updateCSS","ATTR_MARK"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"useGlobalCache.js","sources":["../../../../../../node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js"],"sourcesContent":["import * as React from 'react';\nimport { useInsertionEffect } from 'react';\nimport { pathKey } from \"../Cache\";\nimport StyleContext from \"../StyleContext\";\nimport useHMR from \"./useHMR\";\nconst effectMap = new Map();\nexport default function useGlobalCache(prefix, keyPath, cacheFn, onCacheRemove,\n// Add additional effect trigger by `useInsertionEffect`\nonCacheEffect) {\n const {\n cache: globalCache\n } = React.useContext(StyleContext);\n const fullPath = [prefix, ...keyPath];\n const fullPathStr = pathKey(fullPath);\n const HMRUpdate = useHMR();\n const buildCache = updater => {\n globalCache.opUpdate(fullPathStr, prevCache => {\n const [times = 0, cache] = prevCache || [undefined, undefined];\n\n // HMR should always ignore cache since developer may change it\n let tmpCache = cache;\n if (process.env.NODE_ENV !== 'production' && cache && HMRUpdate) {\n onCacheRemove?.(tmpCache, HMRUpdate);\n tmpCache = null;\n }\n const mergedCache = tmpCache || cacheFn();\n const data = [times, mergedCache];\n\n // Call updater if need additional logic\n return updater ? updater(data) : data;\n });\n };\n\n // Create cache\n React.useMemo(() => {\n buildCache();\n }, /* eslint-disable react-hooks/exhaustive-deps */\n [fullPathStr]\n /* eslint-enable */);\n let cacheEntity = globalCache.opGet(fullPathStr);\n\n // HMR clean the cache but not trigger `useMemo` again\n // Let's fallback of this\n // ref https://github.com/ant-design/cssinjs/issues/127\n if (process.env.NODE_ENV !== 'production' && !cacheEntity) {\n buildCache();\n cacheEntity = globalCache.opGet(fullPathStr);\n }\n const cacheContent = cacheEntity[1];\n\n // Remove if no need anymore\n useInsertionEffect(() => {\n buildCache(([times, cache]) => [times + 1, cache]);\n if (!effectMap.has(fullPathStr)) {\n onCacheEffect?.(cacheContent);\n effectMap.set(fullPathStr, true);\n\n // 微任务清理混存,可以认为是单次 batch render 中只触发一次 effect\n Promise.resolve().then(() => {\n effectMap.delete(fullPathStr);\n });\n }\n return () => {\n globalCache.opUpdate(fullPathStr, prevCache => {\n const [times = 0, cache] = prevCache || [];\n const nextCount = times - 1;\n if (nextCount === 0) {\n onCacheRemove?.(cache, false);\n effectMap.delete(fullPathStr);\n return null;\n }\n return [times - 1, cache];\n });\n };\n }, [fullPathStr]);\n return cacheContent;\n}"],"names":["effectMap","useGlobalCache","prefix","keyPath","cacheFn","onCacheRemove","onCacheEffect","globalCache","React","StyleContext","fullPath","fullPathStr","pathKey","HMRUpdate","useHMR","buildCache","updater","prevCache","times","cache","tmpCache","process","mergedCache","data","cacheEntity","cacheContent","useInsertionEffect"],"mappings":";;;;;;AAKA,MAAMA,IAAY,oBAAI,IAAG;AACV,SAASC,EAAeC,GAAQC,GAASC,GAASC,GAEjEC,GAAe;AACb,QAAM;AAAA,IACJ,OAAOC;AAAA,EACX,IAAMC,EAAM,WAAWC,CAAY,GAC3BC,IAAW,CAACR,GAAQ,GAAGC,CAAO,GAC9BQ,IAAcC,EAAQF,CAAQ,GAC9BG,IAAYC,EAAM,GAClBC,IAAa,CAAAC,MAAW;AAC5B,IAAAT,EAAY,SAASI,GAAa,CAAAM,MAAa;AAC7C,YAAM,CAACC,IAAQ,GAAGC,CAAK,IAAIF,KAAa,CAAC,QAAW,MAAS;AAG7D,UAAIG,IAAWD;AACf,MAAIE,EAAQ,IAAI,aAAa,gBAAgBF,KAASN,MACpDR,IAAgBe,GAAUP,CAAS,GACnCO,IAAW;AAEb,YAAME,IAAcF,KAAYhB,EAAO,GACjCmB,IAAO,CAACL,GAAOI,CAAW;AAGhC,aAAON,IAAUA,EAAQO,CAAI,IAAIA;AAAA,IACnC,CAAC;AAAA,EACH;AAGA,EAAAf,EAAM;AAAA,IAAQ,MAAM;AAClB,MAAAO,EAAU;AAAA,IACZ;AAAA;AAAA,IACA,CAACJ,CAAW;AAAA;AAAA,EACd;AACE,MAAIa,IAAcjB,EAAY,MAAMI,CAAW;AAK/C,EAAIU,EAAQ,IAAI,aAAa,gBAAgB,CAACG,MAC5CT,EAAU,GACVS,IAAcjB,EAAY,MAAMI,CAAW;AAE7C,QAAMc,IAAeD,EAAY,CAAC;AAGlC,SAAAE,EAAmB,OACjBX,EAAW,CAAC,CAACG,GAAOC,CAAK,MAAM,CAACD,IAAQ,GAAGC,CAAK,CAAC,GAC5CnB,EAAU,IAAIW,CAAW,MAC5BL,IAAgBmB,CAAY,GAC5BzB,EAAU,IAAIW,GAAa,EAAI,GAG/B,QAAQ,UAAU,KAAK,MAAM;AAC3B,IAAAX,EAAU,OAAOW,CAAW;AAAA,EAC9B,CAAC,IAEI,MAAM;AACX,IAAAJ,EAAY,SAASI,GAAa,CAAAM,MAAa;AAC7C,YAAM,CAACC,IAAQ,GAAGC,CAAK,IAAIF,KAAa,CAAA;AAExC,aADkBC,IAAQ,MACR,KAChBb,IAAgBc,GAAO,EAAK,GAC5BnB,EAAU,OAAOW,CAAW,GACrB,QAEF,CAACO,IAAQ,GAAGC,CAAK;AAAA,IAC1B,CAAC;AAAA,EACH,IACC,CAACR,CAAW,CAAC,GACTc;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useGlobalCache.js","sources":["../../../../../../node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js"],"sourcesContent":["import * as React from 'react';\nimport { useInsertionEffect } from 'react';\nimport { pathKey } from \"../Cache\";\nimport StyleContext from \"../StyleContext\";\nimport useHMR from \"./useHMR\";\nconst effectMap = new Map();\nexport default function useGlobalCache(prefix, keyPath, cacheFn, onCacheRemove,\n// Add additional effect trigger by `useInsertionEffect`\nonCacheEffect) {\n const {\n cache: globalCache\n } = React.useContext(StyleContext);\n const fullPath = [prefix, ...keyPath];\n const fullPathStr = pathKey(fullPath);\n const HMRUpdate = useHMR();\n const buildCache = updater => {\n globalCache.opUpdate(fullPathStr, prevCache => {\n const [times = 0, cache] = prevCache || [undefined, undefined];\n\n // HMR should always ignore cache since developer may change it\n let tmpCache = cache;\n if (process.env.NODE_ENV !== 'production' && cache && HMRUpdate) {\n onCacheRemove?.(tmpCache, HMRUpdate);\n tmpCache = null;\n }\n const mergedCache = tmpCache || cacheFn();\n const data = [times, mergedCache];\n\n // Call updater if need additional logic\n return updater ? updater(data) : data;\n });\n };\n\n // Create cache\n React.useMemo(() => {\n buildCache();\n }, /* eslint-disable react-hooks/exhaustive-deps */\n [fullPathStr]\n /* eslint-enable */);\n let cacheEntity = globalCache.opGet(fullPathStr);\n\n // HMR clean the cache but not trigger `useMemo` again\n // Let's fallback of this\n // ref https://github.com/ant-design/cssinjs/issues/127\n if (process.env.NODE_ENV !== 'production' && !cacheEntity) {\n buildCache();\n cacheEntity = globalCache.opGet(fullPathStr);\n }\n const cacheContent = cacheEntity[1];\n\n // Remove if no need anymore\n useInsertionEffect(() => {\n buildCache(([times, cache]) => [times + 1, cache]);\n if (!effectMap.has(fullPathStr)) {\n onCacheEffect?.(cacheContent);\n effectMap.set(fullPathStr, true);\n\n // 微任务清理缓存,可以认为是单次 batch render 中只触发一次 effect\n Promise.resolve().then(() => {\n effectMap.delete(fullPathStr);\n });\n }\n return () => {\n globalCache.opUpdate(fullPathStr, prevCache => {\n const [times = 0, cache] = prevCache || [];\n const nextCount = times - 1;\n if (nextCount === 0) {\n onCacheRemove?.(cache, false);\n effectMap.delete(fullPathStr);\n return null;\n }\n return [times - 1, cache];\n });\n };\n }, [fullPathStr]);\n return cacheContent;\n}"],"names":["effectMap","useGlobalCache","prefix","keyPath","cacheFn","onCacheRemove","onCacheEffect","globalCache","React","StyleContext","fullPath","fullPathStr","pathKey","HMRUpdate","useHMR","buildCache","updater","prevCache","times","cache","tmpCache","process","mergedCache","data","cacheEntity","cacheContent","useInsertionEffect"],"mappings":";;;;;;AAKA,MAAMA,IAAY,oBAAI,IAAG;AACV,SAASC,EAAeC,GAAQC,GAASC,GAASC,GAEjEC,GAAe;AACb,QAAM;AAAA,IACJ,OAAOC;AAAA,EACX,IAAMC,EAAM,WAAWC,CAAY,GAC3BC,IAAW,CAACR,GAAQ,GAAGC,CAAO,GAC9BQ,IAAcC,EAAQF,CAAQ,GAC9BG,IAAYC,EAAM,GAClBC,IAAa,CAAAC,MAAW;AAC5B,IAAAT,EAAY,SAASI,GAAa,CAAAM,MAAa;AAC7C,YAAM,CAACC,IAAQ,GAAGC,CAAK,IAAIF,KAAa,CAAC,QAAW,MAAS;AAG7D,UAAIG,IAAWD;AACf,MAAIE,EAAQ,IAAI,aAAa,gBAAgBF,KAASN,MACpDR,IAAgBe,GAAUP,CAAS,GACnCO,IAAW;AAEb,YAAME,IAAcF,KAAYhB,EAAO,GACjCmB,IAAO,CAACL,GAAOI,CAAW;AAGhC,aAAON,IAAUA,EAAQO,CAAI,IAAIA;AAAA,IACnC,CAAC;AAAA,EACH;AAGA,EAAAf,EAAM;AAAA,IAAQ,MAAM;AAClB,MAAAO,EAAU;AAAA,IACZ;AAAA;AAAA,IACA,CAACJ,CAAW;AAAA;AAAA,EACd;AACE,MAAIa,IAAcjB,EAAY,MAAMI,CAAW;AAK/C,EAAIU,EAAQ,IAAI,aAAa,gBAAgB,CAACG,MAC5CT,EAAU,GACVS,IAAcjB,EAAY,MAAMI,CAAW;AAE7C,QAAMc,IAAeD,EAAY,CAAC;AAGlC,SAAAE,EAAmB,OACjBX,EAAW,CAAC,CAACG,GAAOC,CAAK,MAAM,CAACD,IAAQ,GAAGC,CAAK,CAAC,GAC5CnB,EAAU,IAAIW,CAAW,MAC5BL,IAAgBmB,CAAY,GAC5BzB,EAAU,IAAIW,GAAa,EAAI,GAG/B,QAAQ,UAAU,KAAK,MAAM;AAC3B,IAAAX,EAAU,OAAOW,CAAW;AAAA,EAC9B,CAAC,IAEI,MAAM;AACX,IAAAJ,EAAY,SAASI,GAAa,CAAAM,MAAa;AAC7C,YAAM,CAACC,IAAQ,GAAGC,CAAK,IAAIF,KAAa,CAAA;AAExC,aADkBC,IAAQ,MACR,KAChBb,IAAgBc,GAAO,EAAK,GAC5BnB,EAAU,OAAOW,CAAW,GACrB,QAEF,CAACO,IAAQ,GAAGC,CAAK;AAAA,IAC1B,CAAC;AAAA,EACH,IACC,CAACR,CAAW,CAAC,GACTc;AACT;","x_google_ignoreList":[0]}
@@ -4,36 +4,39 @@ import { updateCSS as T, removeCSS as q } from "../../../../@rc-component/util/e
4
4
  import * as F from "react";
5
5
  import U from "../../../../@emotion/unitless/dist/unitless.browser.esm.js";
6
6
  import V, { ATTR_MARK as R, CSS_IN_JS_INSTANCE as W, ATTR_CACHE_PATH as Y } from "../StyleContext.js";
7
- import { isClientSide as O } from "../util/index.js";
8
- import { CSS_FILE_STYLE as G, existPath as J, getStyleAndHash as X } from "../util/cacheMapUtil.js";
9
- import Z from "./useGlobalCache.js";
10
- import { serialize as w, stringify as v } from "../../../../stylis/src/Serializer.js";
7
+ import { isClientSide as O, isNonNullable as G, where as J } from "../util/index.js";
8
+ import { CSS_FILE_STYLE as X, existPath as Z, getStyleAndHash as B } from "../util/cacheMapUtil.js";
9
+ import Q from "./useGlobalCache.js";
10
+ import { serialize as v, stringify as w } from "../../../../stylis/src/Serializer.js";
11
11
  import { compile as z } from "../../../../stylis/src/Parser.js";
12
- import { middleware as B, prefixer as Q } from "../../../../stylis/src/Middleware.js";
13
- import ee from "../linters/contentQuotesLinter.js";
14
- import te from "../linters/hashedAnimationLinter.js";
12
+ import { middleware as ee, prefixer as te } from "../../../../stylis/src/Middleware.js";
13
+ import re from "../linters/contentQuotesLinter.js";
14
+ import ne from "../linters/hashedAnimationLinter.js";
15
15
  const D = "_skip_check_", K = "_multi_value_";
16
- function H(t, c) {
17
- return (c ? w(z(t), B([Q, v])) : w(z(t), v)).replace(/\{%%%\:[^;];}/g, ";");
16
+ function H(r, c) {
17
+ return (c ? v(z(r), ee([te, w])) : v(z(r), w)).replace(/\{%%%\:[^;];}/g, ";");
18
18
  }
19
- function re(t) {
20
- return typeof t == "object" && t && (D in t || K in t);
19
+ function oe(r) {
20
+ return typeof r == "object" && r && (D in r || K in r);
21
21
  }
22
- function k(t, c, h) {
22
+ function k(r, c, h = "high") {
23
23
  if (!c)
24
- return t;
25
- const E = `.${c}`, C = h === "low" ? `:where(${E})` : E;
26
- return t.split(",").map((m) => {
27
- const j = m.trim().split(/\s+/);
28
- let u = j[0] || "";
29
- const N = u.match(/^\w+/)?.[0] || "";
30
- return u = `${N}${C}${u.slice(N.length)}`, [u, ...j.slice(1)].join(" ");
24
+ return r;
25
+ const C = J({
26
+ hashCls: c,
27
+ hashPriority: h
28
+ });
29
+ return r.split(",").map((f) => {
30
+ const m = f.trim().split(/\s+/);
31
+ let u = m[0] || "";
32
+ const _ = u.match(/^\w+/)?.[0] || "";
33
+ return u = `${_}${C}${u.slice(_.length)}`, [u, ...m.slice(1)].join(" ");
31
34
  }).join(",");
32
35
  }
33
- const x = (t, c = {}, {
36
+ const x = (r, c = {}, {
34
37
  root: h,
35
- injectHash: E,
36
- parentSelectors: C
38
+ injectHash: C,
39
+ parentSelectors: N
37
40
  } = {
38
41
  root: !0,
39
42
  parentSelectors: []
@@ -41,159 +44,159 @@ const x = (t, c = {}, {
41
44
  const {
42
45
  hashId: f,
43
46
  layer: m,
44
- path: j,
45
- hashPriority: u,
46
- transformers: N = [],
47
- linters: b = []
47
+ path: u,
48
+ hashPriority: _,
49
+ transformers: P = [],
50
+ linters: g = []
48
51
  } = c;
49
- let p = "", $ = {};
50
- function I(n) {
52
+ let p = "", E = {};
53
+ function b(n) {
51
54
  const a = n.getName(f);
52
- if (!$[a]) {
55
+ if (!E[a]) {
53
56
  const [o] = x(n.style, c, {
54
57
  root: !1,
55
- parentSelectors: C
58
+ parentSelectors: N
56
59
  });
57
- $[a] = `@keyframes ${n.getName(f)}${o}`;
60
+ E[a] = `@keyframes ${n.getName(f)}${o}`;
58
61
  }
59
62
  }
60
- function A(n, a = []) {
63
+ function j(n, a = []) {
61
64
  return n.forEach((o) => {
62
- Array.isArray(o) ? A(o, a) : o && a.push(o);
65
+ Array.isArray(o) ? j(o, a) : o && a.push(o);
63
66
  }), a;
64
67
  }
65
- return A(Array.isArray(t) ? t : [t]).forEach((n) => {
68
+ return j(Array.isArray(r) ? r : [r]).forEach((n) => {
66
69
  const a = typeof n == "string" && !h ? {} : n;
67
70
  if (typeof a == "string")
68
71
  p += `${a}
69
72
  `;
70
73
  else if (a._keyframe)
71
- I(a);
74
+ b(a);
72
75
  else {
73
- const o = N.reduce((s, e) => e?.visit?.(s) || s, a);
76
+ const o = P.reduce((s, e) => e?.visit?.(s) || s, a);
74
77
  Object.keys(o).forEach((s) => {
75
78
  const e = o[s];
76
- if (typeof e == "object" && e && (s !== "animationName" || !e._keyframe) && !re(e)) {
77
- let y = !1, r = s.trim(), i = !1;
78
- (h || E) && f ? r.startsWith("@") ? y = !0 : r === "&" ? r = k("", f, u) : r = k(s, f, u) : h && !f && (r === "&" || r === "") && (r = "", i = !0);
79
- const [l, _] = x(e, c, {
79
+ if (typeof e == "object" && e && (s !== "animationName" || !e._keyframe) && !oe(e)) {
80
+ let y = !1, t = s.trim(), i = !1;
81
+ (h || C) && f ? t.startsWith("@") ? y = !0 : t === "&" ? t = k("", f, _) : t = k(s, f, _) : h && !f && (t === "&" || t === "") && (t = "", i = !0);
82
+ const [l, $] = x(e, c, {
80
83
  root: i,
81
84
  injectHash: y,
82
- parentSelectors: [...C, r]
85
+ parentSelectors: [...N, t]
83
86
  });
84
- $ = {
85
- ...$,
86
- ..._
87
- }, p += `${r}${l}`;
87
+ E = {
88
+ ...E,
89
+ ...$
90
+ }, p += `${t}${l}`;
88
91
  } else {
89
92
  let y = function(i, l) {
90
- L.env.NODE_ENV !== "production" && (typeof e != "object" || !e?.[D]) && [ee, te, ...b].forEach((g) => g(i, l, {
91
- path: j,
93
+ L.env.NODE_ENV !== "production" && (typeof e != "object" || !e?.[D]) && [re, ne, ...g].forEach((A) => A(i, l, {
94
+ path: u,
92
95
  hashId: f,
93
- parentSelectors: C
96
+ parentSelectors: N
94
97
  }));
95
- const _ = i.replace(/[A-Z]/g, (g) => `-${g.toLowerCase()}`);
98
+ const $ = i.replace(/[A-Z]/g, (A) => `-${A.toLowerCase()}`);
96
99
  let S = l;
97
- !U[i] && typeof S == "number" && S !== 0 && (S = `${S}px`), i === "animationName" && l?._keyframe && (I(l), S = l.getName(f)), p += `${_}:${S};`;
100
+ !U[i] && typeof S == "number" && S !== 0 && (S = `${S}px`), i === "animationName" && l?._keyframe && (b(l), S = l.getName(f)), p += `${$}:${S};`;
98
101
  };
99
- const r = e?.value ?? e;
100
- typeof e == "object" && e?.[K] && Array.isArray(r) ? r.forEach((i) => {
102
+ const t = e?.value ?? e;
103
+ typeof e == "object" && e?.[K] && Array.isArray(t) ? t.forEach((i) => {
101
104
  y(s, i);
102
- }) : y(s, r);
105
+ }) : G(t) && y(s, t);
103
106
  }
104
107
  });
105
108
  }
106
- }), h ? m && (p && (p = `@layer ${m.name} {${p}}`), m.dependencies && ($[`@layer ${m.name}`] = m.dependencies.map((n) => `@layer ${n}, ${m.name};`).join(`
107
- `))) : p = `{${p}}`, [p, $];
109
+ }), h ? m && (p && (p = `@layer ${m.name} {${p}}`), m.dependencies && (E[`@layer ${m.name}`] = m.dependencies.map((n) => `@layer ${n}, ${m.name};`).join(`
110
+ `))) : p = `{${p}}`, [p, E];
108
111
  };
109
- function ne(t, c) {
110
- return M(`${t.join("%")}${c}`);
112
+ function se(r, c) {
113
+ return M(`${r.join("%")}${c}`);
111
114
  }
112
- const oe = "style";
113
- function $e(t, c) {
115
+ const ie = "style";
116
+ function $e(r, c) {
114
117
  const {
115
118
  path: h,
116
- hashId: E,
117
- layer: C,
119
+ hashId: C,
120
+ layer: N,
118
121
  nonce: f,
119
122
  clientOnly: m,
120
- order: j = 0
121
- } = t, {
122
- mock: u,
123
- hashPriority: N,
124
- container: b,
123
+ order: u = 0
124
+ } = r, {
125
+ mock: _,
126
+ hashPriority: P,
127
+ container: g,
125
128
  transformers: p,
126
- linters: $,
127
- cache: I,
128
- layer: A,
129
- autoPrefix: P
130
- } = F.useContext(V), n = [E || ""];
131
- A && n.push("layer"), n.push(...h);
129
+ linters: E,
130
+ cache: b,
131
+ layer: j,
132
+ autoPrefix: I
133
+ } = F.useContext(V), n = [C || ""];
134
+ j && n.push("layer"), n.push(...h);
132
135
  let a = O;
133
- L.env.NODE_ENV !== "production" && u !== void 0 && (a = u === "client"), Z(
134
- oe,
136
+ L.env.NODE_ENV !== "production" && _ !== void 0 && (a = _ === "client"), Q(
137
+ ie,
135
138
  n,
136
139
  // Create cache if needed
137
140
  () => {
138
141
  const o = n.join("|");
139
- if (J(o)) {
140
- const [l, _] = X(o);
142
+ if (Z(o)) {
143
+ const [l, $] = B(o);
141
144
  if (l)
142
- return [l, _, {}, m, j];
145
+ return [l, $, {}, m, u];
143
146
  }
144
147
  const s = c(), [e, y] = x(s, {
145
- hashId: E,
146
- hashPriority: N,
147
- layer: A ? C : void 0,
148
+ hashId: C,
149
+ hashPriority: P,
150
+ layer: j ? N : void 0,
148
151
  path: h.join("-"),
149
152
  transformers: p,
150
- linters: $
151
- }), r = H(e, P || !1), i = ne(n, r);
152
- return [r, i, y, m, j];
153
+ linters: E
154
+ }), t = H(e, I || !1), i = se(n, t);
155
+ return [t, i, y, m, u];
153
156
  },
154
157
  // Remove cache if no need
155
158
  (o, s) => {
156
159
  const [, e] = o;
157
160
  s && O && q(e, {
158
161
  mark: R,
159
- attachTo: b
162
+ attachTo: g
160
163
  });
161
164
  },
162
165
  // Effect: Inject style here
163
166
  (o) => {
164
- const [s, e, y, , r] = o;
165
- if (a && s !== G) {
167
+ const [s, e, y, , t] = o;
168
+ if (a && s !== X) {
166
169
  const i = {
167
170
  mark: R,
168
- prepend: A ? !1 : "queue",
169
- attachTo: b,
170
- priority: r
171
+ prepend: j ? !1 : "queue",
172
+ attachTo: g,
173
+ priority: t
171
174
  }, l = typeof f == "function" ? f() : f;
172
175
  l && (i.csp = {
173
176
  nonce: l
174
177
  });
175
- const _ = [], S = [];
178
+ const $ = [], S = [];
176
179
  Object.keys(y).forEach((d) => {
177
- d.startsWith("@layer") ? _.push(d) : S.push(d);
178
- }), _.forEach((d) => {
179
- T(H(y[d], P || !1), `_layer-${d}`, {
180
+ d.startsWith("@layer") ? $.push(d) : S.push(d);
181
+ }), $.forEach((d) => {
182
+ T(H(y[d], I || !1), `_layer-${d}`, {
180
183
  ...i,
181
184
  prepend: !0
182
185
  });
183
186
  });
184
- const g = T(s, e, i);
185
- g[W] = I.instanceId, L.env.NODE_ENV !== "production" && g.setAttribute(Y, n.join("|")), S.forEach((d) => {
186
- T(H(y[d], P || !1), `_effect-${d}`, i);
187
+ const A = T(s, e, i);
188
+ A[W] = b.instanceId, L.env.NODE_ENV !== "production" && A.setAttribute(Y, n.join("|")), S.forEach((d) => {
189
+ T(H(y[d], I || !1), `_effect-${d}`, i);
187
190
  });
188
191
  }
189
192
  }
190
193
  );
191
194
  }
192
195
  export {
193
- oe as STYLE_PREFIX,
196
+ ie as STYLE_PREFIX,
194
197
  $e as default,
195
198
  H as normalizeStyle,
196
199
  x as parseStyle,
197
- ne as uniqueHash
200
+ se as uniqueHash
198
201
  };
199
202
  //# sourceMappingURL=useStyleRegister.js.map