@databricks/design-system 1.1.0 → 1.3.1

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 +1764 -346
  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 +2 -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 +29 -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 +1 -0
  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 +431 -431
  518. package/dist/index.css +508 -508
  519. package/dist/index.d.ts +2 -0
  520. package/dist/index.d.ts.map +1 -0
  521. package/dist/index.js +1763 -336
  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;
@@ -209,6 +208,7 @@ exports.getPaginationEmotionStyles = getPaginationEmotionStyles;
209
208
  exports.getTabEmotionStyles = void 0;
210
209
  exports.useDesignSystemTheme = useDesignSystemTheme;
211
210
  exports.useNotification = useNotification;
211
+ exports.useThemedStyles = void 0;
212
212
 
213
213
  var React = _interopRequireWildcard(require("react"));
214
214
 
@@ -13166,7 +13166,7 @@ var Portal = /*#__PURE__*/(0, React.forwardRef)(function (props, ref) {
13166
13166
  return containerRef.current ? /*#__PURE__*/ReactDOM.default.createPortal(children, containerRef.current) : null;
13167
13167
  });
13168
13168
 
13169
- function isPointsEq$1(a1, a2, isAlignPoint) {
13169
+ function isPointsEq$2(a1, a2, isAlignPoint) {
13170
13170
  if (isAlignPoint) {
13171
13171
  return a1[0] === a2[0];
13172
13172
  }
@@ -13174,19 +13174,19 @@ function isPointsEq$1(a1, a2, isAlignPoint) {
13174
13174
  return a1[0] === a2[0] && a1[1] === a2[1];
13175
13175
  }
13176
13176
 
13177
- function getAlignFromPlacement$1(builtinPlacements, placementStr, align) {
13177
+ function getAlignFromPlacement$2(builtinPlacements, placementStr, align) {
13178
13178
  var baseAlign = builtinPlacements[placementStr] || {};
13179
13179
  return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, baseAlign), align);
13180
13180
  }
13181
13181
 
13182
- function getAlignPopupClassName$1(builtinPlacements, prefixCls, align, isAlignPoint) {
13182
+ function getAlignPopupClassName$2(builtinPlacements, prefixCls, align, isAlignPoint) {
13183
13183
  var points = align.points;
13184
13184
  var placements = Object.keys(builtinPlacements);
13185
13185
 
13186
13186
  for (var i = 0; i < placements.length; i += 1) {
13187
13187
  var placement = placements[i];
13188
13188
 
13189
- if (isPointsEq$1(builtinPlacements[placement].points, points, isAlignPoint)) {
13189
+ if (isPointsEq$2(builtinPlacements[placement].points, points, isAlignPoint)) {
13190
13190
  return "".concat(prefixCls, "-placement-").concat(placement);
13191
13191
  }
13192
13192
  }
@@ -13194,7 +13194,7 @@ function getAlignPopupClassName$1(builtinPlacements, prefixCls, align, isAlignPo
13194
13194
  return '';
13195
13195
  }
13196
13196
 
13197
- function getMotion$3(_ref) {
13197
+ function getMotion$4(_ref) {
13198
13198
  var prefixCls = _ref.prefixCls,
13199
13199
  motion = _ref.motion,
13200
13200
  animation = _ref.animation,
@@ -13219,7 +13219,7 @@ function getMotion$3(_ref) {
13219
13219
  return null;
13220
13220
  }
13221
13221
 
13222
- function Mask$2(props) {
13222
+ function Mask$3(props) {
13223
13223
  var prefixCls = props.prefixCls,
13224
13224
  visible = props.visible,
13225
13225
  zIndex = props.zIndex,
@@ -13237,7 +13237,7 @@ function Mask$2(props) {
13237
13237
  if (maskMotion || maskTransitionName || maskAnimation) {
13238
13238
  motion = (0, _objectSpread3.default)({
13239
13239
  motionAppear: true
13240
- }, getMotion$3({
13240
+ }, getMotion$4({
13241
13241
  motion: maskMotion,
13242
13242
  prefixCls: prefixCls,
13243
13243
  transitionName: maskTransitionName,
@@ -14925,9 +14925,9 @@ var Align = function Align(_ref, ref) {
14925
14925
 
14926
14926
  var RefAlign = /*#__PURE__*/React.default.forwardRef(Align);
14927
14927
  RefAlign.displayName = 'Align';
14928
- var StatusQueue$1 = ['measure', 'align', null, 'motion'];
14928
+ var StatusQueue$2 = ['measure', 'align', null, 'motion'];
14929
14929
 
14930
- var useVisibleStatus$1 = function (visible, doMeasure) {
14930
+ var useVisibleStatus$2 = function (visible, doMeasure) {
14931
14931
  var _useState = (0, React.useState)(null),
14932
14932
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
14933
14933
  status = _useState2[0],
@@ -14984,8 +14984,8 @@ var useVisibleStatus$1 = function (visible, doMeasure) {
14984
14984
  while (1) {
14985
14985
  switch (_context.prev = _context.next) {
14986
14986
  case 0:
14987
- index = StatusQueue$1.indexOf(status);
14988
- nextStatus = StatusQueue$1[index + 1];
14987
+ index = StatusQueue$2.indexOf(status);
14988
+ nextStatus = StatusQueue$2[index + 1];
14989
14989
 
14990
14990
  if (nextStatus && index !== -1) {
14991
14991
  setStatus(nextStatus);
@@ -15009,7 +15009,7 @@ var useVisibleStatus$1 = function (visible, doMeasure) {
15009
15009
  return [status, goNextStatus];
15010
15010
  };
15011
15011
 
15012
- var useStretchStyle$1 = function (stretch) {
15012
+ var useStretchStyle$2 = function (stretch) {
15013
15013
  var _React$useState = React.useState({
15014
15014
  width: 0,
15015
15015
  height: 0
@@ -15051,7 +15051,7 @@ var useStretchStyle$1 = function (stretch) {
15051
15051
  return [style, measureStretch];
15052
15052
  };
15053
15053
 
15054
- var PopupInner$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15054
+ var PopupInner$2 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15055
15055
  var visible = props.visible,
15056
15056
  prefixCls = props.prefixCls,
15057
15057
  className = props.className,
@@ -15079,7 +15079,7 @@ var PopupInner$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15079
15079
  setAlignedClassName = _useState2[1]; // ======================= Measure ========================
15080
15080
 
15081
15081
 
15082
- var _useStretchStyle = useStretchStyle$1(stretch),
15082
+ var _useStretchStyle = useStretchStyle$2(stretch),
15083
15083
  _useStretchStyle2 = (0, _slicedToArray2.default)(_useStretchStyle, 2),
15084
15084
  stretchStyle = _useStretchStyle2[0],
15085
15085
  measureStretchStyle = _useStretchStyle2[1];
@@ -15091,7 +15091,7 @@ var PopupInner$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15091
15091
  } // ======================== Status ========================
15092
15092
 
15093
15093
 
15094
- var _useVisibleStatus = useVisibleStatus$1(visible, doMeasure),
15094
+ var _useVisibleStatus = useVisibleStatus$2(visible, doMeasure),
15095
15095
  _useVisibleStatus2 = (0, _slicedToArray2.default)(_useVisibleStatus, 2),
15096
15096
  status = _useVisibleStatus2[0],
15097
15097
  goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================
@@ -15136,7 +15136,7 @@ var PopupInner$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15136
15136
  } // ======================== Motion ========================
15137
15137
 
15138
15138
 
15139
- var motion = (0, _objectSpread3.default)({}, getMotion$3(props));
15139
+ var motion = (0, _objectSpread3.default)({}, getMotion$4(props));
15140
15140
  ['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
15141
15141
  var originHandler = motion[eventName];
15142
15142
 
@@ -15220,8 +15220,8 @@ var PopupInner$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15220
15220
  }, childNode));
15221
15221
  });
15222
15222
  });
15223
- PopupInner$1.displayName = 'PopupInner';
15224
- var MobilePopupInner$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15223
+ PopupInner$2.displayName = 'PopupInner';
15224
+ var MobilePopupInner$2 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15225
15225
  var prefixCls = props.prefixCls,
15226
15226
  visible = props.visible,
15227
15227
  zIndex = props.zIndex,
@@ -15275,8 +15275,8 @@ var MobilePopupInner$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
15275
15275
  }, childNode);
15276
15276
  });
15277
15277
  });
15278
- MobilePopupInner$1.displayName = 'MobilePopupInner';
15279
- var Popup$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
15278
+ MobilePopupInner$2.displayName = 'MobilePopupInner';
15279
+ var Popup$2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
15280
15280
  var visible = _ref.visible,
15281
15281
  mobile = _ref.mobile,
15282
15282
  props = (0, _objectWithoutProperties2.default)(_ref, ["visible", "mobile"]);
@@ -15303,25 +15303,25 @@ var Popup$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
15303
15303
  setInMobile(isMobile());
15304
15304
  }
15305
15305
  }, [visible, mobile]);
15306
- 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, {
15307
15307
  mobile: mobile,
15308
15308
  ref: ref
15309
- })) : /*#__PURE__*/React.createElement(PopupInner$1, (0, _extends3.default)({}, cloneProps, {
15309
+ })) : /*#__PURE__*/React.createElement(PopupInner$2, (0, _extends3.default)({}, cloneProps, {
15310
15310
  ref: ref
15311
15311
  })); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
15312
15312
 
15313
- 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);
15314
15314
  });
15315
- Popup$1.displayName = 'Popup';
15316
- var TriggerContext$1 = /*#__PURE__*/React.createContext(null);
15315
+ Popup$2.displayName = 'Popup';
15316
+ var TriggerContext$2 = /*#__PURE__*/React.createContext(null);
15317
15317
 
15318
- function noop$3() {}
15318
+ function noop$4() {}
15319
15319
 
15320
- function returnEmptyString$1() {
15320
+ function returnEmptyString$2() {
15321
15321
  return '';
15322
15322
  }
15323
15323
 
15324
- function returnDocument$1(element) {
15324
+ function returnDocument$2(element) {
15325
15325
  if (element) {
15326
15326
  return element.ownerDocument;
15327
15327
  }
@@ -15329,12 +15329,12 @@ function returnDocument$1(element) {
15329
15329
  return window.document;
15330
15330
  }
15331
15331
 
15332
- 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'];
15333
15333
  /**
15334
15334
  * Internal usage. Do not use in your code since this will be removed.
15335
15335
  */
15336
15336
 
15337
- function generateTrigger$1(PortalComponent) {
15337
+ function generateTrigger$2(PortalComponent) {
15338
15338
  var Trigger = /*#__PURE__*/function (_React$Component) {
15339
15339
  (0, _inherits2.default)(Trigger, _React$Component);
15340
15340
 
@@ -15532,7 +15532,7 @@ function generateTrigger$1(PortalComponent) {
15532
15532
  getPopupClassNameFromAlign = _this$props.getPopupClassNameFromAlign;
15533
15533
 
15534
15534
  if (popupPlacement && builtinPlacements) {
15535
- className.push(getAlignPopupClassName$1(builtinPlacements, prefixCls, align, alignPoint));
15535
+ className.push(getAlignPopupClassName$2(builtinPlacements, prefixCls, align, alignPoint));
15536
15536
  }
15537
15537
 
15538
15538
  if (getPopupClassNameFromAlign) {
@@ -15580,7 +15580,7 @@ function generateTrigger$1(PortalComponent) {
15580
15580
 
15581
15581
  mouseProps.onMouseDown = _this.onPopupMouseDown;
15582
15582
  mouseProps.onTouchStart = _this.onPopupMouseDown;
15583
- return /*#__PURE__*/React.createElement(Popup$1, (0, _extends3.default)({
15583
+ return /*#__PURE__*/React.createElement(Popup$2, (0, _extends3.default)({
15584
15584
  prefixCls: prefixCls,
15585
15585
  destroyPopupOnHide: destroyPopupOnHide,
15586
15586
  visible: popupVisible,
@@ -15684,7 +15684,7 @@ function generateTrigger$1(PortalComponent) {
15684
15684
  prevPopupVisible: popupVisible,
15685
15685
  popupVisible: popupVisible
15686
15686
  };
15687
- ALL_HANDLERS$1.forEach(function (h) {
15687
+ ALL_HANDLERS$2.forEach(function (h) {
15688
15688
  _this["fire".concat(h)] = function (e) {
15689
15689
  _this.fireEvents(h, e);
15690
15690
  };
@@ -15761,7 +15761,7 @@ function generateTrigger$1(PortalComponent) {
15761
15761
  builtinPlacements = props.builtinPlacements;
15762
15762
 
15763
15763
  if (popupPlacement && builtinPlacements) {
15764
- return getAlignFromPlacement$1(builtinPlacements, popupPlacement, popupAlign);
15764
+ return getAlignFromPlacement$2(builtinPlacements, popupPlacement, popupAlign);
15765
15765
  }
15766
15766
 
15767
15767
  return popupAlign;
@@ -16038,7 +16038,7 @@ function generateTrigger$1(PortalComponent) {
16038
16038
  portal = null;
16039
16039
  }
16040
16040
 
16041
- return /*#__PURE__*/React.createElement(TriggerContext$1.Provider, {
16041
+ return /*#__PURE__*/React.createElement(TriggerContext$2.Provider, {
16042
16042
  value: this.triggerContextValue
16043
16043
  }, trigger, portal);
16044
16044
  }
@@ -16059,14 +16059,14 @@ function generateTrigger$1(PortalComponent) {
16059
16059
  return Trigger;
16060
16060
  }(React.Component);
16061
16061
 
16062
- Trigger.contextType = TriggerContext$1;
16062
+ Trigger.contextType = TriggerContext$2;
16063
16063
  Trigger.defaultProps = {
16064
16064
  prefixCls: 'rc-trigger-popup',
16065
- getPopupClassNameFromAlign: returnEmptyString$1,
16066
- getDocument: returnDocument$1,
16067
- onPopupVisibleChange: noop$3,
16068
- afterPopupVisibleChange: noop$3,
16069
- onPopupAlign: noop$3,
16065
+ getPopupClassNameFromAlign: returnEmptyString$2,
16066
+ getDocument: returnDocument$2,
16067
+ onPopupVisibleChange: noop$4,
16068
+ afterPopupVisibleChange: noop$4,
16069
+ onPopupAlign: noop$4,
16070
16070
  popupClassName: '',
16071
16071
  mouseEnterDelay: 0,
16072
16072
  mouseLeaveDelay: 0.1,
@@ -16086,7 +16086,7 @@ function generateTrigger$1(PortalComponent) {
16086
16086
  return Trigger;
16087
16087
  }
16088
16088
 
16089
- var Trigger$2 = generateTrigger$1(Portal);
16089
+ var Trigger$3 = generateTrigger$2(Portal);
16090
16090
 
16091
16091
  var getBuiltInPlacements = function getBuiltInPlacements(dropdownMatchSelectWidth) {
16092
16092
  // Enable horizontal overflow auto-adjustment when a custom dropdown width is provided
@@ -16180,7 +16180,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
16180
16180
  popupStyle.width = containerWidth;
16181
16181
  }
16182
16182
 
16183
- return /*#__PURE__*/React.createElement(Trigger$2, (0, _extends3.default)({}, restProps, {
16183
+ return /*#__PURE__*/React.createElement(Trigger$3, (0, _extends3.default)({}, restProps, {
16184
16184
  showAction: onPopupVisibleChange ? ['click'] : [],
16185
16185
  hideAction: onPopupVisibleChange ? ['click'] : [],
16186
16186
  popupPlacement: direction === 'rtl' ? 'bottomRight' : 'bottomLeft',
@@ -17812,191 +17812,1446 @@ var Alert$1 = function Alert(_a) {
17812
17812
  closed = _React$useState2[0],
17813
17813
  setClosed = _React$useState2[1];
17814
17814
 
17815
- 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];
17816
19102
 
17817
- var _React$useContext = React.useContext(ConfigContext),
17818
- getPrefixCls = _React$useContext.getPrefixCls,
17819
- direction = _React$useContext.direction;
19103
+ if (childCallback) {
19104
+ childCallback(e);
19105
+ }
17820
19106
 
17821
- var prefixCls = getPrefixCls('alert', customizePrefixCls);
19107
+ var callback = this.props[type];
17822
19108
 
17823
- var handleClose = function handleClose(e) {
17824
- 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
17825
19133
 
17826
- setClosed(true);
17827
- (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props, e);
17828
- };
19134
+ if (this.isContextMenuToShow()) {
19135
+ newChildProps.onContextMenu = this.onContextMenu;
19136
+ } else {
19137
+ newChildProps.onContextMenu = this.createTwoChains('onContextMenu');
19138
+ } // >>> Click
17829
19139
 
17830
- var getType = function getType() {
17831
- var type = props.type;
17832
19140
 
17833
- if (type !== undefined) {
17834
- return type;
17835
- } // 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)
17836
19150
 
17837
19151
 
17838
- return banner ? 'warning' : 'info';
17839
- }; // closeable when closeText is assigned
19152
+ if (this.isMouseEnterToShow()) {
19153
+ newChildProps.onMouseEnter = this.onMouseEnter; // Point align
17840
19154
 
19155
+ if (alignPoint) {
19156
+ newChildProps.onMouseMove = this.onMouseMove;
19157
+ }
19158
+ } else {
19159
+ newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter');
19160
+ } // >>> Hover(leave)
17841
19161
 
17842
- var isClosable = closeText ? true : closable;
17843
- var type = getType();
17844
19162
 
17845
- var renderIconNode = function renderIconNode() {
17846
- 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
17847
19168
 
17848
- var iconType = (description ? iconMapOutlined : iconMapFilled)[type] || null;
17849
19169
 
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
- }
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 ===================================
17859
19177
 
17860
- return /*#__PURE__*/React.createElement(iconType, {
17861
- className: "".concat(prefixCls, "-icon")
17862
- });
17863
- };
17864
19178
 
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
19179
+ var childrenClassName = (0, _classnames2.default)(child && child.props && child.props.className, className);
17875
19180
 
19181
+ if (childrenClassName) {
19182
+ newChildProps.className = childrenClassName;
19183
+ }
17876
19184
 
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
- };
19185
+ var cloneProps = (0, _objectSpread3.default)({}, newChildProps);
17914
19186
 
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;
19187
+ if (supportRef$1(child)) {
19188
+ cloneProps.ref = composeRef$2(this.triggerRef, child.ref);
19189
+ }
17951
19190
 
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;
19191
+ var trigger = /*#__PURE__*/React.cloneElement(child, cloneProps);
19192
+ var portal; // prevent unmounting after it's rendered
17961
19193
 
17962
- Object.keys(responsiveMap).forEach(function (screen) {
17963
- 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
+ }
17964
19201
 
17965
- var listener = function listener(_ref) {
17966
- var matches = _ref.matches;
19202
+ if (!popupVisible && autoDestroy) {
19203
+ portal = null;
19204
+ }
17967
19205
 
17968
- _this2.dispatch((0, _extends3.default)((0, _extends3.default)({}, screens), (0, _defineProperty2.default)({}, screen, matches)));
17969
- };
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 = {};
17970
19215
 
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;
19216
+ if (popupVisible !== undefined && prevState.popupVisible !== popupVisible) {
19217
+ newState.popupVisible = popupVisible;
19218
+ newState.prevPopupVisible = prevState.popupVisible;
19219
+ }
17982
19220
 
17983
- function useBreakpoint() {
17984
- var _useState = (0, React.useState)({}),
17985
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
17986
- screens = _useState2[0],
17987
- setScreens = _useState2[1];
19221
+ return newState;
19222
+ }
19223
+ }]);
19224
+ return Trigger;
19225
+ }(React.Component);
17988
19226
 
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;
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;
17998
19252
  }
17999
19253
 
19254
+ var Trigger$2 = generateTrigger$1(Portal);
18000
19255
  var autoAdjustOverflow$3 = {
18001
19256
  adjustX: 1,
18002
19257
  adjustY: 1
@@ -48341,7 +49596,7 @@ var __rest$1 = undefined && undefined.__rest || function (s, e) {
48341
49596
  return t;
48342
49597
  };
48343
49598
 
48344
- var Link = function Link(_a, ref) {
49599
+ var Link$1 = function Link(_a, ref) {
48345
49600
  var ellipsis = _a.ellipsis,
48346
49601
  rel = _a.rel,
48347
49602
  restProps = __rest$1(_a, ["ellipsis", "rel"]);
@@ -48366,7 +49621,7 @@ var Link = function Link(_a, ref) {
48366
49621
  }));
48367
49622
  };
48368
49623
 
48369
- var Link$1 = /*#__PURE__*/React.forwardRef(Link);
49624
+ var Link$2 = /*#__PURE__*/React.forwardRef(Link$1);
48370
49625
 
48371
49626
  var __rest = undefined && undefined.__rest || function (s, e) {
48372
49627
  var t = {};
@@ -48413,7 +49668,7 @@ var Paragraph$1 = function Paragraph(props) {
48413
49668
  var Paragraph$2 = Paragraph$1;
48414
49669
  var Typography$1 = OriginTypography;
48415
49670
  Typography$1.Text = Text$2;
48416
- Typography$1.Link = Link$1;
49671
+ Typography$1.Link = Link$2;
48417
49672
  Typography$1.Title = Title$2;
48418
49673
  Typography$1.Paragraph = Paragraph$2;
48419
49674
  var AntDTypography = Typography$1;
@@ -48423,21 +49678,22 @@ const Icon = props => {
48423
49678
  component: Component,
48424
49679
  ...otherProps
48425
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]);
48426
49694
  return (0, _jsxRuntime.jsx)(_icons.default, {
48427
49695
  style: {},
48428
- component: !Component ? undefined : _ref => {
48429
- let {
48430
- fill,
48431
- ...iconProps
48432
- } = _ref;
48433
- return (// We don't rely on top-level fills for our colors. Fills are specified
48434
- // with "currentColor" on children of the top-most svg.
48435
- (0, _jsxRuntime.jsx)(Component, {
48436
- fill: "none",
48437
- ...iconProps
48438
- })
48439
- );
48440
- },
49696
+ component: MemoizedComponent,
48441
49697
  ...otherProps
48442
49698
  });
48443
49699
  };
@@ -52380,12 +53636,12 @@ const colorPalettePrimary = {
52380
53636
  white: '#FFFFFF',
52381
53637
  grey100: '#F2F5F7',
52382
53638
  grey200: '#E4EBF0',
52383
- grey300: '#CEDBE5',
53639
+ grey300: '#CDDAE5',
52384
53640
  grey400: '#BDCDDB',
52385
53641
  grey500: '#8297A8',
52386
53642
  grey600: '#5D7283',
52387
53643
  grey700: '#44535F',
52388
- grey800: '#20272E',
53644
+ grey800: '#1F272D',
52389
53645
  red100: '#FFF5F7',
52390
53646
  red200: '#FDE2E8',
52391
53647
  red300: '#FBD0D8',
@@ -52461,6 +53717,7 @@ const lightColorList = {
52461
53717
  borderDecorative: colorPalettePrimary.grey300,
52462
53718
  textPrimary: colorPalettePrimary.grey800,
52463
53719
  textSecondary: colorPalettePrimary.grey600,
53720
+ textPlaceholder: colorPalettePrimary.grey400,
52464
53721
  textValidationDanger: colorPalettePrimary.red600,
52465
53722
  textValidationSuccess: colorPalettePrimary.green600,
52466
53723
  textValidationWarning: colorPalettePrimary.yellow600,
@@ -52482,6 +53739,8 @@ const lightColorList = {
52482
53739
  tagPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.16).hex(),
52483
53740
  tagIconHover: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.8).hex(),
52484
53741
  tagIconPress: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.76).hex(),
53742
+ // Typography
53743
+ typographyCodeBg: (0, _chromaJs.default)(colorPalettePrimary.grey600).alpha(0.08).hex(),
52485
53744
  tooltipBackgroundTooltip: colorPalettePrimary.grey800,
52486
53745
  ...unstableColors
52487
53746
  };
@@ -52519,6 +53778,7 @@ const darkColorList = {
52519
53778
  borderDecorative: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.24).hex(),
52520
53779
  textPrimary: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.84).hex(),
52521
53780
  textSecondary: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.6).hex(),
53781
+ textPlaceholder: (0, _chromaJs.default)(colorPalettePrimary.grey400).alpha(0.84).hex(),
52522
53782
  textValidationDanger: (0, _chromaJs.default)(colorPalettePrimary.red400).alpha(0.84).hex(),
52523
53783
  textValidationSuccess: (0, _chromaJs.default)(colorPalettePrimary.green400).alpha(0.84).hex(),
52524
53784
  textValidationWarning: (0, _chromaJs.default)(colorPalettePrimary.yellow400).alpha(0.84).hex(),
@@ -52540,6 +53800,8 @@ const darkColorList = {
52540
53800
  tagPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.16).hex(),
52541
53801
  tagIconHover: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.8).hex(),
52542
53802
  tagIconPress: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.76).hex(),
53803
+ // Typography
53804
+ typographyCodeBg: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.16).hex(),
52543
53805
  tooltipBackgroundTooltip: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.6).hex(),
52544
53806
  // Missing in list
52545
53807
  backgroundDanger: 'rgba(200,45,76,0.08)',
@@ -52584,10 +53846,8 @@ const deprecatedColors = {
52584
53846
  radioDefaultBackground: '#FFFFFF',
52585
53847
  radioInteractiveHoverSecondary: 'rgba(34, 115, 181, 0.08)',
52586
53848
  // Fade of Interactive Available
52587
- radioInteractivePressSecondary: 'rgba(34, 115, 181, 0.16)',
52588
- // Fade of Interactive Available
52589
- // Typography colors
52590
- typographyCodeBg: 'rgba(32, 39, 46, 0.08)'
53849
+ radioInteractivePressSecondary: 'rgba(34, 115, 181, 0.16)' // Fade of Interactive Available
53850
+
52591
53851
  };
52592
53852
 
52593
53853
  function getColors(theme) {
@@ -52660,7 +53920,7 @@ const antdGeneralVariables = {
52660
53920
  buttonInnerHeight: heightBase - spacing$1.sm * 2 - borderWidth * 2
52661
53921
  };
52662
53922
  var generalVariables = antdGeneralVariables;
52663
- const FONT_SIZE_BASE = 14; // Less variables that are used by AntD
53923
+ const FONT_SIZE_BASE = 13; // Less variables that are used by AntD
52664
53924
 
52665
53925
  const antdTypography = {
52666
53926
  fontSizeSm: 12,
@@ -52741,7 +54001,45 @@ function WithDesignSystemThemeHoc(Component) {
52741
54001
  });
52742
54002
  };
52743
54003
  }
54004
+ /**
54005
+ * A helper hook that allows quick creation of theme-dependent styles.
54006
+ * Results in more compact code than using useMemo and
54007
+ * useDesignSystemTheme separately.
54008
+ *
54009
+ * @example
54010
+ * const styles = useThemedStyles((theme) => ({
54011
+ * overlay: {
54012
+ * backgroundColor: theme.colors.backgroundPrimary,
54013
+ * borderRadius: theme.borders.borderRadiusMd,
54014
+ * },
54015
+ * wrapper: {
54016
+ * display: 'flex',
54017
+ * gap: theme.spacing.md,
54018
+ * },
54019
+ * }));
54020
+
54021
+ * <div css={styles.overlay}>...</div>
54022
+ *
54023
+ * @param styleFactory Factory function that accepts theme object as a parameter and returns
54024
+ * the style object. **Note**: factory function body is being memoized internally and is intended
54025
+ * to be used only for simple style objects that depend solely on the theme. If you want to use
54026
+ * styles that change depending on external values (state, props etc.) you should use
54027
+ * `useDesignSystemTheme` directly with your own reaction mechanism.
54028
+ * @returns The constructed style object
54029
+ */
54030
+
52744
54031
 
54032
+ const useThemedStyles = styleFactory => {
54033
+ const {
54034
+ theme
54035
+ } = useDesignSystemTheme(); // We can assume that the factory function won't change and we're
54036
+ // observing theme changes only.
54037
+
54038
+ const styleFactoryRef = (0, React.useRef)(styleFactory);
54039
+ return (0, React.useMemo)(() => styleFactoryRef.current(theme), [theme]);
54040
+ };
54041
+
54042
+ exports.useThemedStyles = useThemedStyles;
52745
54043
  const DuboisContextDefaults = {
52746
54044
  enableAnimation: false,
52747
54045
  theme: 'default',
@@ -52777,13 +54075,12 @@ const DesignSystemProvider = _ref => {
52777
54075
  theme: themeName,
52778
54076
  enableAnimation = false,
52779
54077
  zIndexBase = 1000,
52780
- isCompact = false,
52781
54078
  getPopupContainer
52782
54079
  } = _ref;
52783
54080
  const theme = (0, React.useMemo)(() => getTheme(themeName || 'default', {
52784
54081
  enableAnimation,
52785
54082
  zIndexBase,
52786
- isCompact
54083
+ isCompact: true
52787
54084
  }), // TODO: revisit this
52788
54085
  // eslint-disable-next-line react-hooks/exhaustive-deps
52789
54086
  [themeName, zIndexBase]);
@@ -52791,9 +54088,9 @@ const DesignSystemProvider = _ref => {
52791
54088
  theme: themeName,
52792
54089
  enableAnimation,
52793
54090
  zIndexBase,
52794
- isCompact,
54091
+ isCompact: true,
52795
54092
  getPopupContainer
52796
- }), [themeName, enableAnimation, zIndexBase, isCompact, getPopupContainer]);
54093
+ }), [themeName, enableAnimation, zIndexBase, getPopupContainer]);
52797
54094
  const classNamePrefix = getClassNamePrefix(theme);
52798
54095
  const value = (0, React.useMemo)(() => {
52799
54096
  return {
@@ -52827,26 +54124,6 @@ const DesignSystemProvider = _ref => {
52827
54124
 
52828
54125
  exports.DesignSystemProvider = DesignSystemProvider;
52829
54126
 
52830
- const ApplyCompactDesignSystemTheme = _ref2 => {
52831
- let {
52832
- children
52833
- } = _ref2;
52834
- const parentDesignSystemProviderProps = (0, React.useContext)(DesignSystemProviderPropsContext);
52835
-
52836
- if (parentDesignSystemProviderProps === null) {
52837
- throw new Error("ApplyCompactDesignSystemTheme cannot be used standalone - DesignSystemProvider must exist in the React context");
52838
- }
52839
-
52840
- const newProps = (0, React.useMemo)(() => ({ ...parentDesignSystemProviderProps,
52841
- isCompact: true
52842
- }), [parentDesignSystemProviderProps]);
52843
- return (0, _jsxRuntime.jsx)(DesignSystemProvider, { ...newProps,
52844
- children: children
52845
- });
52846
- };
52847
-
52848
- exports.ApplyCompactDesignSystemTheme = ApplyCompactDesignSystemTheme;
52849
-
52850
54127
  const Alert = _ref => {
52851
54128
  let {
52852
54129
  dangerouslySetAntdProps,
@@ -53018,7 +54295,7 @@ const Breadcrumb = _ref => {
53018
54295
  }
53019
54296
  }, process.env.NODE_ENV === "production" ? "" : ";label:styles;", process.env.NODE_ENV === "production" ? "" : ";label:styles;");
53020
54297
  return (0, _jsxRuntime.jsx)(Breadcrumb$2, {
53021
- separator: ">",
54298
+ separator: (0, _jsxRuntime.jsx)(ChevronRightIcon, {}),
53022
54299
  ...props,
53023
54300
  ...dangerouslySetAntdProps,
53024
54301
  css:
@@ -53092,6 +54369,7 @@ function getDefaultStyles(theme) {
53092
54369
  backgroundColor: theme.colors.actionDefaultBackgroundDefault,
53093
54370
  borderColor: theme.colors.actionDefaultBorderDefault,
53094
54371
  color: theme.colors.actionDefaultTextDefault,
54372
+ lineHeight: theme.typography.lineHeightBase,
53095
54373
  '&:hover': {
53096
54374
  backgroundColor: theme.colors.actionDefaultBackgroundHover,
53097
54375
  borderColor: theme.colors.actionDefaultBorderHover,
@@ -53124,7 +54402,7 @@ function getPrimaryStyles(theme) {
53124
54402
  };
53125
54403
  }
53126
54404
 
53127
- function getTertiaryStyles(theme) {
54405
+ function getLinkStyles(theme) {
53128
54406
  return {
53129
54407
  backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
53130
54408
  borderColor: theme.colors.actionTertiaryBackgroundDefault,
@@ -53213,7 +54491,8 @@ const getButtonEmotionStyles = _ref => {
53213
54491
  withIcon,
53214
54492
  onlyIcon,
53215
54493
  enableAnimation,
53216
- size
54494
+ size,
54495
+ type
53217
54496
  } = _ref;
53218
54497
  const clsIcon = ".".concat(theme.general.iconfontCssPrefix);
53219
54498
  const clsLoadingIcon = ".".concat(classNamePrefix, "-btn-loading-icon");
@@ -53230,10 +54509,7 @@ const getButtonEmotionStyles = _ref => {
53230
54509
  padding: theme.options.isCompact || size === 'small' ? '4px 12px' : '8px 16px',
53231
54510
  ...(size === 'ultrasmall' && {
53232
54511
  padding: '0 8px'
53233
- }),
53234
- '> span': {
53235
- verticalAlign: 'middle'
53236
- }
54512
+ })
53237
54513
  }
53238
54514
  }),
53239
54515
  ...((theme.options.isCompact || size === 'small') && {
@@ -53261,14 +54537,16 @@ const getButtonEmotionStyles = _ref => {
53261
54537
  ...getDefaultStyles(theme),
53262
54538
  ["&".concat(classPrimary)]: { ...getPrimaryStyles(theme)
53263
54539
  },
53264
- ["&".concat(classLink)]: { ...getTertiaryStyles(theme),
53265
- padding: 'unset',
53266
- height: 'auto',
53267
- border: 'none',
53268
- boxShadow: 'none',
53269
- '&[disabled],&:hover': {
53270
- background: 'none'
53271
- }
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
+ })
53272
54550
  },
53273
54551
  ["&".concat(classDangerous).concat(classPrimary)]: { ...getPrimaryDangerStyles(theme)
53274
54552
  },
@@ -53323,7 +54601,7 @@ const getButtonEmotionStyles = _ref => {
53323
54601
  verticalAlign: -5,
53324
54602
  lineHeight: 0,
53325
54603
  ...(onlyIcon && {
53326
- verticalAlign: theme.options.isCompact || size === 'small' ? -2 : -5
54604
+ verticalAlign: theme.options.isCompact || size === 'small' ? -3 : -5
53327
54605
  }),
53328
54606
  ...((theme.options.isCompact || size === 'small') && {
53329
54607
  fontSize: theme.general.buttonInnerHeight - 4,
@@ -53377,6 +54655,7 @@ _ref2, ref) {
53377
54655
  dangerouslySetAntdProps,
53378
54656
  children,
53379
54657
  size,
54658
+ type,
53380
54659
  ...props
53381
54660
  } = _ref2;
53382
54661
  const {
@@ -53392,10 +54671,13 @@ _ref2, ref) {
53392
54671
  onlyIcon: Boolean(props.icon && !children),
53393
54672
  danger: Boolean(props.danger),
53394
54673
  enableAnimation: theme.options.enableAnimation,
53395
- size: size || 'middle'
54674
+ size: size || 'middle',
54675
+ type
53396
54676
  }),
54677
+ href: props.disabled ? undefined : props.href,
53397
54678
  ...dangerouslySetAntdProps,
53398
54679
  ref: ref,
54680
+ type: type === 'tertiary' ? 'link' : type,
53399
54681
  children: children && (0, _jsxRuntime.jsx)("span", {
53400
54682
  children: children
53401
54683
  })
@@ -53419,7 +54701,9 @@ function getCheckboxEmotionStyles(clsPrefix, theme) {
53419
54701
  const pressSelector = "".concat(classInput, ":active + ").concat(classInner);
53420
54702
  const styles = {
53421
54703
  // Top level styles are for the unchecked state
53422
- [classInner]: {},
54704
+ [classInner]: {
54705
+ borderColor: theme.colors.actionDefaultBorderDefault
54706
+ },
53423
54707
  // Keyboard focus
53424
54708
  ["".concat(classInput, ":focus-visible + ").concat(classInner)]: {
53425
54709
  outlineWidth: '2px',
@@ -53559,16 +54843,14 @@ const DuboisCheckbox = /*#__PURE__*/(0, React.forwardRef)(function Checkbox(_ref
53559
54843
  });
53560
54844
  const CheckboxGroup = /*#__PURE__*/(0, React.forwardRef)(function CheckboxGroup(props, ref) {
53561
54845
  const {
53562
- theme
54846
+ theme,
54847
+ getPrefixedClassName
53563
54848
  } = useDesignSystemTheme();
54849
+ const clsPrefix = getPrefixedClassName('checkbox');
53564
54850
  return (0, _jsxRuntime.jsx)(AntDCheckbox.Group, {
53565
54851
  ref: ref,
53566
54852
  ...props,
53567
- css:
53568
- /*#__PURE__*/
53569
-
53570
- /*#__PURE__*/
53571
- (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)
53572
54854
  });
53573
54855
  });
53574
54856
  const CheckboxNamespace = Object.assign(DuboisCheckbox, {
@@ -53642,6 +54924,12 @@ function getCollapseEmotionStyles(clsPrefix, theme) {
53642
54924
  [classContentBox]: {
53643
54925
  padding: '8px 16px 16px'
53644
54926
  },
54927
+ ...(theme.options.isCompact && {
54928
+ ["& > ".concat(classItem, " > ").concat(classHeader)]: {
54929
+ padding: '6px 44px 6px 0',
54930
+ lineHeight: theme.typography.lineHeightBase
54931
+ }
54932
+ }),
53645
54933
  ...getAnimationCss(theme.options.enableAnimation)
53646
54934
  };
53647
54935
  return (
@@ -53695,7 +54983,7 @@ function getEmotionStyles(clsPrefix, theme) {
53695
54983
  const classSeparator = ".".concat(clsPrefix, "-separator");
53696
54984
  const classSuffix = ".".concat(clsPrefix, "-suffix");
53697
54985
  const styles = {
53698
- height: 40,
54986
+ height: theme.options.isCompact ? 32 : 40,
53699
54987
  borderRadius: theme.borders.borderRadiusMd,
53700
54988
  borderColor: theme.colors.border,
53701
54989
  color: theme.colors.textPrimary,
@@ -54286,7 +55574,7 @@ var DropdownMenu = /*#__PURE__*/Object.freeze({
54286
55574
  });
54287
55575
  exports.DropdownMenu = DropdownMenu;
54288
55576
 
54289
- const getFormEmotionStyles = _ref => {
55577
+ const getFormItemEmotionStyles = _ref => {
54290
55578
  let {
54291
55579
  theme,
54292
55580
  clsPrefix
@@ -54304,7 +55592,8 @@ const getFormEmotionStyles = _ref => {
54304
55592
  lineHeight: theme.typography.lineHeightBase
54305
55593
  },
54306
55594
  [clsFormItemExplain]: {
54307
- fontSize: theme.typography.fontSizeSm
55595
+ fontSize: theme.typography.fontSizeSm,
55596
+ margin: 0
54308
55597
  },
54309
55598
  [clsFormItemInputControl]: {
54310
55599
  minHeight: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase
@@ -54313,7 +55602,7 @@ const getFormEmotionStyles = _ref => {
54313
55602
  border: 'none'
54314
55603
  },
54315
55604
  ...getAnimationCss(theme.options.enableAnimation)
54316
- }, process.env.NODE_ENV === "production" ? "" : ";label:getFormEmotionStyles;", process.env.NODE_ENV === "production" ? "" : ";label:getFormEmotionStyles;")
55605
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getFormItemEmotionStyles;", process.env.NODE_ENV === "production" ? "" : ";label:getFormItemEmotionStyles;")
54317
55606
  );
54318
55607
  };
54319
55608
 
@@ -54322,27 +55611,29 @@ const FormDubois = /*#__PURE__*/(0, React.forwardRef)(function Form(_ref2, ref)
54322
55611
  dangerouslySetAntdProps,
54323
55612
  ...props
54324
55613
  } = _ref2;
54325
- const {
54326
- theme,
54327
- classNamePrefix
54328
- } = useDesignSystemTheme();
54329
55614
  const mergedProps = { ...props,
54330
55615
  layout: props.layout || 'vertical',
54331
55616
  requiredMark: props.requiredMark || false
54332
55617
  };
54333
55618
  return (0, _jsxRuntime.jsx)(AntDForm, { ...mergedProps,
54334
55619
  ref: ref,
54335
- css: getFormEmotionStyles({
54336
- theme,
54337
- clsPrefix: classNamePrefix
54338
- }),
54339
55620
  ...dangerouslySetAntdProps
54340
55621
  });
54341
55622
  });
54342
55623
  exports.FormDubois = FormDubois;
54343
55624
 
54344
- const FormItem = props => (0, _jsxRuntime.jsx)(AntDForm.Item, { ...props
54345
- });
55625
+ const FormItem = props => {
55626
+ const {
55627
+ theme,
55628
+ classNamePrefix
55629
+ } = useDesignSystemTheme();
55630
+ return (0, _jsxRuntime.jsx)(AntDForm.Item, { ...props,
55631
+ css: getFormItemEmotionStyles({
55632
+ theme,
55633
+ clsPrefix: classNamePrefix
55634
+ })
55635
+ });
55636
+ };
54346
55637
 
54347
55638
  const FormNamespace = Object.assign(FormDubois, {
54348
55639
  Item: FormItem,
@@ -54484,7 +55775,7 @@ function Title(userProps) {
54484
55775
  });
54485
55776
  }
54486
55777
 
54487
- function _EMOTION_STRINGIFIED_CSS_ERROR__$5() {
55778
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$7() {
54488
55779
  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).";
54489
55780
  }
54490
55781
 
@@ -54504,13 +55795,13 @@ const getHeaderStyles = (clsPrefix, theme) => {
54504
55795
  );
54505
55796
  };
54506
55797
 
54507
- var _ref$1 = process.env.NODE_ENV === "production" ? {
55798
+ var _ref$3 = process.env.NODE_ENV === "production" ? {
54508
55799
  name: "5s4ezj",
54509
55800
  styles: "display:inline-flex;vertical-align:middle;align-items:center;margin-left:8px"
54510
55801
  } : {
54511
55802
  name: "gxikdi-titleAddOnsWrapper",
54512
55803
  styles: "display:inline-flex;vertical-align:middle;align-items:center;margin-left:8px;label:titleAddOnsWrapper;",
54513
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
55804
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
54514
55805
  };
54515
55806
 
54516
55807
  var _ref2$2 = process.env.NODE_ENV === "production" ? {
@@ -54519,7 +55810,7 @@ var _ref2$2 = process.env.NODE_ENV === "production" ? {
54519
55810
  } : {
54520
55811
  name: "ozrfom-buttonContainer",
54521
55812
  styles: "margin-left:8px;label:buttonContainer;",
54522
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
55813
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
54523
55814
  };
54524
55815
 
54525
55816
  var _ref3$1 = process.env.NODE_ENV === "production" ? {
@@ -54528,7 +55819,7 @@ var _ref3$1 = process.env.NODE_ENV === "production" ? {
54528
55819
  } : {
54529
55820
  name: "abhq57-title",
54530
55821
  styles: "margin-top:0;margin-bottom:0 !important;label:title;",
54531
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
55822
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
54532
55823
  };
54533
55824
 
54534
55825
  var _ref4$2 = process.env.NODE_ENV === "production" ? {
@@ -54537,7 +55828,7 @@ var _ref4$2 = process.env.NODE_ENV === "production" ? {
54537
55828
  } : {
54538
55829
  name: "m9gz0x-titleWrapper",
54539
55830
  styles: "display:flex;align-items:flex-start;justify-content:space-between;label:titleWrapper;",
54540
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
55831
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
54541
55832
  };
54542
55833
 
54543
55834
  const Header$1 = props => {
@@ -54567,11 +55858,11 @@ const Header$1 = props => {
54567
55858
  (0, _react2.css)({
54568
55859
  marginTop: 6,
54569
55860
  ...(theme.options.isCompact && {
54570
- marginTop: 4
55861
+ marginTop: 2
54571
55862
  })
54572
55863
  }, process.env.NODE_ENV === "production" ? "" : ";label:titleIfOtherElementsPresent;", process.env.NODE_ENV === "production" ? "" : ";label:titleIfOtherElementsPresent;"),
54573
55864
  buttonContainer: _ref2$2,
54574
- titleAddOnsWrapper: _ref$1
55865
+ titleAddOnsWrapper: _ref$3
54575
55866
  };
54576
55867
  return (0, _jsxRuntime.jsxs)("div", {
54577
55868
  css: [getHeaderStyles(clsPrefix, theme), props.dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Header;"],
@@ -54602,25 +55893,49 @@ exports.Header = Header$1;
54602
55893
 
54603
55894
  const getInputEmotionStyles = (clsPrefix, theme) => {
54604
55895
  const affixClass = ".".concat(clsPrefix, "-input-affix-wrapper");
54605
- const inputClass = ".".concat(clsPrefix, "-input");
55896
+ const affixClassFocused = ".".concat(clsPrefix, "-input-affix-wrapper-focused");
54606
55897
  const styles = {
54607
55898
  '&&': {
54608
55899
  lineHeight: theme.typography.lineHeightBase,
54609
55900
  paddingTop: theme.options.isCompact ? 5 : 9,
54610
55901
  paddingBottom: theme.options.isCompact ? 5 : 9,
54611
- minHeight: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase
55902
+ minHeight: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase,
55903
+ '&:hover': {
55904
+ borderColor: theme.colors.actionPrimaryBackgroundHover
55905
+ },
55906
+ '&:focus': {
55907
+ outlineColor: theme.colors.actionPrimaryBackgroundDefault,
55908
+ outlineWidth: 2,
55909
+ outlineStyle: 'solid',
55910
+ boxShadow: 'none',
55911
+ borderColor: 'transparent'
55912
+ },
55913
+ '&:disabled': {
55914
+ backgroundColor: theme.colors.actionDisabledBackground,
55915
+ color: theme.colors.actionDisabledText
55916
+ }
54612
55917
  },
54613
- ["&.".concat(affixClass)]: {
55918
+ ["&".concat(affixClass)]: {
54614
55919
  lineHeight: theme.typography.lineHeightBase,
54615
55920
  paddingTop: theme.options.isCompact ? 5 : 9,
54616
55921
  paddingBottom: theme.options.isCompact ? 5 : 9,
54617
55922
  minHeight: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase,
54618
55923
  '::before': {
54619
55924
  lineHeight: theme.typography.lineHeightBase
55925
+ },
55926
+ '&:hover': {
55927
+ borderColor: theme.colors.actionPrimaryBackgroundHover
54620
55928
  }
54621
55929
  },
54622
- [inputClass]: {
54623
- lineHeight: theme.typography.lineHeightBase
55930
+ ["&".concat(affixClassFocused)]: {
55931
+ boxShadow: 'none',
55932
+ '&&, &:focus': {
55933
+ outlineColor: theme.colors.actionPrimaryBackgroundDefault,
55934
+ outlineWidth: 2,
55935
+ outlineStyle: 'solid',
55936
+ boxShadow: 'none',
55937
+ borderColor: 'transparent'
55938
+ }
54624
55939
  },
54625
55940
  ...getAnimationCss(theme.options.enableAnimation)
54626
55941
  };
@@ -54742,7 +56057,7 @@ Menu.SubMenu = function SubMenu(props) {
54742
56057
  });
54743
56058
  };
54744
56059
 
54745
- function _EMOTION_STRINGIFIED_CSS_ERROR__$4() {
56060
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$6() {
54746
56061
  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).";
54747
56062
  }
54748
56063
 
@@ -54780,7 +56095,6 @@ const getModalEmotionStyles = args => {
54780
56095
  /*#__PURE__*/
54781
56096
  (0, _react2.css)({
54782
56097
  [classNameHeader]: {
54783
- height: headerHeight,
54784
56098
  paddingTop: theme.options.isCompact ? theme.spacing.md : MODAL_PADDING$1,
54785
56099
  paddingLeft: theme.options.isCompact ? theme.spacing.lg : MODAL_PADDING$1,
54786
56100
  paddingRight: theme.options.isCompact ? theme.spacing.md : MODAL_PADDING$1,
@@ -54791,6 +56105,7 @@ const getModalEmotionStyles = args => {
54791
56105
  paddingTop: theme.options.isCompact ? theme.spacing.lg : MODAL_PADDING$1 / 2,
54792
56106
  paddingLeft: MODAL_PADDING$1,
54793
56107
  paddingRight: MODAL_PADDING$1,
56108
+ marginTop: 'auto',
54794
56109
  ["".concat(classNameButton, " + ").concat(classNameButton, ":not(").concat(classNameDropdownTrigger, ")")]: {
54795
56110
  marginLeft: theme.spacing.sm
54796
56111
  }
@@ -54835,9 +56150,10 @@ const getModalEmotionStyles = args => {
54835
56150
  fontSize: theme.typography.fontSizeXl,
54836
56151
  lineHeight: theme.typography.lineHeightXl,
54837
56152
  fontWeight: theme.typography.typographyBoldFontWeight,
56153
+ paddingRight: MODAL_PADDING$1,
54838
56154
  // Don't impact regular size
54839
56155
  ...(theme.options.isCompact && {
54840
- height: headerHeight / 2,
56156
+ minHeight: headerHeight / 2,
54841
56157
  display: 'flex',
54842
56158
  alignItems: 'center'
54843
56159
  })
@@ -54846,7 +56162,9 @@ const getModalEmotionStyles = args => {
54846
56162
  maxHeight: modalMaxHeight,
54847
56163
  height: maxedOutHeight ? modalMaxHeight : '',
54848
56164
  overflow: 'hidden',
54849
- paddingBottom: contentBottomPadding
56165
+ paddingBottom: contentBottomPadding,
56166
+ display: 'flex',
56167
+ flexDirection: 'column'
54850
56168
  },
54851
56169
  [classNameBody]: {
54852
56170
  overflowY: 'auto',
@@ -54946,7 +56264,7 @@ var _ref2$1 = process.env.NODE_ENV === "production" ? {
54946
56264
  } : {
54947
56265
  name: "1jkwrsj-titleComp",
54948
56266
  styles: "position:relative;display:inline-flex;align-items:center;label:titleComp;",
54949
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
56267
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
54950
56268
  };
54951
56269
 
54952
56270
  var _ref3 = process.env.NODE_ENV === "production" ? {
@@ -54955,7 +56273,7 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
54955
56273
  } : {
54956
56274
  name: "i303lp-titleComp",
54957
56275
  styles: "padding-left:6px;label:titleComp;",
54958
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
56276
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
54959
56277
  };
54960
56278
 
54961
56279
  var _ref4$1 = process.env.NODE_ENV === "production" ? {
@@ -54964,7 +56282,7 @@ var _ref4$1 = process.env.NODE_ENV === "production" ? {
54964
56282
  } : {
54965
56283
  name: "boqyz4-titleComp",
54966
56284
  styles: "position:relative;label:titleComp;",
54967
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
56285
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
54968
56286
  };
54969
56287
 
54970
56288
  function DangerModal(props) {
@@ -55114,17 +56432,17 @@ const defaultProps = {
55114
56432
  duration: 3
55115
56433
  };
55116
56434
 
55117
- function _EMOTION_STRINGIFIED_CSS_ERROR__$3() {
56435
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$5() {
55118
56436
  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).";
55119
56437
  }
55120
56438
 
55121
- var _ref = process.env.NODE_ENV === "production" ? {
56439
+ var _ref$2 = process.env.NODE_ENV === "production" ? {
55122
56440
  name: "1dw6hj0",
55123
56441
  styles: "padding-left:16px;padding-right:16px"
55124
56442
  } : {
55125
56443
  name: "xioo5t-PageWrapper",
55126
56444
  styles: "padding-left:16px;padding-right:16px;label:PageWrapper;",
55127
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
56445
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
55128
56446
  };
55129
56447
 
55130
56448
  const PageWrapper = _ref2 => {
@@ -55132,7 +56450,7 @@ const PageWrapper = _ref2 => {
55132
56450
  children
55133
56451
  } = _ref2;
55134
56452
  return (0, _jsxRuntime.jsx)("div", {
55135
- css: _ref,
56453
+ css: _ref$2,
55136
56454
  children: children
55137
56455
  });
55138
56456
  };
@@ -55290,7 +56608,7 @@ const Popover = props => {
55290
56608
 
55291
56609
  exports.Popover = Popover;
55292
56610
 
55293
- function _EMOTION_STRINGIFIED_CSS_ERROR__$2() {
56611
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$4() {
55294
56612
  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).";
55295
56613
  }
55296
56614
 
@@ -55300,7 +56618,7 @@ const verticalGroupEmotionStyles = process.env.NODE_ENV === "production" ? {
55300
56618
  } : {
55301
56619
  name: "1ydgy2-verticalGroupEmotionStyles",
55302
56620
  styles: "display:flex;flex-direction:column;flex-wrap:wrap;label:verticalGroupEmotionStyles;",
55303
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
56621
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
55304
56622
  };
55305
56623
 
55306
56624
  const radioOverrideEmotionStyles = _ref => {
@@ -55578,7 +56896,7 @@ const SegmentedControlGroup = /*#__PURE__*/(0, React.forwardRef)(function Segmen
55578
56896
  });
55579
56897
  exports.SegmentedControlGroup = SegmentedControlGroup;
55580
56898
 
55581
- function _EMOTION_STRINGIFIED_CSS_ERROR__$1() {
56899
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$3() {
55582
56900
  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).";
55583
56901
  }
55584
56902
 
@@ -55595,6 +56913,7 @@ function getSelectEmotionStyles(_ref) {
55595
56913
  const classMultiple = ".".concat(clsPrefix, "-multiple");
55596
56914
  const classItem = ".".concat(clsPrefix, "-selection-item");
55597
56915
  const classItemOverflow = ".".concat(clsPrefix, "-selection-overflow-item");
56916
+ const classItemOverflowSuffix = ".".concat(clsPrefix, "-selection-overflow-item-suffix");
55598
56917
  const classArrow = ".".concat(clsPrefix, "-arrow");
55599
56918
  const classArrowLoading = ".".concat(clsPrefix, "-arrow-loading");
55600
56919
  const classPlaceholder = ".".concat(clsPrefix, "-selection-placeholder");
@@ -55616,7 +56935,6 @@ function getSelectEmotionStyles(_ref) {
55616
56935
  // to make sure the whole select is clickable.
55617
56936
  paddingRight: 0,
55618
56937
  color: theme.colors.textPrimary,
55619
- borderColor: theme.colors.actionDefaultBorderDefault,
55620
56938
  backgroundColor: 'transparent',
55621
56939
  height: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase,
55622
56940
  '::after': {
@@ -55643,7 +56961,8 @@ function getSelectEmotionStyles(_ref) {
55643
56961
  right: 24,
55644
56962
  left: 12,
55645
56963
  [classSearchInput]: {
55646
- color: theme.colors.actionDefaultTextDefault
56964
+ color: theme.colors.actionDefaultTextDefault,
56965
+ height: 24
55647
56966
  }
55648
56967
  },
55649
56968
  ["&".concat(classSingle)]: {
@@ -55663,7 +56982,7 @@ function getSelectEmotionStyles(_ref) {
55663
56982
  },
55664
56983
  ["&".concat(classFocused)]: {
55665
56984
  [classSelector]: {
55666
- outlineColor: theme.colors.primary,
56985
+ outlineColor: theme.colors.actionPrimaryBackgroundDefault,
55667
56986
  outlineWidth: 2,
55668
56987
  outlineStyle: 'solid',
55669
56988
  borderColor: 'transparent',
@@ -55702,6 +57021,14 @@ function getSelectEmotionStyles(_ref) {
55702
57021
  fontSize: 13
55703
57022
  }
55704
57023
  },
57024
+ [classPlaceholder]: {
57025
+ color: theme.colors.textSecondary,
57026
+ right: 'auto',
57027
+ left: 'auto',
57028
+ paddingRight: 32,
57029
+ lineHeight: theme.typography.lineHeightBase,
57030
+ alignSelf: 'center'
57031
+ },
55705
57032
  ["&".concat(classMultiple)]: {
55706
57033
  [classSelector]: {
55707
57034
  paddingTop: 3,
@@ -55749,7 +57076,19 @@ function getSelectEmotionStyles(_ref) {
55749
57076
  },
55750
57077
  ["&".concat(classAllowClear)]: {
55751
57078
  [classSearchClear]: {
55752
- top: theme.options.isCompact ? 17 : 20
57079
+ top: theme.options.isCompact ? 16 : 20
57080
+ }
57081
+ },
57082
+ [classPlaceholder]: {
57083
+ // Compensate for the caret placeholder width
57084
+ paddingLeft: 4,
57085
+ color: theme.colors.textPlaceholder
57086
+ },
57087
+ ["&:not(".concat(classFocused, ")")]: {
57088
+ [classItemOverflowSuffix]: {
57089
+ // Do not keep the caret's placeholder at full height when not focused,
57090
+ // because it introduces a new line even when not focused. Using display: none would break the caret
57091
+ height: 0
55753
57092
  }
55754
57093
  }
55755
57094
  },
@@ -55770,11 +57109,6 @@ function getSelectEmotionStyles(_ref) {
55770
57109
  opacity: 100
55771
57110
  }
55772
57111
  },
55773
- [classPlaceholder]: {
55774
- color: theme.colors.textPrimary,
55775
- right: 'auto',
55776
- left: 'auto'
55777
- },
55778
57112
  [classCloseButton]: {
55779
57113
  color: theme.colors.textPrimary,
55780
57114
  borderTopRightRadius: theme.borders.borderRadiusMd,
@@ -55865,6 +57199,7 @@ function getLoadingIconStyles(theme) {
55865
57199
  }
55866
57200
 
55867
57201
  const DuboisRefForwardedSelect = /*#__PURE__*/(0, React.forwardRef)(DuboisSelect);
57202
+ const scrollbarVisibleItemsCount = 8;
55868
57203
 
55869
57204
  var _ref4 = process.env.NODE_ENV === "production" ? {
55870
57205
  name: "14is9qy",
@@ -55872,7 +57207,7 @@ var _ref4 = process.env.NODE_ENV === "production" ? {
55872
57207
  } : {
55873
57208
  name: "14is9qy",
55874
57209
  styles: "font-size:20px",
55875
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
57210
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
55876
57211
  };
55877
57212
 
55878
57213
  function DuboisSelect(_ref2, ref) {
@@ -55881,6 +57216,7 @@ function DuboisSelect(_ref2, ref) {
55881
57216
  loading,
55882
57217
  mode,
55883
57218
  dangerouslySetAntdProps,
57219
+ virtual,
55884
57220
  ...restProps
55885
57221
  } = _ref2;
55886
57222
  const {
@@ -55940,7 +57276,10 @@ function DuboisSelect(_ref2, ref) {
55940
57276
  maxTagPlaceholder: items => "+ ".concat(items.length, " more"),
55941
57277
  mode: mode,
55942
57278
  loading: loading,
55943
- filterOption: true,
57279
+ filterOption: true // This is needed to avoid ghost scrollbar that generates error when clicked on exactly 8 elements
57280
+ // Because by default AntD uses true for virtual, we want to replicate the same even if there are no children
57281
+ ,
57282
+ virtual: virtual || !children || Array.isArray(children) && children.length !== scrollbarVisibleItemsCount,
55944
57283
  optionFilterProp: 'children',
55945
57284
  ...restProps,
55946
57285
  ...dangerouslySetAntdProps,
@@ -56037,6 +57376,10 @@ const Spinner = _ref => {
56037
57376
 
56038
57377
  exports.Spinner = Spinner;
56039
57378
 
57379
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$2() {
57380
+ 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).";
57381
+ }
57382
+
56040
57383
  function getSplitButtonEmotionStyles(classNamePrefix, theme) {
56041
57384
  const classDefault = ".".concat(classNamePrefix, "-btn");
56042
57385
  const classPrimary = ".".concat(classNamePrefix, "-btn-primary");
@@ -56100,6 +57443,15 @@ function getSplitButtonEmotionStyles(classNamePrefix, theme) {
56100
57443
  );
56101
57444
  }
56102
57445
 
57446
+ var _ref$1 = process.env.NODE_ENV === "production" ? {
57447
+ name: "jjj6u2",
57448
+ styles: "display:inline-flex;position:relative"
57449
+ } : {
57450
+ name: "4yj1tb-SplitButton",
57451
+ styles: "display:inline-flex;position:relative;label:SplitButton;",
57452
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
57453
+ };
57454
+
56103
57455
  const SplitButton = props => {
56104
57456
  const {
56105
57457
  theme,
@@ -56110,26 +57462,47 @@ const SplitButton = props => {
56110
57462
  icon,
56111
57463
  menu,
56112
57464
  type,
57465
+ loading,
56113
57466
  dangerouslySetAntdProps,
56114
57467
  ...dropdownButtonProps
56115
57468
  } = props;
56116
- return (0, _jsxRuntime.jsxs)(Dropdown$2.Button, { ...dropdownButtonProps,
56117
- overlay: menu,
56118
- trigger: ['click'],
56119
- css: getSplitButtonEmotionStyles(classNamePrefix, theme),
56120
- icon: (0, _jsxRuntime.jsx)(ChevronDownIcon, {
56121
- css:
56122
- /*#__PURE__*/
57469
+ 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
57470
+ // We do this to have just a loading icon in loading state at the normal width to avoid flicker and width changes in page
56123
57471
 
56124
- /*#__PURE__*/
56125
- (0, _react2.css)({
56126
- fontSize: theme.general.iconSize
56127
- }, process.env.NODE_ENV === "production" ? "" : ";label:SplitButton;", process.env.NODE_ENV === "production" ? "" : ";label:css;")
56128
- }),
56129
- placement: "bottomCenter",
56130
- type: type === 'default' ? undefined : type,
56131
- ...dangerouslySetAntdProps,
56132
- children: [icon, children]
57472
+ const ref = (0, React.useCallback)(node => {
57473
+ if (node && !loading) {
57474
+ setWidth(node.getBoundingClientRect().width);
57475
+ }
57476
+ }, [loading]);
57477
+ return (0, _jsxRuntime.jsx)("div", {
57478
+ ref: ref,
57479
+ css: _ref$1,
57480
+ children: loading ? (0, _jsxRuntime.jsx)(Button, {
57481
+ type: type === 'default' ? undefined : type,
57482
+ style: {
57483
+ width: width
57484
+ },
57485
+ children: (0, _jsxRuntime.jsx)(LoadingIcon, {
57486
+ spin: true
57487
+ })
57488
+ }) : (0, _jsxRuntime.jsxs)(Dropdown$2.Button, { ...dropdownButtonProps,
57489
+ overlay: menu,
57490
+ trigger: ['click'],
57491
+ css: getSplitButtonEmotionStyles(classNamePrefix, theme),
57492
+ icon: (0, _jsxRuntime.jsx)(ChevronDownIcon, {
57493
+ css:
57494
+ /*#__PURE__*/
57495
+
57496
+ /*#__PURE__*/
57497
+ (0, _react2.css)({
57498
+ fontSize: theme.general.iconSize
57499
+ }, process.env.NODE_ENV === "production" ? "" : ";label:SplitButton;", process.env.NODE_ENV === "production" ? "" : ";label:css;")
57500
+ }),
57501
+ placement: "bottomCenter",
57502
+ type: type === 'default' ? undefined : type,
57503
+ ...dangerouslySetAntdProps,
57504
+ children: [icon, children]
57505
+ })
56133
57506
  });
56134
57507
  };
56135
57508
 
@@ -56204,8 +57577,11 @@ const getScrollableInFlexibleContainerStyles = clsPrefix => {
56204
57577
  /*#__PURE__*/
56205
57578
  (0, _react2.css)(styles, process.env.NODE_ENV === "production" ? "" : ";label:getScrollableInFlexibleContainerStyles;", process.env.NODE_ENV === "production" ? "" : ";label:getScrollableInFlexibleContainerStyles;")
56206
57579
  );
56207
- }; // eslint-disable-next-line @typescript-eslint/ban-types
57580
+ };
56208
57581
 
57582
+ const DEFAULT_LOADING_SPIN_PROPS = {
57583
+ indicator: (0, _jsxRuntime.jsx)(Spinner, {})
57584
+ }; // eslint-disable-next-line @typescript-eslint/ban-types
56209
57585
 
56210
57586
  const Table = props => {
56211
57587
  const {
@@ -56213,10 +57589,15 @@ const Table = props => {
56213
57589
  theme
56214
57590
  } = useDesignSystemTheme();
56215
57591
  const {
57592
+ loading,
56216
57593
  scrollableInFlexibleContainer,
56217
57594
  ...tableProps
56218
57595
  } = props;
56219
- return (0, _jsxRuntime.jsx)(Table$1, {
57596
+ return (0, _jsxRuntime.jsx)(Table$1 // NOTE(FEINF-1273): The default loading indicator from AntD does not animate
57597
+ // and the design system spinner is recommended over the AntD one. Therefore,
57598
+ // if `loading` is `true`, render the design system <Spinner/> component.
57599
+ , {
57600
+ loading: loading === true ? DEFAULT_LOADING_SPIN_PROPS : loading,
56220
57601
  scroll: scrollableInFlexibleContainer ? {
56221
57602
  y: 'auto'
56222
57603
  } : undefined,
@@ -56375,6 +57756,7 @@ const Tabs = _ref => {
56375
57756
  onChange,
56376
57757
  onEdit,
56377
57758
  children,
57759
+ destroyInactiveTabPane = false,
56378
57760
  dangerouslySetAntdProps = {},
56379
57761
  dangerouslyAppendEmotionCSS = {}
56380
57762
  } = _ref;
@@ -56387,6 +57769,7 @@ const Tabs = _ref => {
56387
57769
  defaultActiveKey: defaultActiveKey,
56388
57770
  onChange: onChange,
56389
57771
  onEdit: onEdit,
57772
+ destroyInactiveTabPane: destroyInactiveTabPane,
56390
57773
  type: editable ? 'editable-card' : 'card',
56391
57774
  addIcon: (0, _jsxRuntime.jsx)(PlusIcon, {
56392
57775
  css:
@@ -56609,7 +57992,7 @@ const Tooltip = _ref => {
56609
57992
 
56610
57993
  exports.Tooltip = Tooltip;
56611
57994
 
56612
- function _EMOTION_STRINGIFIED_CSS_ERROR__() {
57995
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$1() {
56613
57996
  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).";
56614
57997
  }
56615
57998
  /**
@@ -56826,7 +58209,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
56826
58209
  } : {
56827
58210
  name: "wh1oly-Tree",
56828
58211
  styles: "font-size:24px!important;label:Tree;",
56829
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
58212
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
56830
58213
  };
56831
58214
 
56832
58215
  function Tree(_ref) {
@@ -56861,6 +58244,41 @@ function Tree(_ref) {
56861
58244
  });
56862
58245
  }
56863
58246
 
58247
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() {
58248
+ 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).";
58249
+ }
58250
+
58251
+ var _ref = process.env.NODE_ENV === "production" ? {
58252
+ name: "mgrjgu",
58253
+ styles: "margin-left:2px"
58254
+ } : {
58255
+ name: "7kmwq-Link",
58256
+ styles: "margin-left:2px;label:Link;",
58257
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
58258
+ };
58259
+
58260
+ function Link(props) {
58261
+ const {
58262
+ children,
58263
+ openInNewTab,
58264
+ ...restProps
58265
+ } = props;
58266
+ const openInNewTabProps = getOpenInNewTabProps(openInNewTab);
58267
+ return (0, _jsxRuntime.jsxs)(AntDTypography.Link, { ...restProps,
58268
+ ...openInNewTabProps,
58269
+ children: [children, openInNewTab ? (0, _jsxRuntime.jsx)(NewWindowIcon, {
58270
+ css: _ref
58271
+ }) : null]
58272
+ });
58273
+ }
58274
+
58275
+ function getOpenInNewTabProps(openInNewTab) {
58276
+ return openInNewTab ? {
58277
+ rel: 'noopener noreferrer',
58278
+ target: '_blank'
58279
+ } : undefined;
58280
+ }
58281
+
56864
58282
  const {
56865
58283
  Paragraph: AntDParagraph
56866
58284
  } = AntDTypography;
@@ -57019,4 +58437,4 @@ function Typography(props) {
57019
58437
  Typography.Text = Text;
57020
58438
  Typography.Title = Title;
57021
58439
  Typography.Paragraph = Paragraph;
57022
- Typography.Link = AntDTypography.Link;
58440
+ Typography.Link = Link;