@aloudata/aloudata-design 0.4.8-beta.14 → 0.4.8-beta.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/Avatar/component/Avatar/index.js +16 -5
  2. package/dist/Breadcrumb/index.js +16 -6
  3. package/dist/Button/index.js +32 -15
  4. package/dist/Button/style/variables.less +3 -3
  5. package/dist/Checkbox/component/CheckboxGroup/index.js +10 -4
  6. package/dist/Checkbox/index.js +8 -1
  7. package/dist/Checkbox/type.js +1 -0
  8. package/dist/ConfigProvider/defaultRenderEmpty.js +5 -0
  9. package/dist/ConfigProvider/sizeContext.js +1 -1
  10. package/dist/Divider/index.js +3 -0
  11. package/dist/DoubleCircleIcon/index.js +9 -7
  12. package/dist/Dropdown/Button.js +11 -7
  13. package/dist/Dropdown/index.js +9 -3
  14. package/dist/Dropdown/style/index.less +4 -0
  15. package/dist/Empty/image/Data.js +2 -0
  16. package/dist/Empty/image/Search.js +2 -0
  17. package/dist/Empty/image/SearchSmall.js +2 -0
  18. package/dist/Empty/image/User.js +2 -0
  19. package/dist/Empty/image/WorkBook.js +2 -0
  20. package/dist/Empty/index.js +23 -13
  21. package/dist/Icon/components/Icon.js +13 -9
  22. package/dist/Icon/components/createFromScripts.js +8 -2
  23. package/dist/Input/components/Group/index.js +9 -4
  24. package/dist/Input/components/Input/index.js +9 -3
  25. package/dist/Input/components/Password/index.js +10 -5
  26. package/dist/Input/components/TextArea/index.js +11 -6
  27. package/dist/Input/style/index.less +1 -1
  28. package/dist/InputNumber/index.js +12 -7
  29. package/dist/Menu/SubMenu.js +6 -1
  30. package/dist/Menu/index.js +7 -2
  31. package/dist/Menu/style/index.less +5 -0
  32. package/dist/Modal/index.js +129 -107
  33. package/dist/Modal/locale.js +6 -4
  34. package/dist/Modal/style/index.less +2 -1
  35. package/dist/Navigator/components/Header/index.js +2 -0
  36. package/dist/Navigator/components/Menu/index.js +19 -8
  37. package/dist/Navigator/components/MenuItem/index.js +9 -6
  38. package/dist/Navigator/index.js +7 -5
  39. package/dist/Popconfirm/index.js +27 -19
  40. package/dist/Popover/index.js +9 -2
  41. package/dist/Radio/components/Group/index.js +34 -26
  42. package/dist/Radio/components/Radio/index.js +18 -10
  43. package/dist/Select/components/MultipleOption.js +6 -4
  44. package/dist/Select/components/SingleOption.js +7 -5
  45. package/dist/Select/index.js +94 -44
  46. package/dist/Select/style/index.less +1 -0
  47. package/dist/Spin/CustomIcon/index.js +2 -0
  48. package/dist/Spin/index.js +10 -1
  49. package/dist/Steps/components/ProcessIcon/index.js +2 -0
  50. package/dist/Steps/components/Step/index.js +8 -2
  51. package/dist/Steps/index.js +10 -8
  52. package/dist/Switch/index.js +30 -18
  53. package/dist/Table/Table.js +129 -86
  54. package/dist/Table/components/Empty/index.js +2 -0
  55. package/dist/Table/components/Loading/index.js +2 -0
  56. package/dist/Table/components/TableBodyRowList/index.js +39 -19
  57. package/dist/Table/components/TableHead/index.js +86 -55
  58. package/dist/Table/hooks/useFrame.js +24 -9
  59. package/dist/Table/style/index.less +1 -1
  60. package/dist/Table/utils.js +27 -8
  61. package/dist/Tabs/index.js +32 -17
  62. package/dist/Tooltip/index.js +12 -12
  63. package/dist/Tooltip/style/index.less +7 -1
  64. package/dist/Tree/index.js +4 -2
  65. package/dist/_utils/hooks/useControlledState.js +21 -9
  66. package/dist/_utils/hooks/useId.js +5 -4
  67. package/dist/_utils/hooks/usePrefixCls.js +5 -2
  68. package/dist/index.js +1 -2
  69. package/dist/locale-provider/index.js +33 -8
  70. package/dist/message/index.js +7 -3
  71. package/dist/notification/demo/index.js +1 -0
  72. package/dist/notification/index.js +48 -39
  73. package/package.json +2 -2
@@ -1,21 +1,25 @@
1
1
  var _excluded = ["type", "size", "className", "color"];
2
+
2
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+
3
5
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+
4
7
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8
+
5
9
  import React from 'react';
6
10
  import classnames from 'classnames';
7
11
  export default function Icon(props) {
8
12
  var type = props.type,
9
- _props$size = props.size,
10
- size = _props$size === void 0 ? '1em' : _props$size,
11
- _props$className = props.className,
12
- className = _props$className === void 0 ? 'ald-icon' : _props$className,
13
- _props$color = props.color,
14
- color = _props$color === void 0 ? 'currentColor' : _props$color,
15
- rest = _objectWithoutProperties(props, _excluded);
13
+ _props$size = props.size,
14
+ size = _props$size === void 0 ? '1em' : _props$size,
15
+ _props$className = props.className,
16
+ className = _props$className === void 0 ? 'ald-icon' : _props$className,
17
+ _props$color = props.color,
18
+ color = _props$color === void 0 ? 'currentColor' : _props$color,
19
+ rest = _objectWithoutProperties(props, _excluded);
20
+
16
21
  return /*#__PURE__*/React.createElement("iconpark-icon", _extends({
17
- name: type
18
- // @ts-ignore react里web-component 只能使用class
22
+ name: type // @ts-ignore react里web-component 只能使用class
19
23
  ,
20
24
  class: classnames('ald-icon', className),
21
25
  size: String(size),
@@ -1,26 +1,32 @@
1
1
  var FIRST_INDEX = 0;
2
2
  var customCache = new Set();
3
+
3
4
  function isValidCustomScriptUrl(scriptUrl) {
4
5
  return Boolean(typeof scriptUrl === 'string' && scriptUrl.length && !customCache.has(scriptUrl));
5
6
  }
7
+
6
8
  export function createFromScripts(scriptUrl) {
7
9
  var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : FIRST_INDEX;
8
- var scriptUrls = Array.isArray(scriptUrl) ? scriptUrl : [scriptUrl];
9
- // index 表示即将创建的脚本的索引,当所有的脚本链接都创建之后,函数不再往下执行
10
+ var scriptUrls = Array.isArray(scriptUrl) ? scriptUrl : [scriptUrl]; // index 表示即将创建的脚本的索引,当所有的脚本链接都创建之后,函数不再往下执行
11
+
10
12
  if (index >= scriptUrls.length) {
11
13
  return;
12
14
  }
15
+
13
16
  var currentScriptUrl = scriptUrls[index];
17
+
14
18
  if (isValidCustomScriptUrl(currentScriptUrl)) {
15
19
  var script = document.createElement('script');
16
20
  script.setAttribute('src', currentScriptUrl);
17
21
  script.setAttribute('data-namespace', currentScriptUrl);
18
22
  customCache.add(currentScriptUrl);
19
23
  document.body.appendChild(script);
24
+
20
25
  if (scriptUrls.length > index + 1) {
21
26
  script.onload = function () {
22
27
  createFromScripts(scriptUrls, index + 1);
23
28
  };
29
+
24
30
  script.onerror = function () {
25
31
  createFromScripts(scriptUrls, index + 1);
26
32
  };
@@ -1,7 +1,11 @@
1
1
  var _excluded = ["size", "className"];
2
+
2
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+
3
5
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+
4
7
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8
+
5
9
  import React from 'react';
6
10
  import AntdInput from 'antd/lib/input';
7
11
  import { getSizeType } from "../Input";
@@ -9,10 +13,11 @@ import classnames from 'classnames';
9
13
  var AntdGroup = AntdInput.Group;
10
14
  export default function Group(props) {
11
15
  var _props$size = props.size,
12
- size = _props$size === void 0 ? 'middle' : _props$size,
13
- _props$className = props.className,
14
- className = _props$className === void 0 ? '' : _props$className,
15
- rest = _objectWithoutProperties(props, _excluded);
16
+ size = _props$size === void 0 ? 'middle' : _props$size,
17
+ _props$className = props.className,
18
+ className = _props$className === void 0 ? '' : _props$className,
19
+ rest = _objectWithoutProperties(props, _excluded);
20
+
16
21
  return /*#__PURE__*/React.createElement(AntdGroup, _extends({
17
22
  className: classnames("ald-input-group-".concat(getSizeType(size)), className)
18
23
  }, rest));
@@ -1,7 +1,11 @@
1
1
  var _excluded = ["size", "className"];
2
+
2
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+
3
5
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+
4
7
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8
+
5
9
  import React from 'react';
6
10
  import AntdInput from 'antd/lib/input/Input';
7
11
  import classnames from 'classnames';
@@ -9,13 +13,15 @@ export function getSizeType(sizeType) {
9
13
  if (['small', 'middle', 'large'].includes(sizeType)) {
10
14
  return sizeType;
11
15
  }
16
+
12
17
  return 'middle';
13
18
  }
14
19
  var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
15
20
  var _props$size = props.size,
16
- size = _props$size === void 0 ? 'middle' : _props$size,
17
- className = props.className,
18
- rest = _objectWithoutProperties(props, _excluded);
21
+ size = _props$size === void 0 ? 'middle' : _props$size,
22
+ className = props.className,
23
+ rest = _objectWithoutProperties(props, _excluded);
24
+
19
25
  return /*#__PURE__*/React.createElement(AntdInput, _extends({}, rest, {
20
26
  ref: ref,
21
27
  bordered: true,
@@ -1,13 +1,17 @@
1
1
  var _excluded = ["size", "className"];
2
+
2
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+
3
5
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+
4
7
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8
+
5
9
  import React from 'react';
6
10
  import { EyeOffLine, EyeOnLine } from '@aloudata/icons-react';
7
11
  import AntdPassword from 'antd/lib/input/Password';
8
12
  import { getSizeType } from "../Input";
9
- import classnames from 'classnames';
10
- // 不同的size对应的不同的icon
13
+ import classnames from 'classnames'; // 不同的size对应的不同的icon
14
+
11
15
  export var iconSizeMap = {
12
16
  small: 16,
13
17
  middle: 20,
@@ -16,9 +20,10 @@ export var iconSizeMap = {
16
20
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
17
21
  export default /*#__PURE__*/React.forwardRef(function (props, ref) {
18
22
  var _props$size = props.size,
19
- size = _props$size === void 0 ? 'middle' : _props$size,
20
- className = props.className,
21
- restProps = _objectWithoutProperties(props, _excluded);
23
+ size = _props$size === void 0 ? 'middle' : _props$size,
24
+ className = props.className,
25
+ restProps = _objectWithoutProperties(props, _excluded);
26
+
22
27
  return /*#__PURE__*/React.createElement(AntdPassword, _extends({}, restProps, {
23
28
  ref: ref,
24
29
  className: classnames('ald-input', "ald-input-".concat(getSizeType(size)), className),
@@ -1,19 +1,24 @@
1
1
  var _excluded = ["bordered", "size", "className"];
2
+
2
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+
3
5
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+
4
7
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8
+
5
9
  import React from 'react';
6
10
  import AntdTextArea from 'antd/lib/input/TextArea';
7
11
  import classnames from 'classnames';
8
12
  import { getSizeType } from "../Input";
9
13
  export default /*#__PURE__*/React.forwardRef(function (props, ref) {
10
14
  var _props$bordered = props.bordered,
11
- bordered = _props$bordered === void 0 ? true : _props$bordered,
12
- _props$size = props.size,
13
- size = _props$size === void 0 ? 'middle' : _props$size,
14
- _props$className = props.className,
15
- className = _props$className === void 0 ? '' : _props$className,
16
- rest = _objectWithoutProperties(props, _excluded);
15
+ bordered = _props$bordered === void 0 ? true : _props$bordered,
16
+ _props$size = props.size,
17
+ size = _props$size === void 0 ? 'middle' : _props$size,
18
+ _props$className = props.className,
19
+ className = _props$className === void 0 ? '' : _props$className,
20
+ rest = _objectWithoutProperties(props, _excluded);
21
+
17
22
  return /*#__PURE__*/React.createElement(AntdTextArea, _extends({}, rest, {
18
23
  className: classnames('ald-input-textarea', "ald-input-textarea-".concat(getSizeType(size)), className),
19
24
  ref: ref,
@@ -369,7 +369,7 @@ textarea.ald-input-textarea,
369
369
  &:hover,
370
370
  &:active,
371
371
  &:focus {
372
- border-color: @B60;
372
+ border-color: @B40;
373
373
  box-shadow: none;
374
374
  }
375
375
 
@@ -1,25 +1,30 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
1
  var _excluded = ["className", "disabled", "size"];
2
+
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
+
5
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+
7
7
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
8
+
8
9
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10
+
9
11
  import React from 'react';
10
12
  import { InputNumber as AntInputNumber } from 'antd';
11
13
  import classnames from 'classnames';
12
14
  export default function InputNumber(props) {
13
15
  var className = props.className,
14
- disabled = props.disabled,
15
- size = props.size,
16
- rest = _objectWithoutProperties(props, _excluded);
16
+ disabled = props.disabled,
17
+ size = props.size,
18
+ rest = _objectWithoutProperties(props, _excluded);
19
+
17
20
  var getClassName = function getClassName() {
18
21
  var _classnames;
22
+
19
23
  return classnames(className, 'ald-inputNumber', (_classnames = {
20
24
  'ald-inputNumber-disabled': disabled
21
25
  }, _defineProperty(_classnames, "ald-inputNumber-large", size === 'large'), _defineProperty(_classnames, "ald-inputNumber-small", size === 'small'), _defineProperty(_classnames, "ald-inputNumber-middle", size !== 'large' && size !== 'small'), _classnames));
22
26
  };
27
+
23
28
  return /*#__PURE__*/React.createElement(AntInputNumber, _extends({}, rest, {
24
29
  disabled: disabled,
25
30
  size: size,
@@ -1,14 +1,19 @@
1
1
  var _excluded = ["popupClassName"];
2
+
2
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+
3
5
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+
4
7
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8
+
5
9
  import classNames from 'classnames';
6
10
  import React from 'react';
7
11
  import { Menu as AntdMenu } from 'antd';
8
12
  var AntdSubMenu = AntdMenu.SubMenu;
9
13
  export default function SubMenu(props) {
10
14
  var popupClassName = props.popupClassName,
11
- otherProps = _objectWithoutProperties(props, _excluded);
15
+ otherProps = _objectWithoutProperties(props, _excluded);
16
+
12
17
  var OFFSET_WIDTH = 8;
13
18
  var OFFSET_HEIGHT = 0;
14
19
  return /*#__PURE__*/React.createElement(AntdSubMenu, _extends({
@@ -1,7 +1,11 @@
1
1
  var _excluded = ["className", "expandIcon"];
2
+
2
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+
3
5
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+
4
7
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8
+
5
9
  import { ChevronRightLine } from '@aloudata/icons-react';
6
10
  import { Menu as AntdMenu } from 'antd';
7
11
  import classNames from 'classnames';
@@ -12,8 +16,9 @@ import MenuItem from "./MenuItem";
12
16
  import SubMenu from "./SubMenu";
13
17
  export default function Menu(props) {
14
18
  var className = props.className,
15
- expandIcon = props.expandIcon,
16
- otherProps = _objectWithoutProperties(props, _excluded);
19
+ expandIcon = props.expandIcon,
20
+ otherProps = _objectWithoutProperties(props, _excluded);
21
+
17
22
  return /*#__PURE__*/React.createElement(AntdMenu, _extends({
18
23
  className: classNames(className, 'ald-menu'),
19
24
  expandIcon: expandIcon || /*#__PURE__*/React.createElement(ChevronRightLine, {
@@ -52,6 +52,11 @@
52
52
  &:hover{
53
53
  background: none;
54
54
  }
55
+
56
+ .ant-menu-submenu-expand-icon{
57
+ inset-inline-end:0;
58
+ width:initial;
59
+ }
55
60
  }
56
61
  }
57
62