@databricks/design-system 1.2.0 → 1.3.0

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 (543) hide show
  1. package/dist/antd-vars.d.ts +1 -0
  2. package/dist/antd-vars.d.ts.map +1 -0
  3. package/dist/cjs/index.js +1703 -347
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/design-system/Alert/Alert.d.ts +1 -0
  6. package/dist/design-system/Alert/Alert.d.ts.map +1 -0
  7. package/dist/design-system/Alert/index.d.ts +1 -0
  8. package/dist/design-system/Alert/index.d.ts.map +1 -0
  9. package/dist/design-system/AutoComplete/AutoComplete.d.ts +1 -0
  10. package/dist/design-system/AutoComplete/AutoComplete.d.ts.map +1 -0
  11. package/dist/design-system/AutoComplete/index.d.ts +1 -0
  12. package/dist/design-system/AutoComplete/index.d.ts.map +1 -0
  13. package/dist/design-system/Breadcrumb/Breadcrumb.d.ts +1 -0
  14. package/dist/design-system/Breadcrumb/Breadcrumb.d.ts.map +1 -0
  15. package/dist/design-system/Breadcrumb/index.d.ts +1 -0
  16. package/dist/design-system/Breadcrumb/index.d.ts.map +1 -0
  17. package/dist/design-system/Button/Button.d.ts +4 -2
  18. package/dist/design-system/Button/Button.d.ts.map +1 -0
  19. package/dist/design-system/Button/Button.test.d.ts +1 -0
  20. package/dist/design-system/Button/Button.test.d.ts.map +1 -0
  21. package/dist/design-system/Button/index.d.ts +1 -0
  22. package/dist/design-system/Button/index.d.ts.map +1 -0
  23. package/dist/design-system/Button/styles.d.ts +2 -1
  24. package/dist/design-system/Button/styles.d.ts.map +1 -0
  25. package/dist/design-system/Checkbox/Checkbox.d.ts +1 -0
  26. package/dist/design-system/Checkbox/Checkbox.d.ts.map +1 -0
  27. package/dist/design-system/Checkbox/Checkbox.test.d.ts +1 -0
  28. package/dist/design-system/Checkbox/Checkbox.test.d.ts.map +1 -0
  29. package/dist/design-system/Checkbox/index.d.ts +1 -0
  30. package/dist/design-system/Checkbox/index.d.ts.map +1 -0
  31. package/dist/design-system/Collapse/Collapse.d.ts +1 -0
  32. package/dist/design-system/Collapse/Collapse.d.ts.map +1 -0
  33. package/dist/design-system/Collapse/index.d.ts +1 -0
  34. package/dist/design-system/Collapse/index.d.ts.map +1 -0
  35. package/dist/design-system/DatePicker/DatePicker.d.ts +1 -0
  36. package/dist/design-system/DatePicker/DatePicker.d.ts.map +1 -0
  37. package/dist/design-system/DatePicker/index.d.ts +1 -0
  38. package/dist/design-system/DatePicker/index.d.ts.map +1 -0
  39. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts +1 -6
  40. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -0
  41. package/dist/design-system/DesignSystemProvider/index.d.ts +1 -0
  42. package/dist/design-system/DesignSystemProvider/index.d.ts.map +1 -0
  43. package/dist/design-system/Dropdown/Dropdown.d.ts +1 -0
  44. package/dist/design-system/Dropdown/Dropdown.d.ts.map +1 -0
  45. package/dist/design-system/Dropdown/index.d.ts +1 -0
  46. package/dist/design-system/Dropdown/index.d.ts.map +1 -0
  47. package/dist/design-system/DropdownMenu/DropdownMenu.d.ts +2 -1
  48. package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +1 -0
  49. package/dist/design-system/DropdownMenu/index.d.ts +1 -0
  50. package/dist/design-system/DropdownMenu/index.d.ts.map +1 -0
  51. package/dist/design-system/Form/Form.d.ts +1 -0
  52. package/dist/design-system/Form/Form.d.ts.map +1 -0
  53. package/dist/design-system/Form/index.d.ts +1 -0
  54. package/dist/design-system/Form/index.d.ts.map +1 -0
  55. package/dist/design-system/Grid/Col.d.ts +1 -0
  56. package/dist/design-system/Grid/Col.d.ts.map +1 -0
  57. package/dist/design-system/Grid/Row.d.ts +1 -0
  58. package/dist/design-system/Grid/Row.d.ts.map +1 -0
  59. package/dist/design-system/Grid/index.d.ts +1 -0
  60. package/dist/design-system/Grid/index.d.ts.map +1 -0
  61. package/dist/design-system/Header/Header.d.ts +1 -0
  62. package/dist/design-system/Header/Header.d.ts.map +1 -0
  63. package/dist/design-system/Header/index.d.ts +1 -0
  64. package/dist/design-system/Header/index.d.ts.map +1 -0
  65. package/dist/design-system/Hooks/index.d.ts +1 -0
  66. package/dist/design-system/Hooks/index.d.ts.map +1 -0
  67. package/dist/design-system/Hooks/useDesignSystemContext.d.ts +1 -0
  68. package/dist/design-system/Hooks/useDesignSystemContext.d.ts.map +1 -0
  69. package/dist/design-system/Hooks/useDesignSystemTheme.d.ts +1 -0
  70. package/dist/design-system/Hooks/useDesignSystemTheme.d.ts.map +1 -0
  71. package/dist/design-system/Hooks/useThemedStyles.d.ts +1 -0
  72. package/dist/design-system/Hooks/useThemedStyles.d.ts.map +1 -0
  73. package/dist/design-system/Icon/Icon.d.ts +1 -0
  74. package/dist/design-system/Icon/Icon.d.ts.map +1 -0
  75. package/dist/design-system/Icon/__generated/icons/AIcon.d.ts +1 -0
  76. package/dist/design-system/Icon/__generated/icons/AIcon.d.ts.map +1 -0
  77. package/dist/design-system/Icon/__generated/icons/AlignCenterIcon.d.ts +1 -0
  78. package/dist/design-system/Icon/__generated/icons/AlignCenterIcon.d.ts.map +1 -0
  79. package/dist/design-system/Icon/__generated/icons/AlignLeftIcon.d.ts +1 -0
  80. package/dist/design-system/Icon/__generated/icons/AlignLeftIcon.d.ts.map +1 -0
  81. package/dist/design-system/Icon/__generated/icons/AlignRightIcon.d.ts +1 -0
  82. package/dist/design-system/Icon/__generated/icons/AlignRightIcon.d.ts.map +1 -0
  83. package/dist/design-system/Icon/__generated/icons/ArrowDownIcon.d.ts +1 -0
  84. package/dist/design-system/Icon/__generated/icons/ArrowDownIcon.d.ts.map +1 -0
  85. package/dist/design-system/Icon/__generated/icons/ArrowLeftIcon.d.ts +1 -0
  86. package/dist/design-system/Icon/__generated/icons/ArrowLeftIcon.d.ts.map +1 -0
  87. package/dist/design-system/Icon/__generated/icons/ArrowRightIcon.d.ts +1 -0
  88. package/dist/design-system/Icon/__generated/icons/ArrowRightIcon.d.ts.map +1 -0
  89. package/dist/design-system/Icon/__generated/icons/ArrowUpIcon.d.ts +1 -0
  90. package/dist/design-system/Icon/__generated/icons/ArrowUpIcon.d.ts.map +1 -0
  91. package/dist/design-system/Icon/__generated/icons/ArrowsUpDownIcon.d.ts +1 -0
  92. package/dist/design-system/Icon/__generated/icons/ArrowsUpDownIcon.d.ts.map +1 -0
  93. package/dist/design-system/Icon/__generated/icons/BarChartIcon.d.ts +1 -0
  94. package/dist/design-system/Icon/__generated/icons/BarChartIcon.d.ts.map +1 -0
  95. package/dist/design-system/Icon/__generated/icons/BeakerIcon.d.ts +1 -0
  96. package/dist/design-system/Icon/__generated/icons/BeakerIcon.d.ts.map +1 -0
  97. package/dist/design-system/Icon/__generated/icons/BookIcon.d.ts +1 -0
  98. package/dist/design-system/Icon/__generated/icons/BookIcon.d.ts.map +1 -0
  99. package/dist/design-system/Icon/__generated/icons/BookmarkBorderIcon.d.ts +1 -0
  100. package/dist/design-system/Icon/__generated/icons/BookmarkBorderIcon.d.ts.map +1 -0
  101. package/dist/design-system/Icon/__generated/icons/BookmarkFillIcon.d.ts +1 -0
  102. package/dist/design-system/Icon/__generated/icons/BookmarkFillIcon.d.ts.map +1 -0
  103. package/dist/design-system/Icon/__generated/icons/BriefcaseFillIcon.d.ts +1 -0
  104. package/dist/design-system/Icon/__generated/icons/BriefcaseFillIcon.d.ts.map +1 -0
  105. package/dist/design-system/Icon/__generated/icons/BriefcaseIcon.d.ts +1 -0
  106. package/dist/design-system/Icon/__generated/icons/BriefcaseIcon.d.ts.map +1 -0
  107. package/dist/design-system/Icon/__generated/icons/CalendarEventIcon.d.ts +1 -0
  108. package/dist/design-system/Icon/__generated/icons/CalendarEventIcon.d.ts.map +1 -0
  109. package/dist/design-system/Icon/__generated/icons/CalendarIcon.d.ts +1 -0
  110. package/dist/design-system/Icon/__generated/icons/CalendarIcon.d.ts.map +1 -0
  111. package/dist/design-system/Icon/__generated/icons/CaretDownSquareIcon.d.ts +1 -0
  112. package/dist/design-system/Icon/__generated/icons/CaretDownSquareIcon.d.ts.map +1 -0
  113. package/dist/design-system/Icon/__generated/icons/CaretUpSquareIcon.d.ts +1 -0
  114. package/dist/design-system/Icon/__generated/icons/CaretUpSquareIcon.d.ts.map +1 -0
  115. package/dist/design-system/Icon/__generated/icons/CheckCircleBorderIcon.d.ts +1 -0
  116. package/dist/design-system/Icon/__generated/icons/CheckCircleBorderIcon.d.ts.map +1 -0
  117. package/dist/design-system/Icon/__generated/icons/CheckCircleFillIcon.d.ts +1 -0
  118. package/dist/design-system/Icon/__generated/icons/CheckCircleFillIcon.d.ts.map +1 -0
  119. package/dist/design-system/Icon/__generated/icons/CheckIcon.d.ts +1 -0
  120. package/dist/design-system/Icon/__generated/icons/CheckIcon.d.ts.map +1 -0
  121. package/dist/design-system/Icon/__generated/icons/CheckLineIcon.d.ts +1 -0
  122. package/dist/design-system/Icon/__generated/icons/CheckLineIcon.d.ts.map +1 -0
  123. package/dist/design-system/Icon/__generated/icons/ChecklistIcon.d.ts +1 -0
  124. package/dist/design-system/Icon/__generated/icons/ChecklistIcon.d.ts.map +1 -0
  125. package/dist/design-system/Icon/__generated/icons/ChevronDoubleDownIcon.d.ts +1 -0
  126. package/dist/design-system/Icon/__generated/icons/ChevronDoubleDownIcon.d.ts.map +1 -0
  127. package/dist/design-system/Icon/__generated/icons/ChevronDoubleLeftIcon.d.ts +1 -0
  128. package/dist/design-system/Icon/__generated/icons/ChevronDoubleLeftIcon.d.ts.map +1 -0
  129. package/dist/design-system/Icon/__generated/icons/ChevronDoubleRightIcon.d.ts +1 -0
  130. package/dist/design-system/Icon/__generated/icons/ChevronDoubleRightIcon.d.ts.map +1 -0
  131. package/dist/design-system/Icon/__generated/icons/ChevronDoubleUpIcon.d.ts +1 -0
  132. package/dist/design-system/Icon/__generated/icons/ChevronDoubleUpIcon.d.ts.map +1 -0
  133. package/dist/design-system/Icon/__generated/icons/ChevronDownIcon.d.ts +1 -0
  134. package/dist/design-system/Icon/__generated/icons/ChevronDownIcon.d.ts.map +1 -0
  135. package/dist/design-system/Icon/__generated/icons/ChevronLeftIcon.d.ts +1 -0
  136. package/dist/design-system/Icon/__generated/icons/ChevronLeftIcon.d.ts.map +1 -0
  137. package/dist/design-system/Icon/__generated/icons/ChevronRightIcon.d.ts +1 -0
  138. package/dist/design-system/Icon/__generated/icons/ChevronRightIcon.d.ts.map +1 -0
  139. package/dist/design-system/Icon/__generated/icons/ChevronUpIcon.d.ts +1 -0
  140. package/dist/design-system/Icon/__generated/icons/ChevronUpIcon.d.ts.map +1 -0
  141. package/dist/design-system/Icon/__generated/icons/CircleIcon.d.ts +1 -0
  142. package/dist/design-system/Icon/__generated/icons/CircleIcon.d.ts.map +1 -0
  143. package/dist/design-system/Icon/__generated/icons/ClipboardIcon.d.ts +1 -0
  144. package/dist/design-system/Icon/__generated/icons/ClipboardIcon.d.ts.map +1 -0
  145. package/dist/design-system/Icon/__generated/icons/Clock1Icon.d.ts +1 -0
  146. package/dist/design-system/Icon/__generated/icons/Clock1Icon.d.ts.map +1 -0
  147. package/dist/design-system/Icon/__generated/icons/ClockIcon.d.ts +1 -0
  148. package/dist/design-system/Icon/__generated/icons/ClockIcon.d.ts.map +1 -0
  149. package/dist/design-system/Icon/__generated/icons/CloseIcon.d.ts +1 -0
  150. package/dist/design-system/Icon/__generated/icons/CloseIcon.d.ts.map +1 -0
  151. package/dist/design-system/Icon/__generated/icons/CloudDownloadIcon.d.ts +1 -0
  152. package/dist/design-system/Icon/__generated/icons/CloudDownloadIcon.d.ts.map +1 -0
  153. package/dist/design-system/Icon/__generated/icons/CloudIcon.d.ts +1 -0
  154. package/dist/design-system/Icon/__generated/icons/CloudIcon.d.ts.map +1 -0
  155. package/dist/design-system/Icon/__generated/icons/CloudOffIcon.d.ts +1 -0
  156. package/dist/design-system/Icon/__generated/icons/CloudOffIcon.d.ts.map +1 -0
  157. package/dist/design-system/Icon/__generated/icons/CloudUploadIcon.d.ts +1 -0
  158. package/dist/design-system/Icon/__generated/icons/CloudUploadIcon.d.ts.map +1 -0
  159. package/dist/design-system/Icon/__generated/icons/ClusterIcon.d.ts +1 -0
  160. package/dist/design-system/Icon/__generated/icons/ClusterIcon.d.ts.map +1 -0
  161. package/dist/design-system/Icon/__generated/icons/ClustersIcon.d.ts +1 -0
  162. package/dist/design-system/Icon/__generated/icons/ClustersIcon.d.ts.map +1 -0
  163. package/dist/design-system/Icon/__generated/icons/CodeIcon.d.ts +1 -0
  164. package/dist/design-system/Icon/__generated/icons/CodeIcon.d.ts.map +1 -0
  165. package/dist/design-system/Icon/__generated/icons/CopyIcon.d.ts +1 -0
  166. package/dist/design-system/Icon/__generated/icons/CopyIcon.d.ts.map +1 -0
  167. package/dist/design-system/Icon/__generated/icons/DIcon.d.ts +1 -0
  168. package/dist/design-system/Icon/__generated/icons/DIcon.d.ts.map +1 -0
  169. package/dist/design-system/Icon/__generated/icons/DashIcon.d.ts +1 -0
  170. package/dist/design-system/Icon/__generated/icons/DashIcon.d.ts.map +1 -0
  171. package/dist/design-system/Icon/__generated/icons/DashboardIcon.d.ts +1 -0
  172. package/dist/design-system/Icon/__generated/icons/DashboardIcon.d.ts.map +1 -0
  173. package/dist/design-system/Icon/__generated/icons/DataIcon.d.ts +1 -0
  174. package/dist/design-system/Icon/__generated/icons/DataIcon.d.ts.map +1 -0
  175. package/dist/design-system/Icon/__generated/icons/DatabaseIcon.d.ts +1 -0
  176. package/dist/design-system/Icon/__generated/icons/DatabaseIcon.d.ts.map +1 -0
  177. package/dist/design-system/Icon/__generated/icons/DownloadIcon.d.ts +1 -0
  178. package/dist/design-system/Icon/__generated/icons/DownloadIcon.d.ts.map +1 -0
  179. package/dist/design-system/Icon/__generated/icons/DragIcon.d.ts +1 -0
  180. package/dist/design-system/Icon/__generated/icons/DragIcon.d.ts.map +1 -0
  181. package/dist/design-system/Icon/__generated/icons/ErrorBorderIcon.d.ts +1 -0
  182. package/dist/design-system/Icon/__generated/icons/ErrorBorderIcon.d.ts.map +1 -0
  183. package/dist/design-system/Icon/__generated/icons/ErrorFillIcon.d.ts +1 -0
  184. package/dist/design-system/Icon/__generated/icons/ErrorFillIcon.d.ts.map +1 -0
  185. package/dist/design-system/Icon/__generated/icons/ExpandLessIcon.d.ts +1 -0
  186. package/dist/design-system/Icon/__generated/icons/ExpandLessIcon.d.ts.map +1 -0
  187. package/dist/design-system/Icon/__generated/icons/ExpandMoreIcon.d.ts +1 -0
  188. package/dist/design-system/Icon/__generated/icons/ExpandMoreIcon.d.ts.map +1 -0
  189. package/dist/design-system/Icon/__generated/icons/ExperimentIcon.d.ts +1 -0
  190. package/dist/design-system/Icon/__generated/icons/ExperimentIcon.d.ts.map +1 -0
  191. package/dist/design-system/Icon/__generated/icons/FeatureStoreIcon.d.ts +1 -0
  192. package/dist/design-system/Icon/__generated/icons/FeatureStoreIcon.d.ts.map +1 -0
  193. package/dist/design-system/Icon/__generated/icons/FileCodeIcon.d.ts +1 -0
  194. package/dist/design-system/Icon/__generated/icons/FileCodeIcon.d.ts.map +1 -0
  195. package/dist/design-system/Icon/__generated/icons/FileDocumentIcon.d.ts +1 -0
  196. package/dist/design-system/Icon/__generated/icons/FileDocumentIcon.d.ts.map +1 -0
  197. package/dist/design-system/Icon/__generated/icons/FileIcon.d.ts +1 -0
  198. package/dist/design-system/Icon/__generated/icons/FileIcon.d.ts.map +1 -0
  199. package/dist/design-system/Icon/__generated/icons/FileImageIcon.d.ts +1 -0
  200. package/dist/design-system/Icon/__generated/icons/FileImageIcon.d.ts.map +1 -0
  201. package/dist/design-system/Icon/__generated/icons/FileModelIcon.d.ts +1 -0
  202. package/dist/design-system/Icon/__generated/icons/FileModelIcon.d.ts.map +1 -0
  203. package/dist/design-system/Icon/__generated/icons/FilterIcon.d.ts +1 -0
  204. package/dist/design-system/Icon/__generated/icons/FilterIcon.d.ts.map +1 -0
  205. package/dist/design-system/Icon/__generated/icons/Folder1Icon.d.ts +1 -0
  206. package/dist/design-system/Icon/__generated/icons/Folder1Icon.d.ts.map +1 -0
  207. package/dist/design-system/Icon/__generated/icons/FolderIcon.d.ts +1 -0
  208. package/dist/design-system/Icon/__generated/icons/FolderIcon.d.ts.map +1 -0
  209. package/dist/design-system/Icon/__generated/icons/ForkIcon.d.ts +1 -0
  210. package/dist/design-system/Icon/__generated/icons/ForkIcon.d.ts.map +1 -0
  211. package/dist/design-system/Icon/__generated/icons/FullscreenExitIcon.d.ts +1 -0
  212. package/dist/design-system/Icon/__generated/icons/FullscreenExitIcon.d.ts.map +1 -0
  213. package/dist/design-system/Icon/__generated/icons/FullscreenIcon.d.ts +1 -0
  214. package/dist/design-system/Icon/__generated/icons/FullscreenIcon.d.ts.map +1 -0
  215. package/dist/design-system/Icon/__generated/icons/Gear1Icon.d.ts +1 -0
  216. package/dist/design-system/Icon/__generated/icons/Gear1Icon.d.ts.map +1 -0
  217. package/dist/design-system/Icon/__generated/icons/GearIcon.d.ts +1 -0
  218. package/dist/design-system/Icon/__generated/icons/GearIcon.d.ts.map +1 -0
  219. package/dist/design-system/Icon/__generated/icons/GridDashIcon.d.ts +1 -0
  220. package/dist/design-system/Icon/__generated/icons/GridDashIcon.d.ts.map +1 -0
  221. package/dist/design-system/Icon/__generated/icons/GridIcon.d.ts +1 -0
  222. package/dist/design-system/Icon/__generated/icons/GridIcon.d.ts.map +1 -0
  223. package/dist/design-system/Icon/__generated/icons/H1Icon.d.ts +1 -0
  224. package/dist/design-system/Icon/__generated/icons/H1Icon.d.ts.map +1 -0
  225. package/dist/design-system/Icon/__generated/icons/H2Icon.d.ts +1 -0
  226. package/dist/design-system/Icon/__generated/icons/H2Icon.d.ts.map +1 -0
  227. package/dist/design-system/Icon/__generated/icons/H3Icon.d.ts +1 -0
  228. package/dist/design-system/Icon/__generated/icons/H3Icon.d.ts.map +1 -0
  229. package/dist/design-system/Icon/__generated/icons/HistoryIcon.d.ts +1 -0
  230. package/dist/design-system/Icon/__generated/icons/HistoryIcon.d.ts.map +1 -0
  231. package/dist/design-system/Icon/__generated/icons/HomeIcon.d.ts +1 -0
  232. package/dist/design-system/Icon/__generated/icons/HomeIcon.d.ts.map +1 -0
  233. package/dist/design-system/Icon/__generated/icons/ImageIcon.d.ts +1 -0
  234. package/dist/design-system/Icon/__generated/icons/ImageIcon.d.ts.map +1 -0
  235. package/dist/design-system/Icon/__generated/icons/IndentDecreaseIcon.d.ts +1 -0
  236. package/dist/design-system/Icon/__generated/icons/IndentDecreaseIcon.d.ts.map +1 -0
  237. package/dist/design-system/Icon/__generated/icons/IndentIncreaseIcon.d.ts +1 -0
  238. package/dist/design-system/Icon/__generated/icons/IndentIncreaseIcon.d.ts.map +1 -0
  239. package/dist/design-system/Icon/__generated/icons/InfoBorderIcon.d.ts +1 -0
  240. package/dist/design-system/Icon/__generated/icons/InfoBorderIcon.d.ts.map +1 -0
  241. package/dist/design-system/Icon/__generated/icons/InfoFillIcon.d.ts +1 -0
  242. package/dist/design-system/Icon/__generated/icons/InfoFillIcon.d.ts.map +1 -0
  243. package/dist/design-system/Icon/__generated/icons/KeyboardIcon.d.ts +1 -0
  244. package/dist/design-system/Icon/__generated/icons/KeyboardIcon.d.ts.map +1 -0
  245. package/dist/design-system/Icon/__generated/icons/LayerIcon.d.ts +1 -0
  246. package/dist/design-system/Icon/__generated/icons/LayerIcon.d.ts.map +1 -0
  247. package/dist/design-system/Icon/__generated/icons/LifesaverIcon.d.ts +1 -0
  248. package/dist/design-system/Icon/__generated/icons/LifesaverIcon.d.ts.map +1 -0
  249. package/dist/design-system/Icon/__generated/icons/LightningIcon.d.ts +1 -0
  250. package/dist/design-system/Icon/__generated/icons/LightningIcon.d.ts.map +1 -0
  251. package/dist/design-system/Icon/__generated/icons/LinkIcon.d.ts +1 -0
  252. package/dist/design-system/Icon/__generated/icons/LinkIcon.d.ts.map +1 -0
  253. package/dist/design-system/Icon/__generated/icons/LinkRemoveIcon.d.ts +1 -0
  254. package/dist/design-system/Icon/__generated/icons/LinkRemoveIcon.d.ts.map +1 -0
  255. package/dist/design-system/Icon/__generated/icons/ListBorderIcon.d.ts +1 -0
  256. package/dist/design-system/Icon/__generated/icons/ListBorderIcon.d.ts.map +1 -0
  257. package/dist/design-system/Icon/__generated/icons/ListIcon.d.ts +1 -0
  258. package/dist/design-system/Icon/__generated/icons/ListIcon.d.ts.map +1 -0
  259. package/dist/design-system/Icon/__generated/icons/LoadingIcon.d.ts +1 -0
  260. package/dist/design-system/Icon/__generated/icons/LoadingIcon.d.ts.map +1 -0
  261. package/dist/design-system/Icon/__generated/icons/LockBorderIcon.d.ts +1 -0
  262. package/dist/design-system/Icon/__generated/icons/LockBorderIcon.d.ts.map +1 -0
  263. package/dist/design-system/Icon/__generated/icons/LockFillIcon.d.ts +1 -0
  264. package/dist/design-system/Icon/__generated/icons/LockFillIcon.d.ts.map +1 -0
  265. package/dist/design-system/Icon/__generated/icons/LockUnlockedIcon.d.ts +1 -0
  266. package/dist/design-system/Icon/__generated/icons/LockUnlockedIcon.d.ts.map +1 -0
  267. package/dist/design-system/Icon/__generated/icons/MIcon.d.ts +1 -0
  268. package/dist/design-system/Icon/__generated/icons/MIcon.d.ts.map +1 -0
  269. package/dist/design-system/Icon/__generated/icons/MinusBoxIcon.d.ts +1 -0
  270. package/dist/design-system/Icon/__generated/icons/MinusBoxIcon.d.ts.map +1 -0
  271. package/dist/design-system/Icon/__generated/icons/MinusCircleBorderIcon.d.ts +1 -0
  272. package/dist/design-system/Icon/__generated/icons/MinusCircleBorderIcon.d.ts.map +1 -0
  273. package/dist/design-system/Icon/__generated/icons/MinusCircleFillIcon.d.ts +1 -0
  274. package/dist/design-system/Icon/__generated/icons/MinusCircleFillIcon.d.ts.map +1 -0
  275. package/dist/design-system/Icon/__generated/icons/ModelsIcon.d.ts +1 -0
  276. package/dist/design-system/Icon/__generated/icons/ModelsIcon.d.ts.map +1 -0
  277. package/dist/design-system/Icon/__generated/icons/NewWindowIcon.d.ts +1 -0
  278. package/dist/design-system/Icon/__generated/icons/NewWindowIcon.d.ts.map +1 -0
  279. package/dist/design-system/Icon/__generated/icons/NoIcon.d.ts +1 -0
  280. package/dist/design-system/Icon/__generated/icons/NoIcon.d.ts.map +1 -0
  281. package/dist/design-system/Icon/__generated/icons/NotebookIcon.d.ts +1 -0
  282. package/dist/design-system/Icon/__generated/icons/NotebookIcon.d.ts.map +1 -0
  283. package/dist/design-system/Icon/__generated/icons/NotificationIcon.d.ts +1 -0
  284. package/dist/design-system/Icon/__generated/icons/NotificationIcon.d.ts.map +1 -0
  285. package/dist/design-system/Icon/__generated/icons/NotificationsIcon.d.ts +1 -0
  286. package/dist/design-system/Icon/__generated/icons/NotificationsIcon.d.ts.map +1 -0
  287. package/dist/design-system/Icon/__generated/icons/OfficeIcon.d.ts +1 -0
  288. package/dist/design-system/Icon/__generated/icons/OfficeIcon.d.ts.map +1 -0
  289. package/dist/design-system/Icon/__generated/icons/OverflowIcon.d.ts +1 -0
  290. package/dist/design-system/Icon/__generated/icons/OverflowIcon.d.ts.map +1 -0
  291. package/dist/design-system/Icon/__generated/icons/PageBottomIcon.d.ts +1 -0
  292. package/dist/design-system/Icon/__generated/icons/PageBottomIcon.d.ts.map +1 -0
  293. package/dist/design-system/Icon/__generated/icons/PageFirstIcon.d.ts +1 -0
  294. package/dist/design-system/Icon/__generated/icons/PageFirstIcon.d.ts.map +1 -0
  295. package/dist/design-system/Icon/__generated/icons/PageLastIcon.d.ts +1 -0
  296. package/dist/design-system/Icon/__generated/icons/PageLastIcon.d.ts.map +1 -0
  297. package/dist/design-system/Icon/__generated/icons/PageTopIcon.d.ts +1 -0
  298. package/dist/design-system/Icon/__generated/icons/PageTopIcon.d.ts.map +1 -0
  299. package/dist/design-system/Icon/__generated/icons/PencilIcon.d.ts +1 -0
  300. package/dist/design-system/Icon/__generated/icons/PencilIcon.d.ts.map +1 -0
  301. package/dist/design-system/Icon/__generated/icons/PinBorderIcon.d.ts +1 -0
  302. package/dist/design-system/Icon/__generated/icons/PinBorderIcon.d.ts.map +1 -0
  303. package/dist/design-system/Icon/__generated/icons/PinCancelIcon.d.ts +1 -0
  304. package/dist/design-system/Icon/__generated/icons/PinCancelIcon.d.ts.map +1 -0
  305. package/dist/design-system/Icon/__generated/icons/PinFillIcon.d.ts +1 -0
  306. package/dist/design-system/Icon/__generated/icons/PinFillIcon.d.ts.map +1 -0
  307. package/dist/design-system/Icon/__generated/icons/PinXIcon.d.ts +1 -0
  308. package/dist/design-system/Icon/__generated/icons/PinXIcon.d.ts.map +1 -0
  309. package/dist/design-system/Icon/__generated/icons/PlayCircleBorderIcon.d.ts +1 -0
  310. package/dist/design-system/Icon/__generated/icons/PlayCircleBorderIcon.d.ts.map +1 -0
  311. package/dist/design-system/Icon/__generated/icons/PlayCircleFillIcon.d.ts +1 -0
  312. package/dist/design-system/Icon/__generated/icons/PlayCircleFillIcon.d.ts.map +1 -0
  313. package/dist/design-system/Icon/__generated/icons/PlayIcon.d.ts +1 -0
  314. package/dist/design-system/Icon/__generated/icons/PlayIcon.d.ts.map +1 -0
  315. package/dist/design-system/Icon/__generated/icons/PlusCircleBorderIcon.d.ts +1 -0
  316. package/dist/design-system/Icon/__generated/icons/PlusCircleBorderIcon.d.ts.map +1 -0
  317. package/dist/design-system/Icon/__generated/icons/PlusCircleFillIcon.d.ts +1 -0
  318. package/dist/design-system/Icon/__generated/icons/PlusCircleFillIcon.d.ts.map +1 -0
  319. package/dist/design-system/Icon/__generated/icons/PlusIcon.d.ts +1 -0
  320. package/dist/design-system/Icon/__generated/icons/PlusIcon.d.ts.map +1 -0
  321. package/dist/design-system/Icon/__generated/icons/PlusSquareIcon.d.ts +1 -0
  322. package/dist/design-system/Icon/__generated/icons/PlusSquareIcon.d.ts.map +1 -0
  323. package/dist/design-system/Icon/__generated/icons/QueryEditorIcon.d.ts +1 -0
  324. package/dist/design-system/Icon/__generated/icons/QueryEditorIcon.d.ts.map +1 -0
  325. package/dist/design-system/Icon/__generated/icons/QueryIcon.d.ts +1 -0
  326. package/dist/design-system/Icon/__generated/icons/QueryIcon.d.ts.map +1 -0
  327. package/dist/design-system/Icon/__generated/icons/QueryListViewIcon.d.ts +1 -0
  328. package/dist/design-system/Icon/__generated/icons/QueryListViewIcon.d.ts.map +1 -0
  329. package/dist/design-system/Icon/__generated/icons/QueryNavIcon.d.ts +1 -0
  330. package/dist/design-system/Icon/__generated/icons/QueryNavIcon.d.ts.map +1 -0
  331. package/dist/design-system/Icon/__generated/icons/QuestionMarkBorderIcon.d.ts +1 -0
  332. package/dist/design-system/Icon/__generated/icons/QuestionMarkBorderIcon.d.ts.map +1 -0
  333. package/dist/design-system/Icon/__generated/icons/QuestionMarkFillIcon.d.ts +1 -0
  334. package/dist/design-system/Icon/__generated/icons/QuestionMarkFillIcon.d.ts.map +1 -0
  335. package/dist/design-system/Icon/__generated/icons/ReaderModeIcon.d.ts +1 -0
  336. package/dist/design-system/Icon/__generated/icons/ReaderModeIcon.d.ts.map +1 -0
  337. package/dist/design-system/Icon/__generated/icons/ReposIcon.d.ts +1 -0
  338. package/dist/design-system/Icon/__generated/icons/ReposIcon.d.ts.map +1 -0
  339. package/dist/design-system/Icon/__generated/icons/SchoolIcon.d.ts +1 -0
  340. package/dist/design-system/Icon/__generated/icons/SchoolIcon.d.ts.map +1 -0
  341. package/dist/design-system/Icon/__generated/icons/Search1Icon.d.ts +1 -0
  342. package/dist/design-system/Icon/__generated/icons/Search1Icon.d.ts.map +1 -0
  343. package/dist/design-system/Icon/__generated/icons/SearchIcon.d.ts +1 -0
  344. package/dist/design-system/Icon/__generated/icons/SearchIcon.d.ts.map +1 -0
  345. package/dist/design-system/Icon/__generated/icons/SecurityIcon.d.ts +1 -0
  346. package/dist/design-system/Icon/__generated/icons/SecurityIcon.d.ts.map +1 -0
  347. package/dist/design-system/Icon/__generated/icons/ShareIcon.d.ts +1 -0
  348. package/dist/design-system/Icon/__generated/icons/ShareIcon.d.ts.map +1 -0
  349. package/dist/design-system/Icon/__generated/icons/SidebarAutoIcon.d.ts +1 -0
  350. package/dist/design-system/Icon/__generated/icons/SidebarAutoIcon.d.ts.map +1 -0
  351. package/dist/design-system/Icon/__generated/icons/SidebarCollapseIcon.d.ts +1 -0
  352. package/dist/design-system/Icon/__generated/icons/SidebarCollapseIcon.d.ts.map +1 -0
  353. package/dist/design-system/Icon/__generated/icons/SidebarExpandIcon.d.ts +1 -0
  354. package/dist/design-system/Icon/__generated/icons/SidebarExpandIcon.d.ts.map +1 -0
  355. package/dist/design-system/Icon/__generated/icons/SidebarIcon.d.ts +1 -0
  356. package/dist/design-system/Icon/__generated/icons/SidebarIcon.d.ts.map +1 -0
  357. package/dist/design-system/Icon/__generated/icons/SpeechBubbleIcon.d.ts +1 -0
  358. package/dist/design-system/Icon/__generated/icons/SpeechBubbleIcon.d.ts.map +1 -0
  359. package/dist/design-system/Icon/__generated/icons/SpeechBubblePlusIcon.d.ts +1 -0
  360. package/dist/design-system/Icon/__generated/icons/SpeechBubblePlusIcon.d.ts.map +1 -0
  361. package/dist/design-system/Icon/__generated/icons/StarBorderIcon.d.ts +1 -0
  362. package/dist/design-system/Icon/__generated/icons/StarBorderIcon.d.ts.map +1 -0
  363. package/dist/design-system/Icon/__generated/icons/StarFillIcon.d.ts +1 -0
  364. package/dist/design-system/Icon/__generated/icons/StarFillIcon.d.ts.map +1 -0
  365. package/dist/design-system/Icon/__generated/icons/StopCircleBorderIcon.d.ts +1 -0
  366. package/dist/design-system/Icon/__generated/icons/StopCircleBorderIcon.d.ts.map +1 -0
  367. package/dist/design-system/Icon/__generated/icons/StopCricleFillIcon.d.ts +1 -0
  368. package/dist/design-system/Icon/__generated/icons/StopCricleFillIcon.d.ts.map +1 -0
  369. package/dist/design-system/Icon/__generated/icons/StopIcon.d.ts +1 -0
  370. package/dist/design-system/Icon/__generated/icons/StopIcon.d.ts.map +1 -0
  371. package/dist/design-system/Icon/__generated/icons/StreamIcon.d.ts +1 -0
  372. package/dist/design-system/Icon/__generated/icons/StreamIcon.d.ts.map +1 -0
  373. package/dist/design-system/Icon/__generated/icons/SyncIcon.d.ts +1 -0
  374. package/dist/design-system/Icon/__generated/icons/SyncIcon.d.ts.map +1 -0
  375. package/dist/design-system/Icon/__generated/icons/TableIcon.d.ts +1 -0
  376. package/dist/design-system/Icon/__generated/icons/TableIcon.d.ts.map +1 -0
  377. package/dist/design-system/Icon/__generated/icons/TrashIcon.d.ts +1 -0
  378. package/dist/design-system/Icon/__generated/icons/TrashIcon.d.ts.map +1 -0
  379. package/dist/design-system/Icon/__generated/icons/TreeIcon.d.ts +1 -0
  380. package/dist/design-system/Icon/__generated/icons/TreeIcon.d.ts.map +1 -0
  381. package/dist/design-system/Icon/__generated/icons/UploadIcon.d.ts +1 -0
  382. package/dist/design-system/Icon/__generated/icons/UploadIcon.d.ts.map +1 -0
  383. package/dist/design-system/Icon/__generated/icons/UsbIcon.d.ts +1 -0
  384. package/dist/design-system/Icon/__generated/icons/UsbIcon.d.ts.map +1 -0
  385. package/dist/design-system/Icon/__generated/icons/UserBadgeIcon.d.ts +1 -0
  386. package/dist/design-system/Icon/__generated/icons/UserBadgeIcon.d.ts.map +1 -0
  387. package/dist/design-system/Icon/__generated/icons/UserCircleIcon.d.ts +1 -0
  388. package/dist/design-system/Icon/__generated/icons/UserCircleIcon.d.ts.map +1 -0
  389. package/dist/design-system/Icon/__generated/icons/UserGroupIcon.d.ts +1 -0
  390. package/dist/design-system/Icon/__generated/icons/UserGroupIcon.d.ts.map +1 -0
  391. package/dist/design-system/Icon/__generated/icons/UserIcon.d.ts +1 -0
  392. package/dist/design-system/Icon/__generated/icons/UserIcon.d.ts.map +1 -0
  393. package/dist/design-system/Icon/__generated/icons/VideosIcon.d.ts +1 -0
  394. package/dist/design-system/Icon/__generated/icons/VideosIcon.d.ts.map +1 -0
  395. package/dist/design-system/Icon/__generated/icons/WarningBorderIcon.d.ts +1 -0
  396. package/dist/design-system/Icon/__generated/icons/WarningBorderIcon.d.ts.map +1 -0
  397. package/dist/design-system/Icon/__generated/icons/WarningFillIcon.d.ts +1 -0
  398. package/dist/design-system/Icon/__generated/icons/WarningFillIcon.d.ts.map +1 -0
  399. package/dist/design-system/Icon/__generated/icons/XCircleBorderIcon.d.ts +1 -0
  400. package/dist/design-system/Icon/__generated/icons/XCircleBorderIcon.d.ts.map +1 -0
  401. package/dist/design-system/Icon/__generated/icons/XCircleFillIcon.d.ts +1 -0
  402. package/dist/design-system/Icon/__generated/icons/XCircleFillIcon.d.ts.map +1 -0
  403. package/dist/design-system/Icon/__generated/icons/ZoomInIcon.d.ts +1 -0
  404. package/dist/design-system/Icon/__generated/icons/ZoomInIcon.d.ts.map +1 -0
  405. package/dist/design-system/Icon/__generated/icons/ZoomOutIcon.d.ts +1 -0
  406. package/dist/design-system/Icon/__generated/icons/ZoomOutIcon.d.ts.map +1 -0
  407. package/dist/design-system/Icon/__generated/icons/index.d.ts +1 -0
  408. package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -0
  409. package/dist/design-system/Icon/iconMap.d.ts +1 -0
  410. package/dist/design-system/Icon/iconMap.d.ts.map +1 -0
  411. package/dist/design-system/Icon/index.d.ts +1 -0
  412. package/dist/design-system/Icon/index.d.ts.map +1 -0
  413. package/dist/design-system/Input/Input.d.ts +1 -0
  414. package/dist/design-system/Input/Input.d.ts.map +1 -0
  415. package/dist/design-system/Input/index.d.ts +1 -0
  416. package/dist/design-system/Input/index.d.ts.map +1 -0
  417. package/dist/design-system/Layout/Layout.d.ts +1 -0
  418. package/dist/design-system/Layout/Layout.d.ts.map +1 -0
  419. package/dist/design-system/Layout/index.d.ts +1 -0
  420. package/dist/design-system/Layout/index.d.ts.map +1 -0
  421. package/dist/design-system/Menu/Menu.d.ts +1 -0
  422. package/dist/design-system/Menu/Menu.d.ts.map +1 -0
  423. package/dist/design-system/Menu/index.d.ts +1 -0
  424. package/dist/design-system/Menu/index.d.ts.map +1 -0
  425. package/dist/design-system/Modal/Modal.d.ts +1 -0
  426. package/dist/design-system/Modal/Modal.d.ts.map +1 -0
  427. package/dist/design-system/Modal/index.d.ts +1 -0
  428. package/dist/design-system/Modal/index.d.ts.map +1 -0
  429. package/dist/design-system/Notification/Notification.d.ts +3 -1
  430. package/dist/design-system/Notification/Notification.d.ts.map +1 -0
  431. package/dist/design-system/Notification/Notification.test.d.ts +1 -0
  432. package/dist/design-system/Notification/Notification.test.d.ts.map +1 -0
  433. package/dist/design-system/Notification/index.d.ts +1 -0
  434. package/dist/design-system/Notification/index.d.ts.map +1 -0
  435. package/dist/design-system/PageWrapper/PageWrapper.d.ts +1 -0
  436. package/dist/design-system/PageWrapper/PageWrapper.d.ts.map +1 -0
  437. package/dist/design-system/PageWrapper/index.d.ts +1 -0
  438. package/dist/design-system/PageWrapper/index.d.ts.map +1 -0
  439. package/dist/design-system/Pagination/index.d.ts +1 -0
  440. package/dist/design-system/Pagination/index.d.ts.map +1 -0
  441. package/dist/design-system/Popover/Popover.d.ts +1 -0
  442. package/dist/design-system/Popover/Popover.d.ts.map +1 -0
  443. package/dist/design-system/Popover/index.d.ts +1 -0
  444. package/dist/design-system/Popover/index.d.ts.map +1 -0
  445. package/dist/design-system/Radio/Radio.d.ts +1 -0
  446. package/dist/design-system/Radio/Radio.d.ts.map +1 -0
  447. package/dist/design-system/Radio/index.d.ts +1 -0
  448. package/dist/design-system/Radio/index.d.ts.map +1 -0
  449. package/dist/design-system/SegmentedControl/SegmentedControl.d.ts +1 -0
  450. package/dist/design-system/SegmentedControl/SegmentedControl.d.ts.map +1 -0
  451. package/dist/design-system/SegmentedControl/index.d.ts +1 -0
  452. package/dist/design-system/SegmentedControl/index.d.ts.map +1 -0
  453. package/dist/design-system/Select/Select.d.ts +2 -1
  454. package/dist/design-system/Select/Select.d.ts.map +1 -0
  455. package/dist/design-system/Select/index.d.ts +1 -0
  456. package/dist/design-system/Select/index.d.ts.map +1 -0
  457. package/dist/design-system/Skeleton/Skeleton.d.ts +1 -0
  458. package/dist/design-system/Skeleton/Skeleton.d.ts.map +1 -0
  459. package/dist/design-system/Skeleton/index.d.ts +1 -0
  460. package/dist/design-system/Skeleton/index.d.ts.map +1 -0
  461. package/dist/design-system/Space/Space.d.ts +1 -0
  462. package/dist/design-system/Space/Space.d.ts.map +1 -0
  463. package/dist/design-system/Space/index.d.ts +1 -0
  464. package/dist/design-system/Space/index.d.ts.map +1 -0
  465. package/dist/design-system/Spacer/Spacer.d.ts +1 -0
  466. package/dist/design-system/Spacer/Spacer.d.ts.map +1 -0
  467. package/dist/design-system/Spacer/index.d.ts +1 -0
  468. package/dist/design-system/Spacer/index.d.ts.map +1 -0
  469. package/dist/design-system/Spinner/Spinner.d.ts +1 -0
  470. package/dist/design-system/Spinner/Spinner.d.ts.map +1 -0
  471. package/dist/design-system/Spinner/index.d.ts +1 -0
  472. package/dist/design-system/Spinner/index.d.ts.map +1 -0
  473. package/dist/design-system/SplitButton/SplitButton.d.ts +2 -0
  474. package/dist/design-system/SplitButton/SplitButton.d.ts.map +1 -0
  475. package/dist/design-system/SplitButton/index.d.ts +1 -0
  476. package/dist/design-system/SplitButton/index.d.ts.map +1 -0
  477. package/dist/design-system/Switch/Switch.d.ts +1 -0
  478. package/dist/design-system/Switch/Switch.d.ts.map +1 -0
  479. package/dist/design-system/Switch/index.d.ts +1 -0
  480. package/dist/design-system/Switch/index.d.ts.map +1 -0
  481. package/dist/design-system/Table/Table.d.ts +1 -0
  482. package/dist/design-system/Table/Table.d.ts.map +1 -0
  483. package/dist/design-system/Table/index.d.ts +1 -0
  484. package/dist/design-system/Table/index.d.ts.map +1 -0
  485. package/dist/design-system/Tabs/index.d.ts +6 -1
  486. package/dist/design-system/Tabs/index.d.ts.map +1 -0
  487. package/dist/design-system/Tag/index.d.ts +1 -0
  488. package/dist/design-system/Tag/index.d.ts.map +1 -0
  489. package/dist/design-system/Tooltip/Tooltip.d.ts +1 -0
  490. package/dist/design-system/Tooltip/Tooltip.d.ts.map +1 -0
  491. package/dist/design-system/Tooltip/index.d.ts +1 -0
  492. package/dist/design-system/Tooltip/index.d.ts.map +1 -0
  493. package/dist/design-system/Tree/Tree.d.ts +1 -0
  494. package/dist/design-system/Tree/Tree.d.ts.map +1 -0
  495. package/dist/design-system/Tree/index.d.ts +1 -0
  496. package/dist/design-system/Tree/index.d.ts.map +1 -0
  497. package/dist/design-system/Typography/Link.d.ts +14 -0
  498. package/dist/design-system/Typography/Link.d.ts.map +1 -0
  499. package/dist/design-system/Typography/Paragraph.d.ts +1 -0
  500. package/dist/design-system/Typography/Paragraph.d.ts.map +1 -0
  501. package/dist/design-system/Typography/Text.d.ts +1 -0
  502. package/dist/design-system/Typography/Text.d.ts.map +1 -0
  503. package/dist/design-system/Typography/Title.d.ts +3 -1
  504. package/dist/design-system/Typography/Title.d.ts.map +1 -0
  505. package/dist/design-system/Typography/Typography.d.ts +2 -1
  506. package/dist/design-system/Typography/Typography.d.ts.map +1 -0
  507. package/dist/design-system/Typography/index.d.ts +1 -0
  508. package/dist/design-system/Typography/index.d.ts.map +1 -0
  509. package/dist/design-system/constants.d.ts +1 -0
  510. package/dist/design-system/constants.d.ts.map +1 -0
  511. package/dist/design-system/index.d.ts +1 -0
  512. package/dist/design-system/index.d.ts.map +1 -0
  513. package/dist/design-system/types.d.ts +1 -0
  514. package/dist/design-system/types.d.ts.map +1 -0
  515. package/dist/design-system/utils/css-utils.d.ts +1 -0
  516. package/dist/design-system/utils/css-utils.d.ts.map +1 -0
  517. package/dist/index-dark.css +227 -227
  518. package/dist/index.css +304 -304
  519. package/dist/index.d.ts +2 -0
  520. package/dist/index.d.ts.map +1 -0
  521. package/dist/index.js +1761 -389
  522. package/dist/index.js.map +1 -1
  523. package/dist/rollup-less-tilde-importer.d.ts +1 -0
  524. package/dist/rollup-less-tilde-importer.d.ts.map +1 -0
  525. package/dist/theme/borders.d.ts +1 -0
  526. package/dist/theme/borders.d.ts.map +1 -0
  527. package/dist/theme/colorList.d.ts +3 -0
  528. package/dist/theme/colorList.d.ts.map +1 -0
  529. package/dist/theme/colors.d.ts +11 -7
  530. package/dist/theme/colors.d.ts.map +1 -0
  531. package/dist/theme/convertToLessVars.d.ts +1 -0
  532. package/dist/theme/convertToLessVars.d.ts.map +1 -0
  533. package/dist/theme/generalVariables.d.ts +1 -0
  534. package/dist/theme/generalVariables.d.ts.map +1 -0
  535. package/dist/theme/index.d.ts +1 -0
  536. package/dist/theme/index.d.ts.map +1 -0
  537. package/dist/theme/spacing.d.ts +1 -0
  538. package/dist/theme/spacing.d.ts.map +1 -0
  539. package/dist/theme/typography.d.ts +1 -0
  540. package/dist/theme/typography.d.ts.map +1 -0
  541. package/package.json +21 -19
  542. package/dist/.pkgr-sources-hash +0 -1
  543. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.test.d.ts +0 -1
package/dist/cjs/index.js CHANGED
@@ -8,7 +8,6 @@ exports.Alert = void 0;
8
8
  exports.AlignCenterIcon = AlignCenterIcon;
9
9
  exports.AlignLeftIcon = AlignLeftIcon;
10
10
  exports.AlignRightIcon = AlignRightIcon;
11
- exports.ApplyCompactDesignSystemTheme = void 0;
12
11
  exports.ArrowDownIcon = ArrowDownIcon;
13
12
  exports.ArrowLeftIcon = ArrowLeftIcon;
14
13
  exports.ArrowRightIcon = ArrowRightIcon;
@@ -13167,7 +13166,7 @@ var Portal = /*#__PURE__*/(0, React.forwardRef)(function (props, ref) {
13167
13166
  return containerRef.current ? /*#__PURE__*/ReactDOM.default.createPortal(children, containerRef.current) : null;
13168
13167
  });
13169
13168
 
13170
- function isPointsEq$1(a1, a2, isAlignPoint) {
13169
+ function isPointsEq$2(a1, a2, isAlignPoint) {
13171
13170
  if (isAlignPoint) {
13172
13171
  return a1[0] === a2[0];
13173
13172
  }
@@ -13175,19 +13174,19 @@ function isPointsEq$1(a1, a2, isAlignPoint) {
13175
13174
  return a1[0] === a2[0] && a1[1] === a2[1];
13176
13175
  }
13177
13176
 
13178
- function getAlignFromPlacement$1(builtinPlacements, placementStr, align) {
13177
+ function getAlignFromPlacement$2(builtinPlacements, placementStr, align) {
13179
13178
  var baseAlign = builtinPlacements[placementStr] || {};
13180
13179
  return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, baseAlign), align);
13181
13180
  }
13182
13181
 
13183
- function getAlignPopupClassName$1(builtinPlacements, prefixCls, align, isAlignPoint) {
13182
+ function getAlignPopupClassName$2(builtinPlacements, prefixCls, align, isAlignPoint) {
13184
13183
  var points = align.points;
13185
13184
  var placements = Object.keys(builtinPlacements);
13186
13185
 
13187
13186
  for (var i = 0; i < placements.length; i += 1) {
13188
13187
  var placement = placements[i];
13189
13188
 
13190
- if (isPointsEq$1(builtinPlacements[placement].points, points, isAlignPoint)) {
13189
+ if (isPointsEq$2(builtinPlacements[placement].points, points, isAlignPoint)) {
13191
13190
  return "".concat(prefixCls, "-placement-").concat(placement);
13192
13191
  }
13193
13192
  }
@@ -13195,7 +13194,7 @@ function getAlignPopupClassName$1(builtinPlacements, prefixCls, align, isAlignPo
13195
13194
  return '';
13196
13195
  }
13197
13196
 
13198
- function getMotion$3(_ref) {
13197
+ function getMotion$4(_ref) {
13199
13198
  var prefixCls = _ref.prefixCls,
13200
13199
  motion = _ref.motion,
13201
13200
  animation = _ref.animation,
@@ -13220,7 +13219,7 @@ function getMotion$3(_ref) {
13220
13219
  return null;
13221
13220
  }
13222
13221
 
13223
- function Mask$2(props) {
13222
+ function Mask$3(props) {
13224
13223
  var prefixCls = props.prefixCls,
13225
13224
  visible = props.visible,
13226
13225
  zIndex = props.zIndex,
@@ -13238,7 +13237,7 @@ function Mask$2(props) {
13238
13237
  if (maskMotion || maskTransitionName || maskAnimation) {
13239
13238
  motion = (0, _objectSpread3.default)({
13240
13239
  motionAppear: true
13241
- }, getMotion$3({
13240
+ }, getMotion$4({
13242
13241
  motion: maskMotion,
13243
13242
  prefixCls: prefixCls,
13244
13243
  transitionName: maskTransitionName,
@@ -14926,9 +14925,9 @@ var Align = function Align(_ref, ref) {
14926
14925
 
14927
14926
  var RefAlign = /*#__PURE__*/React.default.forwardRef(Align);
14928
14927
  RefAlign.displayName = 'Align';
14929
- var StatusQueue$1 = ['measure', 'align', null, 'motion'];
14928
+ var StatusQueue$2 = ['measure', 'align', null, 'motion'];
14930
14929
 
14931
- var useVisibleStatus$1 = function (visible, doMeasure) {
14930
+ var useVisibleStatus$2 = function (visible, doMeasure) {
14932
14931
  var _useState = (0, React.useState)(null),
14933
14932
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
14934
14933
  status = _useState2[0],
@@ -14985,8 +14984,8 @@ var useVisibleStatus$1 = function (visible, doMeasure) {
14985
14984
  while (1) {
14986
14985
  switch (_context.prev = _context.next) {
14987
14986
  case 0:
14988
- index = StatusQueue$1.indexOf(status);
14989
- nextStatus = StatusQueue$1[index + 1];
14987
+ index = StatusQueue$2.indexOf(status);
14988
+ nextStatus = StatusQueue$2[index + 1];
14990
14989
 
14991
14990
  if (nextStatus && index !== -1) {
14992
14991
  setStatus(nextStatus);
@@ -15010,7 +15009,7 @@ var useVisibleStatus$1 = function (visible, doMeasure) {
15010
15009
  return [status, goNextStatus];
15011
15010
  };
15012
15011
 
15013
- var useStretchStyle$1 = function (stretch) {
15012
+ var useStretchStyle$2 = function (stretch) {
15014
15013
  var _React$useState = React.useState({
15015
15014
  width: 0,
15016
15015
  height: 0
@@ -15052,7 +15051,7 @@ var useStretchStyle$1 = function (stretch) {
15052
15051
  return [style, measureStretch];
15053
15052
  };
15054
15053
 
15055
- var PopupInner$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15054
+ var PopupInner$2 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15056
15055
  var visible = props.visible,
15057
15056
  prefixCls = props.prefixCls,
15058
15057
  className = props.className,
@@ -15080,7 +15079,7 @@ var PopupInner$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15080
15079
  setAlignedClassName = _useState2[1]; // ======================= Measure ========================
15081
15080
 
15082
15081
 
15083
- var _useStretchStyle = useStretchStyle$1(stretch),
15082
+ var _useStretchStyle = useStretchStyle$2(stretch),
15084
15083
  _useStretchStyle2 = (0, _slicedToArray2.default)(_useStretchStyle, 2),
15085
15084
  stretchStyle = _useStretchStyle2[0],
15086
15085
  measureStretchStyle = _useStretchStyle2[1];
@@ -15092,7 +15091,7 @@ var PopupInner$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15092
15091
  } // ======================== Status ========================
15093
15092
 
15094
15093
 
15095
- var _useVisibleStatus = useVisibleStatus$1(visible, doMeasure),
15094
+ var _useVisibleStatus = useVisibleStatus$2(visible, doMeasure),
15096
15095
  _useVisibleStatus2 = (0, _slicedToArray2.default)(_useVisibleStatus, 2),
15097
15096
  status = _useVisibleStatus2[0],
15098
15097
  goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================
@@ -15137,7 +15136,7 @@ var PopupInner$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15137
15136
  } // ======================== Motion ========================
15138
15137
 
15139
15138
 
15140
- var motion = (0, _objectSpread3.default)({}, getMotion$3(props));
15139
+ var motion = (0, _objectSpread3.default)({}, getMotion$4(props));
15141
15140
  ['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
15142
15141
  var originHandler = motion[eventName];
15143
15142
 
@@ -15221,8 +15220,8 @@ var PopupInner$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15221
15220
  }, childNode));
15222
15221
  });
15223
15222
  });
15224
- PopupInner$1.displayName = 'PopupInner';
15225
- var MobilePopupInner$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15223
+ PopupInner$2.displayName = 'PopupInner';
15224
+ var MobilePopupInner$2 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15226
15225
  var prefixCls = props.prefixCls,
15227
15226
  visible = props.visible,
15228
15227
  zIndex = props.zIndex,
@@ -15276,8 +15275,8 @@ var MobilePopupInner$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15276
15275
  }, childNode);
15277
15276
  });
15278
15277
  });
15279
- MobilePopupInner$1.displayName = 'MobilePopupInner';
15280
- var Popup$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
15278
+ MobilePopupInner$2.displayName = 'MobilePopupInner';
15279
+ var Popup$2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
15281
15280
  var visible = _ref.visible,
15282
15281
  mobile = _ref.mobile,
15283
15282
  props = (0, _objectWithoutProperties2.default)(_ref, ["visible", "mobile"]);
@@ -15304,25 +15303,25 @@ var Popup$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
15304
15303
  setInMobile(isMobile());
15305
15304
  }
15306
15305
  }, [visible, mobile]);
15307
- var popupNode = inMobile ? /*#__PURE__*/React.createElement(MobilePopupInner$1, (0, _extends3.default)({}, cloneProps, {
15306
+ var popupNode = inMobile ? /*#__PURE__*/React.createElement(MobilePopupInner$2, (0, _extends3.default)({}, cloneProps, {
15308
15307
  mobile: mobile,
15309
15308
  ref: ref
15310
- })) : /*#__PURE__*/React.createElement(PopupInner$1, (0, _extends3.default)({}, cloneProps, {
15309
+ })) : /*#__PURE__*/React.createElement(PopupInner$2, (0, _extends3.default)({}, cloneProps, {
15311
15310
  ref: ref
15312
15311
  })); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
15313
15312
 
15314
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Mask$2, cloneProps), popupNode);
15313
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Mask$3, cloneProps), popupNode);
15315
15314
  });
15316
- Popup$1.displayName = 'Popup';
15317
- var TriggerContext$1 = /*#__PURE__*/React.createContext(null);
15315
+ Popup$2.displayName = 'Popup';
15316
+ var TriggerContext$2 = /*#__PURE__*/React.createContext(null);
15318
15317
 
15319
- function noop$3() {}
15318
+ function noop$4() {}
15320
15319
 
15321
- function returnEmptyString$1() {
15320
+ function returnEmptyString$2() {
15322
15321
  return '';
15323
15322
  }
15324
15323
 
15325
- function returnDocument$1(element) {
15324
+ function returnDocument$2(element) {
15326
15325
  if (element) {
15327
15326
  return element.ownerDocument;
15328
15327
  }
@@ -15330,12 +15329,12 @@ function returnDocument$1(element) {
15330
15329
  return window.document;
15331
15330
  }
15332
15331
 
15333
- var ALL_HANDLERS$1 = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur', 'onContextMenu'];
15332
+ var ALL_HANDLERS$2 = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur', 'onContextMenu'];
15334
15333
  /**
15335
15334
  * Internal usage. Do not use in your code since this will be removed.
15336
15335
  */
15337
15336
 
15338
- function generateTrigger$1(PortalComponent) {
15337
+ function generateTrigger$2(PortalComponent) {
15339
15338
  var Trigger = /*#__PURE__*/function (_React$Component) {
15340
15339
  (0, _inherits2.default)(Trigger, _React$Component);
15341
15340
 
@@ -15533,7 +15532,7 @@ function generateTrigger$1(PortalComponent) {
15533
15532
  getPopupClassNameFromAlign = _this$props.getPopupClassNameFromAlign;
15534
15533
 
15535
15534
  if (popupPlacement && builtinPlacements) {
15536
- className.push(getAlignPopupClassName$1(builtinPlacements, prefixCls, align, alignPoint));
15535
+ className.push(getAlignPopupClassName$2(builtinPlacements, prefixCls, align, alignPoint));
15537
15536
  }
15538
15537
 
15539
15538
  if (getPopupClassNameFromAlign) {
@@ -15581,7 +15580,7 @@ function generateTrigger$1(PortalComponent) {
15581
15580
 
15582
15581
  mouseProps.onMouseDown = _this.onPopupMouseDown;
15583
15582
  mouseProps.onTouchStart = _this.onPopupMouseDown;
15584
- return /*#__PURE__*/React.createElement(Popup$1, (0, _extends3.default)({
15583
+ return /*#__PURE__*/React.createElement(Popup$2, (0, _extends3.default)({
15585
15584
  prefixCls: prefixCls,
15586
15585
  destroyPopupOnHide: destroyPopupOnHide,
15587
15586
  visible: popupVisible,
@@ -15685,7 +15684,7 @@ function generateTrigger$1(PortalComponent) {
15685
15684
  prevPopupVisible: popupVisible,
15686
15685
  popupVisible: popupVisible
15687
15686
  };
15688
- ALL_HANDLERS$1.forEach(function (h) {
15687
+ ALL_HANDLERS$2.forEach(function (h) {
15689
15688
  _this["fire".concat(h)] = function (e) {
15690
15689
  _this.fireEvents(h, e);
15691
15690
  };
@@ -15762,7 +15761,7 @@ function generateTrigger$1(PortalComponent) {
15762
15761
  builtinPlacements = props.builtinPlacements;
15763
15762
 
15764
15763
  if (popupPlacement && builtinPlacements) {
15765
- return getAlignFromPlacement$1(builtinPlacements, popupPlacement, popupAlign);
15764
+ return getAlignFromPlacement$2(builtinPlacements, popupPlacement, popupAlign);
15766
15765
  }
15767
15766
 
15768
15767
  return popupAlign;
@@ -16039,7 +16038,7 @@ function generateTrigger$1(PortalComponent) {
16039
16038
  portal = null;
16040
16039
  }
16041
16040
 
16042
- return /*#__PURE__*/React.createElement(TriggerContext$1.Provider, {
16041
+ return /*#__PURE__*/React.createElement(TriggerContext$2.Provider, {
16043
16042
  value: this.triggerContextValue
16044
16043
  }, trigger, portal);
16045
16044
  }
@@ -16060,14 +16059,14 @@ function generateTrigger$1(PortalComponent) {
16060
16059
  return Trigger;
16061
16060
  }(React.Component);
16062
16061
 
16063
- Trigger.contextType = TriggerContext$1;
16062
+ Trigger.contextType = TriggerContext$2;
16064
16063
  Trigger.defaultProps = {
16065
16064
  prefixCls: 'rc-trigger-popup',
16066
- getPopupClassNameFromAlign: returnEmptyString$1,
16067
- getDocument: returnDocument$1,
16068
- onPopupVisibleChange: noop$3,
16069
- afterPopupVisibleChange: noop$3,
16070
- onPopupAlign: noop$3,
16065
+ getPopupClassNameFromAlign: returnEmptyString$2,
16066
+ getDocument: returnDocument$2,
16067
+ onPopupVisibleChange: noop$4,
16068
+ afterPopupVisibleChange: noop$4,
16069
+ onPopupAlign: noop$4,
16071
16070
  popupClassName: '',
16072
16071
  mouseEnterDelay: 0,
16073
16072
  mouseLeaveDelay: 0.1,
@@ -16087,7 +16086,7 @@ function generateTrigger$1(PortalComponent) {
16087
16086
  return Trigger;
16088
16087
  }
16089
16088
 
16090
- var Trigger$2 = generateTrigger$1(Portal);
16089
+ var Trigger$3 = generateTrigger$2(Portal);
16091
16090
 
16092
16091
  var getBuiltInPlacements = function getBuiltInPlacements(dropdownMatchSelectWidth) {
16093
16092
  // Enable horizontal overflow auto-adjustment when a custom dropdown width is provided
@@ -16181,7 +16180,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
16181
16180
  popupStyle.width = containerWidth;
16182
16181
  }
16183
16182
 
16184
- return /*#__PURE__*/React.createElement(Trigger$2, (0, _extends3.default)({}, restProps, {
16183
+ return /*#__PURE__*/React.createElement(Trigger$3, (0, _extends3.default)({}, restProps, {
16185
16184
  showAction: onPopupVisibleChange ? ['click'] : [],
16186
16185
  hideAction: onPopupVisibleChange ? ['click'] : [],
16187
16186
  popupPlacement: direction === 'rtl' ? 'bottomRight' : 'bottomLeft',
@@ -17813,191 +17812,1446 @@ var Alert$1 = function Alert(_a) {
17813
17812
  closed = _React$useState2[0],
17814
17813
  setClosed = _React$useState2[1];
17815
17814
 
17816
- var ref = React.useRef();
17815
+ var ref = React.useRef();
17816
+
17817
+ var _React$useContext = React.useContext(ConfigContext),
17818
+ getPrefixCls = _React$useContext.getPrefixCls,
17819
+ direction = _React$useContext.direction;
17820
+
17821
+ var prefixCls = getPrefixCls('alert', customizePrefixCls);
17822
+
17823
+ var handleClose = function handleClose(e) {
17824
+ var _a;
17825
+
17826
+ setClosed(true);
17827
+ (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props, e);
17828
+ };
17829
+
17830
+ var getType = function getType() {
17831
+ var type = props.type;
17832
+
17833
+ if (type !== undefined) {
17834
+ return type;
17835
+ } // banner 模式默认为警告
17836
+
17837
+
17838
+ return banner ? 'warning' : 'info';
17839
+ }; // closeable when closeText is assigned
17840
+
17841
+
17842
+ var isClosable = closeText ? true : closable;
17843
+ var type = getType();
17844
+
17845
+ var renderIconNode = function renderIconNode() {
17846
+ var icon = props.icon; // use outline icon in alert with description
17847
+
17848
+ var iconType = (description ? iconMapOutlined : iconMapFilled)[type] || null;
17849
+
17850
+ if (icon) {
17851
+ return replaceElement(icon, /*#__PURE__*/React.createElement("span", {
17852
+ className: "".concat(prefixCls, "-icon")
17853
+ }, icon), function () {
17854
+ return {
17855
+ className: (0, _classnames2.default)("".concat(prefixCls, "-icon"), (0, _defineProperty2.default)({}, icon.props.className, icon.props.className))
17856
+ };
17857
+ });
17858
+ }
17859
+
17860
+ return /*#__PURE__*/React.createElement(iconType, {
17861
+ className: "".concat(prefixCls, "-icon")
17862
+ });
17863
+ };
17864
+
17865
+ var renderCloseIcon = function renderCloseIcon() {
17866
+ return isClosable ? /*#__PURE__*/React.createElement("button", {
17867
+ type: "button",
17868
+ onClick: handleClose,
17869
+ className: "".concat(prefixCls, "-close-icon"),
17870
+ tabIndex: 0
17871
+ }, closeText ? /*#__PURE__*/React.createElement("span", {
17872
+ className: "".concat(prefixCls, "-close-text")
17873
+ }, closeText) : /*#__PURE__*/React.createElement(_CloseOutlined.default, null)) : null;
17874
+ }; // banner 模式默认有 Icon
17875
+
17876
+
17877
+ var isShowIcon = banner && showIcon === undefined ? true : showIcon;
17878
+ var alertCls = (0, _classnames2.default)(prefixCls, "".concat(prefixCls, "-").concat(type), (_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-with-description"), !!description), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-no-icon"), !isShowIcon), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-banner"), !!banner), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames2), className);
17879
+ var dataOrAriaProps = getDataOrAriaProps$1(props);
17880
+ return /*#__PURE__*/React.createElement(CSSMotion, {
17881
+ visible: !closed,
17882
+ motionName: "".concat(prefixCls, "-motion"),
17883
+ motionAppear: false,
17884
+ motionEnter: false,
17885
+ onLeaveStart: function onLeaveStart(node) {
17886
+ return {
17887
+ maxHeight: node.offsetHeight
17888
+ };
17889
+ },
17890
+ onLeaveEnd: afterClose
17891
+ }, function (_ref) {
17892
+ var motionClassName = _ref.className,
17893
+ motionStyle = _ref.style;
17894
+ return /*#__PURE__*/React.createElement("div", (0, _extends3.default)({
17895
+ ref: ref,
17896
+ "data-show": !closed,
17897
+ className: (0, _classnames2.default)(alertCls, motionClassName),
17898
+ style: (0, _extends3.default)((0, _extends3.default)({}, style), motionStyle),
17899
+ onMouseEnter: onMouseEnter,
17900
+ onMouseLeave: onMouseLeave,
17901
+ onClick: onClick,
17902
+ role: "alert"
17903
+ }, dataOrAriaProps), isShowIcon ? renderIconNode() : null, /*#__PURE__*/React.createElement("div", {
17904
+ className: "".concat(prefixCls, "-content")
17905
+ }, /*#__PURE__*/React.createElement("div", {
17906
+ className: "".concat(prefixCls, "-message")
17907
+ }, message), /*#__PURE__*/React.createElement("div", {
17908
+ className: "".concat(prefixCls, "-description")
17909
+ }, description)), action ? /*#__PURE__*/React.createElement("div", {
17910
+ className: "".concat(prefixCls, "-action")
17911
+ }, action) : null, renderCloseIcon());
17912
+ });
17913
+ };
17914
+
17915
+ Alert$1.ErrorBoundary = ErrorBoundary;
17916
+ var AntDAlert = Alert$1;
17917
+ var responsiveArray = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
17918
+ var responsiveMap = {
17919
+ xs: '(max-width: 575px)',
17920
+ sm: '(min-width: 576px)',
17921
+ md: '(min-width: 768px)',
17922
+ lg: '(min-width: 992px)',
17923
+ xl: '(min-width: 1200px)',
17924
+ xxl: '(min-width: 1600px)'
17925
+ };
17926
+ var subscribers = new Map();
17927
+ var subUid = -1;
17928
+ var screens = {};
17929
+ var responsiveObserve = {
17930
+ matchHandlers: {},
17931
+ dispatch: function dispatch(pointMap) {
17932
+ screens = pointMap;
17933
+ subscribers.forEach(function (func) {
17934
+ return func(screens);
17935
+ });
17936
+ return subscribers.size >= 1;
17937
+ },
17938
+ subscribe: function subscribe(func) {
17939
+ if (!subscribers.size) this.register();
17940
+ subUid += 1;
17941
+ subscribers.set(subUid, func);
17942
+ func(screens);
17943
+ return subUid;
17944
+ },
17945
+ unsubscribe: function unsubscribe(token) {
17946
+ subscribers["delete"](token);
17947
+ if (!subscribers.size) this.unregister();
17948
+ },
17949
+ unregister: function unregister() {
17950
+ var _this = this;
17951
+
17952
+ Object.keys(responsiveMap).forEach(function (screen) {
17953
+ var matchMediaQuery = responsiveMap[screen];
17954
+ var handler = _this.matchHandlers[matchMediaQuery];
17955
+ handler === null || handler === void 0 ? void 0 : handler.mql.removeListener(handler === null || handler === void 0 ? void 0 : handler.listener);
17956
+ });
17957
+ subscribers.clear();
17958
+ },
17959
+ register: function register() {
17960
+ var _this2 = this;
17961
+
17962
+ Object.keys(responsiveMap).forEach(function (screen) {
17963
+ var matchMediaQuery = responsiveMap[screen];
17964
+
17965
+ var listener = function listener(_ref) {
17966
+ var matches = _ref.matches;
17967
+
17968
+ _this2.dispatch((0, _extends3.default)((0, _extends3.default)({}, screens), (0, _defineProperty2.default)({}, screen, matches)));
17969
+ };
17970
+
17971
+ var mql = window.matchMedia(matchMediaQuery);
17972
+ mql.addListener(listener);
17973
+ _this2.matchHandlers[matchMediaQuery] = {
17974
+ mql: mql,
17975
+ listener: listener
17976
+ };
17977
+ listener(mql);
17978
+ });
17979
+ }
17980
+ };
17981
+ var ResponsiveObserve = responsiveObserve;
17982
+
17983
+ function useBreakpoint() {
17984
+ var _useState = (0, React.useState)({}),
17985
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
17986
+ screens = _useState2[0],
17987
+ setScreens = _useState2[1];
17988
+
17989
+ (0, React.useEffect)(function () {
17990
+ var token = ResponsiveObserve.subscribe(function (supportScreens) {
17991
+ setScreens(supportScreens);
17992
+ });
17993
+ return function () {
17994
+ return ResponsiveObserve.unsubscribe(token);
17995
+ };
17996
+ }, []);
17997
+ return screens;
17998
+ }
17999
+
18000
+ function isPointsEq$1(a1, a2, isAlignPoint) {
18001
+ if (isAlignPoint) {
18002
+ return a1[0] === a2[0];
18003
+ }
18004
+
18005
+ return a1[0] === a2[0] && a1[1] === a2[1];
18006
+ }
18007
+
18008
+ function getAlignFromPlacement$1(builtinPlacements, placementStr, align) {
18009
+ var baseAlign = builtinPlacements[placementStr] || {};
18010
+ return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, baseAlign), align);
18011
+ }
18012
+
18013
+ function getAlignPopupClassName$1(builtinPlacements, prefixCls, align, isAlignPoint) {
18014
+ var points = align.points;
18015
+ var placements = Object.keys(builtinPlacements);
18016
+
18017
+ for (var i = 0; i < placements.length; i += 1) {
18018
+ var placement = placements[i];
18019
+
18020
+ if (isPointsEq$1(builtinPlacements[placement].points, points, isAlignPoint)) {
18021
+ return "".concat(prefixCls, "-placement-").concat(placement);
18022
+ }
18023
+ }
18024
+
18025
+ return '';
18026
+ }
18027
+
18028
+ function getMotion$3(_ref) {
18029
+ var prefixCls = _ref.prefixCls,
18030
+ motion = _ref.motion,
18031
+ animation = _ref.animation,
18032
+ transitionName = _ref.transitionName;
18033
+
18034
+ if (motion) {
18035
+ return motion;
18036
+ }
18037
+
18038
+ if (animation) {
18039
+ return {
18040
+ motionName: "".concat(prefixCls, "-").concat(animation)
18041
+ };
18042
+ }
18043
+
18044
+ if (transitionName) {
18045
+ return {
18046
+ motionName: transitionName
18047
+ };
18048
+ }
18049
+
18050
+ return null;
18051
+ }
18052
+
18053
+ function Mask$2(props) {
18054
+ var prefixCls = props.prefixCls,
18055
+ visible = props.visible,
18056
+ zIndex = props.zIndex,
18057
+ mask = props.mask,
18058
+ maskMotion = props.maskMotion,
18059
+ maskAnimation = props.maskAnimation,
18060
+ maskTransitionName = props.maskTransitionName;
18061
+
18062
+ if (!mask) {
18063
+ return null;
18064
+ }
18065
+
18066
+ var motion = {};
18067
+
18068
+ if (maskMotion || maskTransitionName || maskAnimation) {
18069
+ motion = (0, _objectSpread3.default)({
18070
+ motionAppear: true
18071
+ }, getMotion$3({
18072
+ motion: maskMotion,
18073
+ prefixCls: prefixCls,
18074
+ transitionName: maskTransitionName,
18075
+ animation: maskAnimation
18076
+ }));
18077
+ }
18078
+
18079
+ return /*#__PURE__*/React.createElement(CSSMotion, (0, _extends3.default)({}, motion, {
18080
+ visible: visible,
18081
+ removeOnLeave: true
18082
+ }), function (_ref) {
18083
+ var className = _ref.className;
18084
+ return /*#__PURE__*/React.createElement("div", {
18085
+ style: {
18086
+ zIndex: zIndex
18087
+ },
18088
+ className: (0, _classnames2.default)("".concat(prefixCls, "-mask"), className)
18089
+ });
18090
+ });
18091
+ }
18092
+
18093
+ var StatusQueue$1 = ['measure', 'align', null, 'motion'];
18094
+
18095
+ var useVisibleStatus$1 = function (visible, doMeasure) {
18096
+ var _useState = (0, React.useState)(null),
18097
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
18098
+ status = _useState2[0],
18099
+ setInternalStatus = _useState2[1];
18100
+
18101
+ var rafRef = (0, React.useRef)();
18102
+ var destroyRef = (0, React.useRef)(false);
18103
+
18104
+ function setStatus(nextStatus) {
18105
+ if (!destroyRef.current) {
18106
+ setInternalStatus(nextStatus);
18107
+ }
18108
+ }
18109
+
18110
+ function cancelRaf() {
18111
+ wrapperRaf$2.cancel(rafRef.current);
18112
+ }
18113
+
18114
+ function goNextStatus(callback) {
18115
+ cancelRaf();
18116
+ rafRef.current = wrapperRaf$2(function () {
18117
+ // Only align should be manually trigger
18118
+ setStatus(function (prev) {
18119
+ switch (status) {
18120
+ case 'align':
18121
+ return 'motion';
18122
+
18123
+ case 'motion':
18124
+ return 'stable';
18125
+ }
18126
+
18127
+ return prev;
18128
+ });
18129
+ callback === null || callback === void 0 ? void 0 : callback();
18130
+ });
18131
+ } // Init status
18132
+
18133
+
18134
+ (0, React.useEffect)(function () {
18135
+ setStatus('measure');
18136
+ }, [visible]); // Go next status
18137
+
18138
+ (0, React.useEffect)(function () {
18139
+ switch (status) {
18140
+ case 'measure':
18141
+ doMeasure();
18142
+ break;
18143
+ }
18144
+
18145
+ if (status) {
18146
+ rafRef.current = wrapperRaf$2( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
18147
+ var index, nextStatus;
18148
+ return _regenerator.default.wrap(function _callee$(_context) {
18149
+ while (1) {
18150
+ switch (_context.prev = _context.next) {
18151
+ case 0:
18152
+ index = StatusQueue$1.indexOf(status);
18153
+ nextStatus = StatusQueue$1[index + 1];
18154
+
18155
+ if (nextStatus && index !== -1) {
18156
+ setStatus(nextStatus);
18157
+ }
18158
+
18159
+ case 3:
18160
+ case "end":
18161
+ return _context.stop();
18162
+ }
18163
+ }
18164
+ }, _callee);
18165
+ })));
18166
+ }
18167
+ }, [status]);
18168
+ (0, React.useEffect)(function () {
18169
+ return function () {
18170
+ destroyRef.current = true;
18171
+ cancelRaf();
18172
+ };
18173
+ }, []);
18174
+ return [status, goNextStatus];
18175
+ };
18176
+
18177
+ var useStretchStyle$1 = function (stretch) {
18178
+ var _React$useState = React.useState({
18179
+ width: 0,
18180
+ height: 0
18181
+ }),
18182
+ _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
18183
+ targetSize = _React$useState2[0],
18184
+ setTargetSize = _React$useState2[1];
18185
+
18186
+ function measureStretch(element) {
18187
+ setTargetSize({
18188
+ width: element.offsetWidth,
18189
+ height: element.offsetHeight
18190
+ });
18191
+ } // Merge stretch style
18192
+
18193
+
18194
+ var style = React.useMemo(function () {
18195
+ var sizeStyle = {};
18196
+
18197
+ if (stretch) {
18198
+ var width = targetSize.width,
18199
+ height = targetSize.height; // Stretch with target
18200
+
18201
+ if (stretch.indexOf('height') !== -1 && height) {
18202
+ sizeStyle.height = height;
18203
+ } else if (stretch.indexOf('minHeight') !== -1 && height) {
18204
+ sizeStyle.minHeight = height;
18205
+ }
18206
+
18207
+ if (stretch.indexOf('width') !== -1 && width) {
18208
+ sizeStyle.width = width;
18209
+ } else if (stretch.indexOf('minWidth') !== -1 && width) {
18210
+ sizeStyle.minWidth = width;
18211
+ }
18212
+ }
18213
+
18214
+ return sizeStyle;
18215
+ }, [stretch, targetSize]);
18216
+ return [style, measureStretch];
18217
+ };
18218
+
18219
+ var PopupInner$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
18220
+ var visible = props.visible,
18221
+ prefixCls = props.prefixCls,
18222
+ className = props.className,
18223
+ style = props.style,
18224
+ children = props.children,
18225
+ zIndex = props.zIndex,
18226
+ stretch = props.stretch,
18227
+ destroyPopupOnHide = props.destroyPopupOnHide,
18228
+ forceRender = props.forceRender,
18229
+ align = props.align,
18230
+ point = props.point,
18231
+ getRootDomNode = props.getRootDomNode,
18232
+ getClassNameFromAlign = props.getClassNameFromAlign,
18233
+ onAlign = props.onAlign,
18234
+ onMouseEnter = props.onMouseEnter,
18235
+ onMouseLeave = props.onMouseLeave,
18236
+ onMouseDown = props.onMouseDown,
18237
+ onTouchStart = props.onTouchStart;
18238
+ var alignRef = (0, React.useRef)();
18239
+ var elementRef = (0, React.useRef)();
18240
+
18241
+ var _useState = (0, React.useState)(),
18242
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
18243
+ alignedClassName = _useState2[0],
18244
+ setAlignedClassName = _useState2[1]; // ======================= Measure ========================
18245
+
18246
+
18247
+ var _useStretchStyle = useStretchStyle$1(stretch),
18248
+ _useStretchStyle2 = (0, _slicedToArray2.default)(_useStretchStyle, 2),
18249
+ stretchStyle = _useStretchStyle2[0],
18250
+ measureStretchStyle = _useStretchStyle2[1];
18251
+
18252
+ function doMeasure() {
18253
+ if (stretch) {
18254
+ measureStretchStyle(getRootDomNode());
18255
+ }
18256
+ } // ======================== Status ========================
18257
+
18258
+
18259
+ var _useVisibleStatus = useVisibleStatus$1(visible, doMeasure),
18260
+ _useVisibleStatus2 = (0, _slicedToArray2.default)(_useVisibleStatus, 2),
18261
+ status = _useVisibleStatus2[0],
18262
+ goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================
18263
+
18264
+
18265
+ var prepareResolveRef = (0, React.useRef)(); // `target` on `rc-align` can accept as a function to get the bind element or a point.
18266
+ // ref: https://www.npmjs.com/package/rc-align
18267
+
18268
+ function getAlignTarget() {
18269
+ if (point) {
18270
+ return point;
18271
+ }
18272
+
18273
+ return getRootDomNode;
18274
+ }
18275
+
18276
+ function forceAlign() {
18277
+ var _alignRef$current;
18278
+
18279
+ (_alignRef$current = alignRef.current) === null || _alignRef$current === void 0 ? void 0 : _alignRef$current.forceAlign();
18280
+ }
18281
+
18282
+ function onInternalAlign(popupDomNode, matchAlign) {
18283
+ if (status === 'align') {
18284
+ var nextAlignedClassName = getClassNameFromAlign(matchAlign);
18285
+ setAlignedClassName(nextAlignedClassName); // Repeat until not more align needed
18286
+
18287
+ if (alignedClassName !== nextAlignedClassName) {
18288
+ Promise.resolve().then(function () {
18289
+ forceAlign();
18290
+ });
18291
+ } else {
18292
+ goNextStatus(function () {
18293
+ var _prepareResolveRef$cu;
18294
+
18295
+ (_prepareResolveRef$cu = prepareResolveRef.current) === null || _prepareResolveRef$cu === void 0 ? void 0 : _prepareResolveRef$cu.call(prepareResolveRef);
18296
+ });
18297
+ }
18298
+
18299
+ onAlign === null || onAlign === void 0 ? void 0 : onAlign(popupDomNode, matchAlign);
18300
+ }
18301
+ } // ======================== Motion ========================
18302
+
18303
+
18304
+ var motion = (0, _objectSpread3.default)({}, getMotion$3(props));
18305
+ ['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
18306
+ var originHandler = motion[eventName];
18307
+
18308
+ motion[eventName] = function (element, event) {
18309
+ goNextStatus();
18310
+ return originHandler === null || originHandler === void 0 ? void 0 : originHandler(element, event);
18311
+ };
18312
+ });
18313
+
18314
+ function onShowPrepare() {
18315
+ return new Promise(function (resolve) {
18316
+ prepareResolveRef.current = resolve;
18317
+ });
18318
+ } // Go to stable directly when motion not provided
18319
+
18320
+
18321
+ React.useEffect(function () {
18322
+ if (!motion.motionName && status === 'motion') {
18323
+ goNextStatus();
18324
+ }
18325
+ }, [motion.motionName, status]); // ========================= Refs =========================
18326
+
18327
+ React.useImperativeHandle(ref, function () {
18328
+ return {
18329
+ forceAlign: forceAlign,
18330
+ getElement: function getElement() {
18331
+ return elementRef.current;
18332
+ }
18333
+ };
18334
+ }); // ======================== Render ========================
18335
+
18336
+ var mergedStyle = (0, _objectSpread3.default)((0, _objectSpread3.default)({}, stretchStyle), {}, {
18337
+ zIndex: zIndex,
18338
+ opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
18339
+ pointerEvents: status === 'stable' ? undefined : 'none'
18340
+ }, style); // Align status
18341
+
18342
+ var alignDisabled = true;
18343
+
18344
+ if ((align === null || align === void 0 ? void 0 : align.points) && (status === 'align' || status === 'stable')) {
18345
+ alignDisabled = false;
18346
+ }
18347
+
18348
+ var childNode = children; // Wrapper when multiple children
18349
+
18350
+ if (React.Children.count(children) > 1) {
18351
+ childNode = /*#__PURE__*/React.createElement("div", {
18352
+ className: "".concat(prefixCls, "-content")
18353
+ }, children);
18354
+ }
18355
+
18356
+ return /*#__PURE__*/React.createElement(CSSMotion, (0, _extends3.default)({
18357
+ visible: visible,
18358
+ ref: elementRef,
18359
+ leavedClassName: "".concat(prefixCls, "-hidden")
18360
+ }, motion, {
18361
+ onAppearPrepare: onShowPrepare,
18362
+ onEnterPrepare: onShowPrepare,
18363
+ removeOnLeave: destroyPopupOnHide,
18364
+ forceRender: forceRender
18365
+ }), function (_ref, motionRef) {
18366
+ var motionClassName = _ref.className,
18367
+ motionStyle = _ref.style;
18368
+ var mergedClassName = (0, _classnames2.default)(prefixCls, className, alignedClassName, motionClassName);
18369
+ return /*#__PURE__*/React.createElement(RefAlign, {
18370
+ target: getAlignTarget(),
18371
+ key: "popup",
18372
+ ref: alignRef,
18373
+ monitorWindowResize: true,
18374
+ disabled: alignDisabled,
18375
+ align: align,
18376
+ onAlign: onInternalAlign
18377
+ }, /*#__PURE__*/React.createElement("div", {
18378
+ ref: motionRef,
18379
+ className: mergedClassName,
18380
+ onMouseEnter: onMouseEnter,
18381
+ onMouseLeave: onMouseLeave,
18382
+ onMouseDownCapture: onMouseDown,
18383
+ onTouchStartCapture: onTouchStart,
18384
+ style: (0, _objectSpread3.default)((0, _objectSpread3.default)({}, motionStyle), mergedStyle)
18385
+ }, childNode));
18386
+ });
18387
+ });
18388
+ PopupInner$1.displayName = 'PopupInner';
18389
+ var MobilePopupInner$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
18390
+ var prefixCls = props.prefixCls,
18391
+ visible = props.visible,
18392
+ zIndex = props.zIndex,
18393
+ children = props.children,
18394
+ _props$mobile = props.mobile;
18395
+ _props$mobile = _props$mobile === void 0 ? {} : _props$mobile;
18396
+ var popupClassName = _props$mobile.popupClassName,
18397
+ popupStyle = _props$mobile.popupStyle,
18398
+ _props$mobile$popupMo = _props$mobile.popupMotion,
18399
+ popupMotion = _props$mobile$popupMo === void 0 ? {} : _props$mobile$popupMo,
18400
+ popupRender = _props$mobile.popupRender;
18401
+ var elementRef = React.useRef(); // ========================= Refs =========================
18402
+
18403
+ React.useImperativeHandle(ref, function () {
18404
+ return {
18405
+ forceAlign: function forceAlign() {},
18406
+ getElement: function getElement() {
18407
+ return elementRef.current;
18408
+ }
18409
+ };
18410
+ }); // ======================== Render ========================
18411
+
18412
+ var mergedStyle = (0, _objectSpread3.default)({
18413
+ zIndex: zIndex
18414
+ }, popupStyle);
18415
+ var childNode = children; // Wrapper when multiple children
18416
+
18417
+ if (React.Children.count(children) > 1) {
18418
+ childNode = /*#__PURE__*/React.createElement("div", {
18419
+ className: "".concat(prefixCls, "-content")
18420
+ }, children);
18421
+ } // Mobile support additional render
18422
+
18423
+
18424
+ if (popupRender) {
18425
+ childNode = popupRender(childNode);
18426
+ }
18427
+
18428
+ return /*#__PURE__*/React.createElement(CSSMotion, (0, _extends3.default)({
18429
+ visible: visible,
18430
+ ref: elementRef,
18431
+ removeOnLeave: true
18432
+ }, popupMotion), function (_ref, motionRef) {
18433
+ var motionClassName = _ref.className,
18434
+ motionStyle = _ref.style;
18435
+ var mergedClassName = (0, _classnames2.default)(prefixCls, popupClassName, motionClassName);
18436
+ return /*#__PURE__*/React.createElement("div", {
18437
+ ref: motionRef,
18438
+ className: mergedClassName,
18439
+ style: (0, _objectSpread3.default)((0, _objectSpread3.default)({}, motionStyle), mergedStyle)
18440
+ }, childNode);
18441
+ });
18442
+ });
18443
+ MobilePopupInner$1.displayName = 'MobilePopupInner';
18444
+ var Popup$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
18445
+ var visible = _ref.visible,
18446
+ mobile = _ref.mobile,
18447
+ props = (0, _objectWithoutProperties2.default)(_ref, ["visible", "mobile"]);
18448
+
18449
+ var _useState = (0, React.useState)(visible),
18450
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
18451
+ innerVisible = _useState2[0],
18452
+ serInnerVisible = _useState2[1];
18453
+
18454
+ var _useState3 = (0, React.useState)(false),
18455
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
18456
+ inMobile = _useState4[0],
18457
+ setInMobile = _useState4[1];
18458
+
18459
+ var cloneProps = (0, _objectSpread3.default)((0, _objectSpread3.default)({}, props), {}, {
18460
+ visible: innerVisible
18461
+ }); // We check mobile in visible changed here.
18462
+ // And this also delay set `innerVisible` to avoid popup component render flash
18463
+
18464
+ (0, React.useEffect)(function () {
18465
+ serInnerVisible(visible);
18466
+
18467
+ if (visible && mobile) {
18468
+ setInMobile(isMobile());
18469
+ }
18470
+ }, [visible, mobile]);
18471
+ var popupNode = inMobile ? /*#__PURE__*/React.createElement(MobilePopupInner$1, (0, _extends3.default)({}, cloneProps, {
18472
+ mobile: mobile,
18473
+ ref: ref
18474
+ })) : /*#__PURE__*/React.createElement(PopupInner$1, (0, _extends3.default)({}, cloneProps, {
18475
+ ref: ref
18476
+ })); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
18477
+
18478
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Mask$2, cloneProps), popupNode);
18479
+ });
18480
+ Popup$1.displayName = 'Popup';
18481
+ var TriggerContext$1 = /*#__PURE__*/React.createContext(null);
18482
+
18483
+ function noop$3() {}
18484
+
18485
+ function returnEmptyString$1() {
18486
+ return '';
18487
+ }
18488
+
18489
+ function returnDocument$1(element) {
18490
+ if (element) {
18491
+ return element.ownerDocument;
18492
+ }
18493
+
18494
+ return window.document;
18495
+ }
18496
+
18497
+ var ALL_HANDLERS$1 = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur', 'onContextMenu'];
18498
+ /**
18499
+ * Internal usage. Do not use in your code since this will be removed.
18500
+ */
18501
+
18502
+ function generateTrigger$1(PortalComponent) {
18503
+ var Trigger = /*#__PURE__*/function (_React$Component) {
18504
+ (0, _inherits2.default)(Trigger, _React$Component);
18505
+
18506
+ var _super = (0, _createSuper2.default)(Trigger);
18507
+
18508
+ function Trigger(props) {
18509
+ var _this;
18510
+
18511
+ (0, _classCallCheck2.default)(this, Trigger);
18512
+ _this = _super.call(this, props);
18513
+ _this.popupRef = /*#__PURE__*/React.createRef();
18514
+ _this.triggerRef = /*#__PURE__*/React.createRef();
18515
+
18516
+ _this.onMouseEnter = function (e) {
18517
+ var mouseEnterDelay = _this.props.mouseEnterDelay;
18518
+
18519
+ _this.fireEvents('onMouseEnter', e);
18520
+
18521
+ _this.delaySetPopupVisible(true, mouseEnterDelay, mouseEnterDelay ? null : e);
18522
+ };
18523
+
18524
+ _this.onMouseMove = function (e) {
18525
+ _this.fireEvents('onMouseMove', e);
18526
+
18527
+ _this.setPoint(e);
18528
+ };
18529
+
18530
+ _this.onMouseLeave = function (e) {
18531
+ _this.fireEvents('onMouseLeave', e);
18532
+
18533
+ _this.delaySetPopupVisible(false, _this.props.mouseLeaveDelay);
18534
+ };
18535
+
18536
+ _this.onPopupMouseEnter = function () {
18537
+ _this.clearDelayTimer();
18538
+ };
18539
+
18540
+ _this.onPopupMouseLeave = function (e) {
18541
+ var _this$popupRef$curren; // https://github.com/react-component/trigger/pull/13
18542
+ // react bug?
18543
+
18544
+
18545
+ if (e.relatedTarget && !e.relatedTarget.setTimeout && contains$1((_this$popupRef$curren = _this.popupRef.current) === null || _this$popupRef$curren === void 0 ? void 0 : _this$popupRef$curren.getElement(), e.relatedTarget)) {
18546
+ return;
18547
+ }
18548
+
18549
+ _this.delaySetPopupVisible(false, _this.props.mouseLeaveDelay);
18550
+ };
18551
+
18552
+ _this.onFocus = function (e) {
18553
+ _this.fireEvents('onFocus', e); // incase focusin and focusout
18554
+
18555
+
18556
+ _this.clearDelayTimer();
18557
+
18558
+ if (_this.isFocusToShow()) {
18559
+ _this.focusTime = Date.now();
18560
+
18561
+ _this.delaySetPopupVisible(true, _this.props.focusDelay);
18562
+ }
18563
+ };
18564
+
18565
+ _this.onMouseDown = function (e) {
18566
+ _this.fireEvents('onMouseDown', e);
18567
+
18568
+ _this.preClickTime = Date.now();
18569
+ };
18570
+
18571
+ _this.onTouchStart = function (e) {
18572
+ _this.fireEvents('onTouchStart', e);
18573
+
18574
+ _this.preTouchTime = Date.now();
18575
+ };
18576
+
18577
+ _this.onBlur = function (e) {
18578
+ _this.fireEvents('onBlur', e);
18579
+
18580
+ _this.clearDelayTimer();
18581
+
18582
+ if (_this.isBlurToHide()) {
18583
+ _this.delaySetPopupVisible(false, _this.props.blurDelay);
18584
+ }
18585
+ };
18586
+
18587
+ _this.onContextMenu = function (e) {
18588
+ e.preventDefault();
18589
+
18590
+ _this.fireEvents('onContextMenu', e);
18591
+
18592
+ _this.setPopupVisible(true, e);
18593
+ };
18594
+
18595
+ _this.onContextMenuClose = function () {
18596
+ if (_this.isContextMenuToShow()) {
18597
+ _this.close();
18598
+ }
18599
+ };
18600
+
18601
+ _this.onClick = function (event) {
18602
+ _this.fireEvents('onClick', event); // focus will trigger click
18603
+
18604
+
18605
+ if (_this.focusTime) {
18606
+ var preTime;
18607
+
18608
+ if (_this.preClickTime && _this.preTouchTime) {
18609
+ preTime = Math.min(_this.preClickTime, _this.preTouchTime);
18610
+ } else if (_this.preClickTime) {
18611
+ preTime = _this.preClickTime;
18612
+ } else if (_this.preTouchTime) {
18613
+ preTime = _this.preTouchTime;
18614
+ }
18615
+
18616
+ if (Math.abs(preTime - _this.focusTime) < 20) {
18617
+ return;
18618
+ }
18619
+
18620
+ _this.focusTime = 0;
18621
+ }
18622
+
18623
+ _this.preClickTime = 0;
18624
+ _this.preTouchTime = 0; // Only prevent default when all the action is click.
18625
+ // https://github.com/ant-design/ant-design/issues/17043
18626
+ // https://github.com/ant-design/ant-design/issues/17291
18627
+
18628
+ if (_this.isClickToShow() && (_this.isClickToHide() || _this.isBlurToHide()) && event && event.preventDefault) {
18629
+ event.preventDefault();
18630
+ }
18631
+
18632
+ var nextVisible = !_this.state.popupVisible;
18633
+
18634
+ if (_this.isClickToHide() && !nextVisible || nextVisible && _this.isClickToShow()) {
18635
+ _this.setPopupVisible(!_this.state.popupVisible, event);
18636
+ }
18637
+ };
18638
+
18639
+ _this.onPopupMouseDown = function () {
18640
+ _this.hasPopupMouseDown = true;
18641
+ clearTimeout(_this.mouseDownTimeout);
18642
+ _this.mouseDownTimeout = window.setTimeout(function () {
18643
+ _this.hasPopupMouseDown = false;
18644
+ }, 0);
18645
+
18646
+ if (_this.context) {
18647
+ var _this$context;
18648
+
18649
+ (_this$context = _this.context).onPopupMouseDown.apply(_this$context, arguments);
18650
+ }
18651
+ };
18652
+
18653
+ _this.onDocumentClick = function (event) {
18654
+ if (_this.props.mask && !_this.props.maskClosable) {
18655
+ return;
18656
+ }
18657
+
18658
+ var target = event.target;
18659
+
18660
+ var root = _this.getRootDomNode();
18661
+
18662
+ var popupNode = _this.getPopupDomNode();
18663
+
18664
+ if ( // mousedown on the target should also close popup when action is contextMenu.
18665
+ // https://github.com/ant-design/ant-design/issues/29853
18666
+ (!contains$1(root, target) || _this.isContextMenuOnly()) && !contains$1(popupNode, target) && !_this.hasPopupMouseDown) {
18667
+ _this.close();
18668
+ }
18669
+ };
18670
+
18671
+ _this.getRootDomNode = function () {
18672
+ var getTriggerDOMNode = _this.props.getTriggerDOMNode;
18673
+
18674
+ if (getTriggerDOMNode) {
18675
+ return getTriggerDOMNode(_this.triggerRef.current);
18676
+ }
18677
+
18678
+ try {
18679
+ var domNode = findDOMNode$2(_this.triggerRef.current);
18680
+
18681
+ if (domNode) {
18682
+ return domNode;
18683
+ }
18684
+ } catch (err) {// Do nothing
18685
+ }
18686
+
18687
+ return ReactDOM.default.findDOMNode((0, _assertThisInitialized2.default)(_this));
18688
+ };
18689
+
18690
+ _this.getPopupClassNameFromAlign = function (align) {
18691
+ var className = [];
18692
+ var _this$props = _this.props,
18693
+ popupPlacement = _this$props.popupPlacement,
18694
+ builtinPlacements = _this$props.builtinPlacements,
18695
+ prefixCls = _this$props.prefixCls,
18696
+ alignPoint = _this$props.alignPoint,
18697
+ getPopupClassNameFromAlign = _this$props.getPopupClassNameFromAlign;
18698
+
18699
+ if (popupPlacement && builtinPlacements) {
18700
+ className.push(getAlignPopupClassName$1(builtinPlacements, prefixCls, align, alignPoint));
18701
+ }
18702
+
18703
+ if (getPopupClassNameFromAlign) {
18704
+ className.push(getPopupClassNameFromAlign(align));
18705
+ }
18706
+
18707
+ return className.join(' ');
18708
+ };
18709
+
18710
+ _this.getComponent = function () {
18711
+ var _this$props2 = _this.props,
18712
+ prefixCls = _this$props2.prefixCls,
18713
+ destroyPopupOnHide = _this$props2.destroyPopupOnHide,
18714
+ popupClassName = _this$props2.popupClassName,
18715
+ onPopupAlign = _this$props2.onPopupAlign,
18716
+ popupMotion = _this$props2.popupMotion,
18717
+ popupAnimation = _this$props2.popupAnimation,
18718
+ popupTransitionName = _this$props2.popupTransitionName,
18719
+ popupStyle = _this$props2.popupStyle,
18720
+ mask = _this$props2.mask,
18721
+ maskAnimation = _this$props2.maskAnimation,
18722
+ maskTransitionName = _this$props2.maskTransitionName,
18723
+ maskMotion = _this$props2.maskMotion,
18724
+ zIndex = _this$props2.zIndex,
18725
+ popup = _this$props2.popup,
18726
+ stretch = _this$props2.stretch,
18727
+ alignPoint = _this$props2.alignPoint,
18728
+ mobile = _this$props2.mobile,
18729
+ forceRender = _this$props2.forceRender;
18730
+ var _this$state = _this.state,
18731
+ popupVisible = _this$state.popupVisible,
18732
+ point = _this$state.point;
18733
+
18734
+ var align = _this.getPopupAlign();
18735
+
18736
+ var mouseProps = {};
18737
+
18738
+ if (_this.isMouseEnterToShow()) {
18739
+ mouseProps.onMouseEnter = _this.onPopupMouseEnter;
18740
+ }
18741
+
18742
+ if (_this.isMouseLeaveToHide()) {
18743
+ mouseProps.onMouseLeave = _this.onPopupMouseLeave;
18744
+ }
18745
+
18746
+ mouseProps.onMouseDown = _this.onPopupMouseDown;
18747
+ mouseProps.onTouchStart = _this.onPopupMouseDown;
18748
+ return /*#__PURE__*/React.createElement(Popup$1, (0, _extends3.default)({
18749
+ prefixCls: prefixCls,
18750
+ destroyPopupOnHide: destroyPopupOnHide,
18751
+ visible: popupVisible,
18752
+ point: alignPoint && point,
18753
+ className: popupClassName,
18754
+ align: align,
18755
+ onAlign: onPopupAlign,
18756
+ animation: popupAnimation,
18757
+ getClassNameFromAlign: _this.getPopupClassNameFromAlign
18758
+ }, mouseProps, {
18759
+ stretch: stretch,
18760
+ getRootDomNode: _this.getRootDomNode,
18761
+ style: popupStyle,
18762
+ mask: mask,
18763
+ zIndex: zIndex,
18764
+ transitionName: popupTransitionName,
18765
+ maskAnimation: maskAnimation,
18766
+ maskTransitionName: maskTransitionName,
18767
+ maskMotion: maskMotion,
18768
+ ref: _this.popupRef,
18769
+ motion: popupMotion,
18770
+ mobile: mobile,
18771
+ forceRender: forceRender
18772
+ }), typeof popup === 'function' ? popup() : popup);
18773
+ };
18774
+
18775
+ _this.attachParent = function (popupContainer) {
18776
+ wrapperRaf$2.cancel(_this.attachId);
18777
+ var _this$props3 = _this.props,
18778
+ getPopupContainer = _this$props3.getPopupContainer,
18779
+ getDocument = _this$props3.getDocument;
18780
+
18781
+ var domNode = _this.getRootDomNode();
18782
+
18783
+ var mountNode;
18784
+
18785
+ if (!getPopupContainer) {
18786
+ mountNode = getDocument(_this.getRootDomNode()).body;
18787
+ } else if (domNode || getPopupContainer.length === 0) {
18788
+ // Compatible for legacy getPopupContainer with domNode argument.
18789
+ // If no need `domNode` argument, will call directly.
18790
+ // https://codesandbox.io/s/eloquent-mclean-ss93m?file=/src/App.js
18791
+ mountNode = getPopupContainer(domNode);
18792
+ }
18793
+
18794
+ if (mountNode) {
18795
+ mountNode.appendChild(popupContainer);
18796
+ } else {
18797
+ // Retry after frame render in case parent not ready
18798
+ _this.attachId = wrapperRaf$2(function () {
18799
+ _this.attachParent(popupContainer);
18800
+ });
18801
+ }
18802
+ };
18803
+
18804
+ _this.getContainer = function () {
18805
+ var getDocument = _this.props.getDocument;
18806
+ var popupContainer = getDocument(_this.getRootDomNode()).createElement('div'); // Make sure default popup container will never cause scrollbar appearing
18807
+ // https://github.com/react-component/trigger/issues/41
18808
+
18809
+ popupContainer.style.position = 'absolute';
18810
+ popupContainer.style.top = '0';
18811
+ popupContainer.style.left = '0';
18812
+ popupContainer.style.width = '100%';
18813
+
18814
+ _this.attachParent(popupContainer);
18815
+
18816
+ return popupContainer;
18817
+ };
18818
+
18819
+ _this.setPoint = function (point) {
18820
+ var alignPoint = _this.props.alignPoint;
18821
+ if (!alignPoint || !point) return;
18822
+
18823
+ _this.setState({
18824
+ point: {
18825
+ pageX: point.pageX,
18826
+ pageY: point.pageY
18827
+ }
18828
+ });
18829
+ };
18830
+
18831
+ _this.handlePortalUpdate = function () {
18832
+ if (_this.state.prevPopupVisible !== _this.state.popupVisible) {
18833
+ _this.props.afterPopupVisibleChange(_this.state.popupVisible);
18834
+ }
18835
+ };
18836
+
18837
+ _this.triggerContextValue = {
18838
+ onPopupMouseDown: _this.onPopupMouseDown
18839
+ };
18840
+ var popupVisible;
18841
+
18842
+ if ('popupVisible' in props) {
18843
+ popupVisible = !!props.popupVisible;
18844
+ } else {
18845
+ popupVisible = !!props.defaultPopupVisible;
18846
+ }
18847
+
18848
+ _this.state = {
18849
+ prevPopupVisible: popupVisible,
18850
+ popupVisible: popupVisible
18851
+ };
18852
+ ALL_HANDLERS$1.forEach(function (h) {
18853
+ _this["fire".concat(h)] = function (e) {
18854
+ _this.fireEvents(h, e);
18855
+ };
18856
+ });
18857
+ return _this;
18858
+ }
18859
+
18860
+ (0, _createClass2.default)(Trigger, [{
18861
+ key: "componentDidMount",
18862
+ value: function componentDidMount() {
18863
+ this.componentDidUpdate();
18864
+ }
18865
+ }, {
18866
+ key: "componentDidUpdate",
18867
+ value: function componentDidUpdate() {
18868
+ var props = this.props;
18869
+ var state = this.state; // We must listen to `mousedown` or `touchstart`, edge case:
18870
+ // https://github.com/ant-design/ant-design/issues/5804
18871
+ // https://github.com/react-component/calendar/issues/250
18872
+ // https://github.com/react-component/trigger/issues/50
18873
+
18874
+ if (state.popupVisible) {
18875
+ var currentDocument;
18876
+
18877
+ if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextMenuToShow())) {
18878
+ currentDocument = props.getDocument(this.getRootDomNode());
18879
+ this.clickOutsideHandler = addEventListenerWrap$1(currentDocument, 'mousedown', this.onDocumentClick);
18880
+ } // always hide on mobile
18881
+
18882
+
18883
+ if (!this.touchOutsideHandler) {
18884
+ currentDocument = currentDocument || props.getDocument(this.getRootDomNode());
18885
+ this.touchOutsideHandler = addEventListenerWrap$1(currentDocument, 'touchstart', this.onDocumentClick);
18886
+ } // close popup when trigger type contains 'onContextMenu' and document is scrolling.
18887
+
18888
+
18889
+ if (!this.contextMenuOutsideHandler1 && this.isContextMenuToShow()) {
18890
+ currentDocument = currentDocument || props.getDocument(this.getRootDomNode());
18891
+ this.contextMenuOutsideHandler1 = addEventListenerWrap$1(currentDocument, 'scroll', this.onContextMenuClose);
18892
+ } // close popup when trigger type contains 'onContextMenu' and window is blur.
18893
+
18894
+
18895
+ if (!this.contextMenuOutsideHandler2 && this.isContextMenuToShow()) {
18896
+ this.contextMenuOutsideHandler2 = addEventListenerWrap$1(window, 'blur', this.onContextMenuClose);
18897
+ }
18898
+
18899
+ return;
18900
+ }
18901
+
18902
+ this.clearOutsideHandler();
18903
+ }
18904
+ }, {
18905
+ key: "componentWillUnmount",
18906
+ value: function componentWillUnmount() {
18907
+ this.clearDelayTimer();
18908
+ this.clearOutsideHandler();
18909
+ clearTimeout(this.mouseDownTimeout);
18910
+ wrapperRaf$2.cancel(this.attachId);
18911
+ }
18912
+ }, {
18913
+ key: "getPopupDomNode",
18914
+ value: function getPopupDomNode() {
18915
+ var _this$popupRef$curren2; // for test
18916
+
18917
+
18918
+ return ((_this$popupRef$curren2 = this.popupRef.current) === null || _this$popupRef$curren2 === void 0 ? void 0 : _this$popupRef$curren2.getElement()) || null;
18919
+ }
18920
+ }, {
18921
+ key: "getPopupAlign",
18922
+ value: function getPopupAlign() {
18923
+ var props = this.props;
18924
+ var popupPlacement = props.popupPlacement,
18925
+ popupAlign = props.popupAlign,
18926
+ builtinPlacements = props.builtinPlacements;
18927
+
18928
+ if (popupPlacement && builtinPlacements) {
18929
+ return getAlignFromPlacement$1(builtinPlacements, popupPlacement, popupAlign);
18930
+ }
18931
+
18932
+ return popupAlign;
18933
+ }
18934
+ /**
18935
+ * @param popupVisible Show or not the popup element
18936
+ * @param event SyntheticEvent, used for `pointAlign`
18937
+ */
18938
+
18939
+ }, {
18940
+ key: "setPopupVisible",
18941
+ value: function setPopupVisible(popupVisible, event) {
18942
+ var alignPoint = this.props.alignPoint;
18943
+ var prevPopupVisible = this.state.popupVisible;
18944
+ this.clearDelayTimer();
18945
+
18946
+ if (prevPopupVisible !== popupVisible) {
18947
+ if (!('popupVisible' in this.props)) {
18948
+ this.setState({
18949
+ popupVisible: popupVisible,
18950
+ prevPopupVisible: prevPopupVisible
18951
+ });
18952
+ }
18953
+
18954
+ this.props.onPopupVisibleChange(popupVisible);
18955
+ } // Always record the point position since mouseEnterDelay will delay the show
18956
+
18957
+
18958
+ if (alignPoint && event && popupVisible) {
18959
+ this.setPoint(event);
18960
+ }
18961
+ }
18962
+ }, {
18963
+ key: "delaySetPopupVisible",
18964
+ value: function delaySetPopupVisible(visible, delayS, event) {
18965
+ var _this2 = this;
18966
+
18967
+ var delay = delayS * 1000;
18968
+ this.clearDelayTimer();
18969
+
18970
+ if (delay) {
18971
+ var point = event ? {
18972
+ pageX: event.pageX,
18973
+ pageY: event.pageY
18974
+ } : null;
18975
+ this.delayTimer = window.setTimeout(function () {
18976
+ _this2.setPopupVisible(visible, point);
18977
+
18978
+ _this2.clearDelayTimer();
18979
+ }, delay);
18980
+ } else {
18981
+ this.setPopupVisible(visible, event);
18982
+ }
18983
+ }
18984
+ }, {
18985
+ key: "clearDelayTimer",
18986
+ value: function clearDelayTimer() {
18987
+ if (this.delayTimer) {
18988
+ clearTimeout(this.delayTimer);
18989
+ this.delayTimer = null;
18990
+ }
18991
+ }
18992
+ }, {
18993
+ key: "clearOutsideHandler",
18994
+ value: function clearOutsideHandler() {
18995
+ if (this.clickOutsideHandler) {
18996
+ this.clickOutsideHandler.remove();
18997
+ this.clickOutsideHandler = null;
18998
+ }
18999
+
19000
+ if (this.contextMenuOutsideHandler1) {
19001
+ this.contextMenuOutsideHandler1.remove();
19002
+ this.contextMenuOutsideHandler1 = null;
19003
+ }
19004
+
19005
+ if (this.contextMenuOutsideHandler2) {
19006
+ this.contextMenuOutsideHandler2.remove();
19007
+ this.contextMenuOutsideHandler2 = null;
19008
+ }
19009
+
19010
+ if (this.touchOutsideHandler) {
19011
+ this.touchOutsideHandler.remove();
19012
+ this.touchOutsideHandler = null;
19013
+ }
19014
+ }
19015
+ }, {
19016
+ key: "createTwoChains",
19017
+ value: function createTwoChains(event) {
19018
+ var childPros = this.props.children.props;
19019
+ var props = this.props;
19020
+
19021
+ if (childPros[event] && props[event]) {
19022
+ return this["fire".concat(event)];
19023
+ }
19024
+
19025
+ return childPros[event] || props[event];
19026
+ }
19027
+ }, {
19028
+ key: "isClickToShow",
19029
+ value: function isClickToShow() {
19030
+ var _this$props4 = this.props,
19031
+ action = _this$props4.action,
19032
+ showAction = _this$props4.showAction;
19033
+ return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1;
19034
+ }
19035
+ }, {
19036
+ key: "isContextMenuOnly",
19037
+ value: function isContextMenuOnly() {
19038
+ var action = this.props.action;
19039
+ return action === 'contextMenu' || action.length === 1 && action[0] === 'contextMenu';
19040
+ }
19041
+ }, {
19042
+ key: "isContextMenuToShow",
19043
+ value: function isContextMenuToShow() {
19044
+ var _this$props5 = this.props,
19045
+ action = _this$props5.action,
19046
+ showAction = _this$props5.showAction;
19047
+ return action.indexOf('contextMenu') !== -1 || showAction.indexOf('contextMenu') !== -1;
19048
+ }
19049
+ }, {
19050
+ key: "isClickToHide",
19051
+ value: function isClickToHide() {
19052
+ var _this$props6 = this.props,
19053
+ action = _this$props6.action,
19054
+ hideAction = _this$props6.hideAction;
19055
+ return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1;
19056
+ }
19057
+ }, {
19058
+ key: "isMouseEnterToShow",
19059
+ value: function isMouseEnterToShow() {
19060
+ var _this$props7 = this.props,
19061
+ action = _this$props7.action,
19062
+ showAction = _this$props7.showAction;
19063
+ return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1;
19064
+ }
19065
+ }, {
19066
+ key: "isMouseLeaveToHide",
19067
+ value: function isMouseLeaveToHide() {
19068
+ var _this$props8 = this.props,
19069
+ action = _this$props8.action,
19070
+ hideAction = _this$props8.hideAction;
19071
+ return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1;
19072
+ }
19073
+ }, {
19074
+ key: "isFocusToShow",
19075
+ value: function isFocusToShow() {
19076
+ var _this$props9 = this.props,
19077
+ action = _this$props9.action,
19078
+ showAction = _this$props9.showAction;
19079
+ return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1;
19080
+ }
19081
+ }, {
19082
+ key: "isBlurToHide",
19083
+ value: function isBlurToHide() {
19084
+ var _this$props10 = this.props,
19085
+ action = _this$props10.action,
19086
+ hideAction = _this$props10.hideAction;
19087
+ return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1;
19088
+ }
19089
+ }, {
19090
+ key: "forcePopupAlign",
19091
+ value: function forcePopupAlign() {
19092
+ if (this.state.popupVisible) {
19093
+ var _this$popupRef$curren3;
19094
+
19095
+ (_this$popupRef$curren3 = this.popupRef.current) === null || _this$popupRef$curren3 === void 0 ? void 0 : _this$popupRef$curren3.forceAlign();
19096
+ }
19097
+ }
19098
+ }, {
19099
+ key: "fireEvents",
19100
+ value: function fireEvents(type, e) {
19101
+ var childCallback = this.props.children.props[type];
17817
19102
 
17818
- var _React$useContext = React.useContext(ConfigContext),
17819
- getPrefixCls = _React$useContext.getPrefixCls,
17820
- direction = _React$useContext.direction;
19103
+ if (childCallback) {
19104
+ childCallback(e);
19105
+ }
17821
19106
 
17822
- var prefixCls = getPrefixCls('alert', customizePrefixCls);
19107
+ var callback = this.props[type];
17823
19108
 
17824
- var handleClose = function handleClose(e) {
17825
- var _a;
19109
+ if (callback) {
19110
+ callback(e);
19111
+ }
19112
+ }
19113
+ }, {
19114
+ key: "close",
19115
+ value: function close() {
19116
+ this.setPopupVisible(false);
19117
+ }
19118
+ }, {
19119
+ key: "render",
19120
+ value: function render() {
19121
+ var popupVisible = this.state.popupVisible;
19122
+ var _this$props11 = this.props,
19123
+ children = _this$props11.children,
19124
+ forceRender = _this$props11.forceRender,
19125
+ alignPoint = _this$props11.alignPoint,
19126
+ className = _this$props11.className,
19127
+ autoDestroy = _this$props11.autoDestroy;
19128
+ var child = React.Children.only(children);
19129
+ var newChildProps = {
19130
+ key: 'trigger'
19131
+ }; // ============================== Visible Handlers ==============================
19132
+ // >>> ContextMenu
17826
19133
 
17827
- setClosed(true);
17828
- (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props, e);
17829
- };
19134
+ if (this.isContextMenuToShow()) {
19135
+ newChildProps.onContextMenu = this.onContextMenu;
19136
+ } else {
19137
+ newChildProps.onContextMenu = this.createTwoChains('onContextMenu');
19138
+ } // >>> Click
17830
19139
 
17831
- var getType = function getType() {
17832
- var type = props.type;
17833
19140
 
17834
- if (type !== undefined) {
17835
- return type;
17836
- } // banner 模式默认为警告
19141
+ if (this.isClickToHide() || this.isClickToShow()) {
19142
+ newChildProps.onClick = this.onClick;
19143
+ newChildProps.onMouseDown = this.onMouseDown;
19144
+ newChildProps.onTouchStart = this.onTouchStart;
19145
+ } else {
19146
+ newChildProps.onClick = this.createTwoChains('onClick');
19147
+ newChildProps.onMouseDown = this.createTwoChains('onMouseDown');
19148
+ newChildProps.onTouchStart = this.createTwoChains('onTouchStart');
19149
+ } // >>> Hover(enter)
17837
19150
 
17838
19151
 
17839
- return banner ? 'warning' : 'info';
17840
- }; // closeable when closeText is assigned
19152
+ if (this.isMouseEnterToShow()) {
19153
+ newChildProps.onMouseEnter = this.onMouseEnter; // Point align
17841
19154
 
19155
+ if (alignPoint) {
19156
+ newChildProps.onMouseMove = this.onMouseMove;
19157
+ }
19158
+ } else {
19159
+ newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter');
19160
+ } // >>> Hover(leave)
17842
19161
 
17843
- var isClosable = closeText ? true : closable;
17844
- var type = getType();
17845
19162
 
17846
- var renderIconNode = function renderIconNode() {
17847
- var icon = props.icon; // use outline icon in alert with description
19163
+ if (this.isMouseLeaveToHide()) {
19164
+ newChildProps.onMouseLeave = this.onMouseLeave;
19165
+ } else {
19166
+ newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave');
19167
+ } // >>> Focus
17848
19168
 
17849
- var iconType = (description ? iconMapOutlined : iconMapFilled)[type] || null;
17850
19169
 
17851
- if (icon) {
17852
- return replaceElement(icon, /*#__PURE__*/React.createElement("span", {
17853
- className: "".concat(prefixCls, "-icon")
17854
- }, icon), function () {
17855
- return {
17856
- className: (0, _classnames2.default)("".concat(prefixCls, "-icon"), (0, _defineProperty2.default)({}, icon.props.className, icon.props.className))
17857
- };
17858
- });
17859
- }
19170
+ if (this.isFocusToShow() || this.isBlurToHide()) {
19171
+ newChildProps.onFocus = this.onFocus;
19172
+ newChildProps.onBlur = this.onBlur;
19173
+ } else {
19174
+ newChildProps.onFocus = this.createTwoChains('onFocus');
19175
+ newChildProps.onBlur = this.createTwoChains('onBlur');
19176
+ } // =================================== Render ===================================
17860
19177
 
17861
- return /*#__PURE__*/React.createElement(iconType, {
17862
- className: "".concat(prefixCls, "-icon")
17863
- });
17864
- };
17865
19178
 
17866
- var renderCloseIcon = function renderCloseIcon() {
17867
- return isClosable ? /*#__PURE__*/React.createElement("button", {
17868
- type: "button",
17869
- onClick: handleClose,
17870
- className: "".concat(prefixCls, "-close-icon"),
17871
- tabIndex: 0
17872
- }, closeText ? /*#__PURE__*/React.createElement("span", {
17873
- className: "".concat(prefixCls, "-close-text")
17874
- }, closeText) : /*#__PURE__*/React.createElement(_CloseOutlined.default, null)) : null;
17875
- }; // banner 模式默认有 Icon
19179
+ var childrenClassName = (0, _classnames2.default)(child && child.props && child.props.className, className);
17876
19180
 
19181
+ if (childrenClassName) {
19182
+ newChildProps.className = childrenClassName;
19183
+ }
17877
19184
 
17878
- var isShowIcon = banner && showIcon === undefined ? true : showIcon;
17879
- var alertCls = (0, _classnames2.default)(prefixCls, "".concat(prefixCls, "-").concat(type), (_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-with-description"), !!description), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-no-icon"), !isShowIcon), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-banner"), !!banner), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames2), className);
17880
- var dataOrAriaProps = getDataOrAriaProps$1(props);
17881
- return /*#__PURE__*/React.createElement(CSSMotion, {
17882
- visible: !closed,
17883
- motionName: "".concat(prefixCls, "-motion"),
17884
- motionAppear: false,
17885
- motionEnter: false,
17886
- onLeaveStart: function onLeaveStart(node) {
17887
- return {
17888
- maxHeight: node.offsetHeight
17889
- };
17890
- },
17891
- onLeaveEnd: afterClose
17892
- }, function (_ref) {
17893
- var motionClassName = _ref.className,
17894
- motionStyle = _ref.style;
17895
- return /*#__PURE__*/React.createElement("div", (0, _extends3.default)({
17896
- ref: ref,
17897
- "data-show": !closed,
17898
- className: (0, _classnames2.default)(alertCls, motionClassName),
17899
- style: (0, _extends3.default)((0, _extends3.default)({}, style), motionStyle),
17900
- onMouseEnter: onMouseEnter,
17901
- onMouseLeave: onMouseLeave,
17902
- onClick: onClick,
17903
- role: "alert"
17904
- }, dataOrAriaProps), isShowIcon ? renderIconNode() : null, /*#__PURE__*/React.createElement("div", {
17905
- className: "".concat(prefixCls, "-content")
17906
- }, /*#__PURE__*/React.createElement("div", {
17907
- className: "".concat(prefixCls, "-message")
17908
- }, message), /*#__PURE__*/React.createElement("div", {
17909
- className: "".concat(prefixCls, "-description")
17910
- }, description)), action ? /*#__PURE__*/React.createElement("div", {
17911
- className: "".concat(prefixCls, "-action")
17912
- }, action) : null, renderCloseIcon());
17913
- });
17914
- };
19185
+ var cloneProps = (0, _objectSpread3.default)({}, newChildProps);
17915
19186
 
17916
- Alert$1.ErrorBoundary = ErrorBoundary;
17917
- var AntDAlert = Alert$1;
17918
- var responsiveArray = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
17919
- var responsiveMap = {
17920
- xs: '(max-width: 575px)',
17921
- sm: '(min-width: 576px)',
17922
- md: '(min-width: 768px)',
17923
- lg: '(min-width: 992px)',
17924
- xl: '(min-width: 1200px)',
17925
- xxl: '(min-width: 1600px)'
17926
- };
17927
- var subscribers = new Map();
17928
- var subUid = -1;
17929
- var screens = {};
17930
- var responsiveObserve = {
17931
- matchHandlers: {},
17932
- dispatch: function dispatch(pointMap) {
17933
- screens = pointMap;
17934
- subscribers.forEach(function (func) {
17935
- return func(screens);
17936
- });
17937
- return subscribers.size >= 1;
17938
- },
17939
- subscribe: function subscribe(func) {
17940
- if (!subscribers.size) this.register();
17941
- subUid += 1;
17942
- subscribers.set(subUid, func);
17943
- func(screens);
17944
- return subUid;
17945
- },
17946
- unsubscribe: function unsubscribe(token) {
17947
- subscribers["delete"](token);
17948
- if (!subscribers.size) this.unregister();
17949
- },
17950
- unregister: function unregister() {
17951
- var _this = this;
19187
+ if (supportRef$1(child)) {
19188
+ cloneProps.ref = composeRef$2(this.triggerRef, child.ref);
19189
+ }
17952
19190
 
17953
- Object.keys(responsiveMap).forEach(function (screen) {
17954
- var matchMediaQuery = responsiveMap[screen];
17955
- var handler = _this.matchHandlers[matchMediaQuery];
17956
- handler === null || handler === void 0 ? void 0 : handler.mql.removeListener(handler === null || handler === void 0 ? void 0 : handler.listener);
17957
- });
17958
- subscribers.clear();
17959
- },
17960
- register: function register() {
17961
- var _this2 = this;
19191
+ var trigger = /*#__PURE__*/React.cloneElement(child, cloneProps);
19192
+ var portal; // prevent unmounting after it's rendered
17962
19193
 
17963
- Object.keys(responsiveMap).forEach(function (screen) {
17964
- var matchMediaQuery = responsiveMap[screen];
19194
+ if (popupVisible || this.popupRef.current || forceRender) {
19195
+ portal = /*#__PURE__*/React.createElement(PortalComponent, {
19196
+ key: "portal",
19197
+ getContainer: this.getContainer,
19198
+ didUpdate: this.handlePortalUpdate
19199
+ }, this.getComponent());
19200
+ }
17965
19201
 
17966
- var listener = function listener(_ref) {
17967
- var matches = _ref.matches;
19202
+ if (!popupVisible && autoDestroy) {
19203
+ portal = null;
19204
+ }
17968
19205
 
17969
- _this2.dispatch((0, _extends3.default)((0, _extends3.default)({}, screens), (0, _defineProperty2.default)({}, screen, matches)));
17970
- };
19206
+ return /*#__PURE__*/React.createElement(TriggerContext$1.Provider, {
19207
+ value: this.triggerContextValue
19208
+ }, trigger, portal);
19209
+ }
19210
+ }], [{
19211
+ key: "getDerivedStateFromProps",
19212
+ value: function getDerivedStateFromProps(_ref, prevState) {
19213
+ var popupVisible = _ref.popupVisible;
19214
+ var newState = {};
17971
19215
 
17972
- var mql = window.matchMedia(matchMediaQuery);
17973
- mql.addListener(listener);
17974
- _this2.matchHandlers[matchMediaQuery] = {
17975
- mql: mql,
17976
- listener: listener
17977
- };
17978
- listener(mql);
17979
- });
17980
- }
17981
- };
17982
- var ResponsiveObserve = responsiveObserve;
19216
+ if (popupVisible !== undefined && prevState.popupVisible !== popupVisible) {
19217
+ newState.popupVisible = popupVisible;
19218
+ newState.prevPopupVisible = prevState.popupVisible;
19219
+ }
17983
19220
 
17984
- function useBreakpoint() {
17985
- var _useState = (0, React.useState)({}),
17986
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
17987
- screens = _useState2[0],
17988
- setScreens = _useState2[1];
19221
+ return newState;
19222
+ }
19223
+ }]);
19224
+ return Trigger;
19225
+ }(React.Component);
17989
19226
 
17990
- (0, React.useEffect)(function () {
17991
- var token = ResponsiveObserve.subscribe(function (supportScreens) {
17992
- setScreens(supportScreens);
17993
- });
17994
- return function () {
17995
- return ResponsiveObserve.unsubscribe(token);
17996
- };
17997
- }, []);
17998
- return screens;
19227
+ Trigger.contextType = TriggerContext$1;
19228
+ Trigger.defaultProps = {
19229
+ prefixCls: 'rc-trigger-popup',
19230
+ getPopupClassNameFromAlign: returnEmptyString$1,
19231
+ getDocument: returnDocument$1,
19232
+ onPopupVisibleChange: noop$3,
19233
+ afterPopupVisibleChange: noop$3,
19234
+ onPopupAlign: noop$3,
19235
+ popupClassName: '',
19236
+ mouseEnterDelay: 0,
19237
+ mouseLeaveDelay: 0.1,
19238
+ focusDelay: 0,
19239
+ blurDelay: 0.15,
19240
+ popupStyle: {},
19241
+ destroyPopupOnHide: false,
19242
+ popupAlign: {},
19243
+ defaultPopupVisible: false,
19244
+ mask: false,
19245
+ maskClosable: true,
19246
+ action: [],
19247
+ showAction: [],
19248
+ hideAction: [],
19249
+ autoDestroy: false
19250
+ };
19251
+ return Trigger;
17999
19252
  }
18000
19253
 
19254
+ var Trigger$2 = generateTrigger$1(Portal);
18001
19255
  var autoAdjustOverflow$3 = {
18002
19256
  adjustX: 1,
18003
19257
  adjustY: 1
@@ -48342,7 +49596,7 @@ var __rest$1 = undefined && undefined.__rest || function (s, e) {
48342
49596
  return t;
48343
49597
  };
48344
49598
 
48345
- var Link = function Link(_a, ref) {
49599
+ var Link$1 = function Link(_a, ref) {
48346
49600
  var ellipsis = _a.ellipsis,
48347
49601
  rel = _a.rel,
48348
49602
  restProps = __rest$1(_a, ["ellipsis", "rel"]);
@@ -48367,7 +49621,7 @@ var Link = function Link(_a, ref) {
48367
49621
  }));
48368
49622
  };
48369
49623
 
48370
- var Link$1 = /*#__PURE__*/React.forwardRef(Link);
49624
+ var Link$2 = /*#__PURE__*/React.forwardRef(Link$1);
48371
49625
 
48372
49626
  var __rest = undefined && undefined.__rest || function (s, e) {
48373
49627
  var t = {};
@@ -48414,7 +49668,7 @@ var Paragraph$1 = function Paragraph(props) {
48414
49668
  var Paragraph$2 = Paragraph$1;
48415
49669
  var Typography$1 = OriginTypography;
48416
49670
  Typography$1.Text = Text$2;
48417
- Typography$1.Link = Link$1;
49671
+ Typography$1.Link = Link$2;
48418
49672
  Typography$1.Title = Title$2;
48419
49673
  Typography$1.Paragraph = Paragraph$2;
48420
49674
  var AntDTypography = Typography$1;
@@ -48424,21 +49678,22 @@ const Icon = props => {
48424
49678
  component: Component,
48425
49679
  ...otherProps
48426
49680
  } = props;
49681
+ const MemoizedComponent = (0, React.useMemo)(() => Component ? _ref => {
49682
+ let {
49683
+ fill,
49684
+ ...iconProps
49685
+ } = _ref;
49686
+ return (// We don't rely on top-level fills for our colors. Fills are specified
49687
+ // with "currentColor" on children of the top-most svg.
49688
+ (0, _jsxRuntime.jsx)(Component, {
49689
+ fill: "none",
49690
+ ...iconProps
49691
+ })
49692
+ );
49693
+ } : undefined, [Component]);
48427
49694
  return (0, _jsxRuntime.jsx)(_icons.default, {
48428
49695
  style: {},
48429
- component: !Component ? undefined : _ref => {
48430
- let {
48431
- fill,
48432
- ...iconProps
48433
- } = _ref;
48434
- return (// We don't rely on top-level fills for our colors. Fills are specified
48435
- // with "currentColor" on children of the top-most svg.
48436
- (0, _jsxRuntime.jsx)(Component, {
48437
- fill: "none",
48438
- ...iconProps
48439
- })
48440
- );
48441
- },
49696
+ component: MemoizedComponent,
48442
49697
  ...otherProps
48443
49698
  });
48444
49699
  };
@@ -52381,12 +53636,12 @@ const colorPalettePrimary = {
52381
53636
  white: '#FFFFFF',
52382
53637
  grey100: '#F2F5F7',
52383
53638
  grey200: '#E4EBF0',
52384
- grey300: '#CEDBE5',
53639
+ grey300: '#CDDAE5',
52385
53640
  grey400: '#BDCDDB',
52386
53641
  grey500: '#8297A8',
52387
53642
  grey600: '#5D7283',
52388
53643
  grey700: '#44535F',
52389
- grey800: '#20272E',
53644
+ grey800: '#1F272D',
52390
53645
  red100: '#FFF5F7',
52391
53646
  red200: '#FDE2E8',
52392
53647
  red300: '#FBD0D8',
@@ -52462,6 +53717,7 @@ const lightColorList = {
52462
53717
  borderDecorative: colorPalettePrimary.grey300,
52463
53718
  textPrimary: colorPalettePrimary.grey800,
52464
53719
  textSecondary: colorPalettePrimary.grey600,
53720
+ textPlaceholder: colorPalettePrimary.grey400,
52465
53721
  textValidationDanger: colorPalettePrimary.red600,
52466
53722
  textValidationSuccess: colorPalettePrimary.green600,
52467
53723
  textValidationWarning: colorPalettePrimary.yellow600,
@@ -52483,6 +53739,8 @@ const lightColorList = {
52483
53739
  tagPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.16).hex(),
52484
53740
  tagIconHover: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.8).hex(),
52485
53741
  tagIconPress: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.76).hex(),
53742
+ // Typography
53743
+ typographyCodeBg: (0, _chromaJs.default)(colorPalettePrimary.grey600).alpha(0.08).hex(),
52486
53744
  tooltipBackgroundTooltip: colorPalettePrimary.grey800,
52487
53745
  ...unstableColors
52488
53746
  };
@@ -52520,6 +53778,7 @@ const darkColorList = {
52520
53778
  borderDecorative: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.24).hex(),
52521
53779
  textPrimary: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.84).hex(),
52522
53780
  textSecondary: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.6).hex(),
53781
+ textPlaceholder: (0, _chromaJs.default)(colorPalettePrimary.grey400).alpha(0.84).hex(),
52523
53782
  textValidationDanger: (0, _chromaJs.default)(colorPalettePrimary.red400).alpha(0.84).hex(),
52524
53783
  textValidationSuccess: (0, _chromaJs.default)(colorPalettePrimary.green400).alpha(0.84).hex(),
52525
53784
  textValidationWarning: (0, _chromaJs.default)(colorPalettePrimary.yellow400).alpha(0.84).hex(),
@@ -52541,6 +53800,8 @@ const darkColorList = {
52541
53800
  tagPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.16).hex(),
52542
53801
  tagIconHover: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.8).hex(),
52543
53802
  tagIconPress: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.76).hex(),
53803
+ // Typography
53804
+ typographyCodeBg: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.16).hex(),
52544
53805
  tooltipBackgroundTooltip: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.6).hex(),
52545
53806
  // Missing in list
52546
53807
  backgroundDanger: 'rgba(200,45,76,0.08)',
@@ -52585,10 +53846,8 @@ const deprecatedColors = {
52585
53846
  radioDefaultBackground: '#FFFFFF',
52586
53847
  radioInteractiveHoverSecondary: 'rgba(34, 115, 181, 0.08)',
52587
53848
  // Fade of Interactive Available
52588
- radioInteractivePressSecondary: 'rgba(34, 115, 181, 0.16)',
52589
- // Fade of Interactive Available
52590
- // Typography colors
52591
- typographyCodeBg: 'rgba(32, 39, 46, 0.08)'
53849
+ radioInteractivePressSecondary: 'rgba(34, 115, 181, 0.16)' // Fade of Interactive Available
53850
+
52592
53851
  };
52593
53852
 
52594
53853
  function getColors(theme) {
@@ -52664,12 +53923,12 @@ var generalVariables = antdGeneralVariables;
52664
53923
  const FONT_SIZE_BASE = 13; // Less variables that are used by AntD
52665
53924
 
52666
53925
  const antdTypography = {
52667
- fontSizeSm: FONT_SIZE_BASE - 2,
53926
+ fontSizeSm: 12,
52668
53927
  fontSizeBase: FONT_SIZE_BASE,
52669
53928
  fontSizeMd: FONT_SIZE_BASE,
52670
- fontSizeLg: FONT_SIZE_BASE + 6,
52671
- fontSizeXl: FONT_SIZE_BASE + 8,
52672
- fontSizeXxl: FONT_SIZE_BASE + 18,
53929
+ fontSizeLg: 18,
53930
+ fontSizeXl: 22,
53931
+ fontSizeXxl: 32,
52673
53932
  lineHeightSm: '16px',
52674
53933
  lineHeightBase: '20px',
52675
53934
  lineHeightMd: '20px',
@@ -52816,13 +54075,12 @@ const DesignSystemProvider = _ref => {
52816
54075
  theme: themeName,
52817
54076
  enableAnimation = false,
52818
54077
  zIndexBase = 1000,
52819
- isCompact = false,
52820
54078
  getPopupContainer
52821
54079
  } = _ref;
52822
54080
  const theme = (0, React.useMemo)(() => getTheme(themeName || 'default', {
52823
54081
  enableAnimation,
52824
54082
  zIndexBase,
52825
- isCompact
54083
+ isCompact: true
52826
54084
  }), // TODO: revisit this
52827
54085
  // eslint-disable-next-line react-hooks/exhaustive-deps
52828
54086
  [themeName, zIndexBase]);
@@ -52830,9 +54088,9 @@ const DesignSystemProvider = _ref => {
52830
54088
  theme: themeName,
52831
54089
  enableAnimation,
52832
54090
  zIndexBase,
52833
- isCompact,
54091
+ isCompact: true,
52834
54092
  getPopupContainer
52835
- }), [themeName, enableAnimation, zIndexBase, isCompact, getPopupContainer]);
54093
+ }), [themeName, enableAnimation, zIndexBase, getPopupContainer]);
52836
54094
  const classNamePrefix = getClassNamePrefix(theme);
52837
54095
  const value = (0, React.useMemo)(() => {
52838
54096
  return {
@@ -52866,26 +54124,6 @@ const DesignSystemProvider = _ref => {
52866
54124
 
52867
54125
  exports.DesignSystemProvider = DesignSystemProvider;
52868
54126
 
52869
- const ApplyCompactDesignSystemTheme = _ref2 => {
52870
- let {
52871
- children
52872
- } = _ref2;
52873
- const parentDesignSystemProviderProps = (0, React.useContext)(DesignSystemProviderPropsContext);
52874
-
52875
- if (parentDesignSystemProviderProps === null) {
52876
- throw new Error("ApplyCompactDesignSystemTheme cannot be used standalone - DesignSystemProvider must exist in the React context");
52877
- }
52878
-
52879
- const newProps = (0, React.useMemo)(() => ({ ...parentDesignSystemProviderProps,
52880
- isCompact: true
52881
- }), [parentDesignSystemProviderProps]);
52882
- return (0, _jsxRuntime.jsx)(DesignSystemProvider, { ...newProps,
52883
- children: children
52884
- });
52885
- };
52886
-
52887
- exports.ApplyCompactDesignSystemTheme = ApplyCompactDesignSystemTheme;
52888
-
52889
54127
  const Alert = _ref => {
52890
54128
  let {
52891
54129
  dangerouslySetAntdProps,
@@ -53057,7 +54295,7 @@ const Breadcrumb = _ref => {
53057
54295
  }
53058
54296
  }, process.env.NODE_ENV === "production" ? "" : ";label:styles;", process.env.NODE_ENV === "production" ? "" : ";label:styles;");
53059
54297
  return (0, _jsxRuntime.jsx)(Breadcrumb$2, {
53060
- separator: ">",
54298
+ separator: (0, _jsxRuntime.jsx)(ChevronRightIcon, {}),
53061
54299
  ...props,
53062
54300
  ...dangerouslySetAntdProps,
53063
54301
  css:
@@ -53131,6 +54369,7 @@ function getDefaultStyles(theme) {
53131
54369
  backgroundColor: theme.colors.actionDefaultBackgroundDefault,
53132
54370
  borderColor: theme.colors.actionDefaultBorderDefault,
53133
54371
  color: theme.colors.actionDefaultTextDefault,
54372
+ lineHeight: theme.typography.lineHeightBase,
53134
54373
  '&:hover': {
53135
54374
  backgroundColor: theme.colors.actionDefaultBackgroundHover,
53136
54375
  borderColor: theme.colors.actionDefaultBorderHover,
@@ -53163,7 +54402,7 @@ function getPrimaryStyles(theme) {
53163
54402
  };
53164
54403
  }
53165
54404
 
53166
- function getTertiaryStyles(theme) {
54405
+ function getLinkStyles(theme) {
53167
54406
  return {
53168
54407
  backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
53169
54408
  borderColor: theme.colors.actionTertiaryBackgroundDefault,
@@ -53252,7 +54491,8 @@ const getButtonEmotionStyles = _ref => {
53252
54491
  withIcon,
53253
54492
  onlyIcon,
53254
54493
  enableAnimation,
53255
- size
54494
+ size,
54495
+ type
53256
54496
  } = _ref;
53257
54497
  const clsIcon = ".".concat(theme.general.iconfontCssPrefix);
53258
54498
  const clsLoadingIcon = ".".concat(classNamePrefix, "-btn-loading-icon");
@@ -53269,10 +54509,7 @@ const getButtonEmotionStyles = _ref => {
53269
54509
  padding: theme.options.isCompact || size === 'small' ? '4px 12px' : '8px 16px',
53270
54510
  ...(size === 'ultrasmall' && {
53271
54511
  padding: '0 8px'
53272
- }),
53273
- '> span': {
53274
- verticalAlign: 'middle'
53275
- }
54512
+ })
53276
54513
  }
53277
54514
  }),
53278
54515
  ...((theme.options.isCompact || size === 'small') && {
@@ -53300,14 +54537,16 @@ const getButtonEmotionStyles = _ref => {
53300
54537
  ...getDefaultStyles(theme),
53301
54538
  ["&".concat(classPrimary)]: { ...getPrimaryStyles(theme)
53302
54539
  },
53303
- ["&".concat(classLink)]: { ...getTertiaryStyles(theme),
53304
- padding: 'unset',
53305
- height: 'auto',
53306
- border: 'none',
53307
- boxShadow: 'none',
53308
- '&[disabled],&:hover': {
53309
- background: 'none'
53310
- }
54540
+ ["&".concat(classLink)]: { ...getLinkStyles(theme),
54541
+ ...(type === 'link' && {
54542
+ padding: 'unset',
54543
+ height: 'auto',
54544
+ border: 'none',
54545
+ boxShadow: 'none',
54546
+ '&[disabled],&:hover': {
54547
+ background: 'none'
54548
+ }
54549
+ })
53311
54550
  },
53312
54551
  ["&".concat(classDangerous).concat(classPrimary)]: { ...getPrimaryDangerStyles(theme)
53313
54552
  },
@@ -53362,7 +54601,7 @@ const getButtonEmotionStyles = _ref => {
53362
54601
  verticalAlign: -5,
53363
54602
  lineHeight: 0,
53364
54603
  ...(onlyIcon && {
53365
- verticalAlign: theme.options.isCompact || size === 'small' ? -2 : -5
54604
+ verticalAlign: theme.options.isCompact || size === 'small' ? -3 : -5
53366
54605
  }),
53367
54606
  ...((theme.options.isCompact || size === 'small') && {
53368
54607
  fontSize: theme.general.buttonInnerHeight - 4,
@@ -53416,6 +54655,7 @@ _ref2, ref) {
53416
54655
  dangerouslySetAntdProps,
53417
54656
  children,
53418
54657
  size,
54658
+ type,
53419
54659
  ...props
53420
54660
  } = _ref2;
53421
54661
  const {
@@ -53431,10 +54671,13 @@ _ref2, ref) {
53431
54671
  onlyIcon: Boolean(props.icon && !children),
53432
54672
  danger: Boolean(props.danger),
53433
54673
  enableAnimation: theme.options.enableAnimation,
53434
- size: size || 'middle'
54674
+ size: size || 'middle',
54675
+ type
53435
54676
  }),
54677
+ href: props.disabled ? undefined : props.href,
53436
54678
  ...dangerouslySetAntdProps,
53437
54679
  ref: ref,
54680
+ type: type === 'tertiary' ? 'link' : type,
53438
54681
  children: children && (0, _jsxRuntime.jsx)("span", {
53439
54682
  children: children
53440
54683
  })
@@ -53458,7 +54701,9 @@ function getCheckboxEmotionStyles(clsPrefix, theme) {
53458
54701
  const pressSelector = "".concat(classInput, ":active + ").concat(classInner);
53459
54702
  const styles = {
53460
54703
  // Top level styles are for the unchecked state
53461
- [classInner]: {},
54704
+ [classInner]: {
54705
+ borderColor: theme.colors.actionDefaultBorderDefault
54706
+ },
53462
54707
  // Keyboard focus
53463
54708
  ["".concat(classInput, ":focus-visible + ").concat(classInner)]: {
53464
54709
  outlineWidth: '2px',
@@ -53598,16 +54843,14 @@ const DuboisCheckbox = /*#__PURE__*/(0, React.forwardRef)(function Checkbox(_ref
53598
54843
  });
53599
54844
  const CheckboxGroup = /*#__PURE__*/(0, React.forwardRef)(function CheckboxGroup(props, ref) {
53600
54845
  const {
53601
- theme
54846
+ theme,
54847
+ getPrefixedClassName
53602
54848
  } = useDesignSystemTheme();
54849
+ const clsPrefix = getPrefixedClassName('checkbox');
53603
54850
  return (0, _jsxRuntime.jsx)(AntDCheckbox.Group, {
53604
54851
  ref: ref,
53605
54852
  ...props,
53606
- css:
53607
- /*#__PURE__*/
53608
-
53609
- /*#__PURE__*/
53610
- (0, _react2.css)(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:CheckboxGroup;", process.env.NODE_ENV === "production" ? "" : ";label:css;")
54853
+ css: getCheckboxEmotionStyles(clsPrefix, theme)
53611
54854
  });
53612
54855
  });
53613
54856
  const CheckboxNamespace = Object.assign(DuboisCheckbox, {
@@ -53740,7 +54983,7 @@ function getEmotionStyles(clsPrefix, theme) {
53740
54983
  const classSeparator = ".".concat(clsPrefix, "-separator");
53741
54984
  const classSuffix = ".".concat(clsPrefix, "-suffix");
53742
54985
  const styles = {
53743
- height: 40,
54986
+ height: theme.options.isCompact ? 32 : 40,
53744
54987
  borderRadius: theme.borders.borderRadiusMd,
53745
54988
  borderColor: theme.colors.border,
53746
54989
  color: theme.colors.textPrimary,
@@ -54443,6 +55686,7 @@ function getLevelStyles(theme, props) {
54443
55686
  /*#__PURE__*/
54444
55687
  (0, _react2.css)({
54445
55688
  '&&': {
55689
+ // TODO:FEINF-697 Move from XXL to XL
54446
55690
  fontSize: theme.typography.fontSizeXxl,
54447
55691
  lineHeight: theme.typography.lineHeightXxl,
54448
55692
  fontWeight: theme.typography.typographyBoldFontWeight
@@ -54457,6 +55701,7 @@ function getLevelStyles(theme, props) {
54457
55701
  /*#__PURE__*/
54458
55702
  (0, _react2.css)({
54459
55703
  '&&': {
55704
+ // TODO:FEINF-697 Move from XL to LG, consider moving some usages of level 2 up to level 1
54460
55705
  fontSize: theme.typography.fontSizeXl,
54461
55706
  lineHeight: theme.typography.lineHeightXl,
54462
55707
  fontWeight: theme.typography.typographyBoldFontWeight
@@ -54465,20 +55710,6 @@ function getLevelStyles(theme, props) {
54465
55710
  );
54466
55711
 
54467
55712
  case 3:
54468
- return (
54469
- /*#__PURE__*/
54470
-
54471
- /*#__PURE__*/
54472
- (0, _react2.css)({
54473
- '&&': {
54474
- fontSize: theme.typography.fontSizeLg,
54475
- lineHeight: theme.typography.lineHeightLg,
54476
- fontWeight: theme.typography.typographyBoldFontWeight
54477
- }
54478
- }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;", process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;")
54479
- );
54480
-
54481
- case 4:
54482
55713
  default:
54483
55714
  return (
54484
55715
  /*#__PURE__*/
@@ -54532,7 +55763,7 @@ function Title(userProps) {
54532
55763
  });
54533
55764
  }
54534
55765
 
54535
- function _EMOTION_STRINGIFIED_CSS_ERROR__$5() {
55766
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$7() {
54536
55767
  return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
54537
55768
  }
54538
55769
 
@@ -54552,13 +55783,13 @@ const getHeaderStyles = (clsPrefix, theme) => {
54552
55783
  );
54553
55784
  };
54554
55785
 
54555
- var _ref$1 = process.env.NODE_ENV === "production" ? {
55786
+ var _ref$3 = process.env.NODE_ENV === "production" ? {
54556
55787
  name: "5s4ezj",
54557
55788
  styles: "display:inline-flex;vertical-align:middle;align-items:center;margin-left:8px"
54558
55789
  } : {
54559
55790
  name: "gxikdi-titleAddOnsWrapper",
54560
55791
  styles: "display:inline-flex;vertical-align:middle;align-items:center;margin-left:8px;label:titleAddOnsWrapper;",
54561
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
55792
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
54562
55793
  };
54563
55794
 
54564
55795
  var _ref2$2 = process.env.NODE_ENV === "production" ? {
@@ -54567,7 +55798,7 @@ var _ref2$2 = process.env.NODE_ENV === "production" ? {
54567
55798
  } : {
54568
55799
  name: "ozrfom-buttonContainer",
54569
55800
  styles: "margin-left:8px;label:buttonContainer;",
54570
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
55801
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
54571
55802
  };
54572
55803
 
54573
55804
  var _ref3$1 = process.env.NODE_ENV === "production" ? {
@@ -54576,7 +55807,7 @@ var _ref3$1 = process.env.NODE_ENV === "production" ? {
54576
55807
  } : {
54577
55808
  name: "abhq57-title",
54578
55809
  styles: "margin-top:0;margin-bottom:0 !important;label:title;",
54579
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
55810
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
54580
55811
  };
54581
55812
 
54582
55813
  var _ref4$2 = process.env.NODE_ENV === "production" ? {
@@ -54585,7 +55816,7 @@ var _ref4$2 = process.env.NODE_ENV === "production" ? {
54585
55816
  } : {
54586
55817
  name: "m9gz0x-titleWrapper",
54587
55818
  styles: "display:flex;align-items:flex-start;justify-content:space-between;label:titleWrapper;",
54588
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
55819
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
54589
55820
  };
54590
55821
 
54591
55822
  const Header$1 = props => {
@@ -54615,11 +55846,11 @@ const Header$1 = props => {
54615
55846
  (0, _react2.css)({
54616
55847
  marginTop: 6,
54617
55848
  ...(theme.options.isCompact && {
54618
- marginTop: 4
55849
+ marginTop: 2
54619
55850
  })
54620
55851
  }, process.env.NODE_ENV === "production" ? "" : ";label:titleIfOtherElementsPresent;", process.env.NODE_ENV === "production" ? "" : ";label:titleIfOtherElementsPresent;"),
54621
55852
  buttonContainer: _ref2$2,
54622
- titleAddOnsWrapper: _ref$1
55853
+ titleAddOnsWrapper: _ref$3
54623
55854
  };
54624
55855
  return (0, _jsxRuntime.jsxs)("div", {
54625
55856
  css: [getHeaderStyles(clsPrefix, theme), props.dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Header;"],
@@ -54650,25 +55881,49 @@ exports.Header = Header$1;
54650
55881
 
54651
55882
  const getInputEmotionStyles = (clsPrefix, theme) => {
54652
55883
  const affixClass = ".".concat(clsPrefix, "-input-affix-wrapper");
54653
- const inputClass = ".".concat(clsPrefix, "-input");
55884
+ const affixClassFocused = ".".concat(clsPrefix, "-input-affix-wrapper-focused");
54654
55885
  const styles = {
54655
55886
  '&&': {
54656
55887
  lineHeight: theme.typography.lineHeightBase,
54657
55888
  paddingTop: theme.options.isCompact ? 5 : 9,
54658
55889
  paddingBottom: theme.options.isCompact ? 5 : 9,
54659
- minHeight: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase
55890
+ minHeight: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase,
55891
+ '&:hover': {
55892
+ borderColor: theme.colors.actionPrimaryBackgroundHover
55893
+ },
55894
+ '&:focus': {
55895
+ outlineColor: theme.colors.actionPrimaryBackgroundDefault,
55896
+ outlineWidth: 2,
55897
+ outlineStyle: 'solid',
55898
+ boxShadow: 'none',
55899
+ borderColor: 'transparent'
55900
+ },
55901
+ '&:disabled': {
55902
+ backgroundColor: theme.colors.actionDisabledBackground,
55903
+ color: theme.colors.actionDisabledText
55904
+ }
54660
55905
  },
54661
- ["&.".concat(affixClass)]: {
55906
+ ["&".concat(affixClass)]: {
54662
55907
  lineHeight: theme.typography.lineHeightBase,
54663
55908
  paddingTop: theme.options.isCompact ? 5 : 9,
54664
55909
  paddingBottom: theme.options.isCompact ? 5 : 9,
54665
55910
  minHeight: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase,
54666
55911
  '::before': {
54667
55912
  lineHeight: theme.typography.lineHeightBase
55913
+ },
55914
+ '&:hover': {
55915
+ borderColor: theme.colors.actionPrimaryBackgroundHover
54668
55916
  }
54669
55917
  },
54670
- [inputClass]: {
54671
- lineHeight: theme.typography.lineHeightBase
55918
+ ["&".concat(affixClassFocused)]: {
55919
+ boxShadow: 'none',
55920
+ '&&, &:focus': {
55921
+ outlineColor: theme.colors.actionPrimaryBackgroundDefault,
55922
+ outlineWidth: 2,
55923
+ outlineStyle: 'solid',
55924
+ boxShadow: 'none',
55925
+ borderColor: 'transparent'
55926
+ }
54672
55927
  },
54673
55928
  ...getAnimationCss(theme.options.enableAnimation)
54674
55929
  };
@@ -54790,7 +56045,7 @@ Menu.SubMenu = function SubMenu(props) {
54790
56045
  });
54791
56046
  };
54792
56047
 
54793
- function _EMOTION_STRINGIFIED_CSS_ERROR__$4() {
56048
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$6() {
54794
56049
  return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
54795
56050
  }
54796
56051
 
@@ -54838,6 +56093,7 @@ const getModalEmotionStyles = args => {
54838
56093
  paddingTop: theme.options.isCompact ? theme.spacing.lg : MODAL_PADDING$1 / 2,
54839
56094
  paddingLeft: MODAL_PADDING$1,
54840
56095
  paddingRight: MODAL_PADDING$1,
56096
+ marginTop: 'auto',
54841
56097
  ["".concat(classNameButton, " + ").concat(classNameButton, ":not(").concat(classNameDropdownTrigger, ")")]: {
54842
56098
  marginLeft: theme.spacing.sm
54843
56099
  }
@@ -54996,7 +56252,7 @@ var _ref2$1 = process.env.NODE_ENV === "production" ? {
54996
56252
  } : {
54997
56253
  name: "1jkwrsj-titleComp",
54998
56254
  styles: "position:relative;display:inline-flex;align-items:center;label:titleComp;",
54999
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
56255
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
55000
56256
  };
55001
56257
 
55002
56258
  var _ref3 = process.env.NODE_ENV === "production" ? {
@@ -55005,7 +56261,7 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
55005
56261
  } : {
55006
56262
  name: "i303lp-titleComp",
55007
56263
  styles: "padding-left:6px;label:titleComp;",
55008
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
56264
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
55009
56265
  };
55010
56266
 
55011
56267
  var _ref4$1 = process.env.NODE_ENV === "production" ? {
@@ -55014,7 +56270,7 @@ var _ref4$1 = process.env.NODE_ENV === "production" ? {
55014
56270
  } : {
55015
56271
  name: "boqyz4-titleComp",
55016
56272
  styles: "position:relative;label:titleComp;",
55017
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
56273
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
55018
56274
  };
55019
56275
 
55020
56276
  function DangerModal(props) {
@@ -55164,17 +56420,17 @@ const defaultProps = {
55164
56420
  duration: 3
55165
56421
  };
55166
56422
 
55167
- function _EMOTION_STRINGIFIED_CSS_ERROR__$3() {
56423
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$5() {
55168
56424
  return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
55169
56425
  }
55170
56426
 
55171
- var _ref = process.env.NODE_ENV === "production" ? {
56427
+ var _ref$2 = process.env.NODE_ENV === "production" ? {
55172
56428
  name: "1dw6hj0",
55173
56429
  styles: "padding-left:16px;padding-right:16px"
55174
56430
  } : {
55175
56431
  name: "xioo5t-PageWrapper",
55176
56432
  styles: "padding-left:16px;padding-right:16px;label:PageWrapper;",
55177
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
56433
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
55178
56434
  };
55179
56435
 
55180
56436
  const PageWrapper = _ref2 => {
@@ -55182,7 +56438,7 @@ const PageWrapper = _ref2 => {
55182
56438
  children
55183
56439
  } = _ref2;
55184
56440
  return (0, _jsxRuntime.jsx)("div", {
55185
- css: _ref,
56441
+ css: _ref$2,
55186
56442
  children: children
55187
56443
  });
55188
56444
  };
@@ -55340,7 +56596,7 @@ const Popover = props => {
55340
56596
 
55341
56597
  exports.Popover = Popover;
55342
56598
 
55343
- function _EMOTION_STRINGIFIED_CSS_ERROR__$2() {
56599
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$4() {
55344
56600
  return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
55345
56601
  }
55346
56602
 
@@ -55350,7 +56606,7 @@ const verticalGroupEmotionStyles = process.env.NODE_ENV === "production" ? {
55350
56606
  } : {
55351
56607
  name: "1ydgy2-verticalGroupEmotionStyles",
55352
56608
  styles: "display:flex;flex-direction:column;flex-wrap:wrap;label:verticalGroupEmotionStyles;",
55353
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
56609
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
55354
56610
  };
55355
56611
 
55356
56612
  const radioOverrideEmotionStyles = _ref => {
@@ -55628,7 +56884,7 @@ const SegmentedControlGroup = /*#__PURE__*/(0, React.forwardRef)(function Segmen
55628
56884
  });
55629
56885
  exports.SegmentedControlGroup = SegmentedControlGroup;
55630
56886
 
55631
- function _EMOTION_STRINGIFIED_CSS_ERROR__$1() {
56887
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$3() {
55632
56888
  return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
55633
56889
  }
55634
56890
 
@@ -55645,6 +56901,7 @@ function getSelectEmotionStyles(_ref) {
55645
56901
  const classMultiple = ".".concat(clsPrefix, "-multiple");
55646
56902
  const classItem = ".".concat(clsPrefix, "-selection-item");
55647
56903
  const classItemOverflow = ".".concat(clsPrefix, "-selection-overflow-item");
56904
+ const classItemOverflowSuffix = ".".concat(clsPrefix, "-selection-overflow-item-suffix");
55648
56905
  const classArrow = ".".concat(clsPrefix, "-arrow");
55649
56906
  const classArrowLoading = ".".concat(clsPrefix, "-arrow-loading");
55650
56907
  const classPlaceholder = ".".concat(clsPrefix, "-selection-placeholder");
@@ -55666,7 +56923,6 @@ function getSelectEmotionStyles(_ref) {
55666
56923
  // to make sure the whole select is clickable.
55667
56924
  paddingRight: 0,
55668
56925
  color: theme.colors.textPrimary,
55669
- borderColor: theme.colors.actionDefaultBorderDefault,
55670
56926
  backgroundColor: 'transparent',
55671
56927
  height: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase,
55672
56928
  '::after': {
@@ -55693,7 +56949,8 @@ function getSelectEmotionStyles(_ref) {
55693
56949
  right: 24,
55694
56950
  left: 12,
55695
56951
  [classSearchInput]: {
55696
- color: theme.colors.actionDefaultTextDefault
56952
+ color: theme.colors.actionDefaultTextDefault,
56953
+ height: 24
55697
56954
  }
55698
56955
  },
55699
56956
  ["&".concat(classSingle)]: {
@@ -55713,7 +56970,7 @@ function getSelectEmotionStyles(_ref) {
55713
56970
  },
55714
56971
  ["&".concat(classFocused)]: {
55715
56972
  [classSelector]: {
55716
- outlineColor: theme.colors.primary,
56973
+ outlineColor: theme.colors.actionPrimaryBackgroundDefault,
55717
56974
  outlineWidth: 2,
55718
56975
  outlineStyle: 'solid',
55719
56976
  borderColor: 'transparent',
@@ -55752,6 +57009,14 @@ function getSelectEmotionStyles(_ref) {
55752
57009
  fontSize: 13
55753
57010
  }
55754
57011
  },
57012
+ [classPlaceholder]: {
57013
+ color: theme.colors.textSecondary,
57014
+ right: 'auto',
57015
+ left: 'auto',
57016
+ paddingRight: 32,
57017
+ lineHeight: theme.typography.lineHeightBase,
57018
+ alignSelf: 'center'
57019
+ },
55755
57020
  ["&".concat(classMultiple)]: {
55756
57021
  [classSelector]: {
55757
57022
  paddingTop: 3,
@@ -55799,7 +57064,19 @@ function getSelectEmotionStyles(_ref) {
55799
57064
  },
55800
57065
  ["&".concat(classAllowClear)]: {
55801
57066
  [classSearchClear]: {
55802
- top: theme.options.isCompact ? 17 : 20
57067
+ top: theme.options.isCompact ? 16 : 20
57068
+ }
57069
+ },
57070
+ [classPlaceholder]: {
57071
+ // Compensate for the caret placeholder width
57072
+ paddingLeft: 4,
57073
+ color: theme.colors.textPlaceholder
57074
+ },
57075
+ ["&:not(".concat(classFocused, ")")]: {
57076
+ [classItemOverflowSuffix]: {
57077
+ // Do not keep the caret's placeholder at full height when not focused,
57078
+ // because it introduces a new line even when not focused. Using display: none would break the caret
57079
+ height: 0
55803
57080
  }
55804
57081
  }
55805
57082
  },
@@ -55820,11 +57097,6 @@ function getSelectEmotionStyles(_ref) {
55820
57097
  opacity: 100
55821
57098
  }
55822
57099
  },
55823
- [classPlaceholder]: {
55824
- color: theme.colors.textPrimary,
55825
- right: 'auto',
55826
- left: 'auto'
55827
- },
55828
57100
  [classCloseButton]: {
55829
57101
  color: theme.colors.textPrimary,
55830
57102
  borderTopRightRadius: theme.borders.borderRadiusMd,
@@ -55915,6 +57187,7 @@ function getLoadingIconStyles(theme) {
55915
57187
  }
55916
57188
 
55917
57189
  const DuboisRefForwardedSelect = /*#__PURE__*/(0, React.forwardRef)(DuboisSelect);
57190
+ const scrollbarVisibleItemsCount = 8;
55918
57191
 
55919
57192
  var _ref4 = process.env.NODE_ENV === "production" ? {
55920
57193
  name: "14is9qy",
@@ -55922,7 +57195,7 @@ var _ref4 = process.env.NODE_ENV === "production" ? {
55922
57195
  } : {
55923
57196
  name: "14is9qy",
55924
57197
  styles: "font-size:20px",
55925
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
57198
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
55926
57199
  };
55927
57200
 
55928
57201
  function DuboisSelect(_ref2, ref) {
@@ -55931,6 +57204,7 @@ function DuboisSelect(_ref2, ref) {
55931
57204
  loading,
55932
57205
  mode,
55933
57206
  dangerouslySetAntdProps,
57207
+ virtual,
55934
57208
  ...restProps
55935
57209
  } = _ref2;
55936
57210
  const {
@@ -55990,7 +57264,10 @@ function DuboisSelect(_ref2, ref) {
55990
57264
  maxTagPlaceholder: items => "+ ".concat(items.length, " more"),
55991
57265
  mode: mode,
55992
57266
  loading: loading,
55993
- filterOption: true,
57267
+ filterOption: true // This is needed to avoid ghost scrollbar that generates error when clicked on exactly 8 elements
57268
+ // Because by default AntD uses true for virtual, we want to replicate the same even if there are no children
57269
+ ,
57270
+ virtual: virtual || !children || Array.isArray(children) && children.length !== scrollbarVisibleItemsCount,
55994
57271
  optionFilterProp: 'children',
55995
57272
  ...restProps,
55996
57273
  ...dangerouslySetAntdProps,
@@ -56087,6 +57364,10 @@ const Spinner = _ref => {
56087
57364
 
56088
57365
  exports.Spinner = Spinner;
56089
57366
 
57367
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$2() {
57368
+ return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
57369
+ }
57370
+
56090
57371
  function getSplitButtonEmotionStyles(classNamePrefix, theme) {
56091
57372
  const classDefault = ".".concat(classNamePrefix, "-btn");
56092
57373
  const classPrimary = ".".concat(classNamePrefix, "-btn-primary");
@@ -56150,6 +57431,15 @@ function getSplitButtonEmotionStyles(classNamePrefix, theme) {
56150
57431
  );
56151
57432
  }
56152
57433
 
57434
+ var _ref$1 = process.env.NODE_ENV === "production" ? {
57435
+ name: "jjj6u2",
57436
+ styles: "display:inline-flex;position:relative"
57437
+ } : {
57438
+ name: "4yj1tb-SplitButton",
57439
+ styles: "display:inline-flex;position:relative;label:SplitButton;",
57440
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
57441
+ };
57442
+
56153
57443
  const SplitButton = props => {
56154
57444
  const {
56155
57445
  theme,
@@ -56160,26 +57450,47 @@ const SplitButton = props => {
56160
57450
  icon,
56161
57451
  menu,
56162
57452
  type,
57453
+ loading,
56163
57454
  dangerouslySetAntdProps,
56164
57455
  ...dropdownButtonProps
56165
57456
  } = props;
56166
- return (0, _jsxRuntime.jsxs)(Dropdown$2.Button, { ...dropdownButtonProps,
56167
- overlay: menu,
56168
- trigger: ['click'],
56169
- css: getSplitButtonEmotionStyles(classNamePrefix, theme),
56170
- icon: (0, _jsxRuntime.jsx)(ChevronDownIcon, {
56171
- css:
56172
- /*#__PURE__*/
57457
+ const [width, setWidth] = (0, React.useState)(0); // Set the width to the button's width in regular state to later use when in loading state
57458
+ // We do this to have just a loading icon in loading state at the normal width to avoid flicker and width changes in page
56173
57459
 
56174
- /*#__PURE__*/
56175
- (0, _react2.css)({
56176
- fontSize: theme.general.iconSize
56177
- }, process.env.NODE_ENV === "production" ? "" : ";label:SplitButton;", process.env.NODE_ENV === "production" ? "" : ";label:css;")
56178
- }),
56179
- placement: "bottomCenter",
56180
- type: type === 'default' ? undefined : type,
56181
- ...dangerouslySetAntdProps,
56182
- children: [icon, children]
57460
+ const ref = (0, React.useCallback)(node => {
57461
+ if (node && !loading) {
57462
+ setWidth(node.getBoundingClientRect().width);
57463
+ }
57464
+ }, [loading]);
57465
+ return (0, _jsxRuntime.jsx)("div", {
57466
+ ref: ref,
57467
+ css: _ref$1,
57468
+ children: loading ? (0, _jsxRuntime.jsx)(Button, {
57469
+ type: type === 'default' ? undefined : type,
57470
+ style: {
57471
+ width: width
57472
+ },
57473
+ children: (0, _jsxRuntime.jsx)(LoadingIcon, {
57474
+ spin: true
57475
+ })
57476
+ }) : (0, _jsxRuntime.jsxs)(Dropdown$2.Button, { ...dropdownButtonProps,
57477
+ overlay: menu,
57478
+ trigger: ['click'],
57479
+ css: getSplitButtonEmotionStyles(classNamePrefix, theme),
57480
+ icon: (0, _jsxRuntime.jsx)(ChevronDownIcon, {
57481
+ css:
57482
+ /*#__PURE__*/
57483
+
57484
+ /*#__PURE__*/
57485
+ (0, _react2.css)({
57486
+ fontSize: theme.general.iconSize
57487
+ }, process.env.NODE_ENV === "production" ? "" : ";label:SplitButton;", process.env.NODE_ENV === "production" ? "" : ";label:css;")
57488
+ }),
57489
+ placement: "bottomCenter",
57490
+ type: type === 'default' ? undefined : type,
57491
+ ...dangerouslySetAntdProps,
57492
+ children: [icon, children]
57493
+ })
56183
57494
  });
56184
57495
  };
56185
57496
 
@@ -56254,8 +57565,11 @@ const getScrollableInFlexibleContainerStyles = clsPrefix => {
56254
57565
  /*#__PURE__*/
56255
57566
  (0, _react2.css)(styles, process.env.NODE_ENV === "production" ? "" : ";label:getScrollableInFlexibleContainerStyles;", process.env.NODE_ENV === "production" ? "" : ";label:getScrollableInFlexibleContainerStyles;")
56256
57567
  );
56257
- }; // eslint-disable-next-line @typescript-eslint/ban-types
57568
+ };
56258
57569
 
57570
+ const DEFAULT_LOADING_SPIN_PROPS = {
57571
+ indicator: (0, _jsxRuntime.jsx)(Spinner, {})
57572
+ }; // eslint-disable-next-line @typescript-eslint/ban-types
56259
57573
 
56260
57574
  const Table = props => {
56261
57575
  const {
@@ -56263,10 +57577,15 @@ const Table = props => {
56263
57577
  theme
56264
57578
  } = useDesignSystemTheme();
56265
57579
  const {
57580
+ loading,
56266
57581
  scrollableInFlexibleContainer,
56267
57582
  ...tableProps
56268
57583
  } = props;
56269
- return (0, _jsxRuntime.jsx)(Table$1, {
57584
+ return (0, _jsxRuntime.jsx)(Table$1 // NOTE(FEINF-1273): The default loading indicator from AntD does not animate
57585
+ // and the design system spinner is recommended over the AntD one. Therefore,
57586
+ // if `loading` is `true`, render the design system <Spinner/> component.
57587
+ , {
57588
+ loading: loading === true ? DEFAULT_LOADING_SPIN_PROPS : loading,
56270
57589
  scroll: scrollableInFlexibleContainer ? {
56271
57590
  y: 'auto'
56272
57591
  } : undefined,
@@ -56425,6 +57744,7 @@ const Tabs = _ref => {
56425
57744
  onChange,
56426
57745
  onEdit,
56427
57746
  children,
57747
+ destroyInactiveTabPane = false,
56428
57748
  dangerouslySetAntdProps = {},
56429
57749
  dangerouslyAppendEmotionCSS = {}
56430
57750
  } = _ref;
@@ -56437,6 +57757,7 @@ const Tabs = _ref => {
56437
57757
  defaultActiveKey: defaultActiveKey,
56438
57758
  onChange: onChange,
56439
57759
  onEdit: onEdit,
57760
+ destroyInactiveTabPane: destroyInactiveTabPane,
56440
57761
  type: editable ? 'editable-card' : 'card',
56441
57762
  addIcon: (0, _jsxRuntime.jsx)(PlusIcon, {
56442
57763
  css:
@@ -56659,7 +57980,7 @@ const Tooltip = _ref => {
56659
57980
 
56660
57981
  exports.Tooltip = Tooltip;
56661
57982
 
56662
- function _EMOTION_STRINGIFIED_CSS_ERROR__() {
57983
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$1() {
56663
57984
  return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
56664
57985
  }
56665
57986
  /**
@@ -56876,7 +58197,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
56876
58197
  } : {
56877
58198
  name: "wh1oly-Tree",
56878
58199
  styles: "font-size:24px!important;label:Tree;",
56879
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
58200
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
56880
58201
  };
56881
58202
 
56882
58203
  function Tree(_ref) {
@@ -56911,6 +58232,41 @@ function Tree(_ref) {
56911
58232
  });
56912
58233
  }
56913
58234
 
58235
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() {
58236
+ return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
58237
+ }
58238
+
58239
+ var _ref = process.env.NODE_ENV === "production" ? {
58240
+ name: "mgrjgu",
58241
+ styles: "margin-left:2px"
58242
+ } : {
58243
+ name: "7kmwq-Link",
58244
+ styles: "margin-left:2px;label:Link;",
58245
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
58246
+ };
58247
+
58248
+ function Link(props) {
58249
+ const {
58250
+ children,
58251
+ openInNewTab,
58252
+ ...restProps
58253
+ } = props;
58254
+ const openInNewTabProps = getOpenInNewTabProps(openInNewTab);
58255
+ return (0, _jsxRuntime.jsxs)(AntDTypography.Link, { ...restProps,
58256
+ ...openInNewTabProps,
58257
+ children: [children, openInNewTab ? (0, _jsxRuntime.jsx)(NewWindowIcon, {
58258
+ css: _ref
58259
+ }) : null]
58260
+ });
58261
+ }
58262
+
58263
+ function getOpenInNewTabProps(openInNewTab) {
58264
+ return openInNewTab ? {
58265
+ rel: 'noopener noreferrer',
58266
+ target: '_blank'
58267
+ } : undefined;
58268
+ }
58269
+
56914
58270
  const {
56915
58271
  Paragraph: AntDParagraph
56916
58272
  } = AntDTypography;
@@ -57069,4 +58425,4 @@ function Typography(props) {
57069
58425
  Typography.Text = Text;
57070
58426
  Typography.Title = Title;
57071
58427
  Typography.Paragraph = Paragraph;
57072
- Typography.Link = AntDTypography.Link;
58428
+ Typography.Link = Link;