amis-ui 2.6.0 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (758) hide show
  1. package/esm/_virtual/index.js +8 -0
  2. package/esm/_virtual/react-is.development.js +8 -0
  3. package/esm/_virtual/react-is.production.min.js +8 -0
  4. package/esm/components/404.js +2 -2
  5. package/esm/components/Alert.js +2 -2
  6. package/esm/components/Alert2.js +2 -2
  7. package/esm/components/AnchorNav.js +2 -2
  8. package/esm/components/ArrayInput.js +2 -2
  9. package/esm/components/AsideNav.js +2 -2
  10. package/esm/components/AssociatedSelection.js +2 -2
  11. package/esm/components/Avatar.js +2 -2
  12. package/esm/components/Badge.js +2 -2
  13. package/esm/components/BaiduMapPicker.js +2 -2
  14. package/esm/components/BarCode.js +2 -2
  15. package/esm/components/Breadcrumb.js +2 -2
  16. package/esm/components/Button.js +2 -2
  17. package/esm/components/CalendarMobile.js +2 -2
  18. package/esm/components/Card.js +2 -2
  19. package/esm/components/Cascader.js +2 -2
  20. package/esm/components/ChainedSelection.js +2 -2
  21. package/esm/components/Checkbox.js +2 -2
  22. package/esm/components/CityArea.js +2 -2
  23. package/esm/components/CityDB.js +2 -2
  24. package/esm/components/CodeMirror.js +2 -2
  25. package/esm/components/Collapse.js +5 -3
  26. package/esm/components/CollapseGroup.js +2 -2
  27. package/esm/components/ColorPicker.js +2 -2
  28. package/esm/components/Combo.js +2 -2
  29. package/esm/components/ConfirmBox.js +2 -2
  30. package/esm/components/ContextMenu.js +2 -2
  31. package/esm/components/DatePicker.js +7 -2
  32. package/esm/components/DateRangePicker.d.ts +7 -4
  33. package/esm/components/DateRangePicker.js +5 -6
  34. package/esm/components/DndContainer.d.ts +293 -0
  35. package/esm/components/DndContainer.js +25 -0
  36. package/esm/components/Drawer.js +2 -2
  37. package/esm/components/Editor.js +2 -2
  38. package/esm/components/Form.js +2 -2
  39. package/esm/components/FormField.js +2 -2
  40. package/esm/components/GridNav.js +2 -2
  41. package/esm/components/GroupedSelection.js +4 -4
  42. package/esm/components/Html.js +2 -2
  43. package/esm/components/ImageGallery.d.ts +6 -5
  44. package/esm/components/ImageGallery.js +26 -10
  45. package/esm/components/Input.js +2 -2
  46. package/esm/components/InputBox.js +2 -2
  47. package/esm/components/InputBoxWithSuggestion.js +2 -2
  48. package/esm/components/InputTable.js +2 -2
  49. package/esm/components/Layout.js +2 -2
  50. package/esm/components/Link.js +2 -2
  51. package/esm/components/ListGroup.js +2 -2
  52. package/esm/components/ListMenu.js +2 -2
  53. package/esm/components/LocationPicker.js +2 -2
  54. package/esm/components/Markdown.js +2 -2
  55. package/esm/components/Modal.js +2 -2
  56. package/esm/components/ModalManager.js +2 -2
  57. package/esm/components/MultilineText.js +2 -2
  58. package/esm/components/NumberInput.js +4 -4
  59. package/esm/components/Pagination.js +2 -2
  60. package/esm/components/Picker.js +2 -2
  61. package/esm/components/PickerColumn.js +2 -2
  62. package/esm/components/PickerContainer.js +2 -2
  63. package/esm/components/PopOverContainer.js +2 -2
  64. package/esm/components/PopUp.js +2 -2
  65. package/esm/components/Progress.js +2 -2
  66. package/esm/components/PullRefresh.js +2 -2
  67. package/esm/components/Radios.js +2 -2
  68. package/esm/components/Range.js +2 -2
  69. package/esm/components/Rating.d.ts +12 -55
  70. package/esm/components/Rating.js +32 -16
  71. package/esm/components/ResultBox.d.ts +41 -40
  72. package/esm/components/ResultBox.js +16 -7
  73. package/esm/components/ResultList.d.ts +41 -40
  74. package/esm/components/ResultList.js +4 -4
  75. package/esm/components/ResultTableList.js +2 -2
  76. package/esm/components/ResultTreeList.js +2 -2
  77. package/esm/components/RichText.js +2 -2
  78. package/esm/components/SearchBox.js +2 -2
  79. package/esm/components/Select.d.ts +194 -193
  80. package/esm/components/Select.js +12 -8
  81. package/esm/components/Selection.js +2 -2
  82. package/esm/components/SparkLine.js +2 -2
  83. package/esm/components/Spinner.js +2 -2
  84. package/esm/components/Steps.js +2 -2
  85. package/esm/components/Switch.js +2 -2
  86. package/esm/components/TableSelection.js +2 -2
  87. package/esm/components/Tabs.js +16 -12
  88. package/esm/components/TabsTransfer.d.ts +40 -40
  89. package/esm/components/TabsTransfer.js +2 -2
  90. package/esm/components/TabsTransferPicker.js +2 -2
  91. package/esm/components/Tag.d.ts +14 -10
  92. package/esm/components/Tag.js +22 -2
  93. package/esm/components/Textarea.js +2 -2
  94. package/esm/components/Timeline.js +2 -2
  95. package/esm/components/TimelineItem.js +2 -2
  96. package/esm/components/Tinymce.js +2 -2
  97. package/esm/components/TitleBar.js +2 -2
  98. package/esm/components/Toast.js +3 -3
  99. package/esm/components/Tooltip.js +2 -2
  100. package/esm/components/TooltipWrapper.js +2 -2
  101. package/esm/components/Transfer.d.ts +41 -40
  102. package/esm/components/Transfer.js +4 -4
  103. package/esm/components/TransferDropDown.d.ts +40 -40
  104. package/esm/components/TransferDropDown.js +4 -4
  105. package/esm/components/TransferPicker.js +2 -2
  106. package/esm/components/TransferSearch.js +2 -2
  107. package/esm/components/Tree.js +21 -8
  108. package/esm/components/TreeSelection.js +2 -2
  109. package/esm/components/UserSelect.js +4 -2
  110. package/esm/components/UserTabSelect.js +4 -2
  111. package/esm/components/WithRemoteConfig.js +7 -6
  112. package/esm/components/WithStore.js +2 -2
  113. package/esm/components/calendar/Calendar.js +2 -2
  114. package/esm/components/calendar/CalendarContainer.js +2 -2
  115. package/esm/components/calendar/DaysView.js +2 -2
  116. package/esm/components/calendar/MonthsView.js +2 -2
  117. package/esm/components/calendar/QuartersView.js +2 -2
  118. package/esm/components/calendar/TimeView.js +2 -2
  119. package/esm/components/calendar/YearsView.js +2 -2
  120. package/esm/components/condition-builder/Expression.js +2 -2
  121. package/esm/components/condition-builder/Field.js +2 -2
  122. package/esm/components/condition-builder/Formula.js +2 -2
  123. package/esm/components/condition-builder/Func.js +2 -2
  124. package/esm/components/condition-builder/Group.js +2 -2
  125. package/esm/components/condition-builder/GroupOrItem.js +2 -2
  126. package/esm/components/condition-builder/InputSwitch.js +2 -2
  127. package/esm/components/condition-builder/Item.js +2 -2
  128. package/esm/components/condition-builder/Value.js +2 -2
  129. package/esm/components/condition-builder/config.js +2 -2
  130. package/esm/components/condition-builder/index.js +2 -2
  131. package/esm/components/formula/Editor.js +2 -2
  132. package/esm/components/formula/FuncList.js +2 -2
  133. package/esm/components/formula/Picker.js +2 -2
  134. package/esm/components/formula/VariableList.js +2 -2
  135. package/esm/components/formula/plugin.js +2 -2
  136. package/esm/components/icons.d.ts +2 -1
  137. package/esm/components/icons.js +31 -15
  138. package/esm/components/index.d.ts +3 -1
  139. package/esm/components/json-schema/Array.js +2 -2
  140. package/esm/components/json-schema/Item.js +2 -2
  141. package/esm/components/json-schema/Object.js +2 -2
  142. package/esm/components/json-schema/index.js +2 -2
  143. package/esm/components/menu/MenuContext.d.ts +73 -0
  144. package/esm/components/menu/MenuContext.js +25 -0
  145. package/esm/components/menu/MenuItem.d.ts +84 -0
  146. package/esm/components/menu/MenuItem.js +125 -0
  147. package/esm/components/menu/SubMenu.d.ts +88 -0
  148. package/esm/components/menu/SubMenu.js +141 -0
  149. package/esm/components/menu/index.d.ts +246 -0
  150. package/esm/components/menu/index.js +315 -0
  151. package/esm/components/schema-editor/Array.js +2 -2
  152. package/esm/components/schema-editor/Common.js +2 -2
  153. package/esm/components/schema-editor/Item.js +2 -2
  154. package/esm/components/schema-editor/Object.js +2 -2
  155. package/esm/components/schema-editor/SchemaVariableList.js +2 -2
  156. package/esm/components/schema-editor/SchemaVariableListPicker.js +2 -2
  157. package/esm/components/schema-editor/index.js +2 -2
  158. package/esm/components/table/Cell.js +2 -2
  159. package/esm/components/table/HeadCellDropDown.js +2 -2
  160. package/esm/components/table/HeadCellFilter.js +2 -2
  161. package/esm/components/table/HeadCellSelect.js +2 -2
  162. package/esm/components/table/HeadCellSort.d.ts +2 -0
  163. package/esm/components/table/HeadCellSort.js +25 -17
  164. package/esm/components/table/ItemActionsWrapper.js +2 -2
  165. package/esm/components/table/index.d.ts +1 -0
  166. package/esm/components/table/index.js +16 -9
  167. package/esm/components/virtual-list/AutoSizer.js +2 -2
  168. package/esm/components/virtual-list/SizeAndPositionManager.js +2 -2
  169. package/esm/components/virtual-list/constants.js +2 -2
  170. package/esm/components/virtual-list/index.js +2 -2
  171. package/esm/hooks/use-set-state.js +2 -2
  172. package/esm/hooks/use-sub-form.js +2 -2
  173. package/esm/hooks/use-touch.js +2 -2
  174. package/esm/hooks/use-update-effect.js +2 -2
  175. package/esm/hooks/use-validation-resolver.js +2 -2
  176. package/esm/icons/alert-danger.svg.js +2 -2
  177. package/esm/icons/alert-info.svg.js +2 -2
  178. package/esm/icons/alert-success.svg.js +2 -2
  179. package/esm/icons/alert-warning.svg.js +2 -2
  180. package/esm/icons/back.svg.js +2 -2
  181. package/esm/icons/calendar.svg.js +2 -2
  182. package/esm/icons/caret.svg.js +2 -2
  183. package/esm/icons/check.svg.js +2 -2
  184. package/esm/icons/clock.svg.js +2 -2
  185. package/esm/icons/close-small.svg.js +2 -2
  186. package/esm/icons/close.svg.js +2 -2
  187. package/esm/icons/cloud-upload.svg.js +7 -16
  188. package/esm/icons/column-filter.svg.js +2 -2
  189. package/esm/icons/columns.svg.js +2 -2
  190. package/esm/icons/compress-alt.svg.js +2 -2
  191. package/esm/icons/copy.svg.js +2 -2
  192. package/esm/icons/date.svg.js +2 -2
  193. package/esm/icons/department.svg.js +2 -2
  194. package/esm/icons/desk-empty.svg.js +2 -2
  195. package/esm/icons/dot.svg.js +2 -2
  196. package/esm/icons/down-arrow-bold.svg.js +2 -2
  197. package/esm/icons/down.svg.js +2 -2
  198. package/esm/icons/download.svg.js +2 -2
  199. package/esm/icons/drag-bar.svg.js +2 -2
  200. package/esm/icons/drag.svg.js +2 -2
  201. package/esm/icons/edit.svg.js +2 -2
  202. package/esm/icons/ellipsis-v.svg.js +2 -2
  203. package/esm/icons/enter.svg.js +2 -2
  204. package/esm/icons/exchange.svg.js +2 -2
  205. package/esm/icons/expand-alt.svg.js +2 -2
  206. package/esm/icons/fail.svg.js +12 -10
  207. package/esm/icons/file.svg.js +2 -2
  208. package/esm/icons/filter.svg.js +2 -2
  209. package/esm/icons/folder.svg.js +2 -2
  210. package/esm/icons/function.svg.js +2 -2
  211. package/esm/icons/home.svg.js +2 -2
  212. package/esm/icons/image.svg.js +2 -2
  213. package/esm/icons/info-circle.svg.js +2 -2
  214. package/esm/icons/info.svg.js +2 -2
  215. package/esm/icons/input-clear.svg.js +2 -2
  216. package/esm/icons/invisible.svg.js +2 -2
  217. package/esm/icons/left-arrow.svg.js +2 -2
  218. package/esm/icons/loading-outline.svg.js +2 -2
  219. package/esm/icons/location.svg.js +2 -2
  220. package/esm/icons/menu.svg.js +2 -2
  221. package/esm/icons/minus.svg.js +2 -2
  222. package/esm/icons/move.svg.js +2 -2
  223. package/esm/icons/mute.svg.js +2 -2
  224. package/esm/icons/new-edit.svg.js +2 -2
  225. package/esm/icons/pause.svg.js +2 -2
  226. package/esm/icons/pencil.svg.js +2 -2
  227. package/esm/icons/play.svg.js +2 -2
  228. package/esm/icons/plus-cicle.svg.js +2 -2
  229. package/esm/icons/plus-fine.svg.js +2 -2
  230. package/esm/icons/plus.svg.js +2 -2
  231. package/esm/icons/post.svg.js +2 -2
  232. package/esm/icons/question-mark.svg.js +2 -2
  233. package/esm/icons/question.svg.js +2 -2
  234. package/esm/icons/redo.svg.js +2 -2
  235. package/esm/icons/refresh.svg.js +2 -2
  236. package/esm/icons/reload.svg.js +2 -2
  237. package/esm/icons/remove.svg.js +2 -2
  238. package/esm/icons/retry.svg.js +2 -2
  239. package/esm/icons/right-arrow-bold.svg.js +2 -2
  240. package/esm/icons/right-arrow.svg.js +2 -2
  241. package/esm/icons/right-double-arrow.svg.js +2 -2
  242. package/esm/icons/role.svg.js +2 -2
  243. package/esm/icons/rotate-left.svg.js +2 -2
  244. package/esm/icons/rotate-right.svg.js +2 -2
  245. package/esm/icons/scale-origin.svg.js +2 -2
  246. package/esm/icons/schedule.svg.js +2 -2
  247. package/esm/icons/search.svg.js +2 -2
  248. package/esm/icons/setting.svg.js +2 -2
  249. package/esm/icons/slider-handle-icon.svg.js +2 -2
  250. package/esm/icons/sort-asc.svg.js +2 -2
  251. package/esm/icons/sort-default.svg.js +2 -2
  252. package/esm/icons/sort-desc.svg.js +2 -2
  253. package/esm/icons/star.svg.js +2 -2
  254. package/esm/icons/status-close.svg.js +2 -2
  255. package/esm/icons/steps-finsh.svg.js +2 -2
  256. package/esm/icons/success.svg.js +14 -12
  257. package/esm/icons/transparent.svg.js +2 -2
  258. package/esm/icons/trash.svg.js +2 -2
  259. package/esm/icons/tree-down.svg.js +2 -2
  260. package/esm/icons/undo.svg.js +2 -2
  261. package/esm/icons/upload.svg.js +2 -2
  262. package/esm/icons/user-remove.svg.js +2 -2
  263. package/esm/icons/view.svg.js +2 -2
  264. package/esm/icons/volume.svg.js +2 -2
  265. package/esm/icons/warning-mark.svg.js +2 -2
  266. package/esm/icons/warning.svg.js +2 -2
  267. package/esm/icons/window-restore.svg.js +2 -2
  268. package/esm/icons/zoom-in.svg.js +2 -2
  269. package/esm/icons/zoom-out.svg.js +2 -2
  270. package/esm/index.js +4 -2
  271. package/esm/locale/de-DE.js +2 -2
  272. package/esm/locale/en-US.js +2 -2
  273. package/esm/locale/zh-CN.js +2 -2
  274. package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +14 -0
  275. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +10 -0
  276. package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +13 -0
  277. package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +12 -0
  278. package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +26 -0
  279. package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +25 -0
  280. package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +23 -0
  281. package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +21 -0
  282. package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +13 -0
  283. package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +25 -0
  284. package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +18 -0
  285. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +36 -0
  286. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +10 -0
  287. package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +30 -0
  288. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +24 -0
  289. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +19 -0
  290. package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +18 -0
  291. package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +14 -0
  292. package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +15 -0
  293. package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +19 -0
  294. package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +14 -0
  295. package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +16 -0
  296. package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +17 -0
  297. package/esm/node_modules/rc-overflow/es/Item.js +90 -0
  298. package/esm/node_modules/rc-overflow/es/Overflow.js +341 -0
  299. package/esm/node_modules/rc-overflow/es/RawItem.js +48 -0
  300. package/esm/node_modules/rc-overflow/es/hooks/useBatchFrameState.js +51 -0
  301. package/esm/node_modules/rc-overflow/es/index.js +7 -0
  302. package/esm/node_modules/rc-resize-observer/es/Collection.js +41 -0
  303. package/esm/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +37 -0
  304. package/esm/node_modules/rc-resize-observer/es/SingleObserver/index.js +108 -0
  305. package/esm/node_modules/rc-resize-observer/es/index.js +37 -0
  306. package/esm/node_modules/rc-resize-observer/es/utils/observerUtil.js +48 -0
  307. package/esm/node_modules/rc-util/es/Children/toArray.js +28 -0
  308. package/esm/node_modules/rc-util/es/Dom/canUseDom.js +10 -0
  309. package/esm/node_modules/rc-util/es/Dom/findDOMNode.js +22 -0
  310. package/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +14 -0
  311. package/esm/node_modules/rc-util/es/hooks/useState.js +35 -0
  312. package/esm/node_modules/rc-util/es/raf.js +55 -0
  313. package/esm/node_modules/rc-util/es/ref.js +55 -0
  314. package/esm/node_modules/rc-util/es/warning.js +15 -0
  315. package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +195 -0
  316. package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +31 -0
  317. package/esm/node_modules/rc-util/node_modules/react-is/index.js +17 -0
  318. package/esm/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +933 -0
  319. package/esm/themes/ang.js +2 -2
  320. package/esm/themes/antd.js +2 -2
  321. package/esm/themes/cxd.js +2 -2
  322. package/esm/themes/dark.js +2 -2
  323. package/lib/_virtual/index.js +12 -0
  324. package/lib/_virtual/react-is.development.js +12 -0
  325. package/lib/_virtual/react-is.production.min.js +12 -0
  326. package/lib/components/404.js +2 -2
  327. package/lib/components/Alert.d.ts +40 -40
  328. package/lib/components/Alert.js +2 -2
  329. package/lib/components/Alert2.d.ts +10 -10
  330. package/lib/components/Alert2.js +2 -2
  331. package/lib/components/AnchorNav.d.ts +10 -10
  332. package/lib/components/AnchorNav.js +2 -2
  333. package/lib/components/ArrayInput.d.ts +40 -40
  334. package/lib/components/ArrayInput.js +2 -2
  335. package/lib/components/AsideNav.d.ts +10 -10
  336. package/lib/components/AsideNav.js +2 -2
  337. package/lib/components/AssociatedSelection.d.ts +40 -40
  338. package/lib/components/AssociatedSelection.js +2 -2
  339. package/lib/components/Avatar.d.ts +10 -10
  340. package/lib/components/Avatar.js +2 -2
  341. package/lib/components/Badge.js +2 -2
  342. package/lib/components/BaiduMapPicker.js +2 -2
  343. package/lib/components/BarCode.js +2 -2
  344. package/lib/components/Breadcrumb.js +2 -2
  345. package/lib/components/Button.d.ts +10 -10
  346. package/lib/components/Button.js +2 -2
  347. package/lib/components/CalendarMobile.d.ts +40 -40
  348. package/lib/components/CalendarMobile.js +2 -2
  349. package/lib/components/Card.d.ts +10 -10
  350. package/lib/components/Card.js +2 -2
  351. package/lib/components/Cascader.js +2 -2
  352. package/lib/components/ChainedSelection.d.ts +40 -40
  353. package/lib/components/ChainedSelection.js +2 -2
  354. package/lib/components/Checkbox.d.ts +10 -10
  355. package/lib/components/Checkbox.js +2 -2
  356. package/lib/components/CityArea.js +2 -2
  357. package/lib/components/CityDB.js +2 -2
  358. package/lib/components/CodeMirror.js +2 -2
  359. package/lib/components/Collapse.d.ts +10 -10
  360. package/lib/components/Collapse.js +5 -3
  361. package/lib/components/CollapseGroup.d.ts +10 -10
  362. package/lib/components/CollapseGroup.js +2 -2
  363. package/lib/components/ColorPicker.d.ts +40 -40
  364. package/lib/components/ColorPicker.js +2 -2
  365. package/lib/components/Combo.js +2 -2
  366. package/lib/components/ConfirmBox.d.ts +40 -40
  367. package/lib/components/ConfirmBox.js +2 -2
  368. package/lib/components/ContextMenu.js +2 -2
  369. package/lib/components/DatePicker.d.ts +81 -81
  370. package/lib/components/DatePicker.js +7 -2
  371. package/lib/components/DateRangePicker.d.ts +47 -44
  372. package/lib/components/DateRangePicker.js +5 -6
  373. package/lib/components/DndContainer.d.ts +293 -0
  374. package/lib/components/DndContainer.js +34 -0
  375. package/lib/components/Drawer.d.ts +10 -10
  376. package/lib/components/Drawer.js +2 -2
  377. package/lib/components/Editor.d.ts +40 -40
  378. package/lib/components/Editor.js +2 -2
  379. package/lib/components/Form.js +2 -2
  380. package/lib/components/FormField.js +2 -2
  381. package/lib/components/GridNav.js +2 -2
  382. package/lib/components/GroupedSelection.d.ts +40 -40
  383. package/lib/components/GroupedSelection.js +4 -4
  384. package/lib/components/Html.js +2 -2
  385. package/lib/components/ImageGallery.d.ts +46 -45
  386. package/lib/components/ImageGallery.js +26 -10
  387. package/lib/components/Input.js +2 -2
  388. package/lib/components/InputBox.d.ts +10 -10
  389. package/lib/components/InputBox.js +2 -2
  390. package/lib/components/InputBoxWithSuggestion.js +2 -2
  391. package/lib/components/InputTable.js +2 -2
  392. package/lib/components/Layout.d.ts +10 -10
  393. package/lib/components/Layout.js +2 -2
  394. package/lib/components/Link.js +2 -2
  395. package/lib/components/ListGroup.d.ts +10 -10
  396. package/lib/components/ListGroup.js +2 -2
  397. package/lib/components/ListMenu.d.ts +40 -40
  398. package/lib/components/ListMenu.js +2 -2
  399. package/lib/components/LocationPicker.d.ts +40 -40
  400. package/lib/components/LocationPicker.js +2 -2
  401. package/lib/components/Markdown.js +2 -2
  402. package/lib/components/Modal.d.ts +40 -40
  403. package/lib/components/Modal.js +2 -2
  404. package/lib/components/ModalManager.js +2 -2
  405. package/lib/components/MonthRangePicker.d.ts +40 -40
  406. package/lib/components/MultilineText.d.ts +40 -40
  407. package/lib/components/MultilineText.js +2 -2
  408. package/lib/components/NumberInput.d.ts +10 -10
  409. package/lib/components/NumberInput.js +4 -4
  410. package/lib/components/Pagination.d.ts +40 -40
  411. package/lib/components/Pagination.js +2 -2
  412. package/lib/components/Picker.js +2 -2
  413. package/lib/components/PickerColumn.js +2 -2
  414. package/lib/components/PickerContainer.js +2 -2
  415. package/lib/components/PopOverContainer.js +2 -2
  416. package/lib/components/PopUp.d.ts +40 -40
  417. package/lib/components/PopUp.js +2 -2
  418. package/lib/components/Progress.d.ts +10 -10
  419. package/lib/components/Progress.js +2 -2
  420. package/lib/components/PullRefresh.js +2 -2
  421. package/lib/components/Radios.d.ts +10 -10
  422. package/lib/components/Radios.js +2 -2
  423. package/lib/components/Range.js +2 -2
  424. package/lib/components/Rating.d.ts +22 -65
  425. package/lib/components/Rating.js +32 -16
  426. package/lib/components/ResultBox.d.ts +41 -40
  427. package/lib/components/ResultBox.js +16 -7
  428. package/lib/components/ResultList.d.ts +41 -40
  429. package/lib/components/ResultList.js +4 -4
  430. package/lib/components/ResultTableList.d.ts +40 -40
  431. package/lib/components/ResultTableList.js +2 -2
  432. package/lib/components/ResultTreeList.d.ts +40 -40
  433. package/lib/components/ResultTreeList.js +2 -2
  434. package/lib/components/RichText.js +2 -2
  435. package/lib/components/SearchBox.d.ts +40 -40
  436. package/lib/components/SearchBox.js +2 -2
  437. package/lib/components/Select.d.ts +194 -193
  438. package/lib/components/Select.js +12 -8
  439. package/lib/components/Selection.d.ts +40 -40
  440. package/lib/components/Selection.js +2 -2
  441. package/lib/components/SparkLine.d.ts +40 -40
  442. package/lib/components/SparkLine.js +2 -2
  443. package/lib/components/Spinner.d.ts +10 -10
  444. package/lib/components/Spinner.js +2 -2
  445. package/lib/components/Steps.js +2 -2
  446. package/lib/components/Switch.d.ts +10 -10
  447. package/lib/components/Switch.js +2 -2
  448. package/lib/components/TableSelection.d.ts +40 -40
  449. package/lib/components/TableSelection.js +2 -2
  450. package/lib/components/Tabs.d.ts +40 -40
  451. package/lib/components/Tabs.js +16 -12
  452. package/lib/components/TabsTransfer.d.ts +40 -40
  453. package/lib/components/TabsTransfer.js +2 -2
  454. package/lib/components/TabsTransferPicker.js +2 -2
  455. package/lib/components/Tag.d.ts +14 -10
  456. package/lib/components/Tag.js +22 -2
  457. package/lib/components/Textarea.d.ts +40 -40
  458. package/lib/components/Textarea.js +2 -2
  459. package/lib/components/Timeline.js +2 -2
  460. package/lib/components/TimelineItem.js +2 -2
  461. package/lib/components/Tinymce.js +2 -2
  462. package/lib/components/TitleBar.js +2 -2
  463. package/lib/components/Toast.d.ts +40 -40
  464. package/lib/components/Toast.js +3 -3
  465. package/lib/components/Tooltip.js +2 -2
  466. package/lib/components/TooltipWrapper.d.ts +10 -10
  467. package/lib/components/TooltipWrapper.js +2 -2
  468. package/lib/components/Transfer.d.ts +50 -49
  469. package/lib/components/Transfer.js +4 -4
  470. package/lib/components/TransferDropDown.d.ts +40 -40
  471. package/lib/components/TransferDropDown.js +4 -4
  472. package/lib/components/TransferPicker.js +2 -2
  473. package/lib/components/TransferSearch.js +2 -2
  474. package/lib/components/Tree.d.ts +40 -40
  475. package/lib/components/Tree.js +21 -8
  476. package/lib/components/TreeSelection.d.ts +40 -40
  477. package/lib/components/TreeSelection.js +2 -2
  478. package/lib/components/UserSelect.d.ts +40 -40
  479. package/lib/components/UserSelect.js +4 -2
  480. package/lib/components/UserTabSelect.d.ts +40 -40
  481. package/lib/components/UserTabSelect.js +4 -2
  482. package/lib/components/WithRemoteConfig.js +7 -6
  483. package/lib/components/WithStore.js +2 -2
  484. package/lib/components/calendar/Calendar.js +2 -2
  485. package/lib/components/calendar/CalendarContainer.js +2 -2
  486. package/lib/components/calendar/DaysView.js +2 -2
  487. package/lib/components/calendar/MonthsView.js +2 -2
  488. package/lib/components/calendar/QuartersView.js +2 -2
  489. package/lib/components/calendar/TimeView.js +2 -2
  490. package/lib/components/calendar/YearsView.js +2 -2
  491. package/lib/components/condition-builder/Expression.js +2 -2
  492. package/lib/components/condition-builder/Field.js +2 -2
  493. package/lib/components/condition-builder/Formula.js +2 -2
  494. package/lib/components/condition-builder/Func.js +2 -2
  495. package/lib/components/condition-builder/Group.js +2 -2
  496. package/lib/components/condition-builder/GroupOrItem.js +2 -2
  497. package/lib/components/condition-builder/InputSwitch.js +2 -2
  498. package/lib/components/condition-builder/Item.js +2 -2
  499. package/lib/components/condition-builder/Value.js +2 -2
  500. package/lib/components/condition-builder/config.js +2 -2
  501. package/lib/components/condition-builder/index.d.ts +1 -1
  502. package/lib/components/condition-builder/index.js +2 -2
  503. package/lib/components/formula/Editor.d.ts +40 -40
  504. package/lib/components/formula/Editor.js +2 -2
  505. package/lib/components/formula/FuncList.js +2 -2
  506. package/lib/components/formula/Picker.d.ts +40 -40
  507. package/lib/components/formula/Picker.js +2 -2
  508. package/lib/components/formula/VariableList.js +2 -2
  509. package/lib/components/formula/plugin.js +2 -2
  510. package/lib/components/icons.d.ts +2 -1
  511. package/lib/components/icons.js +30 -14
  512. package/lib/components/index.d.ts +3 -1
  513. package/lib/components/json-schema/Array.js +2 -2
  514. package/lib/components/json-schema/Item.js +2 -2
  515. package/lib/components/json-schema/Object.js +2 -2
  516. package/lib/components/json-schema/index.js +2 -2
  517. package/lib/components/menu/MenuContext.d.ts +73 -0
  518. package/lib/components/menu/MenuContext.js +29 -0
  519. package/lib/components/menu/MenuItem.d.ts +84 -0
  520. package/lib/components/menu/MenuItem.js +135 -0
  521. package/lib/components/menu/SubMenu.d.ts +88 -0
  522. package/lib/components/menu/SubMenu.js +151 -0
  523. package/lib/components/menu/index.d.ts +246 -0
  524. package/lib/components/menu/index.js +328 -0
  525. package/lib/components/schema-editor/Array.js +2 -2
  526. package/lib/components/schema-editor/Common.js +2 -2
  527. package/lib/components/schema-editor/Item.js +2 -2
  528. package/lib/components/schema-editor/Object.js +2 -2
  529. package/lib/components/schema-editor/SchemaVariableList.js +2 -2
  530. package/lib/components/schema-editor/SchemaVariableListPicker.js +2 -2
  531. package/lib/components/schema-editor/index.d.ts +40 -40
  532. package/lib/components/schema-editor/index.js +2 -2
  533. package/lib/components/table/Cell.d.ts +40 -40
  534. package/lib/components/table/Cell.js +2 -2
  535. package/lib/components/table/HeadCellDropDown.js +2 -2
  536. package/lib/components/table/HeadCellFilter.d.ts +40 -40
  537. package/lib/components/table/HeadCellFilter.js +2 -2
  538. package/lib/components/table/HeadCellSelect.d.ts +40 -40
  539. package/lib/components/table/HeadCellSelect.js +2 -2
  540. package/lib/components/table/HeadCellSort.d.ts +2 -0
  541. package/lib/components/table/HeadCellSort.js +25 -17
  542. package/lib/components/table/ItemActionsWrapper.js +2 -2
  543. package/lib/components/table/index.d.ts +41 -40
  544. package/lib/components/table/index.js +16 -9
  545. package/lib/components/virtual-list/AutoSizer.js +2 -2
  546. package/lib/components/virtual-list/SizeAndPositionManager.js +2 -2
  547. package/lib/components/virtual-list/constants.js +2 -2
  548. package/lib/components/virtual-list/index.js +2 -2
  549. package/lib/hooks/use-set-state.js +2 -2
  550. package/lib/hooks/use-sub-form.js +2 -2
  551. package/lib/hooks/use-touch.js +2 -2
  552. package/lib/hooks/use-update-effect.js +2 -2
  553. package/lib/hooks/use-validation-resolver.js +2 -2
  554. package/lib/icons/alert-danger.svg.js +2 -2
  555. package/lib/icons/alert-info.svg.js +2 -2
  556. package/lib/icons/alert-success.svg.js +2 -2
  557. package/lib/icons/alert-warning.svg.js +2 -2
  558. package/lib/icons/back.svg.js +2 -2
  559. package/lib/icons/calendar.svg.js +2 -2
  560. package/lib/icons/caret.svg.js +2 -2
  561. package/lib/icons/check.svg.js +2 -2
  562. package/lib/icons/clock.svg.js +2 -2
  563. package/lib/icons/close-small.svg.js +2 -2
  564. package/lib/icons/close.svg.js +2 -2
  565. package/lib/icons/cloud-upload.svg.js +7 -16
  566. package/lib/icons/column-filter.svg.js +2 -2
  567. package/lib/icons/columns.svg.js +2 -2
  568. package/lib/icons/compress-alt.svg.js +2 -2
  569. package/lib/icons/copy.svg.js +2 -2
  570. package/lib/icons/date.svg.js +2 -2
  571. package/lib/icons/department.svg.js +2 -2
  572. package/lib/icons/desk-empty.svg.js +2 -2
  573. package/lib/icons/dot.svg.js +2 -2
  574. package/lib/icons/down-arrow-bold.svg.js +2 -2
  575. package/lib/icons/down.svg.js +2 -2
  576. package/lib/icons/download.svg.js +2 -2
  577. package/lib/icons/drag-bar.svg.js +2 -2
  578. package/lib/icons/drag.svg.js +2 -2
  579. package/lib/icons/edit.svg.js +2 -2
  580. package/lib/icons/ellipsis-v.svg.js +2 -2
  581. package/lib/icons/enter.svg.js +2 -2
  582. package/lib/icons/exchange.svg.js +2 -2
  583. package/lib/icons/expand-alt.svg.js +2 -2
  584. package/lib/icons/fail.svg.js +12 -10
  585. package/lib/icons/file.svg.js +2 -2
  586. package/lib/icons/filter.svg.js +2 -2
  587. package/lib/icons/folder.svg.js +2 -2
  588. package/lib/icons/function.svg.js +2 -2
  589. package/lib/icons/home.svg.js +2 -2
  590. package/lib/icons/image.svg.js +2 -2
  591. package/lib/icons/info-circle.svg.js +2 -2
  592. package/lib/icons/info.svg.js +2 -2
  593. package/lib/icons/input-clear.svg.js +2 -2
  594. package/lib/icons/invisible.svg.js +2 -2
  595. package/lib/icons/left-arrow.svg.js +2 -2
  596. package/lib/icons/loading-outline.svg.js +2 -2
  597. package/lib/icons/location.svg.js +2 -2
  598. package/lib/icons/menu.svg.js +2 -2
  599. package/lib/icons/minus.svg.js +2 -2
  600. package/lib/icons/move.svg.js +2 -2
  601. package/lib/icons/mute.svg.js +2 -2
  602. package/lib/icons/new-edit.svg.js +2 -2
  603. package/lib/icons/pause.svg.js +2 -2
  604. package/lib/icons/pencil.svg.js +2 -2
  605. package/lib/icons/play.svg.js +2 -2
  606. package/lib/icons/plus-cicle.svg.js +2 -2
  607. package/lib/icons/plus-fine.svg.js +2 -2
  608. package/lib/icons/plus.svg.js +2 -2
  609. package/lib/icons/post.svg.js +2 -2
  610. package/lib/icons/question-mark.svg.js +2 -2
  611. package/lib/icons/question.svg.js +2 -2
  612. package/lib/icons/redo.svg.js +2 -2
  613. package/lib/icons/refresh.svg.js +2 -2
  614. package/lib/icons/reload.svg.js +2 -2
  615. package/lib/icons/remove.svg.js +2 -2
  616. package/lib/icons/retry.svg.js +2 -2
  617. package/lib/icons/right-arrow-bold.svg.js +2 -2
  618. package/lib/icons/right-arrow.svg.js +2 -2
  619. package/lib/icons/right-double-arrow.svg.js +2 -2
  620. package/lib/icons/role.svg.js +2 -2
  621. package/lib/icons/rotate-left.svg.js +2 -2
  622. package/lib/icons/rotate-right.svg.js +2 -2
  623. package/lib/icons/scale-origin.svg.js +2 -2
  624. package/lib/icons/schedule.svg.js +2 -2
  625. package/lib/icons/search.svg.js +2 -2
  626. package/lib/icons/setting.svg.js +2 -2
  627. package/lib/icons/slider-handle-icon.svg.js +2 -2
  628. package/lib/icons/sort-asc.svg.js +2 -2
  629. package/lib/icons/sort-default.svg.js +2 -2
  630. package/lib/icons/sort-desc.svg.js +2 -2
  631. package/lib/icons/star.svg.js +2 -2
  632. package/lib/icons/status-close.svg.js +2 -2
  633. package/lib/icons/steps-finsh.svg.js +2 -2
  634. package/lib/icons/success.svg.js +29 -27
  635. package/lib/icons/transparent.svg.js +2 -2
  636. package/lib/icons/trash.svg.js +2 -2
  637. package/lib/icons/tree-down.svg.js +2 -2
  638. package/lib/icons/undo.svg.js +2 -2
  639. package/lib/icons/upload.svg.js +2 -2
  640. package/lib/icons/user-remove.svg.js +2 -2
  641. package/lib/icons/view.svg.js +2 -2
  642. package/lib/icons/volume.svg.js +2 -2
  643. package/lib/icons/warning-mark.svg.js +2 -2
  644. package/lib/icons/warning.svg.js +2 -2
  645. package/lib/icons/window-restore.svg.js +2 -2
  646. package/lib/icons/zoom-in.svg.js +2 -2
  647. package/lib/icons/zoom-out.svg.js +2 -2
  648. package/lib/index.js +6 -2
  649. package/lib/locale/de-DE.js +2 -2
  650. package/lib/locale/en-US.js +2 -2
  651. package/lib/locale/zh-CN.js +2 -2
  652. package/lib/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +18 -0
  653. package/lib/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +14 -0
  654. package/lib/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +17 -0
  655. package/lib/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +16 -0
  656. package/lib/node_modules/@babel/runtime/helpers/esm/createClass.js +30 -0
  657. package/lib/node_modules/@babel/runtime/helpers/esm/createSuper.js +29 -0
  658. package/lib/node_modules/@babel/runtime/helpers/esm/defineProperty.js +27 -0
  659. package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +25 -0
  660. package/lib/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +17 -0
  661. package/lib/node_modules/@babel/runtime/helpers/esm/inherits.js +29 -0
  662. package/lib/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +22 -0
  663. package/lib/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +40 -0
  664. package/lib/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +14 -0
  665. package/lib/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +34 -0
  666. package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +28 -0
  667. package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +23 -0
  668. package/lib/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +22 -0
  669. package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +18 -0
  670. package/lib/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +19 -0
  671. package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +23 -0
  672. package/lib/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +18 -0
  673. package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js +20 -0
  674. package/lib/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +21 -0
  675. package/lib/node_modules/rc-overflow/es/Item.js +117 -0
  676. package/lib/node_modules/rc-overflow/es/Overflow.js +368 -0
  677. package/lib/node_modules/rc-overflow/es/RawItem.js +75 -0
  678. package/lib/node_modules/rc-overflow/es/hooks/useBatchFrameState.js +55 -0
  679. package/lib/node_modules/rc-overflow/es/index.js +14 -0
  680. package/lib/node_modules/rc-resize-observer/es/Collection.js +66 -0
  681. package/lib/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +61 -0
  682. package/lib/node_modules/rc-resize-observer/es/SingleObserver/index.js +132 -0
  683. package/lib/node_modules/rc-resize-observer/es/index.js +61 -0
  684. package/lib/node_modules/rc-resize-observer/es/utils/observerUtil.js +53 -0
  685. package/lib/node_modules/rc-util/es/Children/toArray.js +36 -0
  686. package/lib/node_modules/rc-util/es/Dom/canUseDom.js +14 -0
  687. package/lib/node_modules/rc-util/es/Dom/findDOMNode.js +31 -0
  688. package/lib/node_modules/rc-util/es/hooks/useLayoutEffect.js +38 -0
  689. package/lib/node_modules/rc-util/es/hooks/useState.js +59 -0
  690. package/lib/node_modules/rc-util/es/raf.js +59 -0
  691. package/lib/node_modules/rc-util/es/ref.js +61 -0
  692. package/lib/node_modules/rc-util/es/warning.js +19 -0
  693. package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +199 -0
  694. package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +35 -0
  695. package/lib/node_modules/rc-util/node_modules/react-is/index.js +19 -0
  696. package/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +937 -0
  697. package/lib/{scss → packages/amis-ui/scss}/helper.scss.js +2 -2
  698. package/lib/{scss → packages/amis-ui/scss}/themes/ang.scss.js +2 -2
  699. package/lib/{scss → packages/amis-ui/scss}/themes/antd.scss.js +2 -2
  700. package/lib/{scss → packages/amis-ui/scss}/themes/cxd.scss.js +2 -2
  701. package/lib/{scss → packages/amis-ui/scss}/themes/dark.scss.js +2 -2
  702. package/lib/{scss → packages/amis-ui/scss}/themes/default.scss.js +2 -2
  703. package/lib/themes/ang.css +4130 -873
  704. package/lib/themes/ang.js +2 -2
  705. package/lib/themes/antd.css +4130 -873
  706. package/lib/themes/antd.js +2 -2
  707. package/lib/themes/cxd.css +4131 -873
  708. package/lib/themes/cxd.js +2 -2
  709. package/lib/themes/dark.css +4130 -873
  710. package/lib/themes/dark.js +2 -2
  711. package/lib/themes/default.css +4131 -873
  712. package/package.json +5 -3
  713. package/scss/_components.scss +1752 -72
  714. package/scss/_mixins.scss +15 -6
  715. package/scss/_properties.scss +60 -314
  716. package/scss/base/_typography.scss +13 -0
  717. package/scss/components/_anchor-nav.scss +3 -3
  718. package/scss/components/_array-input.scss +1 -0
  719. package/scss/components/_button.scss +5 -0
  720. package/scss/components/_collapse-group.scss +2 -1
  721. package/scss/components/_collapse.scss +49 -35
  722. package/scss/components/_divider.scss +3 -3
  723. package/scss/components/_formula.scss +9 -1
  724. package/scss/components/_link.scss +15 -1
  725. package/scss/components/_menu.scss +1153 -0
  726. package/scss/components/_nav.scss +137 -82
  727. package/scss/components/_panel.scss +44 -17
  728. package/scss/components/_result-box.scss +4 -0
  729. package/scss/components/_tabs.scss +405 -137
  730. package/scss/components/form/_checks.scss +174 -14
  731. package/scss/components/form/_combo.scss +1 -0
  732. package/scss/components/form/_file.scss +59 -14
  733. package/scss/components/form/_form.scss +27 -28
  734. package/scss/components/form/_image.scss +95 -50
  735. package/scss/components/form/_list.scss +84 -1
  736. package/scss/components/form/_number.scss +247 -25
  737. package/scss/components/form/_range.scss +35 -13
  738. package/scss/components/form/_rating.scss +9 -3
  739. package/scss/components/form/_switch.scss +45 -47
  740. package/scss/components/form/_tag.scss +1 -0
  741. package/scss/components/form/_text.scss +189 -13
  742. package/scss/components/form/_textarea.scss +7 -9
  743. package/scss/components/form/_tree.scss +7 -2
  744. package/scss/themes/_ang-variables.scss +50 -50
  745. package/scss/themes/_antd-variables.scss +50 -50
  746. package/scss/themes/_common.scss +1 -0
  747. package/scss/themes/_cxd-variables.scss +51 -50
  748. package/scss/themes/_dark-variables.scss +50 -50
  749. package/esm/icons/check-circle.svg.js +0 -29
  750. package/esm/icons/status-fail.svg.js +0 -22
  751. package/esm/icons/status-info.svg.js +0 -26
  752. package/esm/icons/status-success.svg.js +0 -22
  753. package/esm/icons/status-warning.svg.js +0 -26
  754. package/lib/icons/check-circle.svg.js +0 -53
  755. package/lib/icons/status-fail.svg.js +0 -46
  756. package/lib/icons/status-info.svg.js +0 -50
  757. package/lib/icons/status-success.svg.js +0 -46
  758. package/lib/icons/status-warning.svg.js +0 -50
@@ -0,0 +1,1153 @@
1
+ @mixin popup-dark {
2
+ & > .#{$ns}Nav-Menu {
3
+ background-color: var(--Menu-dark-backgroundColor);
4
+
5
+ .#{$ns}Nav-Menu-item {
6
+ color: var(--Menu-dark-fontColor);
7
+
8
+ .#{$ns}Nav-Menu-item-icon,
9
+ .#{$ns}Nav-Menu-item-label {
10
+ color: var(--Menu-dark-fontColor);
11
+ }
12
+
13
+ &-active {
14
+ background-color: var(--Menu-dark-backgroundColor);
15
+ color: var(--Menu-dark-fontColor-onHover);
16
+
17
+ .#{$ns}Nav-Menu-item-icon,
18
+ .#{$ns}Nav-Menu-item-label {
19
+ color: var(--Menu-dark-fontColor-onHover);
20
+ }
21
+ }
22
+
23
+ &-selected {
24
+ background-color: var(--Menu-dark-backgroundColor);
25
+ color: var(--Menu-dark-ancestor-fontColor-onActive) !important;
26
+
27
+ .#{$ns}Nav-Menu-item-icon,
28
+ .#{$ns}Nav-Menu-item-label {
29
+ color: var(--Menu-dark-ancestor-fontColor-onActive) !important;
30
+ }
31
+ }
32
+ }
33
+
34
+ .#{$ns}Nav-Menu-submenu-dark {
35
+ .#{$ns}Nav-Menu-submenu-title {
36
+ color: var(--Menu-dark-fontColor);
37
+
38
+ .#{$ns}Nav-Menu-item-icon,
39
+ .#{$ns}Nav-Menu-item-label,
40
+ .#{$ns}Nav-Menu-submenu-arrow {
41
+ color: var(--Menu-dark-fontColor);
42
+ }
43
+ }
44
+ }
45
+
46
+ .#{$ns}Nav-Menu-submenu-active {
47
+ .#{$ns}Nav-Menu-submenu-title {
48
+ background-color: var(--Menu-dark-backgroundColor);
49
+ color: var(--Menu-dark-fontColor-onActive);
50
+
51
+ .#{$ns}Nav-Menu-item-icon,
52
+ .#{$ns}Nav-Menu-item-label {
53
+ color: var(--Menu-dark-fontColor-onActive);
54
+ }
55
+ }
56
+ }
57
+
58
+ .#{$ns}Nav-Menu-submenu-selected {
59
+ .#{$ns}Nav-Menu-submenu-title {
60
+ background-color: var(--Menu-dark-backgroundColor);
61
+ color: var(--Menu-dark-ancestor-fontColor-onActive);
62
+
63
+ .#{$ns}Nav-Menu-item-icon,
64
+ .#{$ns}Nav-Menu-item-label {
65
+ color: var(--Menu-dark-ancestor-fontColor-onActive);
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+
72
+ @mixin selected-indicator($themeColor) {
73
+ &::before {
74
+ content: '';
75
+ position: absolute;
76
+ top: 0;
77
+ left: 0;
78
+ bottom: 0;
79
+ border-right: 3px solid $themeColor;
80
+ transform: scaleY(1);
81
+ opacity: 1;
82
+ transition: transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1),
83
+ opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1),
84
+ -webkit-transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
85
+ }
86
+ }
87
+
88
+ .#{$ns}Nav-Menu {
89
+ --Menu-width--collapsed: var(--Layout-aside-width-collapsed);
90
+ --Menu-fontSize: var(--Nav-item-fontSize);
91
+ --Menu-fontSize--collapsed: var(--Nav-item-collapsed-fontSize);
92
+ --Menu-fontWeight: var(--Nav-item-fontWeight);
93
+ --Menu-fontColor-onDisabled: var(--Nav-item-fontColor-onDisabled);
94
+ --Menu-item-height--vertical: #{px2rem(40px)};
95
+ --Menu-item-height--horizontal: var(--Nav-Item-height--horizontal);
96
+ --Menu-Submenu-title-paddingX: var(--Layout-paddingX);
97
+ --Menu-Submenu-item-paddingX: var(--Nav-Item-Badge-paddingRight);
98
+
99
+ --Menu-icon-size: var(--Layout-icon-size);
100
+
101
+ --Menu-light-backgroundColor: var(--Layout-light-backgroundColor);
102
+ --Menu-light-backgroundColor-onHover: var(--Layout-light-bgColor-onHover);
103
+ --Menu-light-fontColor: var(--Layout-light-fontColor);
104
+ --Menu-light-fontColor-onHover: var(--Layout-fontColor--onHover);
105
+ --Menu-light-ancestor-fontColor-onActive: var(--Layout-light-fontColor);
106
+ --Menu-light-fontColor-onActive: var(--Layout-fontColor--onActive);
107
+ --Menu-light-groupTitle-fontColor: #d8d8d8;
108
+ --Menu-light-selectedIndicator-color: var(--Layout-fontColor--info);
109
+
110
+ --Menu-dark-backgroundColor: var(--Layout-dark-backgroundColor);
111
+ --Menu-dark-backgroundColor-onHover: var(--Layout-fontColor--info);
112
+ --Menu-dark-fontColor: var(--Layout-dark-fontColor);
113
+ --Menu-dark-fontColor-onHover: var(--Layout-fontColor--onHover);
114
+ --Menu-dark-ancestor-fontColor-onActive: var(--Layout-fontColor--onActive);
115
+ --Menu-dark-fontColor-onActive: var(--Layout-dark-fontColor);
116
+ --Menu-dark-groupTitle-fontColor: #d8d8d8;
117
+ --Menu-dark-selectedIndicator-color: var(--Layout-dark-selected-color);
118
+
119
+ outline: none;
120
+ margin-bottom: 0;
121
+ margin-top: 0;
122
+ padding-left: 0; // Override default ul/ol
123
+ padding-right: 0; // Override default ul/ol in RTL direction
124
+ list-style: none;
125
+ color: var(--Menu-light-fontColor);
126
+ background-color: var(--Menu-light-backgroundColor);
127
+
128
+ &.#{$ns}Nav-Menu-dark {
129
+ color: var(--Menu-dark-fontColor);
130
+ background-color: var(--Menu-dark-backgroundColor);
131
+ }
132
+
133
+ &.#{$ns}Nav-Menu-light {
134
+ color: var(--Menu-light-fontColor);
135
+ background-color: var(--Menu-light-backgroundColor);
136
+ }
137
+
138
+ &-horizontal {
139
+ display: flex;
140
+ flex-wrap: nowrap;
141
+ }
142
+
143
+ &-submenu {
144
+ &-hidden {
145
+ display: none;
146
+ }
147
+ }
148
+
149
+ &-overflow-item {
150
+ flex: none;
151
+ }
152
+
153
+ &-rtl {
154
+ direction: rtl;
155
+ }
156
+
157
+ &-hidden {
158
+ display: none;
159
+ }
160
+
161
+ &-collapse {
162
+ overflow: hidden;
163
+ transition: height 0.3s ease-out;
164
+ }
165
+
166
+ &-collapsed {
167
+ width: var(--Menu-width--collapsed);
168
+ }
169
+
170
+ &-disabled {
171
+ cursor: not-allowed;
172
+ }
173
+
174
+ &-root.#{$ns}Nav-Menu-collapsed {
175
+ .#{$ns}Nav-Menu-item {
176
+ padding: 0;
177
+ text-align: center;
178
+ }
179
+ }
180
+
181
+ &-item-link {
182
+ display: block;
183
+ height: var(--Nav-Item-height);
184
+ flex-grow: 1;
185
+ }
186
+
187
+ &-item-divider {
188
+ border-bottom: 1px solid #e6e6e8;
189
+
190
+ &-dark {
191
+ border-bottom: 1px solid #3a3e47;
192
+ }
193
+ }
194
+
195
+ &-item-icon {
196
+ margin-right: var(--gap-sm);
197
+ font-size: var(--Menu-icon-size);
198
+ width: var(--Menu-icon-size);
199
+ color: var(--Menu-light-fontColor);
200
+ display: inline-block;
201
+ line-height: var(--Menu-item-height--vertical);
202
+ position: relative;
203
+ top: 1.5px;
204
+
205
+ img {
206
+ height: var(--Tabs-linkFontSize);
207
+ vertical-align: middle;
208
+ }
209
+
210
+ &-collapsed {
211
+ font-size: var(--Menu-fontSize--collapsed);
212
+ margin-right: 0;
213
+ }
214
+
215
+ &-svg {
216
+ &-collapsed {
217
+ font-size: var(--Menu-fontSize--collapsed);
218
+ margin-right: 0;
219
+ height: var(--Menu-item-height--vertical);
220
+ }
221
+ }
222
+
223
+ .#{$ns}Nav-Menu-dark & {
224
+ color: var(--Menu-dark-fontColor);
225
+ }
226
+
227
+ .#{$ns}Nav-Menu-light & {
228
+ color: var(--Menu-light-fontColor);
229
+ }
230
+ }
231
+
232
+ &-item-label {
233
+ opacity: 0.95;
234
+ font-size: var(--Menu-fontSize);
235
+ color: var(--Menu-light-fontColor);
236
+ font-weight: var(--Menu-fontWeight);
237
+ padding: 0;
238
+ text-align: left;
239
+ display: inline-block;
240
+ max-width: var(--Menu-width);
241
+ white-space: nowrap;
242
+ overflow: hidden;
243
+ text-overflow: ellipsis;
244
+ vertical-align: middle;
245
+ user-select: none;
246
+
247
+ &-collapsed {
248
+ font-size: var(--Menu-fontSize--collapsed);
249
+ font-weight: 600;
250
+ }
251
+
252
+ .#{$ns}Nav-Menu-dark & {
253
+ color: var(--Menu-dark-fontColor);
254
+ }
255
+
256
+ .#{$ns}Nav-Menu-light & {
257
+ color: var(--Menu-light-fontColor);
258
+ }
259
+ }
260
+
261
+ &-item-dragBar {
262
+ color: var(--Nav-Item-Drag-color);
263
+ position: absolute;
264
+ left: 0;
265
+ visibility: hidden;
266
+ }
267
+
268
+ &-item-group-list {
269
+ margin: 0;
270
+ padding: 0;
271
+ }
272
+
273
+ &-item-group-title {
274
+ color: var(--Menu-light-groupTitle-fontColor);
275
+ line-height: 1.5;
276
+ padding: 8px 10px;
277
+ border-bottom: 1px solid #dedede;
278
+
279
+ &.#{$ns}Nav-Menu-dark {
280
+ color: var(--Menu-dark-groupTitle-fontColor);
281
+ }
282
+
283
+ &.#{$ns}Nav-Menu-light {
284
+ color: var(--Menu-light-groupTitle-fontColor);
285
+ }
286
+ }
287
+
288
+ &-item-active,
289
+ &-submenu-active {
290
+ background-color: var(--Menu-light-backgroundColor);
291
+ color: var(--Menu-light-fontColor-onActive);
292
+
293
+ .#{$ns}Nav-Menu-dark & {
294
+ background-color: var(--Menu-dark-backgroundColor);
295
+ color: var(--Menu-dark-fontColor-onActive);
296
+ }
297
+
298
+ .#{$ns}Nav-Menu-light & {
299
+ background-color: var(--Menu-light-backgroundColor);
300
+ color: var(--Menu-light-fontColor-onActive);
301
+ }
302
+ }
303
+
304
+ &-item-selected {
305
+ background-color: var(--Menu-light-backgroundColor);
306
+ // fix chrome render bug
307
+ transform: translateZ(0);
308
+
309
+ .#{$ns}Nav-Menu-item-icon,
310
+ .#{$ns}Nav-Menu-item-label {
311
+ color: var(--Menu-light-fontColor-onActive) !important;
312
+ }
313
+
314
+ &.#{$ns}Nav-Menu-dark {
315
+ background-color: var(--Menu-dark-backgroundColor-onHover);
316
+
317
+ .#{$ns}Nav-Menu-item-icon,
318
+ .#{$ns}Menu-item-label {
319
+ color: var(--Menu-dark-fontColor-onActive) !important;
320
+ }
321
+ }
322
+
323
+ &.#{$ns}Nav-Menu-light {
324
+ background-color: var(--Menu-light-backgroundColor-onHover);
325
+
326
+ .#{$ns}Nav-Menu-item-icon,
327
+ .#{$ns}Nav-Menu-item-label {
328
+ color: var(--Menu-light-fontColor-onActive) !important;
329
+ }
330
+ }
331
+ }
332
+
333
+ &-item,
334
+ &-submenu {
335
+ .#{$ns}Badge {
336
+ position: static;
337
+ }
338
+ .#{$ns}Nav-Menu-item-wrap {
339
+ display: flex;
340
+ justify-content: space-between;
341
+ }
342
+ }
343
+
344
+ &-item-extra {
345
+ position: relative;
346
+ }
347
+
348
+ &-inline {
349
+ .#{$ns}Nav-Menu-item-selected {
350
+ background-color: var(--Menu-light-backgroundColor-onHover);
351
+ @include selected-indicator(var(--Menu-light-selectedIndicator-color));
352
+
353
+ .#{$ns}Nav-Menu-item-icon,
354
+ .#{$ns}Nav-Menu-item-label {
355
+ color: var(--Menu-light-fontColor-onActive) !important;
356
+ }
357
+ }
358
+
359
+ &.#{$ns}Nav-Menu-dark {
360
+ .#{$ns}Nav-Menu-item-selected {
361
+ background-color: var(--Menu-dark-backgroundColor-onHover);
362
+ @include selected-indicator(var(--Menu-dark-selectedIndicator-color));
363
+
364
+ .#{$ns}Nav-Menu-item-icon,
365
+ .#{$ns}Nav-Menu-item-label {
366
+ color: var(--Menu-dark-fontColor-onActive) !important;
367
+ }
368
+ }
369
+ }
370
+
371
+ &.#{$ns}Nav-Menu-light {
372
+ .#{$ns}Nav-Menu-item-selected {
373
+ background-color: var(--Menu-light-backgroundColor-onHover);
374
+ @include selected-indicator(var(--Menu-light-selectedIndicator-color));
375
+
376
+ .#{$ns}Nav-Menu-item-icon,
377
+ .#{$ns}Nav-Menu-item-label {
378
+ color: var(--Menu-light-fontColor-onActive) !important;
379
+ }
380
+ }
381
+ }
382
+ }
383
+
384
+ &-root.#{$ns}Nav-Menu-vertical {
385
+ > .#{$ns}Nav-Menu-item-selected {
386
+ background-color: var(--Menu-light-backgroundColor-onHover);
387
+ @include selected-indicator(var(--Menu-light-selectedIndicator-color));
388
+
389
+ .#{$ns}Nav-Menu-item-icon,
390
+ .#{$ns}Nav-Menu-item-label {
391
+ color: var(--Menu-light-fontColor-onActive);
392
+ }
393
+ }
394
+
395
+ &.#{$ns}Nav-Menu-dark {
396
+ > .#{$ns}Nav-Menu-item-selected {
397
+ background-color: var(--Menu-dark-backgroundColor-onHover);
398
+ @include selected-indicator(var(--Menu-dark-selectedIndicator-color));
399
+
400
+ .#{$ns}Nav-Menu-item-icon,
401
+ .#{$ns}Nav-Menu-item-label {
402
+ color: var(--Menu-dark-fontColor-onActive);
403
+ }
404
+ }
405
+
406
+ > .#{$ns}Nav-Menu-submenu-selected {
407
+ & > .#{$ns}Nav-Menu-submenu-title {
408
+ background-color: var(--Menu-dark-backgroundColor-onHover);
409
+ @include selected-indicator(var(--Menu-dark-selectedIndicator-color));
410
+ }
411
+
412
+ .#{$ns}Nav-Menu-item-icon,
413
+ .#{$ns}Nav-Menu-item-label {
414
+ color: var(--Menu-dark-fontColor-onActive);
415
+ }
416
+ }
417
+ }
418
+
419
+ &.#{$ns}Nav-Menu-light {
420
+ > .#{$ns}Nav-Menu-item-selected {
421
+ background-color: var(--Menu-light-backgroundColor-onHover);
422
+ @include selected-indicator(var(--Menu-light-selectedIndicator-color));
423
+
424
+ .#{$ns}Nav-Menu-item-icon,
425
+ .#{$ns}Nav-Menu-item-label {
426
+ color: var(--Menu-light-fontColor-onActive);
427
+ }
428
+ }
429
+
430
+ > .#{$ns}Nav-Menu-submenu-selected {
431
+ & > .#{$ns}Nav-Menu-submenu-title {
432
+ background-color: var(--Menu-light-backgroundColor-onHover);
433
+ @include selected-indicator(
434
+ var(--Menu-light-selectedIndicator-color)
435
+ );
436
+ }
437
+
438
+ .#{$ns}Nav-Menu-item-icon,
439
+ .#{$ns}Nav-Menu-item-label {
440
+ color: var(--Menu-light-fontColor-onActive);
441
+ }
442
+ }
443
+ }
444
+ }
445
+
446
+ .#{$ns}Nav-Menu-dark {
447
+ .#{$ns}Nav-Menu-submenu-selected {
448
+ background-color: transparent;
449
+
450
+ & > .#{$ns}Nav-Menu-submenu-title {
451
+ color: var(--Menu-dark-ancestor-fontColor-onActive);
452
+
453
+ & > .#{$ns}Nav-Menu-item-label,
454
+ & > .#{$ns}Nav-Menu-item-icon {
455
+ color: var(--Menu-dark-ancestor-fontColor-onActive);
456
+ }
457
+
458
+ .#{$ns}Nav-Menu-item-label,
459
+ .#{$ns}Nav-Menu-item-icon {
460
+ color: var(--Menu-dark-ancestor-fontColor-onActive);
461
+ }
462
+ }
463
+ }
464
+ }
465
+
466
+ .#{$ns}Nav-Menu-light {
467
+ .#{$ns}Nav-Menu-submenu-selected {
468
+ & > .#{$ns}Nav-Menu-submenu-title {
469
+ color: var(--Menu-light-ancestor-fontColor-onActive);
470
+
471
+ & > .#{$ns}Nav-Menu-item-label,
472
+ & > .#{$ns}Nav-Menu-item-icon {
473
+ color: var(--Menu-light-ancestor-fontColor-onActive);
474
+ }
475
+
476
+ .#{$ns}Nav-Menu-item-label,
477
+ .#{$ns}Nav-Menu-item-icon {
478
+ color: var(--Menu-light-ancestor-fontColor-onActive);
479
+ }
480
+ }
481
+ }
482
+ }
483
+
484
+ & > li.#{$ns}Nav-Menu-submenu {
485
+ padding: 0;
486
+ }
487
+
488
+ &-horizontal.#{$ns}Nav-Menu-sub,
489
+ &-vertical.#{$ns}Nav-Menu-sub,
490
+ &-vertical-left.#{$ns}Nav-Menu-sub,
491
+ &-vertical-right.#{$ns}Nav-Menu-sub {
492
+ min-width: 160px;
493
+ margin-top: 0;
494
+ border-radius: 2px;
495
+ box-shadow: 0 4px 5px 0 rgba(21, 26, 38, 0.06),
496
+ 0 1px 10px 0 rgba(21, 26, 38, 0.05), 0 2px 4px -1px rgba(21, 26, 38, 0.04);
497
+
498
+ .#{$ns}Nav-Menu-item-selected {
499
+ .#{$ns}Nav-Menu-item-icon,
500
+ .#{$ns}Nav-Menu-item-label {
501
+ color: var(--Menu-light-fontColor-onActive);
502
+ }
503
+ }
504
+
505
+ .#{$ns}Nav-Menu-dark & {
506
+ .#{$ns}Nav-Menu-item-selected {
507
+ .#{$ns}Nav-Menu-item-icon,
508
+ .#{$ns}Nav-Menu-item-label {
509
+ color: var(--Menu-dark-fontColor-onActive);
510
+ }
511
+ }
512
+ }
513
+
514
+ .#{$ns}Nav-Menu-light & {
515
+ .#{$ns}Nav-Menu-item-selected {
516
+ .#{$ns}Nav-Menu-item-icon,
517
+ .#{$ns}Nav-Menu-item-label {
518
+ color: var(--Menu-light-fontColor-onActive);
519
+ }
520
+ }
521
+ }
522
+ }
523
+
524
+ &-item,
525
+ &-submenu-title {
526
+ margin: 0;
527
+ position: relative;
528
+ padding: 0;
529
+ line-height: var(--Nav-Item-height);
530
+ display: block;
531
+ white-space: nowrap;
532
+ overflow: hidden;
533
+ text-overflow: ellipsis;
534
+ color: var(--Menu-light-fontColor);
535
+
536
+ &:hover {
537
+ .#{$ns}Nav-Menu-item-label,
538
+ .#{$ns}Nav-Menu-item-icon {
539
+ color: var(--Menu-light-fontColor-onHover);
540
+ }
541
+
542
+ .#{$ns}Nav-Menu-item-dragBar {
543
+ visibility: visible;
544
+ }
545
+ }
546
+
547
+ .#{$ns}Nav-Menu-dark & {
548
+ color: var(--Menu-dark-fontColor);
549
+ background-color: var(--Menu-dark-backgroundColor);
550
+
551
+ &:hover {
552
+ .#{$ns}Nav-Menu-item-label,
553
+ .#{$ns}Nav-Menu-item-icon {
554
+ color: var(--Menu-dark-fontColor-onHover);
555
+ }
556
+ }
557
+ }
558
+
559
+ .#{$ns}Nav-Menu-light & {
560
+ color: var(--Menu-light-fontColor);
561
+ background-color: var(--Menu-light-backgroundColor);
562
+
563
+ &:hover {
564
+ .#{$ns}Nav-Menu-item-label,
565
+ .#{$ns}Nav-Menu-item-icon {
566
+ color: var(--Menu-light-fontColor-onHover);
567
+ }
568
+ }
569
+ }
570
+
571
+ .#{$ns}Nav-Menu-rtl & {
572
+ padding: 7px 16px 7px 7px;
573
+ }
574
+
575
+ // Disabled state sets text to gray and nukes hover/tab effects
576
+ &.#{$ns}Nav-Menu-item-disabled,
577
+ &.#{$ns}Nav-Menu-submenu-disabled {
578
+ color: #777 !important;
579
+ }
580
+ }
581
+
582
+ &-collapsed > &-item,
583
+ &-collapsed > &-submenu-title,
584
+ &-collapsed > .#{$ns}Nav-Menu-submenu > &-submenu-title {
585
+ text-overflow: initial;
586
+ }
587
+
588
+ & > &-item-divider {
589
+ height: 1px;
590
+ margin: 0 16px 4px 16px;
591
+ overflow: hidden;
592
+ padding: 0;
593
+ line-height: 0;
594
+ background-color: #ebebeb;
595
+ }
596
+
597
+ &-submenu {
598
+ &-popup {
599
+ position: absolute;
600
+ z-index: 1500;
601
+
602
+ .#{$ns}Nav-Menu-item {
603
+ padding: 0 var(--Menu-Submenu-item-paddingX);
604
+ }
605
+ }
606
+
607
+ > .#{$ns}Nav-Menu {
608
+ background-color: var(--Menu-light-backgroundColor);
609
+ }
610
+
611
+ &.#{$ns}Nav-Menu-submenu-dark > .#{$ns}Nav-Menu {
612
+ background-color: var(--Menu-dark-backgroundColor);
613
+ }
614
+ }
615
+
616
+ &-submenu-popup-dark {
617
+ @include popup-dark();
618
+ }
619
+
620
+ .#{$ns}Nav-Menu-submenu-title,
621
+ .#{$ns}Nav-Menu-item {
622
+ cursor: pointer;
623
+
624
+ .anticon {
625
+ width: 14px;
626
+ height: 14px;
627
+ margin-right: 8px;
628
+ top: -1px;
629
+
630
+ .#{$ns}Nav-Menu-rtl & {
631
+ margin-right: 0;
632
+ margin-left: 8px;
633
+ }
634
+ }
635
+ }
636
+
637
+ &-overflow {
638
+ &-item-rest {
639
+ .#{$ns}Nav-Menu-submenu-title {
640
+ margin: 0;
641
+ }
642
+
643
+ .#{$ns}Nav-Menu-item-icon {
644
+ display: initial;
645
+ position: static;
646
+ }
647
+ }
648
+ }
649
+
650
+ &-horizontal {
651
+ height: var(--Menu-item-height--horizontal);
652
+ background-color: var(--Menu-light-backgroundColor);
653
+ border: none;
654
+ white-space: nowrap;
655
+ overflow: hidden;
656
+ width: auto;
657
+
658
+ .#{$ns}Nav-Menu-item-tooltip-wrap {
659
+ display: inline-block;
660
+ zoom: 1;
661
+ vertical-align: middle;
662
+ }
663
+
664
+ .#{$ns}Nav-Menu-overflow-item.#{$ns}Nav-Menu-overflow-item-rest
665
+ > .#{$ns}Nav-Menu-submenu-title {
666
+ .#{$ns}Nav-Menu-overflowedIcon {
667
+ margin-right: 0;
668
+ }
669
+ }
670
+
671
+ &.#{$ns}Nav-Menu-dark {
672
+ background-color: var(--Menu-dark-backgroundColor);
673
+ }
674
+
675
+ &.#{$ns}Nav-Menu-light {
676
+ background-color: var(--Menu-light-backgroundColor);
677
+ }
678
+
679
+ & > .#{$ns}Nav-Menu-item-tooltip-wrap > .#{$ns}Nav-Menu-item,
680
+ & > .#{$ns}Nav-Menu-submenu > .#{$ns}Nav-Menu-submenu-title {
681
+ padding: 0 20px;
682
+ height: var(--Menu-item-height--horizontal);
683
+
684
+ .#{$ns}Nav-Menu-item-link {
685
+ height: var(--Menu-item-height--horizontal);
686
+ }
687
+
688
+ .#{$ns}Nav-Menu-item-icon,
689
+ .#{$ns}Nav-Menu-item-label {
690
+ line-height: var(--Menu-item-height--horizontal);
691
+ }
692
+
693
+ .#{$ns}Nav-Menu-item-label {
694
+ padding: 0;
695
+ top: 0;
696
+ }
697
+ }
698
+
699
+ .#{$ns}Nav-Menu-item.#{$ns}Nav-Menu-item-selected {
700
+ &:after {
701
+ content: ' ';
702
+ width: 100%;
703
+ height: 2px;
704
+ background: var(--Menu-dark-ancestor-fontColor-onActive);
705
+ position: absolute;
706
+ left: 0;
707
+ bottom: 0;
708
+ }
709
+ }
710
+
711
+ & > .#{$ns}Nav-Menu-submenu,
712
+ & > .#{$ns}Nav-Menu-item {
713
+ margin: 0;
714
+ border-bottom: 2px solid transparent;
715
+ display: inline-block;
716
+ vertical-align: bottom;
717
+
718
+ &-active {
719
+ background-color: var(--Menu-light-backgroundColor);
720
+ color: var(--Menu-light-fontColor-onActive);
721
+ }
722
+
723
+ &-selected {
724
+ border-bottom: 2px solid var(--Menu-light-fontColor-onActive);
725
+ background-color: transparent;
726
+
727
+ .#{$ns}Nav-Menu-item-icon,
728
+ .#{$ns}Nav-Menu-item-label {
729
+ color: var(--Menu-light-fontColor-onActive);
730
+ }
731
+ }
732
+ }
733
+
734
+ &:after {
735
+ content: '\20';
736
+ display: block;
737
+ height: 0;
738
+ clear: both;
739
+ }
740
+
741
+ .#{$ns}Nav-Menu-submenu-arrow {
742
+ display: inline-block;
743
+ font-size: px2rem(9px);
744
+ vertical-align: baseline;
745
+ text-align: center;
746
+ text-transform: none;
747
+ text-rendering: auto;
748
+ line-height: px2rem(20px);
749
+ margin-left: 5px;
750
+ color: var(--Menu-light-fontColor);
751
+
752
+ & > svg {
753
+ text-align: center;
754
+ vertical-align: middle;
755
+ }
756
+ }
757
+
758
+ &.#{$ns}Nav-Menu-dark {
759
+ & > .#{$ns}Nav-Menu-submenu,
760
+ & > .#{$ns}Nav-Menu-item {
761
+ &-active {
762
+ background-color: var(--Menu-dark-backgroundColor);
763
+ color: var(--Menu-dark-fontColor-onActive);
764
+ }
765
+
766
+ &-selected {
767
+ border-bottom: 2px solid var(--Menu-dark-selectedIndicator-color);
768
+
769
+ .#{$ns}Nav-Menu-item-icon,
770
+ .#{$ns}Nav-Menu-item-label {
771
+ color: var(--Menu-dark-fontColor-onActive);
772
+ }
773
+ }
774
+ }
775
+
776
+ .#{$ns}Nav-Menu-submenu-arrow {
777
+ color: var(--Menu-dark-fontColor);
778
+ }
779
+ }
780
+
781
+ &.#{$ns}Nav-Menu-light {
782
+ & > .#{$ns}Nav-Menu-submenu,
783
+ & > .#{$ns}Nav-Menu-item {
784
+ &-active {
785
+ background-color: var(--Menu-light-backgroundColor);
786
+ color: var(--Menu-light-fontColor-onActive);
787
+ }
788
+
789
+ &-selected {
790
+ border-bottom: 2px solid var(--Menu-light-selectedIndicator-color);
791
+
792
+ .#{$ns}Nav-Menu-item-icon,
793
+ .#{$ns}Nav-Menu-item-label {
794
+ color: var(--Menu-light-fontColor-onActive);
795
+ }
796
+ }
797
+ }
798
+
799
+ .#{$ns}Nav-Menu-submenu-arrow {
800
+ color: var(--Menu-light-fontColor);
801
+ }
802
+ }
803
+ }
804
+
805
+ &-vertical,
806
+ &-vertical-left,
807
+ &-vertical-right,
808
+ &-inline {
809
+ & > .#{$ns}Nav-Menu-item,
810
+ & > .#{$ns}Nav-Menu-submenu > .#{$ns}Nav-Menu-submenu-title {
811
+ .#{$ns}Nav-Menu-rtl & {
812
+ padding: 12px 24px 12px 8px;
813
+ }
814
+ }
815
+
816
+ .#{$ns}Nav-Menu-submenu-arrow {
817
+ display: inline-block;
818
+ font-size: px2rem(9px);
819
+ vertical-align: baseline;
820
+ text-align: center;
821
+ text-transform: none;
822
+ text-rendering: auto;
823
+ position: absolute;
824
+ right: 0;
825
+ top: 0;
826
+ width: var(--Menu-Submenu-title-paddingX);
827
+ line-height: var(--Menu-item-height--vertical);
828
+ transform: rotate(-90deg);
829
+
830
+ & > svg {
831
+ text-align: center;
832
+ vertical-align: middle;
833
+ }
834
+
835
+ .#{$ns}Nav-Menu-rtl &,
836
+ .#{$ns}Nav-Menu-submenu-rtl & {
837
+ right: auto;
838
+ left: 16px;
839
+ }
840
+ }
841
+
842
+ &.#{$ns}Nav-Menu-expand-before {
843
+ .#{$ns}Nav-Menu-submenu-title {
844
+ .#{$ns}Nav-Menu-item-wrap {
845
+ padding-right: 0;
846
+ padding-left: var(--Menu-Submenu-title-paddingX);
847
+ }
848
+ }
849
+
850
+ .#{$ns}Nav-Menu-submenu-arrow {
851
+ right: auto;
852
+ }
853
+ }
854
+
855
+ &.#{$ns}Nav-Menu-dark {
856
+ .#{$ns}Nav-Menu-submenu-arrow {
857
+ color: var(--Menu-dark-fontColor);
858
+ }
859
+ }
860
+
861
+ &.#{$ns}Nav-Menu-light {
862
+ .#{$ns}Nav-Menu-submenu-arrow {
863
+ color: var(--Menu-light-fontColor);
864
+ }
865
+ }
866
+ }
867
+
868
+ &-vertical-right,
869
+ &-horizontal {
870
+ .#{$ns}Nav-Menu-item {
871
+ padding: 0 var(--Menu-Submenu-title-paddingX) 0
872
+ calc(var(--Menu-Submenu-title-paddingX) - 1px);
873
+ }
874
+ }
875
+
876
+ &-inline,
877
+ &-horizontal {
878
+ .#{$ns}Nav-Menu-submenu-arrow {
879
+ cursor: pointer;
880
+ transition: transform 0.3s;
881
+ transform: rotate(0deg);
882
+ }
883
+
884
+ & .#{$ns}Nav-Menu-submenu-open > .#{$ns}Nav-Menu-submenu-title {
885
+ .#{$ns}Nav-Menu-submenu-arrow {
886
+ transform: rotate(180deg);
887
+ }
888
+ }
889
+ }
890
+
891
+ &-collapsed {
892
+ .#{$ns}Nav-Menu-item {
893
+ &-wrap {
894
+ overflow: hidden;
895
+ }
896
+ }
897
+
898
+ // .#{$ns}Nav-Menu-submenu {
899
+ // .#{$ns}Nav-Menu-submenu-title {
900
+ // padding: 0 var(--Menu-Submenu-title-paddingX) 0
901
+ // calc(var(--Menu-Submenu-title-paddingX) - 1px);
902
+ // text-align: center;
903
+ // }
904
+ // }
905
+
906
+ .#{$ns}Nav-Menu-submenu-vertical.#{$ns}Nav-Menu-submenu {
907
+ .#{$ns}Nav-Menu-submenu-title {
908
+ padding: 0 var(--Menu-Submenu-title-paddingX) 0
909
+ calc(var(--Menu-Submenu-title-paddingX) - 1px);
910
+ text-align: center;
911
+ }
912
+ }
913
+
914
+ .#{$ns}Nav-Menu-submenu-arrow {
915
+ display: none !important;
916
+ }
917
+ }
918
+
919
+ &-submenu-vertical.#{$ns}Nav-Menu-submenu,
920
+ &-submenu-vertical-left.#{$ns}Nav-Menu-submenu,
921
+ &-submenu-vertical-right.#{$ns}Nav-Menu-submenu {
922
+ padding: 0;
923
+
924
+ .#{$ns}Nav-Menu-submenu-title {
925
+ padding: 0 var(--Menu-Submenu-item-paddingX);
926
+ }
927
+
928
+ .#{$ns}Nav-Menu-submenu-rtl & {
929
+ direction: rtl;
930
+ }
931
+ }
932
+
933
+ &-sub.#{$ns}Nav-Menu-inline {
934
+ padding: 0;
935
+ border: none;
936
+ border-radius: 0;
937
+ box-shadow: none;
938
+
939
+ & > .#{$ns}Nav-Menu-item,
940
+ & > .#{$ns}Nav-Menu-submenu > .#{$ns}Nav-Menu-submenu-title {
941
+ padding-top: 0;
942
+ padding-bottom: 0;
943
+ padding-right: 0;
944
+ display: block;
945
+ white-space: nowrap;
946
+ overflow: hidden;
947
+ text-overflow: ellipsis;
948
+
949
+ .#{$ns}Nav-Menu-rtl & {
950
+ padding-left: 0;
951
+ }
952
+ }
953
+
954
+ &
955
+ > .#{$ns}Nav-Menu-submenu.#{$ns}Nav-Menu-submenu-dark.#{$ns}Nav-Menu-submenu-selected
956
+ > .#{$ns}Nav-Menu-submenu-title {
957
+ color: var(--Menu-dark-ancestor-fontColor-onActive);
958
+
959
+ .#{$ns}Nav-Menu-item-label,
960
+ .#{$ns}Nav-Menu-item-icon {
961
+ color: var(--Menu-dark-ancestor-fontColor-onActive);
962
+ }
963
+ }
964
+ }
965
+
966
+ @mixin item-disabled {
967
+ cursor: not-allowed;
968
+ color: var(--Menu-fontColor-onDisabled) !important;
969
+ pointer-events: none;
970
+ }
971
+
972
+ .#{$ns}Nav-Menu-item-disabled,
973
+ .#{$ns}Nav-Menu-submenu-disabled {
974
+ @include item-disabled();
975
+
976
+ &.#{$ns}Nav-Menu-item {
977
+ @include item-disabled();
978
+
979
+ .#{$ns}Nav-Menu-item-link {
980
+ @include item-disabled();
981
+ }
982
+ }
983
+
984
+ .#{$ns}Nav-Menu-submenu-title {
985
+ @include item-disabled();
986
+ & > .#{$ns}Nav-Menu-item-icon,
987
+ & > .#{$ns}Nav-Menu-item-label,
988
+ & > .#{$ns}Nav-Menu-submenu-arrow {
989
+ @include item-disabled();
990
+ }
991
+ }
992
+
993
+ .#{$ns}Nav-Menu-item-icon,
994
+ .#{$ns}Nav-Menu-item-label,
995
+ .#{$ns}Nav-Menu-submenu-arrow {
996
+ @include item-disabled();
997
+ }
998
+ }
999
+
1000
+ @mixin effect {
1001
+ animation-duration: 0.3s;
1002
+ animation-fill-mode: both;
1003
+ transform-origin: 0 0;
1004
+ }
1005
+
1006
+ &-open {
1007
+ &-slide-up-enter,
1008
+ &-slide-up-appear {
1009
+ @include effect;
1010
+ opacity: 0;
1011
+ animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
1012
+ animation-play-state: paused;
1013
+ }
1014
+
1015
+ &-slide-up-leave {
1016
+ @include effect;
1017
+ opacity: 1;
1018
+ animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
1019
+ animation-play-state: paused;
1020
+ }
1021
+
1022
+ &-slide-up-enter &-slide-up-enter-active,
1023
+ &-slide-up-appear &-slide-up-appear-active {
1024
+ animation-name: rcMenuOpenSlideUpIn;
1025
+ animation-play-state: running;
1026
+ }
1027
+
1028
+ &-slide-up-leave &-slide-up-leave-active {
1029
+ animation-name: rcMenuOpenSlideUpOut;
1030
+ animation-play-state: running;
1031
+ }
1032
+
1033
+ @keyframes rcMenuOpenSlideUpIn {
1034
+ 0% {
1035
+ opacity: 0;
1036
+ transform-origin: 0% 0%;
1037
+ transform: scaleY(0);
1038
+ }
1039
+ 100% {
1040
+ opacity: 1;
1041
+ transform-origin: 0% 0%;
1042
+ transform: scaleY(1);
1043
+ }
1044
+ }
1045
+ @keyframes rcMenuOpenSlideUpOut {
1046
+ 0% {
1047
+ opacity: 1;
1048
+ transform-origin: 0% 0%;
1049
+ transform: scaleY(1);
1050
+ }
1051
+ 100% {
1052
+ opacity: 0;
1053
+ transform-origin: 0% 0%;
1054
+ transform: scaleY(0);
1055
+ }
1056
+ }
1057
+
1058
+ &-zoom-enter,
1059
+ &-zoom-appear {
1060
+ opacity: 0;
1061
+ @include effect;
1062
+ animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
1063
+ animation-play-state: paused;
1064
+ }
1065
+
1066
+ &-zoom-leave {
1067
+ @include effect;
1068
+ animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
1069
+ animation-play-state: paused;
1070
+ }
1071
+
1072
+ &-zoom-enter &-zoom-enter-active,
1073
+ &-zoom-appear &-zoom-appear-active {
1074
+ animation-name: rcMenuOpenZoomIn;
1075
+ animation-play-state: running;
1076
+ }
1077
+
1078
+ &-zoom-leave &-zoom-leave-active {
1079
+ animation-name: rcMenuOpenZoomOut;
1080
+ animation-play-state: running;
1081
+ }
1082
+
1083
+ &-zoom-enter,
1084
+ &-zoom-appear,
1085
+ &-zoom-leave {
1086
+ .#{$ns}Nav-Menu-submenu-rtl &,
1087
+ .#{$ns}Nav-Menu-submenu-rtl & {
1088
+ transform-origin: top right !important;
1089
+ }
1090
+ }
1091
+
1092
+ @keyframes rcMenuOpenZoomIn {
1093
+ 0% {
1094
+ opacity: 0;
1095
+ transform: scale(0, 0);
1096
+ }
1097
+ 100% {
1098
+ opacity: 1;
1099
+ transform: scale(1, 1);
1100
+ }
1101
+ }
1102
+ @keyframes rcMenuOpenZoomOut {
1103
+ 0% {
1104
+ transform: scale(1, 1);
1105
+ }
1106
+ 100% {
1107
+ opacity: 0;
1108
+ transform: scale(0, 0);
1109
+ }
1110
+ }
1111
+ }
1112
+ }
1113
+
1114
+ .#{$ns}Nav-Menu-overflow-menu-dark {
1115
+ @include popup-dark();
1116
+ }
1117
+
1118
+ .#{$ns}Nav-Menu-item-tooltip {
1119
+ font-size: var(--Layout-tooltip-fontSize);
1120
+ color: var(--Layout-light-fontColor);
1121
+ background: var(--Layout-light-backgroundColor);
1122
+ border: none;
1123
+ border-radius: var(--Tooltip--attr-borderRadius);
1124
+ box-shadow: 0px 4px 6px 0px rgb(8 14 26 / 6%),
1125
+ 0px 1px 10px 0px rgb(8 14 26 / 5%), 0px 2px 4px -1px rgb(8 14 26 / 4%);
1126
+
1127
+ .#{$ns}Tooltip-body {
1128
+ &,
1129
+ span {
1130
+ color: var(--Layout-light-fontColor);
1131
+ }
1132
+ }
1133
+
1134
+ .#{$ns}Tooltip-arrow {
1135
+ &:after {
1136
+ left: px2rem(4px);
1137
+ }
1138
+ &:before {
1139
+ display: none;
1140
+ }
1141
+ }
1142
+
1143
+ &.#{$ns}Nav-Menu-item-tooltip-dark {
1144
+ background: var(--Layout-dark-tooltip-backgroundColor);
1145
+
1146
+ .#{$ns}Tooltip-body {
1147
+ &,
1148
+ span {
1149
+ color: var(--Layout-dark-fontColor);
1150
+ }
1151
+ }
1152
+ }
1153
+ }