@hi-ui/menu 4.3.1 → 5.0.0-alpha.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.
- package/CHANGELOG.md +83 -0
- package/lib/cjs/EnterIcon.js +44 -0
- package/lib/cjs/GroupMenu.js +96 -0
- package/lib/cjs/Menu.js +25 -11
- package/lib/cjs/MenuItem.js +4 -3
- package/lib/cjs/MenuSearch.js +322 -0
- package/lib/cjs/SideMenu.js +139 -0
- package/lib/cjs/button/lib/esm/Button.js +109 -0
- package/lib/cjs/button/lib/esm/ButtonGroup.js +56 -0
- package/lib/cjs/button/lib/esm/styles/index.scss.js +35 -0
- package/lib/cjs/index.js +8 -0
- package/lib/cjs/styles/index.scss.js +1 -1
- package/lib/cjs/util.js +95 -1
- package/lib/esm/EnterIcon.js +32 -0
- package/lib/esm/GroupMenu.js +83 -0
- package/lib/esm/Menu.js +26 -12
- package/lib/esm/MenuItem.js +4 -3
- package/lib/esm/MenuSearch.js +305 -0
- package/lib/esm/SideMenu.js +124 -0
- package/lib/esm/button/lib/esm/Button.js +97 -0
- package/lib/esm/button/lib/esm/ButtonGroup.js +44 -0
- package/lib/esm/button/lib/esm/styles/index.scss.js +23 -0
- package/lib/esm/index.js +3 -0
- package/lib/esm/styles/index.scss.js +1 -1
- package/lib/esm/util.js +95 -2
- package/lib/types/EnterIcon.d.ts +1 -0
- package/lib/types/GroupMenu.d.ts +29 -0
- package/lib/types/Menu.d.ts +4 -0
- package/lib/types/MenuSearch.d.ts +37 -0
- package/lib/types/SideMenu.d.ts +58 -0
- package/lib/types/context.d.ts +2 -1
- package/lib/types/index.d.ts +3 -0
- package/lib/types/util.d.ts +16 -0
- package/package.json +27 -19
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** @LICENSE
|
|
2
|
+
* @hi-ui/menu
|
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/menu#readme
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
13
|
+
Object.defineProperty(exports, '__esModule', {
|
|
14
|
+
value: true
|
|
15
|
+
});
|
|
16
|
+
var __styleInject__ = require('@hi-ui/style-inject');
|
|
17
|
+
function _interopDefaultCompat(e) {
|
|
18
|
+
return e && _typeof(e) === 'object' && 'default' in e ? e : {
|
|
19
|
+
'default': e
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
var __styleInject____default = /*#__PURE__*/_interopDefaultCompat(__styleInject__);
|
|
23
|
+
|
|
24
|
+
/** @LICENSE
|
|
25
|
+
* @hi-ui/button
|
|
26
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/button#readme
|
|
27
|
+
*
|
|
28
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
29
|
+
*
|
|
30
|
+
* This source code is licensed under the MIT license found in the
|
|
31
|
+
* LICENSE file in the root directory of this source tree.
|
|
32
|
+
*/
|
|
33
|
+
var css_248z = ".hi-v5-button {background-color: transparent;position: relative;display: -webkit-inline-box;display: -ms-inline-flexbox;display: inline-flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;-webkit-box-sizing: border-box;box-sizing: border-box;-webkit-appearance: none;-moz-appearance: none;appearance: none;margin: 0;border: 1px solid transparent;font-weight: var(--hi-v5-text-weight-normal, 400);text-decoration: none;white-space: nowrap;-ms-touch-action: manipulation;touch-action: manipulation;-webkit-transition: background-color var(--hi-v5-motion-duration-normal, 200ms) var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1)), border-color var(--hi-v5-motion-duration-normal, 200ms) var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1)), color var(--hi-v5-motion-duration-normal, 200ms) var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1)), -webkit-box-shadow var(--hi-v5-motion-duration-fast, 150ms) var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1));transition: background-color var(--hi-v5-motion-duration-normal, 200ms) var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1)), border-color var(--hi-v5-motion-duration-normal, 200ms) var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1)), color var(--hi-v5-motion-duration-normal, 200ms) var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1)), -webkit-box-shadow var(--hi-v5-motion-duration-fast, 150ms) var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1));transition: background-color var(--hi-v5-motion-duration-normal, 200ms) var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1)), border-color var(--hi-v5-motion-duration-normal, 200ms) var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1)), box-shadow var(--hi-v5-motion-duration-fast, 150ms) var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1)), color var(--hi-v5-motion-duration-normal, 200ms) var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1));transition: background-color var(--hi-v5-motion-duration-normal, 200ms) var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1)), border-color var(--hi-v5-motion-duration-normal, 200ms) var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1)), box-shadow var(--hi-v5-motion-duration-fast, 150ms) var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1)), color var(--hi-v5-motion-duration-normal, 200ms) var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1)), -webkit-box-shadow var(--hi-v5-motion-duration-fast, 150ms) var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1));}.hi-v5-button + .hi-v5-button {-webkit-margin-start: var(--hi-v5-spacing-6, 12px);margin-inline-start: var(--hi-v5-spacing-6, 12px);}.hi-v5-button:not(.hi-v5-button--loading) {cursor: pointer;}.hi-v5-button:focus {outline: 0;z-index: 1;}.hi-v5-button--shape-square {border-radius: var(--hi-v5-border-radius-lg, 6px);}.hi-v5-button--shape-round {border-radius: var(--hi-v5-border-radius-full, 9999px);}.hi-v5-button--disabled, .hi-v5-button[disabled]:not(.hi-v5-button--loading) {cursor: not-allowed;}.hi-v5-button__icon {line-height: 1em;}.hi-v5-button--size-sm {font-size: var(--hi-v5-text-size-sm, 0.75rem);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-button--size-sm .hi-v5-button__icon {font-size: 14px;}.hi-v5-button--size-sm:not(.hi-v5-button--icon-only) .hi-v5-button__icon--prefix {-webkit-margin-end: var(--hi-v5-spacing-2, 4px);margin-inline-end: var(--hi-v5-spacing-2, 4px);}.hi-v5-button--size-sm:not(.hi-v5-button--icon-only) .hi-v5-button__icon--suffix {-webkit-margin-start: var(--hi-v5-spacing-2, 4px);margin-inline-start: var(--hi-v5-spacing-2, 4px);}.hi-v5-button--size-sm.hi-v5-button--loading:not(.hi-v5-button--icon-only) .hi-v5-button__icon--prefix {-webkit-margin-end: var(--hi-v5-spacing-2, 4px);margin-inline-end: var(--hi-v5-spacing-2, 4px);}.hi-v5-button--size-sm.hi-v5-button--loading:not(.hi-v5-button--icon-only) .hi-v5-button__icon--suffix {-webkit-margin-start: var(--hi-v5-spacing-2, 4px);margin-inline-start: var(--hi-v5-spacing-2, 4px);}.hi-v5-button--size-md {font-size: var(--hi-v5-text-size-md, 0.875rem);line-height: var(--hi-v5-text-lineheight-md, 1.375rem);}.hi-v5-button--size-md .hi-v5-button__icon {font-size: 16px;}.hi-v5-button--size-md:not(.hi-v5-button--icon-only) .hi-v5-button__icon--prefix {-webkit-margin-end: var(--hi-v5-spacing-2, 4px);margin-inline-end: var(--hi-v5-spacing-2, 4px);}.hi-v5-button--size-md:not(.hi-v5-button--icon-only) .hi-v5-button__icon--suffix {-webkit-margin-start: var(--hi-v5-spacing-2, 4px);margin-inline-start: var(--hi-v5-spacing-2, 4px);}.hi-v5-button--size-md.hi-v5-button--loading:not(.hi-v5-button--icon-only) .hi-v5-button__icon--prefix {-webkit-margin-end: var(--hi-v5-spacing-2, 4px);margin-inline-end: var(--hi-v5-spacing-2, 4px);}.hi-v5-button--size-md.hi-v5-button--loading:not(.hi-v5-button--icon-only) .hi-v5-button__icon--suffix {-webkit-margin-start: var(--hi-v5-spacing-2, 4px);margin-inline-start: var(--hi-v5-spacing-2, 4px);}.hi-v5-button--size-lg {font-size: var(--hi-v5-text-size-lg, 1rem);line-height: var(--hi-v5-text-lineheight-lg, 1.5rem);}.hi-v5-button--size-lg .hi-v5-button__icon {font-size: 20px;}.hi-v5-button--size-lg:not(.hi-v5-button--icon-only) .hi-v5-button__icon--prefix {-webkit-margin-end: var(--hi-v5-spacing-4, 8px);margin-inline-end: var(--hi-v5-spacing-4, 8px);}.hi-v5-button--size-lg:not(.hi-v5-button--icon-only) .hi-v5-button__icon--suffix {-webkit-margin-start: var(--hi-v5-spacing-4, 8px);margin-inline-start: var(--hi-v5-spacing-4, 8px);}.hi-v5-button--size-lg.hi-v5-button--loading:not(.hi-v5-button--icon-only) .hi-v5-button__icon--prefix {-webkit-margin-end: var(--hi-v5-spacing-4, 8px);margin-inline-end: var(--hi-v5-spacing-4, 8px);}.hi-v5-button--size-lg.hi-v5-button--loading:not(.hi-v5-button--icon-only) .hi-v5-button__icon--suffix {-webkit-margin-start: var(--hi-v5-spacing-4, 8px);margin-inline-start: var(--hi-v5-spacing-4, 8px);}.hi-v5-button--size-xl {font-size: var(--hi-v5-text-size-xl, 1.125rem);line-height: var(--hi-v5-text-lineheight-xl, 1.625rem);}.hi-v5-button--size-xl .hi-v5-button__icon {font-size: 24px;}.hi-v5-button--size-xl:not(.hi-v5-button--icon-only) .hi-v5-button__icon--prefix {-webkit-margin-end: var(--hi-v5-spacing-6, 12px);margin-inline-end: var(--hi-v5-spacing-6, 12px);}.hi-v5-button--size-xl:not(.hi-v5-button--icon-only) .hi-v5-button__icon--suffix {-webkit-margin-start: var(--hi-v5-spacing-6, 12px);margin-inline-start: var(--hi-v5-spacing-6, 12px);}.hi-v5-button--size-xl.hi-v5-button--loading .hi-v5-button__icon--prefix {-webkit-margin-end: var(--hi-v5-spacing-6, 12px);margin-inline-end: var(--hi-v5-spacing-6, 12px);}.hi-v5-button--size-xl.hi-v5-button--loading .hi-v5-button__icon--suffix {-webkit-margin-start: var(--hi-v5-spacing-6, 12px);margin-inline-start: var(--hi-v5-spacing-6, 12px);}.hi-v5-button--loading {position: relative;}.hi-v5-button--loading .hi-v5-button__icon {display: inline-block;width: 1em;height: 1em;stroke: none;cursor: default;fill: currentColor;}.hi-v5-button--loading .hi-v5-button__icon svg {-webkit-animation: rotate 1s linear infinite;animation: rotate 1s linear infinite;}@-webkit-keyframes rotate {to {-webkit-transform: rotate(360deg);transform: rotate(360deg);}}@keyframes rotate {to {-webkit-transform: rotate(360deg);transform: rotate(360deg);}}.hi-v5-button--appearance-filled.hi-v5-button--size-xs {height: calc(var(--hi-v5-text-lineheight-sm, 1.25rem) + 4px);font-size: var(--hi-v5-text-size-sm, 0.75rem);}.hi-v5-button--appearance-filled.hi-v5-button--size-xs:not(.hi-v5-button--icon-only) {min-width: var(--hi-v5-height-12, 48px);padding: 0 var(--hi-v5-spacing-4, 8px);}.hi-v5-button--appearance-filled.hi-v5-button--size-xs.hi-v5-button--icon-only {width: calc(var(--hi-v5-text-lineheight-sm, 1.25rem) + 4px);}.hi-v5-button--appearance-filled.hi-v5-button--size-sm {height: calc(var(--hi-v5-text-lineheight-sm, 1.25rem) + 8px);font-size: var(--hi-v5-text-size-sm, 0.75rem);}.hi-v5-button--appearance-filled.hi-v5-button--size-sm:not(.hi-v5-button--icon-only) {min-width: var(--hi-v5-height-12, 48px);padding: 0 var(--hi-v5-spacing-4, 8px);}.hi-v5-button--appearance-filled.hi-v5-button--size-sm.hi-v5-button--icon-only {width: calc(var(--hi-v5-text-lineheight-sm, 1.25rem) + 8px);}.hi-v5-button--appearance-filled.hi-v5-button--size-md {height: calc(var(--hi-v5-text-lineheight-md, 1.375rem) + 10px);font-size: var(--hi-v5-text-size-md, 0.875rem);}.hi-v5-button--appearance-filled.hi-v5-button--size-md:not(.hi-v5-button--icon-only) {min-width: var(--hi-v5-height-18, 72px);padding: 0 var(--hi-v5-spacing-6, 12px);}.hi-v5-button--appearance-filled.hi-v5-button--size-md.hi-v5-button--icon-only {width: calc(var(--hi-v5-text-lineheight-md, 1.375rem) + 10px);}.hi-v5-button--appearance-filled.hi-v5-button--size-lg {height: calc(var(--hi-v5-text-lineheight-lg, 1.5rem) + 16px);font-size: var(--hi-v5-text-size-lg, 1rem);}.hi-v5-button--appearance-filled.hi-v5-button--size-lg:not(.hi-v5-button--icon-only) {min-width: var(--hi-v5-height-22, 88px);padding: 0 var(--hi-v5-spacing-8, 16px);}.hi-v5-button--appearance-filled.hi-v5-button--size-lg.hi-v5-button--icon-only {width: calc(var(--hi-v5-text-lineheight-lg, 1.5rem) + 16px);}.hi-v5-button--appearance-filled.hi-v5-button--type-primary {background-color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));border: 1px solid var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));color: var(--hi-v5-color-static-white, #fff);}.hi-v5-button--appearance-filled.hi-v5-button--type-primary:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {background-color: var(--hi-v5-color-primary-400, var(--hi-v5-color-brandblue-400, #4d82ff));border: 1px solid var(--hi-v5-color-primary-400, var(--hi-v5-color-brandblue-400, #4d82ff));color: var(--hi-v5-color-static-white, #fff);}.hi-v5-button--appearance-filled.hi-v5-button--type-primary:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {background-color: var(--hi-v5-color-primary-600, var(--hi-v5-color-brandblue-600, #1843d2));border: 1px solid var(--hi-v5-color-primary-600, var(--hi-v5-color-brandblue-600, #1843d2));color: var(--hi-v5-color-static-white, #fff);}.hi-v5-button--appearance-filled.hi-v5-button--type-primary.hi-v5-button--disabled {background-color: var(--hi-v5-color-gray-50, #f2f4f7);border: 1px solid var(--hi-v5-color-gray-50, #f2f4f7);color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-filled.hi-v5-button--type-primary.hi-v5-button--loading {background-color: var(--hi-v5-color-primary-300, var(--hi-v5-color-brandblue-300, #74a2ff));border: 1px solid var(--hi-v5-color-primary-300, var(--hi-v5-color-brandblue-300, #74a2ff));color: var(--hi-v5-color-static-white, #fff);}.hi-v5-button--appearance-filled.hi-v5-button--type-secondary {background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));border: 1px solid var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-button--appearance-filled.hi-v5-button--type-secondary:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {background-color: var(--hi-v5-color-primary-100, var(--hi-v5-color-brandblue-100, #e5ecff));border: 1px solid var(--hi-v5-color-primary-100, var(--hi-v5-color-brandblue-100, #e5ecff));color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-button--appearance-filled.hi-v5-button--type-secondary:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {background-color: var(--hi-v5-color-primary-200, var(--hi-v5-color-brandblue-200, #b1cafc));border: 1px solid var(--hi-v5-color-primary-200, var(--hi-v5-color-brandblue-200, #b1cafc));color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-button--appearance-filled.hi-v5-button--type-secondary.hi-v5-button--disabled {background-color: var(--hi-v5-color-gray-50, #f2f4f7);border: 1px solid var(--hi-v5-color-gray-50, #f2f4f7);color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-filled.hi-v5-button--type-secondary.hi-v5-button--loading {background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));border: 1px solid var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));color: var(--hi-v5-color-primary-400, var(--hi-v5-color-brandblue-400, #4d82ff));}.hi-v5-button--appearance-filled.hi-v5-button--type-default {background-color: var(--hi-v5-color-gray-50, #f2f4f7);border: 1px solid var(--hi-v5-color-gray-50, #f2f4f7);color: var(--hi-v5-color-gray-600, #60636b);}.hi-v5-button--appearance-filled.hi-v5-button--type-default:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {background-color: var(--hi-v5-color-gray-100, #edeff2);border: 1px solid var(--hi-v5-color-gray-100, #edeff2);color: var(--hi-v5-color-gray-600, #60636b);}.hi-v5-button--appearance-filled.hi-v5-button--type-default:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {background-color: var(--hi-v5-color-gray-200, #e6e8eb);border: 1px solid var(--hi-v5-color-gray-200, #e6e8eb);color: var(--hi-v5-color-gray-600, #60636b);}.hi-v5-button--appearance-filled.hi-v5-button--type-default.hi-v5-button--disabled {background-color: var(--hi-v5-color-gray-50, #f2f4f7);border: 1px solid var(--hi-v5-color-gray-50, #f2f4f7);color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-filled.hi-v5-button--type-default.hi-v5-button--loading {background-color: var(--hi-v5-color-gray-50, #f2f4f7);border: 1px solid var(--hi-v5-color-gray-50, #f2f4f7);color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-filled.hi-v5-button--type-success {background-color: var(--hi-v5-color-success-50, var(--hi-v5-color-green-50, #e4fce3));border: 1px solid var(--hi-v5-color-success-50, var(--hi-v5-color-green-50, #e4fce3));color: var(--hi-v5-color-success-500, var(--hi-v5-color-green-500, #24b237));}.hi-v5-button--appearance-filled.hi-v5-button--type-success:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {background-color: var(--hi-v5-color-success-100, var(--hi-v5-color-green-100, #daf7de));border: 1px solid var(--hi-v5-color-success-100, var(--hi-v5-color-green-100, #daf7de));color: var(--hi-v5-color-success-500, var(--hi-v5-color-green-500, #24b237));}.hi-v5-button--appearance-filled.hi-v5-button--type-success:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {background-color: var(--hi-v5-color-success-200, var(--hi-v5-color-green-200, #8de08f));border: 1px solid var(--hi-v5-color-success-200, var(--hi-v5-color-green-200, #8de08f));color: var(--hi-v5-color-success-500, var(--hi-v5-color-green-500, #24b237));}.hi-v5-button--appearance-filled.hi-v5-button--type-success.hi-v5-button--disabled {background-color: var(--hi-v5-color-gray-50, #f2f4f7);border: 1px solid var(--hi-v5-color-gray-50, #f2f4f7);color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-filled.hi-v5-button--type-success.hi-v5-button--loading {background-color: var(--hi-v5-color-success-50, var(--hi-v5-color-green-50, #e4fce3));border: 1px solid var(--hi-v5-color-success-50, var(--hi-v5-color-green-50, #e4fce3));color: var(--hi-v5-color-success-400, var(--hi-v5-color-green-400, #42c14f));}.hi-v5-button--appearance-filled.hi-v5-button--type-danger {background-color: var(--hi-v5-color-danger-50, var(--hi-v5-color-red-50, #ffede8));border: 1px solid var(--hi-v5-color-danger-50, var(--hi-v5-color-red-50, #ffede8));color: var(--hi-v5-color-danger-500, var(--hi-v5-color-red-500, #fa4646));}.hi-v5-button--appearance-filled.hi-v5-button--type-danger:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {background-color: var(--hi-v5-color-danger-100, var(--hi-v5-color-red-100, #ffe0db));border: 1px solid var(--hi-v5-color-danger-100, var(--hi-v5-color-red-100, #ffe0db));color: var(--hi-v5-color-danger-500, var(--hi-v5-color-red-500, #fa4646));}.hi-v5-button--appearance-filled.hi-v5-button--type-danger:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {background-color: var(--hi-v5-color-danger-200, var(--hi-v5-color-red-200, #ffb3aa));border: 1px solid var(--hi-v5-color-danger-200, var(--hi-v5-color-red-200, #ffb3aa));color: var(--hi-v5-color-danger-500, var(--hi-v5-color-red-500, #fa4646));}.hi-v5-button--appearance-filled.hi-v5-button--type-danger.hi-v5-button--disabled {background-color: var(--hi-v5-color-gray-50, #f2f4f7);border: 1px solid var(--hi-v5-color-gray-50, #f2f4f7);color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-filled.hi-v5-button--type-danger.hi-v5-button--loading {background-color: var(--hi-v5-color-danger-50, var(--hi-v5-color-red-50, #ffede8));border: 1px solid var(--hi-v5-color-danger-50, var(--hi-v5-color-red-50, #ffede8));color: var(--hi-v5-color-danger-300, var(--hi-v5-color-red-300, #ff938b));}.hi-v5-button--appearance-line.hi-v5-button--size-xs {height: calc(var(--hi-v5-text-lineheight-sm, 1.25rem) + 4px);font-size: var(--hi-v5-text-size-sm, 0.75rem);}.hi-v5-button--appearance-line.hi-v5-button--size-xs:not(.hi-v5-button--icon-only) {min-width: var(--hi-v5-height-12, 48px);padding: 0 var(--hi-v5-spacing-4, 8px);}.hi-v5-button--appearance-line.hi-v5-button--size-xs.hi-v5-button--icon-only {width: calc(var(--hi-v5-text-lineheight-sm, 1.25rem) + 4px);}.hi-v5-button--appearance-line.hi-v5-button--size-sm {height: calc(var(--hi-v5-text-lineheight-sm, 1.25rem) + 8px);font-size: var(--hi-v5-text-size-sm, 0.75rem);}.hi-v5-button--appearance-line.hi-v5-button--size-sm:not(.hi-v5-button--icon-only) {min-width: var(--hi-v5-height-12, 48px);padding: 0 var(--hi-v5-spacing-4, 8px);}.hi-v5-button--appearance-line.hi-v5-button--size-sm.hi-v5-button--icon-only {width: calc(var(--hi-v5-text-lineheight-sm, 1.25rem) + 8px);}.hi-v5-button--appearance-line.hi-v5-button--size-md {height: calc(var(--hi-v5-text-lineheight-md, 1.375rem) + 10px);font-size: var(--hi-v5-text-size-md, 0.875rem);}.hi-v5-button--appearance-line.hi-v5-button--size-md:not(.hi-v5-button--icon-only) {min-width: var(--hi-v5-height-18, 72px);padding: 0 var(--hi-v5-spacing-6, 12px);}.hi-v5-button--appearance-line.hi-v5-button--size-md.hi-v5-button--icon-only {width: calc(var(--hi-v5-text-lineheight-md, 1.375rem) + 10px);}.hi-v5-button--appearance-line.hi-v5-button--size-lg {height: calc(var(--hi-v5-text-lineheight-lg, 1.5rem) + 16px);font-size: var(--hi-v5-text-size-lg, 1rem);}.hi-v5-button--appearance-line.hi-v5-button--size-lg:not(.hi-v5-button--icon-only) {min-width: var(--hi-v5-height-22, 88px);padding: 0 var(--hi-v5-spacing-8, 16px);}.hi-v5-button--appearance-line.hi-v5-button--size-lg.hi-v5-button--icon-only {width: calc(var(--hi-v5-text-lineheight-lg, 1.5rem) + 16px);}.hi-v5-button--appearance-line.hi-v5-button--type-primary {background-color: var(--hi-v5-color-static-white, #fff);border: 1px solid var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-button--appearance-line.hi-v5-button--type-primary:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));border: 1px solid var(--hi-v5-color-primary-400, var(--hi-v5-color-brandblue-400, #4d82ff));}.hi-v5-button--appearance-line.hi-v5-button--type-primary:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {background-color: var(--hi-v5-color-primary-100, var(--hi-v5-color-brandblue-100, #e5ecff));border: 1px solid var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-button--appearance-line.hi-v5-button--type-primary.hi-v5-button--disabled {color: var(--hi-v5-color-gray-400, #babcc2);border: 1px solid var(--hi-v5-color-gray-300, #dbdde0);}.hi-v5-button--appearance-line.hi-v5-button--type-primary.hi-v5-button--loading {color: var(--hi-v5-color-primary-200, var(--hi-v5-color-brandblue-200, #b1cafc));border: 1px solid var(--hi-v5-color-primary-300, var(--hi-v5-color-brandblue-300, #74a2ff));}.hi-v5-button--appearance-line.hi-v5-button--type-secondary {background-color: var(--hi-v5-color-static-white, #fff);border: 1px solid var(--hi-v5-color-primary-400, var(--hi-v5-color-brandblue-400, #4d82ff));color: var(--hi-v5-color-primary-400, var(--hi-v5-color-brandblue-400, #4d82ff));}.hi-v5-button--appearance-line.hi-v5-button--type-secondary:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));border: 1px solid var(--hi-v5-color-primary-300, var(--hi-v5-color-brandblue-300, #74a2ff));}.hi-v5-button--appearance-line.hi-v5-button--type-secondary:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {background-color: var(--hi-v5-color-primary-100, var(--hi-v5-color-brandblue-100, #e5ecff));border: 1px solid var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-button--appearance-line.hi-v5-button--type-secondary.hi-v5-button--disabled {color: var(--hi-v5-color-gray-400, #babcc2);border: 1px solid var(--hi-v5-color-gray-300, #dbdde0);}.hi-v5-button--appearance-line.hi-v5-button--type-secondary.hi-v5-button--loading {color: var(--hi-v5-color-primary-200, var(--hi-v5-color-brandblue-200, #b1cafc));border: 1px solid var(--hi-v5-color-primary-200, var(--hi-v5-color-brandblue-200, #b1cafc));}.hi-v5-button--appearance-line.hi-v5-button--type-default {background-color: var(--hi-v5-color-static-white, #fff);border: 1px solid var(--hi-v5-color-gray-300, #dbdde0);color: var(--hi-v5-color-gray-700, #1a1d26);}.hi-v5-button--appearance-line.hi-v5-button--type-default:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {background-color: var(--hi-v5-color-gray-50, #f2f4f7);border: 1px solid var(--hi-v5-color-gray-300, #dbdde0);}.hi-v5-button--appearance-line.hi-v5-button--type-default:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {background-color: var(--hi-v5-color-gray-200, #e6e8eb);border: 1px solid var(--hi-v5-color-gray-300, #dbdde0);}.hi-v5-button--appearance-line.hi-v5-button--type-default.hi-v5-button--disabled {color: var(--hi-v5-color-gray-400, #babcc2);border: 1px solid var(--hi-v5-color-gray-300, #dbdde0);}.hi-v5-button--appearance-line.hi-v5-button--type-default.hi-v5-button--loading {color: var(--hi-v5-color-gray-400, #babcc2);border: 1px solid var(--hi-v5-color-gray-300, #dbdde0);}.hi-v5-button--appearance-line.hi-v5-button--type-success {background-color: var(--hi-v5-color-static-white, #fff);border: 1px solid var(--hi-v5-color-success-500, var(--hi-v5-color-green-500, #24b237));color: var(--hi-v5-color-success-500, var(--hi-v5-color-green-500, #24b237));}.hi-v5-button--appearance-line.hi-v5-button--type-success:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {background-color: var(--hi-v5-color-success-50, var(--hi-v5-color-green-50, #e4fce3));border: 1px solid var(--hi-v5-color-success-400, var(--hi-v5-color-green-400, #42c14f));}.hi-v5-button--appearance-line.hi-v5-button--type-success:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {background-color: var(--hi-v5-color-success-100, var(--hi-v5-color-green-100, #daf7de));border: 1px solid var(--hi-v5-color-success-600, var(--hi-v5-color-green-600, #17992d));}.hi-v5-button--appearance-line.hi-v5-button--type-success.hi-v5-button--disabled {color: var(--hi-v5-color-gray-400, #babcc2);border: 1px solid var(--hi-v5-color-gray-300, #dbdde0);}.hi-v5-button--appearance-line.hi-v5-button--type-success.hi-v5-button--loading {color: var(--hi-v5-color-success-200, var(--hi-v5-color-green-200, #8de08f));border: 1px solid var(--hi-v5-color-success-200, var(--hi-v5-color-green-200, #8de08f));}.hi-v5-button--appearance-line.hi-v5-button--type-danger {background-color: var(--hi-v5-color-static-white, #fff);border: 1px solid var(--hi-v5-color-danger-500, var(--hi-v5-color-red-500, #fa4646));color: var(--hi-v5-color-danger-500, var(--hi-v5-color-red-500, #fa4646));}.hi-v5-button--appearance-line.hi-v5-button--type-danger:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {background-color: var(--hi-v5-color-danger-50, var(--hi-v5-color-red-50, #ffede8));border: 1px solid var(--hi-v5-color-danger-500, var(--hi-v5-color-red-500, #fa4646));}.hi-v5-button--appearance-line.hi-v5-button--type-danger:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {background-color: var(--hi-v5-color-danger-100, var(--hi-v5-color-red-100, #ffe0db));border: 1px solid var(--hi-v5-color-danger-500, var(--hi-v5-color-red-500, #fa4646));}.hi-v5-button--appearance-line.hi-v5-button--type-danger.hi-v5-button--disabled {color: var(--hi-v5-color-gray-400, #babcc2);border: 1px solid var(--hi-v5-color-gray-300, #dbdde0);}.hi-v5-button--appearance-line.hi-v5-button--type-danger.hi-v5-button--loading {color: var(--hi-v5-color-danger-300, var(--hi-v5-color-red-300, #ff938b));border: 1px solid var(--hi-v5-color-danger-200, var(--hi-v5-color-red-200, #ffb3aa));}.hi-v5-button--appearance-link {padding: 0;border: 0;}.hi-v5-button--appearance-link.hi-v5-button--type-primary {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-button--appearance-link.hi-v5-button--type-primary:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {color: var(--hi-v5-color-primary-400, var(--hi-v5-color-brandblue-400, #4d82ff));}.hi-v5-button--appearance-link.hi-v5-button--type-primary:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {color: var(--hi-v5-color-primary-600, var(--hi-v5-color-brandblue-600, #1843d2));}.hi-v5-button--appearance-link.hi-v5-button--type-primary.hi-v5-button--disabled {color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-link.hi-v5-button--type-primary.hi-v5-button--loading {color: var(--hi-v5-color-primary-300, var(--hi-v5-color-brandblue-300, #74a2ff));}.hi-v5-button--appearance-link.hi-v5-button--type-secondary {color: var(--hi-v5-color-primary-400, var(--hi-v5-color-brandblue-400, #4d82ff));}.hi-v5-button--appearance-link.hi-v5-button--type-secondary:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {color: var(--hi-v5-color-primary-300, var(--hi-v5-color-brandblue-300, #74a2ff));}.hi-v5-button--appearance-link.hi-v5-button--type-secondary:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-button--appearance-link.hi-v5-button--type-secondary.hi-v5-button--disabled {color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-link.hi-v5-button--type-secondary.hi-v5-button--loading {color: var(--hi-v5-color-primary-200, var(--hi-v5-color-brandblue-200, #b1cafc));}.hi-v5-button--appearance-link.hi-v5-button--type-default {color: var(--hi-v5-color-gray-600, #60636b);}.hi-v5-button--appearance-link.hi-v5-button--type-default:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {color: var(--hi-v5-color-gray-500, #91959e);}.hi-v5-button--appearance-link.hi-v5-button--type-default:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {color: var(--hi-v5-color-gray-700, #1a1d26);}.hi-v5-button--appearance-link.hi-v5-button--type-default.hi-v5-button--disabled {color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-link.hi-v5-button--type-default.hi-v5-button--loading {color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-link.hi-v5-button--type-success {color: var(--hi-v5-color-success-500, var(--hi-v5-color-green-500, #24b237));}.hi-v5-button--appearance-link.hi-v5-button--type-success:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {color: var(--hi-v5-color-success-400, var(--hi-v5-color-green-400, #42c14f));}.hi-v5-button--appearance-link.hi-v5-button--type-success:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {color: var(--hi-v5-color-success-600, var(--hi-v5-color-green-600, #17992d));}.hi-v5-button--appearance-link.hi-v5-button--type-success.hi-v5-button--disabled {color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-link.hi-v5-button--type-success.hi-v5-button--loading {color: var(--hi-v5-color-success-200, var(--hi-v5-color-green-200, #8de08f));}.hi-v5-button--appearance-link.hi-v5-button--type-danger {color: var(--hi-v5-color-danger-500, var(--hi-v5-color-red-500, #fa4646));}.hi-v5-button--appearance-link.hi-v5-button--type-danger:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {color: var(--hi-v5-color-danger-400, var(--hi-v5-color-red-400, #ff716c));}.hi-v5-button--appearance-link.hi-v5-button--type-danger:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {color: var(--hi-v5-color-danger-500, var(--hi-v5-color-red-500, #fa4646));}.hi-v5-button--appearance-link.hi-v5-button--type-danger.hi-v5-button--disabled {color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-link.hi-v5-button--type-danger.hi-v5-button--loading {color: var(--hi-v5-color-danger-300, var(--hi-v5-color-red-300, #ff938b));}.hi-v5-button--appearance-text.hi-v5-button--size-xs {height: calc(var(--hi-v5-text-lineheight-sm, 1.25rem) + 4px);font-size: var(--hi-v5-text-size-sm, 0.75rem);}.hi-v5-button--appearance-text.hi-v5-button--size-xs:not(.hi-v5-button--icon-only) {min-width: var(--hi-v5-height-12, 48px);padding: 0 var(--hi-v5-spacing-4, 8px);}.hi-v5-button--appearance-text.hi-v5-button--size-xs.hi-v5-button--icon-only {width: calc(var(--hi-v5-text-lineheight-sm, 1.25rem) + 4px);}.hi-v5-button--appearance-text.hi-v5-button--size-sm {height: calc(var(--hi-v5-text-lineheight-sm, 1.25rem) + 8px);font-size: var(--hi-v5-text-size-sm, 0.75rem);}.hi-v5-button--appearance-text.hi-v5-button--size-sm:not(.hi-v5-button--icon-only) {min-width: var(--hi-v5-height-12, 48px);padding: 0 var(--hi-v5-spacing-4, 8px);}.hi-v5-button--appearance-text.hi-v5-button--size-sm.hi-v5-button--icon-only {width: calc(var(--hi-v5-text-lineheight-sm, 1.25rem) + 8px);}.hi-v5-button--appearance-text.hi-v5-button--size-md {height: calc(var(--hi-v5-text-lineheight-md, 1.375rem) + 10px);font-size: var(--hi-v5-text-size-md, 0.875rem);}.hi-v5-button--appearance-text.hi-v5-button--size-md:not(.hi-v5-button--icon-only) {min-width: var(--hi-v5-height-18, 72px);padding: 0 var(--hi-v5-spacing-6, 12px);}.hi-v5-button--appearance-text.hi-v5-button--size-md.hi-v5-button--icon-only {width: calc(var(--hi-v5-text-lineheight-md, 1.375rem) + 10px);}.hi-v5-button--appearance-text.hi-v5-button--size-lg {height: calc(var(--hi-v5-text-lineheight-lg, 1.5rem) + 16px);font-size: var(--hi-v5-text-size-lg, 1rem);}.hi-v5-button--appearance-text.hi-v5-button--size-lg:not(.hi-v5-button--icon-only) {min-width: var(--hi-v5-height-22, 88px);padding: 0 var(--hi-v5-spacing-8, 16px);}.hi-v5-button--appearance-text.hi-v5-button--size-lg.hi-v5-button--icon-only {width: calc(var(--hi-v5-text-lineheight-lg, 1.5rem) + 16px);}.hi-v5-button--appearance-text.hi-v5-button--type-primary {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-button--appearance-text.hi-v5-button--type-primary:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));border: 1px solid var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-button--appearance-text.hi-v5-button--type-primary:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {background-color: var(--hi-v5-color-primary-100, var(--hi-v5-color-brandblue-100, #e5ecff));border: 1px solid var(--hi-v5-color-primary-100, var(--hi-v5-color-brandblue-100, #e5ecff));color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-button--appearance-text.hi-v5-button--type-primary.hi-v5-button--disabled {color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-text.hi-v5-button--type-primary.hi-v5-button--loading {color: var(--hi-v5-color-primary-300, var(--hi-v5-color-brandblue-300, #74a2ff));}.hi-v5-button--appearance-text.hi-v5-button--type-secondary {color: var(--hi-v5-color-primary-400, var(--hi-v5-color-brandblue-400, #4d82ff));}.hi-v5-button--appearance-text.hi-v5-button--type-secondary:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));border: 1px solid var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));color: var(--hi-v5-color-primary-400, var(--hi-v5-color-brandblue-400, #4d82ff));}.hi-v5-button--appearance-text.hi-v5-button--type-secondary:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {background-color: var(--hi-v5-color-primary-100, var(--hi-v5-color-brandblue-100, #e5ecff));border: 1px solid var(--hi-v5-color-primary-100, var(--hi-v5-color-brandblue-100, #e5ecff));color: var(--hi-v5-color-primary-400, var(--hi-v5-color-brandblue-400, #4d82ff));}.hi-v5-button--appearance-text.hi-v5-button--type-secondary.hi-v5-button--disabled {color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-text.hi-v5-button--type-secondary.hi-v5-button--loading {color: var(--hi-v5-color-primary-200, var(--hi-v5-color-brandblue-200, #b1cafc));}.hi-v5-button--appearance-text.hi-v5-button--type-default {color: var(--hi-v5-color-gray-600, #60636b);}.hi-v5-button--appearance-text.hi-v5-button--type-default:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {background-color: var(--hi-v5-color-gray-50, #f2f4f7);border: 1px solid var(--hi-v5-color-gray-50, #f2f4f7);color: var(--hi-v5-color-gray-600, #60636b);}.hi-v5-button--appearance-text.hi-v5-button--type-default:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {background-color: var(--hi-v5-color-gray-200, #e6e8eb);border: 1px solid var(--hi-v5-color-gray-200, #e6e8eb);color: var(--hi-v5-color-gray-600, #60636b);}.hi-v5-button--appearance-text.hi-v5-button--type-default.hi-v5-button--disabled {color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-text.hi-v5-button--type-default.hi-v5-button--loading {color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-text.hi-v5-button--type-success {color: var(--hi-v5-color-success-500, var(--hi-v5-color-green-500, #24b237));}.hi-v5-button--appearance-text.hi-v5-button--type-success:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {background-color: var(--hi-v5-color-success-50, var(--hi-v5-color-green-50, #e4fce3));border: 1px solid var(--hi-v5-color-success-50, var(--hi-v5-color-green-50, #e4fce3));color: var(--hi-v5-color-success-500, var(--hi-v5-color-green-500, #24b237));}.hi-v5-button--appearance-text.hi-v5-button--type-success:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {background-color: var(--hi-v5-color-success-100, var(--hi-v5-color-green-100, #daf7de));border: 1px solid var(--hi-v5-color-success-100, var(--hi-v5-color-green-100, #daf7de));color: var(--hi-v5-color-success-500, var(--hi-v5-color-green-500, #24b237));}.hi-v5-button--appearance-text.hi-v5-button--type-success.hi-v5-button--disabled {color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-text.hi-v5-button--type-success.hi-v5-button--loading {color: var(--hi-v5-color-success-300, var(--hi-v5-color-green-300, #65d16d));}.hi-v5-button--appearance-text.hi-v5-button--type-danger {color: var(--hi-v5-color-danger-500, var(--hi-v5-color-red-500, #fa4646));}.hi-v5-button--appearance-text.hi-v5-button--type-danger:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):hover {background-color: var(--hi-v5-color-danger-50, var(--hi-v5-color-red-50, #ffede8));border: 1px solid var(--hi-v5-color-danger-50, var(--hi-v5-color-red-50, #ffede8));color: var(--hi-v5-color-danger-500, var(--hi-v5-color-red-500, #fa4646));}.hi-v5-button--appearance-text.hi-v5-button--type-danger:not(.hi-v5-button--disabled):not(.hi-v5-button--loading):active {background-color: var(--hi-v5-color-danger-100, var(--hi-v5-color-red-100, #ffe0db));border: 1px solid var(--hi-v5-color-danger-100, var(--hi-v5-color-red-100, #ffe0db));color: var(--hi-v5-color-danger-500, var(--hi-v5-color-red-500, #fa4646));}.hi-v5-button--appearance-text.hi-v5-button--type-danger.hi-v5-button--disabled {color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-button--appearance-text.hi-v5-button--type-danger.hi-v5-button--loading {color: var(--hi-v5-color-danger-300, var(--hi-v5-color-red-300, #ff938b));}.hi-v5-button-group {display: -webkit-inline-box;display: -ms-inline-flexbox;display: inline-flex;}.hi-v5-button-group .hi-v5-button:first-child {border-top-right-radius: 0;border-bottom-right-radius: 0;}.hi-v5-button-group .hi-v5-button:not(:first-child):not(:last-child) {border-radius: 0;}.hi-v5-button-group .hi-v5-button:not(:first-child) {margin-left: 0;}.hi-v5-button-group .hi-v5-button:not(:first-child)::before {content: \"\";position: absolute;left: -1px;width: 1px;height: 50%;}.hi-v5-button-group .hi-v5-button--type-primary::before {background-color: var(--hi-v5-color-primary-300, var(--hi-v5-color-brandblue-300, #74a2ff));}.hi-v5-button-group .hi-v5-button--type-secondary::before {background-color: var(--hi-v5-color-primary-300, var(--hi-v5-color-brandblue-300, #74a2ff));}.hi-v5-button-group .hi-v5-button--type-default::before {background-color: var(--hi-v5-color-gray-300, #dbdde0);}.hi-v5-button-group .hi-v5-button--type-success::before {background-color: var(--hi-v5-color-success-300, var(--hi-v5-color-green-300, #65d16d));}.hi-v5-button-group .hi-v5-button--type-danger::before {background-color: var(--hi-v5-color-danger-300, var(--hi-v5-color-red-300, #ff938b));}.hi-v5-button-group .hi-v5-button:last-child {border-top-left-radius: 0;border-bottom-left-radius: 0;}";
|
|
34
|
+
__styleInject____default["default"](css_248z);
|
|
35
|
+
exports["default"] = css_248z;
|
package/lib/cjs/index.js
CHANGED
|
@@ -15,10 +15,18 @@ Object.defineProperty(exports, '__esModule', {
|
|
|
15
15
|
require('./styles/index.scss.js');
|
|
16
16
|
var Menu = require('./Menu.js');
|
|
17
17
|
var Sidebar = require('./Sidebar.js');
|
|
18
|
+
var MenuSearch = require('./MenuSearch.js');
|
|
19
|
+
var GroupMenu = require('./GroupMenu.js');
|
|
20
|
+
var SideMenu = require('./SideMenu.js');
|
|
18
21
|
var util = require('./util.js');
|
|
19
22
|
exports.Menu = Menu.Menu;
|
|
20
23
|
exports["default"] = Menu.Menu;
|
|
21
24
|
exports.Sidebar = Sidebar.Sidebar;
|
|
25
|
+
exports.MenuSearch = MenuSearch.MenuSearch;
|
|
26
|
+
exports.MenuSearchInput = MenuSearch.MenuSearchInput;
|
|
27
|
+
exports.GroupMenu = GroupMenu.GroupMenu;
|
|
28
|
+
exports.SideMenu = SideMenu.SideMenu;
|
|
29
|
+
exports.useSideMenuCascade = SideMenu.useSideMenuCascade;
|
|
22
30
|
exports.filterTreeData = util.filterTreeData;
|
|
23
31
|
exports.getAncestorIds = util.getAncestorIds;
|
|
24
32
|
exports.getParentId = util.getParentId;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
Object.defineProperty(exports, '__esModule', {
|
|
13
13
|
value: true
|
|
14
14
|
});
|
|
15
|
-
var css_248z = ".hi-v4-menu-fat-menu {background-color: var(--hi-v4-color-static-white, #fff);margin: 0;font-size: var(--hi-v4-text-size-md, 0.875rem);padding: var(--hi-v4-spacing-4, 8px);display: -webkit-box;display: -ms-flexbox;display: flex;color: var(--hi-v4-color-gray-700, #1f2733);border-radius: var(--hi-v4-border-radius-md, 4px);-ms-flex-wrap: wrap;flex-wrap: wrap;}.hi-v4-menu-fat-menu__group:not(:last-of-type) {margin-right: var(--hi-v4-spacing-18, 36px);}.hi-v4-menu-fat-menu .hi-v4-menu-group-item {height: 40px;margin: 0;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;padding: 0 var(--hi-v4-spacing-6, 12px);color: var(--hi-v4-color-gray-500, #929aa6);}.hi-v4-menu-fat-menu .hi-v4-menu-item {height: 40px;margin: 0;border-radius: var(--hi-v4-border-radius-md, 4px);display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;padding: 0 var(--hi-v4-spacing-4, 8px) 0 var(--hi-v4-spacing-6, 12px);}.hi-v4-menu-fat-menu .hi-v4-menu-item--active {color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));background-color: var(--hi-v4-color-primary-50, var(--hi-v4-color-brandblue-50, #e2f3fe));}.hi-v4-menu-fat-menu .hi-v4-menu-item:not(.hi-v4-menu-item--active):hover {background-color: var(--hi-v4-color-gray-100, #f2f4f7);}.hi-v4-menu-fat-menu .hi-v4-menu-item--disabled {color: var(--hi-v4-color-gray-400, #b5bcc7);cursor: not-allowed;}.hi-v4-menu-fat-menu ul {padding: 0;margin: 0;}.hi-v4-menu-fat-menu ul li {list-style-type: none;}.hi-v4-menu-popmenu {background-color: var(--hi-v4-color-static-white, #fff);border-radius: var(--hi-v4-border-radius-md, 4px);margin: 0;font-size: var(--hi-v4-text-size-md, 0.875rem);padding: var(--hi-v4-spacing-4, 8px);color: var(--hi-v4-color-gray-700, #1f2733);width: 216px;-webkit-box-sizing: border-box;box-sizing: border-box;}.hi-v4-menu-popmenu .hi-v4-menu-item {height: 40px;margin: 0;}.hi-v4-menu-popmenu .hi-v4-menu-item__inner {-webkit-box-sizing: border-box;box-sizing: border-box;height: 40px;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;padding: 0 var(--hi-v4-spacing-4, 8px) 0 var(--hi-v4-spacing-6, 12px);border-radius: var(--hi-v4-border-radius-md, 4px);}.hi-v4-menu-popmenu .hi-v4-menu-item__inner--active {color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));background-color: var(--hi-v4-color-primary-50, var(--hi-v4-color-brandblue-50, #e2f3fe));}.hi-v4-menu-popmenu .hi-v4-menu-item__inner--active-p {color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));}.hi-v4-menu-popmenu .hi-v4-menu-item__inner--expanded {background-color: var(--hi-v4-color-gray-100, #f2f4f7);}.hi-v4-menu-popmenu .hi-v4-menu-item__inner:not(.hi-v4-menu-item__inner--active):hover {background-color: var(--hi-v4-color-gray-100, #f2f4f7);}.hi-v4-menu-popmenu .hi-v4-menu-item__inner--disabled {color: var(--hi-v4-color-gray-400, #b5bcc7);cursor: not-allowed;}.hi-v4-menu-popmenu .hi-v4-menu-item__content {-webkit-box-flex: 1;-ms-flex: 1 1;flex: 1 1;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;max-width: 100%;padding-right: var(--hi-v4-spacing-4, 8px);}.hi-v4-menu {background-color: var(--hi-v4-color-static-white, #fff);color: var(--hi-v4-color-gray-700, #1f2733);font-size: var(--hi-v4-text-size-md, 0.875rem);line-height: var(--hi-v4-text-lineheight-md, 1.375rem);-webkit-box-sizing: border-box;box-sizing: border-box;}.hi-v4-menu ul {margin: 0;padding: 0;}.hi-v4-menu-item {list-style: none;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: pointer;-webkit-transition: all 0.3s;transition: all 0.3s;}.hi-v4-menu-item__icon {color: var(--hi-v4-color-gray-500, #929aa6);-webkit-margin-end: var(--hi-v4-spacing-4, 8px);margin-inline-end: var(--hi-v4-spacing-4, 8px);}.hi-v4-menu-item__icon svg[class^=hi-v4-icon] {font-size: var(--hi-v4-text-size-lg, 1rem);}.hi-v4-menu-item__arrow {color: var(--hi-v4-color-gray-500, #929aa6);font-size: var(--hi-v4-text-size-lg, 1rem);}.hi-v4-menu-item__indent {display: inline-block;width: 24px;height: 100%;-ms-flex-negative: 0;flex-shrink: 0;}.hi-v4-menu-item--disabled {color: var(--hi-v4-color-gray-400, #b5bcc7);cursor: not-allowed;}.hi-v4-menu__wrapper {padding: 0;margin: 0;}.hi-v4-menu--horizontal {width: 100%;overflow: hidden;}.hi-v4-menu--horizontal .hi-v4-menu__wrapper {display: -webkit-box;display: -ms-flexbox;display: flex;overflow: visible;width: -webkit-max-content;width: -moz-max-content;width: max-content;-webkit-box-sizing: border-box;box-sizing: border-box;}.hi-v4-menu--horizontal .hi-v4-menu-item {padding: 0 var(--hi-v4-spacing-10, 20px);display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;-webkit-box-align: center;-ms-flex-align: center;align-items: center;height: 56px;border: none;font-size: var(--hi-v4-text-size-lg, 1rem);}.hi-v4-menu--horizontal .hi-v4-menu-item__arrow {-webkit-margin-start: var(--hi-v4-spacing-2, 4px);margin-inline-start: var(--hi-v4-spacing-2, 4px);}.hi-v4-menu--horizontal .hi-v4-menu-item:hover {color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));}.hi-v4-menu--horizontal .hi-v4-menu-item:hover .hi-v4-menu-item__inner {border-bottom: 2px solid var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));}.hi-v4-menu--horizontal .hi-v4-menu-item--active {color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));}.hi-v4-menu--horizontal .hi-v4-menu-item--active .hi-v4-menu-item__inner {border-bottom: 2px solid var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));}.hi-v4-menu--horizontal .hi-v4-menu-item--active .hi-v4-menu-item__icon {color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));}.hi-v4-menu--horizontal .hi-v4-menu-item--active-p {color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));}.hi-v4-menu--horizontal .hi-v4-menu-item--active-p .hi-v4-menu-item__icon {color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));}.hi-v4-menu--horizontal .hi-v4-menu-item__inner {height: 100%;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-sizing: border-box;box-sizing: border-box;border-bottom: 2px solid transparent;}.hi-v4-menu--horizontal .hi-v4-menu-item__inner--expanded {border-bottom: 2px solid var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));}.hi-v4-menu--horizontal .hi-v4-menu-item__content {-webkit-box-flex: 1;-ms-flex: 1 1;flex: 1 1;white-space: nowrap;max-width: none;}.hi-v4-menu--horizontal .hi-v4-menu-item--disabled {color: var(--hi-v4-color-gray-400, #b5bcc7);cursor: not-allowed;}.hi-v4-menu--horizontal .hi-v4-menu-item--disabled:hover .hi-v4-menu-item__inner {border-color: var(--hi-v4-color-static-white, #fff);}.hi-v4-menu--horizontal .hi-v4-menu-item--disabled .hi-v4-menu-item__content {color: var(--hi-v4-color-gray-400, #b5bcc7);}.hi-v4-menu--vertical {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;padding: var(--hi-v4-spacing-4, 8px);width: 216px;-webkit-box-sizing: border-box;box-sizing: border-box;height: 100%;-webkit-transition: width 0.3s;transition: width 0.3s;}.hi-v4-menu--vertical .hi-v4-menu__wrapper {-webkit-box-flex: 1;-ms-flex: 1 1;flex: 1 1;overflow: auto;}.hi-v4-menu--vertical.hi-v4-menu--mini {width: 56px;overflow-x: hidden;}.hi-v4-menu--vertical.hi-v4-menu--popup .hi-v4-menu-item__inner--expanded {background-color: var(--hi-v4-color-gray-100, #f2f4f7);}.hi-v4-menu--vertical.hi-v4-menu--popup:not(.hi-v4-menu--mini) .hi-v4-menu__wrapper > .hi-v4-menu-item:last-child .hi-v4-menu-item__inner {margin-bottom: 0;}.hi-v4-menu--vertical .hi-v4-menu__toggle {width: var(--hi-v4-height-10, 40px);height: var(--hi-v4-height-10, 40px);cursor: pointer;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;border-radius: var(--hi-v4-border-radius-md, 4px);color: var(--hi-v4-color-gray-500, #929aa6);-ms-flex-negative: 0;flex-shrink: 0;-webkit-transition-duration: var(--hi-v4-motion-duration-normal, 200ms);transition-duration: var(--hi-v4-motion-duration-normal, 200ms);-webkit-transition-timing-function: var(--hi-v4-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1));transition-timing-function: var(--hi-v4-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1));-webkit-transition-property: background-color;transition-property: background-color;}.hi-v4-menu--vertical .hi-v4-menu__toggle:hover {background-color: var(--hi-v4-color-gray-100, #f2f4f7);}.hi-v4-menu--vertical .hi-v4-menu-item__inner {-webkit-box-sizing: border-box;box-sizing: border-box;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;padding: 0 var(--hi-v4-spacing-4, 8px) 0 var(--hi-v4-spacing-6, 12px);border-radius: var(--hi-v4-border-radius-md, 4px);-webkit-transition: all 0.3s;transition: all 0.3s;}.hi-v4-menu--vertical .hi-v4-menu-item__inner--active {color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));background-color: var(--hi-v4-color-primary-50, var(--hi-v4-color-brandblue-50, #e2f3fe));}.hi-v4-menu--vertical .hi-v4-menu-item__inner--active .hi-v4-menu-item__icon {color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));}.hi-v4-menu--vertical .hi-v4-menu-item__inner--active-p {color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));}.hi-v4-menu--vertical .hi-v4-menu-item__inner--active-p .hi-v4-menu-item__icon {color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));}.hi-v4-menu--vertical .hi-v4-menu-item__inner:not(.hi-v4-menu-item__inner--active):hover {background-color: var(--hi-v4-color-gray-100, #f2f4f7);}.hi-v4-menu--vertical .hi-v4-menu-item__content {-webkit-box-flex: 1;-ms-flex: 1 1;flex: 1 1;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;text-indent: 0.5px;}.hi-v4-menu--vertical .hi-v4-menu-item--disabled {color: var(--hi-v4-color-gray-400, #b5bcc7);cursor: not-allowed;}.hi-v4-menu--vertical.hi-v4-menu--size-lg .hi-v4-menu-item__inner {height: var(--hi-v4-height-10, 40px);margin-bottom: var(--hi-v4-spacing-4, 8px);}.hi-v4-menu--vertical.hi-v4-menu--size-md .hi-v4-menu-item__inner {height: var(--hi-v4-height-9, 36px);margin-bottom: var(--hi-v4-spacing-2, 4px);}.hi-v4-menu--vertical.hi-v4-menu--size-sm .hi-v4-menu-item__inner {height: var(--hi-v4-height-8, 32px);margin-bottom: var(--hi-v4-spacing-1, 2px);}.hi-v4-sidebar-wrapper {position: relative;display: -webkit-box;display: -ms-flexbox;display: flex;width: -webkit-fit-content;width: -moz-fit-content;width: fit-content;height: 100%;}.hi-v4-sidebar-wrapper:not(.hi-v4-sidebar-wrapper-showMenuArrow) .hi-v4-sidebar-menu-wrapper .hi-v4-menu-item__arrow {display: none;}.hi-v4-sidebar-wrapper--showMenu .hi-v4-sidebar-menu-wrapper {border-right: 1px solid var(--hi-v4-color-gray-300, #dfe2e8);}.hi-v4-sidebar-wrapper--showMenu .hi-v4-sidebar-toggle svg[class^=hi-v4-icon] {-webkit-transform: rotate(180deg);transform: rotate(180deg);}.hi-v4-sidebar-wrapper:not(.hi-v4-sidebar-wrapper--collapsible) .hi-v4-sidebar-menu-wrapper .hi-v4-menu-item__inner--expanded:hover {background-color: transparent;cursor: default;}.hi-v4-sidebar {-webkit-box-sizing: border-box;box-sizing: border-box;width: 64px;height: 100%;padding: var(--hi-v4-spacing-4, 8px) 0;overflow: auto;border-right: 1px solid var(--hi-v4-color-gray-300, #dfe2e8);background-color: #fff;}.hi-v4-sidebar-list {-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0;padding: 0;}.hi-v4-sidebar-item {-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0;padding: 0;list-style: none;margin: var(--hi-v4-spacing-6, 12px) var(--hi-v4-spacing-2, 4px) 0;padding: var(--hi-v4-spacing-3, 6px) var(--hi-v4-spacing-1, 2px);width: 52px;overflow: hidden;text-align: center;border-radius: var(--hi-v4-border-radius-md, 4px);}.hi-v4-sidebar-item:first-child {margin-top: 0;}.hi-v4-sidebar-item:hover {cursor: pointer;}.hi-v4-sidebar-item:not(.hi-v4-sidebar-item--active):hover {background-color: var(--hi-v4-color-gray-100, #f2f4f7);}.hi-v4-sidebar-item--active {background-color: var(--hi-v4-color-primary-50, var(--hi-v4-color-brandblue-50, #e2f3fe));}.hi-v4-sidebar-item--active .hi-v4-sidebar-item__icon, .hi-v4-sidebar-item--active .hi-v4-sidebar-item__title {color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));}.hi-v4-sidebar-item__icon {height: 20px;color: var(--hi-v4-color-gray-600, #5f6a7a);}.hi-v4-sidebar-item__icon svg[class^=hi-v4-icon] {width: 20px;height: 20px;}.hi-v4-sidebar-item__title {font-size: var(--hi-v4-text-size-sm, 0.75rem);line-height: 20px;color: var(--hi-v4-color-gray-500, #929aa6);}.hi-v4-sidebar-menu-wrapper {width: 0;border-right: none;overflow: hidden;-webkit-transition: width 0.3s;transition: width 0.3s;}.hi-v4-sidebar-menu-wrapper .hi-v4-menu-item .hi-v4-menu-item__inner {height: var(--hi-v4-height-8, 32px);margin-bottom: 0;padding: 0 var(--hi-v4-spacing-4, 8px);}.hi-v4-sidebar-menu-wrapper .hi-v4-menu-item .hi-v4-menu-item__inner--hasIcon + div .hi-v4-menu-submenu .hi-v4-menu-item__indent {width: 20px;}.hi-v4-sidebar-menu-wrapper .hi-v4-menu-item__icon {color: var(--hi-v4-color-gray-600, #5f6a7a);-webkit-margin-end: var(--hi-v4-spacing-2, 4px);margin-inline-end: var(--hi-v4-spacing-2, 4px);}.hi-v4-sidebar-menu-wrapper .hi-v4-menu-item__indent {width: 14px;}.hi-v4-sidebar-menu-wrapper .hi-v4-menu-item__content {font-weight: 550;}.hi-v4-sidebar-menu-wrapper .hi-v4-menu-item__inner--active-p {color: var(--hi-v4-color-gray-700, #1f2733);}.hi-v4-sidebar-menu-wrapper .hi-v4-menu-item__inner--active-p .hi-v4-menu-item__icon {color: var(--hi-v4-color-gray-600, #5f6a7a);}.hi-v4-sidebar-menu-wrapper .hi-v4-menu-submenu .hi-v4-menu-item__inner .hi-v4-menu-item__content {font-size: var(--hi-v4-text-size-sm, 0.75rem);font-weight: var(--hi-v4-text-weight-normal, 400);}.hi-v4-sidebar-menu-wrapper .hi-v4-menu__wrapper > .hi-v4-menu-item {margin-top: var(--hi-v4-spacing-4, 8px);}.hi-v4-sidebar-menu-wrapper .hi-v4-menu__wrapper > .hi-v4-menu-item:first-child {margin-top: 0;}.hi-v4-sidebar-toggle {-webkit-box-sizing: border-box;box-sizing: border-box;position: absolute;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;width: 12px;height: 60px;right: -11px;top: 50%;-webkit-transform: translateY(-50%);transform: translateY(-50%);border-start-end-radius: 16px 8px;border-end-end-radius: 16px 8px;border: 1px solid var(--hi-v4-color-gray-300, #dfe2e8);border-left: none;cursor: pointer;color: var(--hi-v4-color-gray-600, #5f6a7a);background-color: #fff;}.hi-v4-sidebar-toggle svg[class^=hi-v4-icon] {margin-left: -4px;}";
|
|
15
|
+
var css_248z = ".hi-v5-menu-fat-menu {background-color: var(--hi-v5-color-static-white, #fff);margin: 0;font-size: var(--hi-v5-text-size-md, 0.875rem);padding: var(--hi-v5-spacing-4, 8px);display: -webkit-box;display: -ms-flexbox;display: flex;color: var(--hi-v5-color-gray-700, #1a1d26);border-radius: var(--hi-v5-border-radius-lg, 6px);-ms-flex-wrap: wrap;flex-wrap: wrap;}.hi-v5-menu-fat-menu__group:not(:last-of-type) {margin-right: var(--hi-v5-spacing-18, 36px);}.hi-v5-menu-fat-menu .hi-v5-menu-group-item {height: 40px;margin: 0;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;padding: 0 var(--hi-v5-spacing-6, 12px);color: var(--hi-v5-color-gray-500, #91959e);}.hi-v5-menu-fat-menu .hi-v5-menu-item {height: 40px;margin: 0;border-radius: var(--hi-v5-border-radius-lg, 6px);display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;padding: 0 var(--hi-v5-spacing-4, 8px) 0 var(--hi-v5-spacing-6, 12px);}.hi-v5-menu-fat-menu .hi-v5-menu-item--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));}.hi-v5-menu-fat-menu .hi-v5-menu-item:not(.hi-v5-menu-item--active):hover {background-color: var(--hi-v5-color-gray-100, #edeff2);}.hi-v5-menu-fat-menu .hi-v5-menu-item--disabled {color: var(--hi-v5-color-gray-400, #babcc2);cursor: not-allowed;}.hi-v5-menu-fat-menu ul {padding: 0;margin: 0;}.hi-v5-menu-fat-menu ul li {list-style-type: none;}.hi-v5-menu-popmenu {background-color: var(--hi-v5-color-static-white, #fff);border-radius: var(--hi-v5-border-radius-xl, 8px);margin: 0;font-size: var(--hi-v5-text-size-md, 0.875rem);padding: var(--hi-v5-spacing-4, 8px);color: var(--hi-v5-color-gray-700, #1a1d26);width: 216px;-webkit-box-sizing: border-box;box-sizing: border-box;}.hi-v5-menu-popmenu .hi-v5-menu-item {margin: 0;}.hi-v5-menu-popmenu .hi-v5-menu-item__inner {-webkit-box-sizing: border-box;box-sizing: border-box;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;padding: 0 var(--hi-v5-spacing-4, 8px) 0 var(--hi-v5-spacing-6, 12px);border-radius: var(--hi-v5-border-radius-lg, 6px);}.hi-v5-menu-popmenu .hi-v5-menu-item__inner--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));}.hi-v5-menu-popmenu .hi-v5-menu-item__inner--active-p {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-menu-popmenu .hi-v5-menu-item__inner--expanded {background-color: var(--hi-v5-color-gray-100, #edeff2);}.hi-v5-menu-popmenu .hi-v5-menu-item__inner:not(.hi-v5-menu-item__inner--active):hover {background-color: var(--hi-v5-color-gray-100, #edeff2);}.hi-v5-menu-popmenu .hi-v5-menu-item__inner--disabled {color: var(--hi-v5-color-gray-400, #babcc2);cursor: not-allowed;}.hi-v5-menu-popmenu .hi-v5-menu-item__content {-webkit-box-flex: 1;-ms-flex: 1 1;flex: 1 1;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;max-width: 100%;padding-right: var(--hi-v5-spacing-4, 8px);}.hi-v5-menu-popmenu.hi-v5-menu--size-sm .hi-v5-menu-item__inner {height: var(--hi-v5-height-8, 32px);}.hi-v5-menu-popmenu.hi-v5-menu--size-md .hi-v5-menu-item__inner {height: var(--hi-v5-height-9, 36px);}.hi-v5-menu-popmenu.hi-v5-menu--size-lg .hi-v5-menu-item__inner {height: var(--hi-v5-height-10, 40px);}.hi-v5-menu {background-color: var(--hi-v5-color-static-white, #fff);color: var(--hi-v5-color-gray-700, #1a1d26);font-size: var(--hi-v5-text-size-md, 0.875rem);line-height: var(--hi-v5-text-lineheight-md, 1.375rem);-webkit-box-sizing: border-box;box-sizing: border-box;}.hi-v5-menu ul {margin: 0;padding: 0;}.hi-v5-menu-item {list-style: none;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: pointer;-webkit-transition: all 0.3s;transition: all 0.3s;}.hi-v5-menu-item__icon {color: var(--hi-v5-color-gray-500, #91959e);-webkit-margin-end: var(--hi-v5-spacing-4, 8px);margin-inline-end: var(--hi-v5-spacing-4, 8px);}.hi-v5-menu-item__icon svg[class^=hi-v5-icon] {font-size: var(--hi-v5-text-size-lg, 1rem);}.hi-v5-menu-item__arrow {color: var(--hi-v5-color-gray-500, #91959e);font-size: var(--hi-v5-text-size-lg, 1rem);}.hi-v5-menu-item__indent {display: inline-block;width: 24px;height: 100%;-ms-flex-negative: 0;flex-shrink: 0;}.hi-v5-menu-item--disabled {color: var(--hi-v5-color-gray-400, #babcc2);cursor: not-allowed;}.hi-v5-menu__wrapper {padding: 0;margin: 0;}.hi-v5-menu--horizontal {width: 100%;overflow: hidden;}.hi-v5-menu--horizontal .hi-v5-menu__wrapper {display: -webkit-box;display: -ms-flexbox;display: flex;overflow: visible;width: -webkit-max-content;width: -moz-max-content;width: max-content;-webkit-box-sizing: border-box;box-sizing: border-box;}.hi-v5-menu--horizontal .hi-v5-menu-item {padding: 0 var(--hi-v5-spacing-10, 20px);display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;-webkit-box-align: center;-ms-flex-align: center;align-items: center;height: 56px;border: none;font-size: var(--hi-v5-text-size-lg, 1rem);}.hi-v5-menu--horizontal .hi-v5-menu-item__arrow {-webkit-margin-start: var(--hi-v5-spacing-2, 4px);margin-inline-start: var(--hi-v5-spacing-2, 4px);}.hi-v5-menu--horizontal .hi-v5-menu-item:hover {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-menu--horizontal .hi-v5-menu-item:hover .hi-v5-menu-item__inner {border-bottom: 2px solid var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-menu--horizontal .hi-v5-menu-item--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-menu--horizontal .hi-v5-menu-item--active .hi-v5-menu-item__inner {border-bottom: 2px solid var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-menu--horizontal .hi-v5-menu-item--active .hi-v5-menu-item__icon {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-menu--horizontal .hi-v5-menu-item--active-p {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-menu--horizontal .hi-v5-menu-item--active-p .hi-v5-menu-item__icon {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-menu--horizontal .hi-v5-menu-item__inner {height: 100%;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-sizing: border-box;box-sizing: border-box;border-bottom: 2px solid transparent;}.hi-v5-menu--horizontal .hi-v5-menu-item__inner--expanded {border-bottom: 2px solid var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-menu--horizontal .hi-v5-menu-item__content {-webkit-box-flex: 1;-ms-flex: 1 1;flex: 1 1;white-space: nowrap;max-width: none;}.hi-v5-menu--horizontal .hi-v5-menu-item--disabled {color: var(--hi-v5-color-gray-400, #babcc2);cursor: not-allowed;}.hi-v5-menu--horizontal .hi-v5-menu-item--disabled:hover .hi-v5-menu-item__inner {border-color: var(--hi-v5-color-static-white, #fff);}.hi-v5-menu--horizontal .hi-v5-menu-item--disabled .hi-v5-menu-item__content {color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-menu--vertical {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;padding: var(--hi-v5-spacing-4, 8px);width: 216px;-webkit-box-sizing: border-box;box-sizing: border-box;height: 100%;-webkit-transition: width 0.3s;transition: width 0.3s;}.hi-v5-menu--vertical .hi-v5-menu__wrapper {-webkit-box-flex: 1;-ms-flex: 1 1;flex: 1 1;overflow: auto;}.hi-v5-menu--vertical.hi-v5-menu--mini {width: 56px;overflow-x: hidden;}.hi-v5-menu--vertical.hi-v5-menu--mini.hi-v5-menu--show-title-on-mini {padding-left: var(--hi-v5-spacing-2, 4px);padding-right: var(--hi-v5-spacing-2, 4px);}.hi-v5-menu--vertical.hi-v5-menu--popup .hi-v5-menu-item__inner--expanded {background-color: var(--hi-v5-color-gray-100, #edeff2);}.hi-v5-menu--vertical.hi-v5-menu--popup:not(.hi-v5-menu--mini) .hi-v5-menu__wrapper > .hi-v5-menu-item:last-child .hi-v5-menu-item__inner {margin-bottom: 0;}.hi-v5-menu--vertical .hi-v5-menu__toggle {width: var(--hi-v5-height-10, 40px);height: var(--hi-v5-height-10, 40px);cursor: pointer;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;border-radius: var(--hi-v5-border-radius-lg, 6px);color: var(--hi-v5-color-gray-500, #91959e);-ms-flex-negative: 0;flex-shrink: 0;-webkit-transition-duration: var(--hi-v5-motion-duration-normal, 200ms);transition-duration: var(--hi-v5-motion-duration-normal, 200ms);-webkit-transition-timing-function: var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1));transition-timing-function: var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1));-webkit-transition-property: background-color;transition-property: background-color;}.hi-v5-menu--vertical .hi-v5-menu__toggle:hover {background-color: var(--hi-v5-color-gray-100, #edeff2);}.hi-v5-menu--vertical .hi-v5-menu-item__inner {-webkit-box-sizing: border-box;box-sizing: border-box;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;padding: 0 var(--hi-v5-spacing-4, 8px) 0 var(--hi-v5-spacing-6, 12px);border-radius: var(--hi-v5-border-radius-lg, 6px);-webkit-transition: all 0.3s;transition: all 0.3s;}.hi-v5-menu--vertical .hi-v5-menu-item__inner--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));}.hi-v5-menu--vertical .hi-v5-menu-item__inner--active .hi-v5-menu-item__icon {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-menu--vertical .hi-v5-menu-item__inner--active-p {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-menu--vertical .hi-v5-menu-item__inner--active-p .hi-v5-menu-item__icon {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-menu--vertical .hi-v5-menu-item__inner:not(.hi-v5-menu-item__inner--active):hover {background-color: var(--hi-v5-color-gray-100, #edeff2);}.hi-v5-menu--vertical .hi-v5-menu-item__content {-webkit-box-flex: 1;-ms-flex: 1 1;flex: 1 1;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;text-indent: 0.5px;}.hi-v5-menu--vertical .hi-v5-menu-item--disabled {color: var(--hi-v5-color-gray-400, #babcc2);cursor: not-allowed;}.hi-v5-menu--vertical.hi-v5-menu--mini.hi-v5-menu--show-title-on-mini {width: 60px;}.hi-v5-menu--vertical.hi-v5-menu--mini.hi-v5-menu--show-title-on-mini .hi-v5-menu-item__inner {-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;-webkit-box-sizing: border-box;box-sizing: border-box;width: 52px;height: 48px;padding: 6px 6px 0;}.hi-v5-menu--vertical.hi-v5-menu--mini.hi-v5-menu--show-title-on-mini .hi-v5-menu-item__inner .hi-v5-menu-item__icon {-webkit-margin-end: 0;margin-inline-end: 0;-webkit-margin-after: 2px;margin-block-end: 2px;display: -webkit-inline-box;display: -ms-inline-flexbox;display: inline-flex;}.hi-v5-menu--vertical.hi-v5-menu--mini.hi-v5-menu--show-title-on-mini .hi-v5-menu-item__inner .hi-v5-menu-item__icon svg[class^=hi-v5-icon] {font-size: 18px;}.hi-v5-menu--vertical.hi-v5-menu--mini.hi-v5-menu--show-title-on-mini .hi-v5-menu-item__inner .hi-v5-menu-item__content {-webkit-transform: scale(0.5);transform: scale(0.5);width: 200%;font-size: 20px;text-align: center;text-indent: 0;}.hi-v5-menu--vertical.hi-v5-menu--size-lg .hi-v5-menu-item__inner {height: var(--hi-v5-height-10, 40px);margin-bottom: var(--hi-v5-spacing-4, 8px);}.hi-v5-menu--vertical.hi-v5-menu--size-md .hi-v5-menu-item__inner {height: var(--hi-v5-height-9, 36px);margin-bottom: var(--hi-v5-spacing-2, 4px);}.hi-v5-menu--vertical.hi-v5-menu--size-sm .hi-v5-menu-item__inner {height: var(--hi-v5-height-8, 32px);margin-bottom: var(--hi-v5-spacing-1, 2px);}.hi-v5-sidebar-wrapper {position: relative;display: -webkit-box;display: -ms-flexbox;display: flex;width: -webkit-fit-content;width: -moz-fit-content;width: fit-content;height: 100%;}.hi-v5-sidebar-wrapper:not(.hi-v5-sidebar-wrapper-showMenuArrow) .hi-v5-sidebar-menu-wrapper .hi-v5-menu-item__arrow {display: none;}.hi-v5-sidebar-wrapper--showMenu .hi-v5-sidebar-menu-wrapper {border-right: 1px solid var(--hi-v5-color-gray-300, #dbdde0);}.hi-v5-sidebar-wrapper--showMenu .hi-v5-sidebar-toggle svg[class^=hi-v5-icon] {-webkit-transform: rotate(180deg);transform: rotate(180deg);}.hi-v5-sidebar-wrapper:not(.hi-v5-sidebar-wrapper--collapsible) .hi-v5-sidebar-menu-wrapper .hi-v5-menu-item__inner--expanded:hover {background-color: transparent;cursor: default;}.hi-v5-sidebar {-webkit-box-sizing: border-box;box-sizing: border-box;width: 64px;height: 100%;padding: var(--hi-v5-spacing-4, 8px) 0;overflow: auto;border-right: 1px solid var(--hi-v5-color-gray-300, #dbdde0);background-color: #fff;}.hi-v5-sidebar-list {-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0;padding: 0;}.hi-v5-sidebar-item {-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0;padding: 0;list-style: none;margin: var(--hi-v5-spacing-6, 12px) var(--hi-v5-spacing-2, 4px) 0;padding: var(--hi-v5-spacing-3, 6px) var(--hi-v5-spacing-1, 2px);width: 52px;overflow: hidden;text-align: center;border-radius: var(--hi-v5-border-radius-lg, 6px);}.hi-v5-sidebar-item:first-child {margin-top: 0;}.hi-v5-sidebar-item:hover {cursor: pointer;}.hi-v5-sidebar-item:not(.hi-v5-sidebar-item--active):hover {background-color: var(--hi-v5-color-gray-100, #edeff2);}.hi-v5-sidebar-item--active {background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));}.hi-v5-sidebar-item--active .hi-v5-sidebar-item__icon, .hi-v5-sidebar-item--active .hi-v5-sidebar-item__title {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-sidebar-item__icon {height: 20px;color: var(--hi-v5-color-gray-600, #60636b);}.hi-v5-sidebar-item__icon svg[class^=hi-v5-icon] {width: 20px;height: 20px;}.hi-v5-sidebar-item__title {font-size: var(--hi-v5-text-size-sm, 0.75rem);line-height: 20px;color: var(--hi-v5-color-gray-500, #91959e);}.hi-v5-sidebar-menu-wrapper {width: 0;border-right: none;overflow: hidden;-webkit-transition: width 0.3s;transition: width 0.3s;}.hi-v5-sidebar-menu-wrapper .hi-v5-menu-item .hi-v5-menu-item__inner {height: var(--hi-v5-height-8, 32px);margin-bottom: 0;padding: 0 var(--hi-v5-spacing-4, 8px);}.hi-v5-sidebar-menu-wrapper .hi-v5-menu-item .hi-v5-menu-item__inner--hasIcon + div .hi-v5-menu-submenu .hi-v5-menu-item__indent {width: 20px;}.hi-v5-sidebar-menu-wrapper .hi-v5-menu-item__icon {color: var(--hi-v5-color-gray-600, #60636b);-webkit-margin-end: var(--hi-v5-spacing-2, 4px);margin-inline-end: var(--hi-v5-spacing-2, 4px);}.hi-v5-sidebar-menu-wrapper .hi-v5-menu-item__indent {width: 14px;}.hi-v5-sidebar-menu-wrapper .hi-v5-menu-item__content {font-weight: 550;}.hi-v5-sidebar-menu-wrapper .hi-v5-menu-item__inner--active-p {color: var(--hi-v5-color-gray-700, #1a1d26);}.hi-v5-sidebar-menu-wrapper .hi-v5-menu-item__inner--active-p .hi-v5-menu-item__icon {color: var(--hi-v5-color-gray-600, #60636b);}.hi-v5-sidebar-menu-wrapper .hi-v5-menu-submenu .hi-v5-menu-item__inner .hi-v5-menu-item__content {font-size: var(--hi-v5-text-size-sm, 0.75rem);font-weight: var(--hi-v5-text-weight-normal, 400);}.hi-v5-sidebar-menu-wrapper .hi-v5-menu__wrapper > .hi-v5-menu-item {margin-top: var(--hi-v5-spacing-4, 8px);}.hi-v5-sidebar-menu-wrapper .hi-v5-menu__wrapper > .hi-v5-menu-item:first-child {margin-top: 0;}.hi-v5-sidebar-toggle {-webkit-box-sizing: border-box;box-sizing: border-box;position: absolute;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;width: 12px;height: 60px;right: -11px;top: 50%;-webkit-transform: translateY(-50%);transform: translateY(-50%);border-start-end-radius: 16px 8px;border-end-end-radius: 16px 8px;border: 1px solid var(--hi-v5-color-gray-300, #dbdde0);border-left: none;cursor: pointer;color: var(--hi-v5-color-gray-600, #60636b);background-color: #fff;}.hi-v5-sidebar-toggle svg[class^=hi-v5-icon] {margin-left: -4px;}.hi-v5-menu-search {min-width: 360px;border-radius: var(--hi-v5-border-radius-xl, 8px);overflow: hidden;background-color: var(--hi-v5-color-static-white, #fff);}.hi-v5-menu-search__input-wrapper {-webkit-box-sizing: border-box;box-sizing: border-box;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;padding: 0 var(--hi-v5-spacing-8, 16px) 0 calc(var(--hi-v5-spacing-2, 4px) + 1px);height: var(--hi-v5-height-12, 48px);}.hi-v5-menu-search--open .hi-v5-menu-search__input-wrapper {border-bottom-left-radius: 0;border-bottom-right-radius: 0;}.hi-v5-menu-search__input .hi-v5-input__inner:hover {background-color: transparent !important;}.hi-v5-menu-search__input-prefix {color: var(--hi-v5-color-gray-600, #60636b);}.hi-v5-menu-search__input-clear {font-size: var(--hi-v5-text-size-sm, 0.75rem);}.hi-v5-menu-search__close {display: -webkit-inline-box;display: -ms-inline-flexbox;display: inline-flex;height: var(--hi-v5-height-4, 16px);padding-left: var(--hi-v5-spacing-5, 10px);border-left: var(--hi-v5-border-size-normal, 1px solid) var(--hi-v5-color-gray-300, #dbdde0);}.hi-v5-menu-search__content {-webkit-box-sizing: border-box;box-sizing: border-box;display: none;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;padding: var(--hi-v5-spacing-4, 8px);max-height: 550px;border-top: var(--hi-v5-border-size-normal, 1px solid) var(--hi-v5-color-gray-100, #edeff2);}.hi-v5-menu-search__content--visible {display: -webkit-box;display: -ms-flexbox;display: flex;}.hi-v5-menu-search__header {padding: 0 var(--hi-v5-spacing-4, 8px) var(--hi-v5-spacing-4, 8px);font-size: var(--hi-v5-text-size-sm, 0.75rem);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);font-weight: var(--hi-v5-text-weight-medium, 500);color: var(--hi-v5-color-gray-500, #91959e);}.hi-v5-menu-search__header-count {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-menu-search__list {-webkit-box-flex: 1;-ms-flex: 1 1;flex: 1 1;overflow-y: auto;position: relative;outline: none;}.hi-v5-menu-search__list:focus {outline: none;}.hi-v5-menu-search__list-item {-webkit-box-sizing: border-box;box-sizing: border-box;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;height: var(--hi-v5-height-10, 40px);padding: calc(var(--hi-v5-spacing-4, 8px) + 1px) var(--hi-v5-spacing-4, 8px);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);border-radius: var(--hi-v5-border-radius-lg, 6px);}.hi-v5-menu-search__list-item__title {font-size: var(--hi-v5-text-size-md, 0.875rem);color: var(--hi-v5-color-gray-700, #1a1d26);}.hi-v5-menu-search__list-item--selected, .hi-v5-menu-search__list-item:hover {cursor: pointer;background-color: var(--hi-v5-color-gray-100, #edeff2);}.hi-v5-menu-search__empty {padding: calc(var(--hi-v5-spacing-2, 4px) + 1px) var(--hi-v5-spacing-4, 8px);font-size: var(--hi-v5-text-size-md, 0.875rem);line-height: var(--hi-v5-text-lineheight-md, 1.375rem);color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-menu-search__footer {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;padding: var(--hi-v5-spacing-5, 10px) var(--hi-v5-spacing-8, 16px);background-color: #f5f7fa;}.hi-v5-menu-search__footer-item {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;margin-right: var(--hi-v5-spacing-8, 16px);font-size: var(--hi-v5-text-size-sm, 0.75rem);color: var(--hi-v5-color-gray-500, #91959e);}.hi-v5-menu-search__footer-item__icon {-webkit-box-sizing: border-box;box-sizing: border-box;display: -webkit-inline-box;display: -ms-inline-flexbox;display: inline-flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;gap: var(--hi-v5-spacing-1, 2px);margin-right: var(--hi-v5-spacing-2, 4px);padding: 0 var(--hi-v5-spacing-2, 4px);height: var(--hi-v5-height-5, 20px);border: var(--hi-v5-border-size-normal, 1px solid) var(--hi-v5-color-gray-300, #dbdde0);border-radius: var(--hi-v5-border-radius-md, 4px);}.hi-v5-menu-search__picker-overlay .hi-v5-menu-search__picker-container {min-width: 360px;border-top-left-radius: 0;border-top-right-radius: 0;}.hi-v5-menu-search__picker-overlay .hi-v5-menu-search__picker-panel {border-top: none;border-top-left-radius: 0;border-top-right-radius: 0;}.hi-v5-menu-search__picker-overlay .hi-v5-menu-search__picker-body {max-height: 544px;}.hi-v5-menu-search__picker-overlay .hi-v5-menu-search__picker-footer {-webkit-box-shadow: none;box-shadow: none;background-color: #f5f7fa;}.hi-v5-group-menu {-webkit-box-sizing: border-box;box-sizing: border-box;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;height: 100%;padding: var(--hi-v5-spacing-4, 8px) 0;}.hi-v5-group-menu-item:not(:first-child) {margin-top: var(--hi-v5-spacing-4, 8px);}.hi-v5-group-menu-item__content {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;height: var(--hi-v5-height-8, 32px);padding: 0 var(--hi-v5-spacing-4, 8px);margin: 0 var(--hi-v5-spacing-4, 8px);border-radius: var(--hi-v5-border-radius-lg, 6px);font-size: var(--hi-v5-text-size-md, 0.875rem);line-height: var(--hi-v5-text-lineheight-md, 1.375rem);color: var(--hi-v5-color-gray-700, #1a1d26);}.hi-v5-group-menu-item:not(.hi-v5-group-menu-item--parent):not(.hi-v5-group-menu-item--disabled) {cursor: pointer;}.hi-v5-group-menu-item:not(.hi-v5-group-menu-item--parent):not(.hi-v5-group-menu-item--disabled):hover .hi-v5-group-menu-item__content {background-color: var(--hi-v5-color-gray-100, #edeff2);}.hi-v5-group-menu-item:not(.hi-v5-group-menu-item--parent):not(.hi-v5-group-menu-item--disabled).hi-v5-group-menu-item--active > .hi-v5-group-menu-item__content {font-weight: var(--hi-v5-text-weight-medium, 500);color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));background-color: var(--hi-v5-color-primary-100, var(--hi-v5-color-brandblue-100, #e5ecff));}.hi-v5-group-menu-item:not(.hi-v5-group-menu-item--parent):not(.hi-v5-group-menu-item--disabled).hi-v5-group-menu-item--active:hover > .hi-v5-group-menu-item__content {background-color: var(--hi-v5-color-primary-100, var(--hi-v5-color-brandblue-100, #e5ecff));}.hi-v5-group-menu-item--disabled > .hi-v5-group-menu-item__content {color: var(--hi-v5-color-gray-400, #babcc2);}.hi-v5-group-menu-item--empty > .hi-v5-group-menu-item__content {display: none;}.hi-v5-group-menu-item__icon {display: -webkit-inline-box;display: -ms-inline-flexbox;display: inline-flex;margin-right: var(--hi-v5-spacing-4, 8px);font-size: var(--hi-v5-text-size-lg, 1rem);}.hi-v5-group-menu-parent-item {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;}.hi-v5-group-menu-parent-item > .hi-v5-group-menu-item__content {height: var(--hi-v5-height-7, 28px);color: var(--hi-v5-color-gray-500, #91959e);}.hi-v5-group-menu-parent-item > .hi-v5-group-menu-item__content .hi-v5-group-menu-item__title {font-size: var(--hi-v5-text-size-sm, 0.75rem);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-group-menu-parent-item:not(:first-child) > .hi-v5-group-menu-item__content {margin-top: var(--hi-v5-spacing-12, 24px);}.hi-v5-group-menu-parent-item + .hi-v5-group-menu-item {margin-top: var(--hi-v5-spacing-12, 24px);}.hi-v5-side-menu {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;padding: var(--hi-v5-spacing-2, 4px) 0;-webkit-transition: width 0.3s;transition: width 0.3s;}.hi-v5-side-menu-item {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;height: var(--hi-v5-height-8, 32px);padding: 0 var(--hi-v5-spacing-4, 8px);font-size: var(--hi-v5-text-size-md, 0.875rem);line-height: var(--hi-v5-text-lineheight-md, 1.375rem);color: var(--hi-v5-color-gray-700, #1a1d26);border-radius: var(--hi-v5-border-radius-lg, 6px);cursor: pointer;position: relative;}.hi-v5-side-menu-item:hover, .hi-v5-side-menu-item--selected {background-color: rgba(124, 135, 166, 0.15);}.hi-v5-side-menu-item-wrapper {padding: var(--hi-v5-spacing-2, 4px) var(--hi-v5-spacing-4, 8px);}.hi-v5-side-menu-item--active {font-weight: var(--hi-v5-text-weight-medium, 500);color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));background-color: var(--hi-v5-color-static-white, #fff);}.hi-v5-side-menu-item--active:hover {background-color: var(--hi-v5-color-static-white, #fff);}.hi-v5-side-menu-item--active .hi-v5-side-menu-item__icon {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-side-menu-item__icon {display: -webkit-inline-box;display: -ms-inline-flexbox;display: inline-flex;margin-right: var(--hi-v5-spacing-4, 8px);color: #7c87a6;}.hi-v5-side-menu-item__title {min-width: 1px;}.hi-v5-side-menu-item--mini {-webkit-box-sizing: border-box;box-sizing: border-box;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;padding: var(--hi-v5-spacing-3, 6px) var(--hi-v5-spacing-3, 6px) 0;width: 52px;height: 48px;}.hi-v5-side-menu-item--mini .hi-v5-side-menu-item__icon {margin-right: 0;font-size: 18px;}.hi-v5-side-menu-item--mini .hi-v5-side-menu-item__title {width: 200%;font-size: 20px;text-align: center;text-indent: 0;-webkit-transform: scale(0.5);transform: scale(0.5);}.hi-v5-side-menu--mini .hi-v5-side-menu-item-wrapper {padding: var(--hi-v5-spacing-2, 4px);}.hi-v5-side-menu .hi-v5-scrollbar__wrapper {width: 100%;}";
|
|
16
16
|
var __styleInject__ = require('@hi-ui/style-inject')["default"];
|
|
17
17
|
__styleInject__(css_248z);
|
|
18
18
|
exports["default"] = css_248z;
|
package/lib/cjs/util.js
CHANGED
|
@@ -13,7 +13,39 @@ Object.defineProperty(exports, '__esModule', {
|
|
|
13
13
|
value: true
|
|
14
14
|
});
|
|
15
15
|
var treeUtils = require('@hi-ui/tree-utils');
|
|
16
|
-
|
|
16
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
17
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
18
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
19
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
20
|
+
if (it) o = it;
|
|
21
|
+
var i = 0;
|
|
22
|
+
return function () {
|
|
23
|
+
if (i >= o.length) return {
|
|
24
|
+
done: true
|
|
25
|
+
};
|
|
26
|
+
return {
|
|
27
|
+
done: false,
|
|
28
|
+
value: o[i++]
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
33
|
+
}
|
|
34
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
35
|
+
if (!o) return;
|
|
36
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
37
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
38
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
39
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
40
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
41
|
+
}
|
|
42
|
+
function _arrayLikeToArray(arr, len) {
|
|
43
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
44
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
45
|
+
arr2[i] = arr[i];
|
|
46
|
+
}
|
|
47
|
+
return arr2;
|
|
48
|
+
}
|
|
17
49
|
// 寻找某一节点的父节点
|
|
18
50
|
var getParentId = function getParentId(id, data) {
|
|
19
51
|
var parentId = '';
|
|
@@ -90,8 +122,70 @@ var transformTreeData = function transformTreeData(data, fieldNames) {
|
|
|
90
122
|
};
|
|
91
123
|
return data.map(traverseTreeNode);
|
|
92
124
|
};
|
|
125
|
+
/**
|
|
126
|
+
* 增强版搜索函数,返回包含路径信息的结果
|
|
127
|
+
*/
|
|
128
|
+
function searchMenuWithPath(data, keyword) {
|
|
129
|
+
if (!keyword || !data || data.length === 0) {
|
|
130
|
+
return [];
|
|
131
|
+
}
|
|
132
|
+
var results = [];
|
|
133
|
+
var processedIds = new Set();
|
|
134
|
+
function searchInTree(nodes, currentPath) {
|
|
135
|
+
if (currentPath === void 0) {
|
|
136
|
+
currentPath = [];
|
|
137
|
+
}
|
|
138
|
+
var _a;
|
|
139
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose(nodes), _step3; !(_step3 = _iterator3()).done;) {
|
|
140
|
+
var node = _step3.value;
|
|
141
|
+
var nodePath = [].concat(currentPath, [node]);
|
|
142
|
+
var isMatched = (_a = node.title) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase().includes(keyword.toLowerCase());
|
|
143
|
+
if (isMatched) {
|
|
144
|
+
if (!node.children || node.children.length === 0) {
|
|
145
|
+
// 叶子节点
|
|
146
|
+
if (!processedIds.has(node.id)) {
|
|
147
|
+
results.push({
|
|
148
|
+
node: node,
|
|
149
|
+
path: nodePath,
|
|
150
|
+
level: nodePath.length - 1
|
|
151
|
+
});
|
|
152
|
+
processedIds.add(node.id);
|
|
153
|
+
}
|
|
154
|
+
} else {
|
|
155
|
+
// 父节点,添加所有子节点
|
|
156
|
+
addAllDescendantsWithPath(node.children, nodePath);
|
|
157
|
+
}
|
|
158
|
+
} else {
|
|
159
|
+
// 继续搜索子节点
|
|
160
|
+
if (node.children && node.children.length > 0) {
|
|
161
|
+
searchInTree(node.children, nodePath);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function addAllDescendantsWithPath(children, parentPath) {
|
|
167
|
+
for (var _iterator4 = _createForOfIteratorHelperLoose(children), _step4; !(_step4 = _iterator4()).done;) {
|
|
168
|
+
var child = _step4.value;
|
|
169
|
+
var childPath = [].concat(parentPath, [child]);
|
|
170
|
+
if (!processedIds.has(child.id)) {
|
|
171
|
+
results.push({
|
|
172
|
+
node: child,
|
|
173
|
+
path: childPath,
|
|
174
|
+
level: childPath.length - 1
|
|
175
|
+
});
|
|
176
|
+
processedIds.add(child.id);
|
|
177
|
+
}
|
|
178
|
+
if (child.children && child.children.length > 0) {
|
|
179
|
+
addAllDescendantsWithPath(child.children, childPath);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
searchInTree(data);
|
|
184
|
+
return results;
|
|
185
|
+
}
|
|
93
186
|
exports.filterTreeData = filterTreeData;
|
|
94
187
|
exports.getAncestorIds = getAncestorIds;
|
|
95
188
|
exports.getIdsWithChildren = getIdsWithChildren;
|
|
96
189
|
exports.getParentId = getParentId;
|
|
190
|
+
exports.searchMenuWithPath = searchMenuWithPath;
|
|
97
191
|
exports.transformTreeData = transformTreeData;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** @LICENSE
|
|
2
|
+
* @hi-ui/menu
|
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/menu#readme
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
var EnterIcon = function EnterIcon() {
|
|
12
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
13
|
+
width: "12",
|
|
14
|
+
height: "12",
|
|
15
|
+
viewBox: "0 0 12 12",
|
|
16
|
+
fill: "none",
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
18
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
d: "M4 9L2 7L4 5",
|
|
20
|
+
stroke: "#91959e",
|
|
21
|
+
strokeWidth: "1.2",
|
|
22
|
+
strokeLinecap: "round",
|
|
23
|
+
strokeLinejoin: "round"
|
|
24
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
25
|
+
d: "M10 3L10 6.25C10 6.66422 9.66423 7 9.25 7L2 7",
|
|
26
|
+
stroke: "#91959e",
|
|
27
|
+
strokeWidth: "1.2",
|
|
28
|
+
strokeLinecap: "round",
|
|
29
|
+
strokeLinejoin: "round"
|
|
30
|
+
}));
|
|
31
|
+
};
|
|
32
|
+
export { EnterIcon };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/** @LICENSE
|
|
2
|
+
* @hi-ui/menu
|
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/menu#readme
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
import { __rest } from 'tslib';
|
|
11
|
+
import React, { forwardRef, useCallback } from 'react';
|
|
12
|
+
import { getPrefixCls, cx } from '@hi-ui/classname';
|
|
13
|
+
import { __DEV__ } from '@hi-ui/env';
|
|
14
|
+
import { isArrayNonEmpty } from '@hi-ui/type-assertion';
|
|
15
|
+
import { useLatestCallback } from '@hi-ui/use-latest';
|
|
16
|
+
import { useUncontrolledState } from '@hi-ui/use-uncontrolled-state';
|
|
17
|
+
import Scrollbar from '@hi-ui/scrollbar';
|
|
18
|
+
var _role = 'group-menu';
|
|
19
|
+
var GROUP_MENU_PREFIX = getPrefixCls(_role);
|
|
20
|
+
/**
|
|
21
|
+
* 分组菜单
|
|
22
|
+
*/
|
|
23
|
+
var GroupMenu = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
24
|
+
var _a$prefixCls = _a.prefixCls,
|
|
25
|
+
prefixCls = _a$prefixCls === void 0 ? GROUP_MENU_PREFIX : _a$prefixCls,
|
|
26
|
+
_a$role = _a.role,
|
|
27
|
+
role = _a$role === void 0 ? _role : _a$role,
|
|
28
|
+
className = _a.className,
|
|
29
|
+
_a$data = _a.data,
|
|
30
|
+
data = _a$data === void 0 ? [] : _a$data,
|
|
31
|
+
onClick = _a.onClick,
|
|
32
|
+
_a$defaultActiveId = _a.defaultActiveId,
|
|
33
|
+
defaultActiveId = _a$defaultActiveId === void 0 ? '' : _a$defaultActiveId,
|
|
34
|
+
activeIdProp = _a.activeId,
|
|
35
|
+
titleRender = _a.titleRender,
|
|
36
|
+
rest = __rest(_a, ["prefixCls", "role", "className", "data", "onClick", "defaultActiveId", "activeId", "titleRender"]);
|
|
37
|
+
var _useUncontrolledState = useUncontrolledState(defaultActiveId, activeIdProp),
|
|
38
|
+
activeId = _useUncontrolledState[0],
|
|
39
|
+
tryChangeActiveId = _useUncontrolledState[1];
|
|
40
|
+
var handleClick = useLatestCallback(function (evt, id, item) {
|
|
41
|
+
tryChangeActiveId(id);
|
|
42
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(evt, id, item);
|
|
43
|
+
});
|
|
44
|
+
var renderItem = useCallback(function (data) {
|
|
45
|
+
return data.map(function (item) {
|
|
46
|
+
var _cx;
|
|
47
|
+
var id = item.id,
|
|
48
|
+
icon = item.icon,
|
|
49
|
+
title = item.title,
|
|
50
|
+
_item$children = item.children,
|
|
51
|
+
children = _item$children === void 0 ? [] : _item$children,
|
|
52
|
+
disabled = item.disabled;
|
|
53
|
+
var isParent = isArrayNonEmpty(children);
|
|
54
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
55
|
+
key: id,
|
|
56
|
+
className: cx(isParent ? prefixCls + "-parent-item" : prefixCls + "-item", (_cx = {}, _cx[prefixCls + "-item--active"] = activeId === id, _cx[prefixCls + "-item--disabled"] = disabled, _cx[prefixCls + "-item--empty"] = !title && !icon, _cx)),
|
|
57
|
+
onClick: function onClick(evt) {
|
|
58
|
+
if (disabled || isParent) return;
|
|
59
|
+
evt.stopPropagation();
|
|
60
|
+
handleClick(evt, id, item);
|
|
61
|
+
}
|
|
62
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
className: cx(prefixCls + "-item__content")
|
|
64
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
65
|
+
className: cx(prefixCls + "-item__icon")
|
|
66
|
+
}, icon), /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
className: cx(prefixCls + "-item__title")
|
|
68
|
+
}, typeof titleRender === 'function' ? titleRender(item) : title)), isParent && renderItem(children));
|
|
69
|
+
});
|
|
70
|
+
}, [activeId, handleClick, prefixCls, titleRender]);
|
|
71
|
+
return /*#__PURE__*/React.createElement("div", Object.assign({
|
|
72
|
+
className: cx("" + prefixCls, className),
|
|
73
|
+
ref: ref,
|
|
74
|
+
role: role
|
|
75
|
+
}, rest), /*#__PURE__*/React.createElement(Scrollbar, {
|
|
76
|
+
onlyScrollVisible: true,
|
|
77
|
+
axes: "y"
|
|
78
|
+
}, renderItem(data)));
|
|
79
|
+
});
|
|
80
|
+
if (__DEV__) {
|
|
81
|
+
GroupMenu.displayName = 'GroupMenu';
|
|
82
|
+
}
|
|
83
|
+
export { GroupMenu };
|
package/lib/esm/Menu.js
CHANGED
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
9
|
*/
|
|
10
10
|
import { __rest } from 'tslib';
|
|
11
|
-
import React, { forwardRef, useState, useMemo, useEffect, useCallback, useLayoutEffect } from 'react';
|
|
11
|
+
import React, { forwardRef, useState, useMemo, useEffect, useRef, useCallback, useLayoutEffect } from 'react';
|
|
12
12
|
import { getPrefixCls, cx } from '@hi-ui/classname';
|
|
13
13
|
import { MenuUnfoldOutlined, MenuFoldOutlined } from '@hi-ui/icons';
|
|
14
14
|
import { __DEV__ } from '@hi-ui/env';
|
|
15
15
|
import { useUncontrolledState } from '@hi-ui/use-uncontrolled-state';
|
|
16
|
+
import { useLocaleContext } from '@hi-ui/core';
|
|
16
17
|
import Tooltip from '@hi-ui/tooltip';
|
|
17
18
|
import { useUncontrolledToggle } from '@hi-ui/use-toggle';
|
|
18
19
|
import { getTreeNodesWithChildren } from '@hi-ui/tree-utils';
|
|
@@ -69,7 +70,10 @@ var Menu = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
69
70
|
onClick = _a.onClick,
|
|
70
71
|
_a$size = _a.size,
|
|
71
72
|
size = _a$size === void 0 ? 'lg' : _a$size,
|
|
72
|
-
|
|
73
|
+
_a$showTitleOnMini = _a.showTitleOnMini,
|
|
74
|
+
showTitleOnMini = _a$showTitleOnMini === void 0 ? false : _a$showTitleOnMini,
|
|
75
|
+
rest = __rest(_a, ["prefixCls", "role", "className", "data", "fieldNames", "placement", "showCollapse", "expandedType", "showAllSubMenus", "defaultExpandAll", "defaultExpandedIds", "expandedIds", "onExpand", "defaultActiveId", "activeId", "onClickSubMenu", "collapsed", "defaultCollapsed", "overlayClassName", "onCollapse", "footerRender", "render", "extraHeader", "onClick", "size", "showTitleOnMini"]);
|
|
76
|
+
var i18n = useLocaleContext();
|
|
73
77
|
var _useUncontrolledState = useUncontrolledState(defaultActiveId, activeIdProp, onClick),
|
|
74
78
|
activeId = _useUncontrolledState[0],
|
|
75
79
|
updateActiveId = _useUncontrolledState[1];
|
|
@@ -91,6 +95,7 @@ var Menu = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
91
95
|
}, expandedIdsProp, onExpand),
|
|
92
96
|
expandedIds = _useUncontrolledState2[0],
|
|
93
97
|
updateExpandedIds = _useUncontrolledState2[1];
|
|
98
|
+
var expandedIdsRef = useRef(expandedIds);
|
|
94
99
|
var clickMenu = useCallback(function (id, raw) {
|
|
95
100
|
updateActiveId(id, raw);
|
|
96
101
|
}, [updateActiveId]);
|
|
@@ -99,14 +104,17 @@ var Menu = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
99
104
|
return expandedId !== id;
|
|
100
105
|
}) : expandedIds.concat(id);
|
|
101
106
|
updateExpandedIds(nextExpandedIds);
|
|
107
|
+
expandedIdsRef.current = nextExpandedIds;
|
|
102
108
|
if (onClickSubMenu) {
|
|
103
109
|
onClickSubMenu(id, nextExpandedIds);
|
|
104
110
|
}
|
|
105
111
|
}, [onClickSubMenu, expandedIds, updateExpandedIds]);
|
|
106
112
|
var closePopper = useCallback(function (id) {
|
|
107
|
-
|
|
113
|
+
var nextExpandedIds = expandedIds.filter(function (expandedId) {
|
|
108
114
|
return expandedId !== id;
|
|
109
|
-
})
|
|
115
|
+
});
|
|
116
|
+
updateExpandedIds(nextExpandedIds);
|
|
117
|
+
expandedIdsRef.current = nextExpandedIds;
|
|
110
118
|
}, [expandedIds, updateExpandedIds]);
|
|
111
119
|
var closeAllPopper = useCallback(function () {
|
|
112
120
|
updateExpandedIds([]);
|
|
@@ -139,6 +147,13 @@ var Menu = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
139
147
|
setContainerWidth(width);
|
|
140
148
|
}
|
|
141
149
|
});
|
|
150
|
+
useEffect(function () {
|
|
151
|
+
if (mini) {
|
|
152
|
+
updateExpandedIds([]);
|
|
153
|
+
} else {
|
|
154
|
+
updateExpandedIds(expandedIdsRef.current);
|
|
155
|
+
}
|
|
156
|
+
}, [mini, updateExpandedIds]);
|
|
142
157
|
var _useState4 = useState(0),
|
|
143
158
|
tagMaxCount = _useState4[0],
|
|
144
159
|
setTagMaxCount = _useState4[1];
|
|
@@ -153,7 +168,7 @@ var Menu = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
153
168
|
}, [transformedData, tagMaxCount]);
|
|
154
169
|
var getTagWidth = useCallback(function (index) {
|
|
155
170
|
if (!containerElement) return MIN_WIDTH;
|
|
156
|
-
var elements = containerElement.getElementsByClassName('hi-
|
|
171
|
+
var elements = containerElement.getElementsByClassName('hi-v5-menu-item');
|
|
157
172
|
var element = elements && elements[index];
|
|
158
173
|
if (!element) return MIN_WIDTH;
|
|
159
174
|
return element.getBoundingClientRect().width;
|
|
@@ -189,9 +204,7 @@ var Menu = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
189
204
|
var collapseNode = canToggle ? ( /*#__PURE__*/React.createElement("div", {
|
|
190
205
|
className: cx(prefixCls + "__toggle"),
|
|
191
206
|
onClick: function onClick() {
|
|
192
|
-
miniToggleAction.not();
|
|
193
|
-
// 关闭所有展开的子菜单,防止切换到 mini 模式后,子菜单还是展开的
|
|
194
|
-
updateExpandedIds([]);
|
|
207
|
+
return miniToggleAction.not();
|
|
195
208
|
}
|
|
196
209
|
}, mini ? /*#__PURE__*/React.createElement(MenuUnfoldOutlined, null) : /*#__PURE__*/React.createElement(MenuFoldOutlined, null))) : null;
|
|
197
210
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isFunction(footerRender) ? footerRender({
|
|
@@ -201,12 +214,12 @@ var Menu = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
201
214
|
};
|
|
202
215
|
var renderItem = useCallback(function (menuItem, level) {
|
|
203
216
|
// 显示缩略内容
|
|
204
|
-
if (showMini && level === 1) {
|
|
217
|
+
if (showMini && level === 1 && !showTitleOnMini) {
|
|
205
218
|
return renderMenuItemMini(menuItem);
|
|
206
219
|
}
|
|
207
220
|
return isFunction(render) ? render(menuItem, level) : menuItem.title;
|
|
208
|
-
}, [render, showMini]);
|
|
209
|
-
var cls = cx(prefixCls, className, prefixCls + "--" + placement, prefixCls + "--size-" + size, mini && prefixCls + "--mini", (expandedType === 'pop' || showAllSubMenus || mini) && prefixCls + "--popup");
|
|
221
|
+
}, [render, showMini, showTitleOnMini]);
|
|
222
|
+
var cls = cx(prefixCls, className, prefixCls + "--" + placement, prefixCls + "--size-" + size, mini && prefixCls + "--mini", showTitleOnMini && prefixCls + "--show-title-on-mini", (expandedType === 'pop' || showAllSubMenus || mini) && prefixCls + "--popup");
|
|
210
223
|
return /*#__PURE__*/React.createElement("div", Object.assign({
|
|
211
224
|
ref: useMergeRefs(ref, setContainerElement),
|
|
212
225
|
role: role,
|
|
@@ -217,6 +230,7 @@ var Menu = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
217
230
|
expandedType: expandedType,
|
|
218
231
|
showAllSubMenus: showAllSubMenus,
|
|
219
232
|
mini: mini,
|
|
233
|
+
showTitleOnMini: showTitleOnMini,
|
|
220
234
|
clickMenu: clickMenu,
|
|
221
235
|
clickSubMenu: clickSubMenu,
|
|
222
236
|
closePopper: closePopper,
|
|
@@ -250,7 +264,7 @@ var Menu = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
250
264
|
}), showVertical || restTagList.length === 0 ? null : ( /*#__PURE__*/React.createElement(MenuItem, {
|
|
251
265
|
key: MENU_MORE_ID,
|
|
252
266
|
id: MENU_MORE_ID,
|
|
253
|
-
title:
|
|
267
|
+
title: i18n.tabs.more,
|
|
254
268
|
children: restTagList
|
|
255
269
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
256
270
|
className: prefixCls + "__footer"
|
package/lib/esm/MenuItem.js
CHANGED
|
@@ -56,7 +56,8 @@ var MenuItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
56
56
|
clickSubMenu = _useContext.clickSubMenu,
|
|
57
57
|
closeAllPopper = _useContext.closeAllPopper,
|
|
58
58
|
activeParents = _useContext.activeParents,
|
|
59
|
-
overlayClassName = _useContext.overlayClassName
|
|
59
|
+
overlayClassName = _useContext.overlayClassName,
|
|
60
|
+
showTitleOnMini = _useContext.showTitleOnMini;
|
|
60
61
|
var _parentIds = (parentIds || []).concat(id);
|
|
61
62
|
var hasChildren = isArrayNonEmpty(children);
|
|
62
63
|
var mergedRef = useMergeRefs(itemRef, ref);
|
|
@@ -122,7 +123,7 @@ var MenuItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
122
123
|
visible: !!(expandedIds === null || expandedIds === void 0 ? void 0 : expandedIds.includes(id)),
|
|
123
124
|
attachEl: itemRef.current,
|
|
124
125
|
placement: 'right-start',
|
|
125
|
-
gutterGap: 16,
|
|
126
|
+
gutterGap: showTitleOnMini ? 8 : 16,
|
|
126
127
|
className: overlayClassName,
|
|
127
128
|
onClose: function onClose() {
|
|
128
129
|
closePopper === null || closePopper === void 0 ? void 0 : closePopper(id);
|
|
@@ -142,7 +143,7 @@ var MenuItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
142
143
|
visible: !!(expandedIds === null || expandedIds === void 0 ? void 0 : expandedIds.includes(id)),
|
|
143
144
|
attachEl: itemRef.current,
|
|
144
145
|
placement: 'right-start',
|
|
145
|
-
gutterGap: 16,
|
|
146
|
+
gutterGap: showTitleOnMini ? 12 : 16,
|
|
146
147
|
disabledPortal: true,
|
|
147
148
|
className: overlayClassName,
|
|
148
149
|
onClose: function onClose() {
|