linear-react-components-ui 1.0.12-beta.3 → 1.0.12-beta.4
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/lib/@types/PointerEvents.d.ts +1 -1
- package/lib/assets/styles/multiSelect.scss +1 -1
- package/lib/assets/styles/select.scss +1 -1
- package/lib/assets/styles/sidenav.scss +4 -4
- package/lib/buttons/button_container/index.js +0 -1
- package/lib/dialog/Custom.js +1 -1
- package/lib/dialog/form/index.js +4 -8
- package/lib/dialog/types.d.ts +2 -2
- package/lib/form/FieldNumber.js +1 -1
- package/lib/icons/index.d.ts +2 -6
- package/lib/icons/index.js +5 -25
- package/lib/icons/types.d.ts +0 -6
- package/lib/inputs/select/Dropdown.js +3 -1
- package/lib/inputs/select/simple/index.js +23 -6
- package/lib/inputs/types.d.ts +1 -0
- package/lib/menus/sidenav/NavMenuItem.js +0 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
type PointerEvents = 'none' | 'all' | 'fill' | 'painted' | 'stroke' | 'visible' | 'visibleFill' | 'visiblePainted' | 'visibleStroke' | 'inherit' | 'initial' | 'unset'
|
|
1
|
+
type PointerEvents = 'none' | 'all' | 'fill' | 'painted' | 'stroke' | 'visible' | 'visibleFill' | 'visiblePainted' | 'visibleStroke' | 'inherit' | 'initial' | 'unset';
|
|
2
2
|
|
|
3
3
|
export { PointerEvents };
|
|
@@ -48,9 +48,9 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
48
48
|
> .item:hover {
|
|
49
49
|
background-color: #eee;
|
|
50
50
|
}
|
|
51
|
-
> .item:hover > .
|
|
51
|
+
> .item:hover > .menuicon,
|
|
52
52
|
> .item:hover .searchmenuicon,
|
|
53
|
-
> .item:hover > .menulink > .
|
|
53
|
+
> .item:hover > .menulink > .menuicon,
|
|
54
54
|
> .item:hover > .menulink .searchmenuicon {
|
|
55
55
|
fill: rgb(114, 114, 114);
|
|
56
56
|
}
|
|
@@ -132,7 +132,7 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
132
132
|
align-items: center;
|
|
133
133
|
text-decoration: none;
|
|
134
134
|
}
|
|
135
|
-
> .
|
|
135
|
+
> .menuicon {
|
|
136
136
|
justify-self: center;
|
|
137
137
|
}
|
|
138
138
|
> .title,
|
|
@@ -164,7 +164,7 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
164
164
|
align-items: center;
|
|
165
165
|
}
|
|
166
166
|
> .menuicon,
|
|
167
|
-
> .menulink > .
|
|
167
|
+
> .menulink > .menuicon {
|
|
168
168
|
justify-self: center;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
@@ -25,7 +25,6 @@ var ButtonContainer = function ButtonContainer(_ref) {
|
|
|
25
25
|
position = _ref$position === void 0 ? 'left' : _ref$position,
|
|
26
26
|
children = _ref.children;
|
|
27
27
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
28
|
-
"data-testid": "button-container",
|
|
29
28
|
className: "btn-container ".concat(customClass),
|
|
30
29
|
style: getStyles(style, position)
|
|
31
30
|
}, children);
|
package/lib/dialog/Custom.js
CHANGED
|
@@ -44,7 +44,7 @@ var Custom = function Custom(props) {
|
|
|
44
44
|
className: "title"
|
|
45
45
|
}, props.title), /*#__PURE__*/_react.default.createElement("div", {
|
|
46
46
|
className: "text"
|
|
47
|
-
}, props.text)),
|
|
47
|
+
}, props.text)), /*#__PURE__*/_react.default.createElement(_Footer.default, props, /*#__PURE__*/_react.default.createElement(_buttons.ButtonContainer, {
|
|
48
48
|
position: "right"
|
|
49
49
|
}, props.buttons.map(function (button) {
|
|
50
50
|
return /*#__PURE__*/_react.default.cloneElement(button, {
|
package/lib/dialog/form/index.js
CHANGED
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = exports.FormDialogContext = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _uuid = _interopRequireDefault(require("uuid"));
|
|
10
9
|
var _base = _interopRequireDefault(require("../base"));
|
|
11
10
|
var _Header = _interopRequireDefault(require("../base/Header"));
|
|
12
11
|
var _index = require("../../buttons/index");
|
|
@@ -68,19 +67,16 @@ var ModalForm = function ModalForm(props) {
|
|
|
68
67
|
handlerClose: props.handlerClose
|
|
69
68
|
}, props))), /*#__PURE__*/_react.default.createElement(_Content.default, {
|
|
70
69
|
styleForContent: _objectSpread(_objectSpread({}, props.styleForContent), overlayStyle)
|
|
71
|
-
}, content || children), getSpinner(), showFooter &&
|
|
70
|
+
}, content || children), getSpinner(), showFooter && /*#__PURE__*/_react.default.createElement(_Footer.default, null, /*#__PURE__*/_react.default.createElement(_index.ButtonContainer, _extends({}, props, {
|
|
72
71
|
style: _objectSpread({}, overlayStyle)
|
|
73
|
-
}), props.buttons.map(function (button) {
|
|
72
|
+
}), _react.default.Children.toArray(props.buttons.map(function (button) {
|
|
74
73
|
if (context && context.securityBeforeUnload && button && button.type && button.type.name === 'CancelButton') {
|
|
75
74
|
return /*#__PURE__*/_react.default.cloneElement(button, {
|
|
76
|
-
key: "button-".concat(_uuid.default.v1()),
|
|
77
75
|
onClick: props.handlerClose
|
|
78
76
|
});
|
|
79
77
|
}
|
|
80
|
-
return /*#__PURE__*/_react.default.cloneElement(button
|
|
81
|
-
|
|
82
|
-
});
|
|
83
|
-
})))));
|
|
78
|
+
return /*#__PURE__*/_react.default.cloneElement(button);
|
|
79
|
+
}))))));
|
|
84
80
|
};
|
|
85
81
|
var _default = (0, _withFormSecurity.default)(ModalForm);
|
|
86
82
|
exports.default = _default;
|
package/lib/dialog/types.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ interface IBaseProps {
|
|
|
31
31
|
}
|
|
32
32
|
interface IFormProps {
|
|
33
33
|
children: ReactNode | ReactNode[];
|
|
34
|
-
buttons
|
|
34
|
+
buttons: JSX.Element[];
|
|
35
35
|
styleForContent?: CSSProperties;
|
|
36
36
|
title?: string;
|
|
37
37
|
width?: string;
|
|
@@ -61,7 +61,7 @@ interface IQuestionProps {
|
|
|
61
61
|
}
|
|
62
62
|
interface ICustomProps {
|
|
63
63
|
icon: ReactElement;
|
|
64
|
-
buttons
|
|
64
|
+
buttons: JSX.Element[];
|
|
65
65
|
title?: string;
|
|
66
66
|
text?: string;
|
|
67
67
|
height?: string;
|
package/lib/form/FieldNumber.js
CHANGED
|
@@ -41,8 +41,8 @@ var getEventProps = function getEventProps(_ref) {
|
|
|
41
41
|
handleShowValidateMessages(true);
|
|
42
42
|
},
|
|
43
43
|
onKeyDown: function onKeyDown(e) {
|
|
44
|
+
handlerFieldChange === null || handlerFieldChange === void 0 ? void 0 : handlerFieldChange(e);
|
|
44
45
|
if ([constants.keyCodes.ENTER].includes(e.keyCode)) {
|
|
45
|
-
handlerFieldChange === null || handlerFieldChange === void 0 ? void 0 : handlerFieldChange(e);
|
|
46
46
|
if (validators) handlerFieldValidade === null || handlerFieldValidade === void 0 ? void 0 : handlerFieldValidade(name, e.target.value, validators);
|
|
47
47
|
if (_onKeyDown) _onKeyDown(e);
|
|
48
48
|
handleShowValidateMessages(true);
|
package/lib/icons/index.d.ts
CHANGED
|
@@ -4,11 +4,7 @@ import '../@types/PointerEvents.js';
|
|
|
4
4
|
import '../@types/SizePixels.js';
|
|
5
5
|
import '../@types/Icon.js';
|
|
6
6
|
import './helper.js';
|
|
7
|
-
import '../@types/Position.js';
|
|
8
7
|
|
|
9
|
-
declare const
|
|
10
|
-
(props: IIconProps): JSX.Element;
|
|
11
|
-
displayName: string;
|
|
12
|
-
};
|
|
8
|
+
declare const Icon: ({ name, onClick, svgStruct, size, style, visible, disabled, customClass, color, pointerEvents, }: IIconProps) => JSX.Element | null;
|
|
13
9
|
|
|
14
|
-
export {
|
|
10
|
+
export { Icon as default };
|
package/lib/icons/index.js
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
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); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.default = void 0;
|
|
8
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
8
|
var _helper = _interopRequireDefault(require("./helper"));
|
|
10
9
|
require("../assets/styles/icon.scss");
|
|
11
|
-
var _withTooltip = _interopRequireDefault(require("../internals/withTooltip"));
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
11
|
var listIcon = _helper.default;
|
|
16
12
|
var disabledIconColor = 'rgb(193, 193, 193)';
|
|
17
13
|
var Icon = function Icon(_ref) {
|
|
@@ -29,36 +25,20 @@ var Icon = function Icon(_ref) {
|
|
|
29
25
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
30
26
|
_ref$customClass = _ref.customClass,
|
|
31
27
|
customClass = _ref$customClass === void 0 ? '' : _ref$customClass,
|
|
32
|
-
_ref$customClassForCo = _ref.customClassForContainer,
|
|
33
|
-
customClassForContainer = _ref$customClassForCo === void 0 ? '' : _ref$customClassForCo,
|
|
34
28
|
_ref$color = _ref.color,
|
|
35
29
|
color = _ref$color === void 0 ? '#676464' : _ref$color,
|
|
36
30
|
_ref$pointerEvents = _ref.pointerEvents,
|
|
37
|
-
pointerEvents = _ref$pointerEvents === void 0 ? 'none' : _ref$pointerEvents
|
|
38
|
-
targetRef = _ref.targetRef;
|
|
39
|
-
var refSvg = (0, _react.useRef)(null);
|
|
31
|
+
pointerEvents = _ref$pointerEvents === void 0 ? 'none' : _ref$pointerEvents;
|
|
40
32
|
var getPaths = function getPaths() {
|
|
41
33
|
return name ? listIcon[name].paths : svgStruct === null || svgStruct === void 0 ? void 0 : svgStruct.paths;
|
|
42
34
|
};
|
|
43
35
|
if (!name && !svgStruct) throw new Error('One of the "name" and "svgStruct" props must be filled');
|
|
44
36
|
if (!visible) return null;
|
|
45
|
-
return /*#__PURE__*/_react.default.createElement("
|
|
46
|
-
className: "icon-component-container ".concat(customClassForContainer),
|
|
47
|
-
style: {
|
|
48
|
-
display: 'inline-flex',
|
|
49
|
-
placeSelf: 'center'
|
|
50
|
-
},
|
|
51
|
-
ref: function ref(r) {
|
|
52
|
-
if (targetRef && r) targetRef(r);
|
|
53
|
-
}
|
|
54
|
-
}, /*#__PURE__*/_react.default.createElement("svg", {
|
|
37
|
+
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
55
38
|
"data-testid": "icon",
|
|
56
39
|
onClick: function onClick() {
|
|
57
40
|
if (_onClick && !disabled) _onClick();
|
|
58
41
|
},
|
|
59
|
-
ref: function ref(r) {
|
|
60
|
-
refSvg.current = r;
|
|
61
|
-
},
|
|
62
42
|
width: "".concat(size, "px"),
|
|
63
43
|
height: "".concat(size, "px"),
|
|
64
44
|
fill: disabled ? disabledIconColor : color,
|
|
@@ -72,7 +52,7 @@ var Icon = function Icon(_ref) {
|
|
|
72
52
|
d: value,
|
|
73
53
|
key: value
|
|
74
54
|
});
|
|
75
|
-
}))
|
|
55
|
+
}));
|
|
76
56
|
};
|
|
77
|
-
var _default =
|
|
57
|
+
var _default = Icon;
|
|
78
58
|
exports.default = _default;
|
package/lib/icons/types.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { CSSProperties } from 'react';
|
|
|
2
2
|
import { PointerEvents } from '../@types/PointerEvents.js';
|
|
3
3
|
import { SizePixels } from '../@types/SizePixels.js';
|
|
4
4
|
import { IconNames } from '../@types/Icon.js';
|
|
5
|
-
import { Position } from '../@types/Position.js';
|
|
6
5
|
import './helper.js';
|
|
7
6
|
|
|
8
7
|
type ListIconType = {
|
|
@@ -15,7 +14,6 @@ interface IIconProps {
|
|
|
15
14
|
size?: SizePixels;
|
|
16
15
|
color?: string;
|
|
17
16
|
customClass?: string;
|
|
18
|
-
customClassForContainer?: string;
|
|
19
17
|
style?: CSSProperties;
|
|
20
18
|
visible?: boolean;
|
|
21
19
|
disabled?: boolean;
|
|
@@ -27,10 +25,6 @@ interface IIconProps {
|
|
|
27
25
|
paths: Array<string>;
|
|
28
26
|
};
|
|
29
27
|
onClick?: () => void;
|
|
30
|
-
tooltipPosition?: Exclude<Position, 'center'>;
|
|
31
|
-
tooltipWidth?: string | number;
|
|
32
|
-
tooltip?: string;
|
|
33
|
-
targetRef?: (ref: HTMLDivElement) => void;
|
|
34
28
|
}
|
|
35
29
|
|
|
36
30
|
export { IIconProps, ListIconType };
|
|
@@ -48,7 +48,8 @@ var Dropdown = function Dropdown(props) {
|
|
|
48
48
|
searchOnDropdown = props.searchOnDropdown,
|
|
49
49
|
handleOnKeydown = props.handleOnKeydown,
|
|
50
50
|
searchNotFoundText = props.searchNotFoundText,
|
|
51
|
-
idKey = props.idKey
|
|
51
|
+
idKey = props.idKey,
|
|
52
|
+
handlerSelecionadoAgora = props.handlerSelecionadoAgora;
|
|
52
53
|
var _useState = (0, _react.useState)(helper.returnDropdownDynamicStyles(_objectSpread({}, props))),
|
|
53
54
|
_useState2 = _slicedToArray(_useState, 2),
|
|
54
55
|
dropdownDynamicStyles = _useState2[0],
|
|
@@ -104,6 +105,7 @@ var Dropdown = function Dropdown(props) {
|
|
|
104
105
|
onKeyPress: function onKeyPress() {},
|
|
105
106
|
onClick: function onClick() {
|
|
106
107
|
if (!disabled) {
|
|
108
|
+
if (handlerSelecionadoAgora) handlerSelecionadoAgora(true);
|
|
107
109
|
handleOnSelect(item);
|
|
108
110
|
handleOnBlur(item);
|
|
109
111
|
}
|
|
@@ -89,6 +89,10 @@ var SimpleSelect = function SimpleSelect(props) {
|
|
|
89
89
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
90
90
|
isTyping = _useState16[0],
|
|
91
91
|
setIsTyping = _useState16[1];
|
|
92
|
+
var _useState17 = (0, _react.useState)(false),
|
|
93
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
94
|
+
selecionadoAgora = _useState18[0],
|
|
95
|
+
setSelecionadoAgora = _useState18[1];
|
|
92
96
|
var dropdownRef = (0, _react.useRef)(null);
|
|
93
97
|
var componentId = "select-component".concat(_uuid.default.v1());
|
|
94
98
|
var componentRef = (0, _react.useRef)(null);
|
|
@@ -159,19 +163,20 @@ var SimpleSelect = function SimpleSelect(props) {
|
|
|
159
163
|
setSelected(selectedDropdown);
|
|
160
164
|
if (descriptionKeyIsString) setInputText(selectedDropdown[descriptionKey]);else setInputText(descriptionKey(selectedDropdown));
|
|
161
165
|
onChange(selectedDropdown);
|
|
166
|
+
setSelecionadoAgora(true);
|
|
162
167
|
};
|
|
163
168
|
var onOpenClose = function onOpenClose() {
|
|
164
169
|
setOpened(!opened);
|
|
165
170
|
if (selectWrapper.current) setDropdownWidth(selectWrapper.current.clientWidth);
|
|
166
171
|
};
|
|
167
|
-
var
|
|
172
|
+
var _onFocus = function onFocus() {
|
|
168
173
|
setOpened(openDropdownOnFocus);
|
|
169
174
|
if (selectWrapper) {
|
|
170
175
|
var dropdownWidthFocus = selectWrapper.current ? selectWrapper.current.clientWidth : 0;
|
|
171
176
|
setDropdownWidth(dropdownWidthFocus);
|
|
172
177
|
}
|
|
173
178
|
};
|
|
174
|
-
var
|
|
179
|
+
var _onBlur = function onBlur() {
|
|
175
180
|
if (props.onBlur) {
|
|
176
181
|
var event = getSelectEvent(selected);
|
|
177
182
|
props.onBlur(event);
|
|
@@ -185,6 +190,7 @@ var SimpleSelect = function SimpleSelect(props) {
|
|
|
185
190
|
setOpened(false);
|
|
186
191
|
setIsTyping(false);
|
|
187
192
|
}
|
|
193
|
+
setSelecionadoAgora(false);
|
|
188
194
|
};
|
|
189
195
|
var onInputKeyDown = function onInputKeyDown(e) {
|
|
190
196
|
if (e.keyCode) {
|
|
@@ -269,6 +275,7 @@ var SimpleSelect = function SimpleSelect(props) {
|
|
|
269
275
|
setDataCombo([(_ref2 = {}, _defineProperty(_ref2, idKey, allOptions.idValue), _defineProperty(_ref2, descriptionKeyIsString ? descriptionKey : descriptionKey(allOptions.label), allOptions.label), _ref2)].concat(_toConsumableArray(dataSource)));
|
|
270
276
|
}
|
|
271
277
|
}, [JSON.stringify(dataSourceWithAllOptions)]);
|
|
278
|
+
console.log('selecionadoAgora', selecionadoAgora);
|
|
272
279
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
273
280
|
id: componentId,
|
|
274
281
|
ref: componentRef,
|
|
@@ -276,8 +283,15 @@ var SimpleSelect = function SimpleSelect(props) {
|
|
|
276
283
|
}, /*#__PURE__*/_react.default.createElement(_InputTextBase.default, _extends({}, props, {
|
|
277
284
|
readOnly: undigitable || shouldBeReadOnly(),
|
|
278
285
|
value: inputText,
|
|
279
|
-
|
|
280
|
-
|
|
286
|
+
autoFocus: opened || selecionadoAgora,
|
|
287
|
+
onFocus: function onFocus() {
|
|
288
|
+
setSelecionadoAgora(true);
|
|
289
|
+
_onFocus();
|
|
290
|
+
},
|
|
291
|
+
onBlur: function onBlur() {
|
|
292
|
+
setSelecionadoAgora(false);
|
|
293
|
+
_onBlur();
|
|
294
|
+
},
|
|
281
295
|
onChange: function onChange(e) {
|
|
282
296
|
if (e) onFilter(e.target.value);
|
|
283
297
|
},
|
|
@@ -311,14 +325,17 @@ var SimpleSelect = function SimpleSelect(props) {
|
|
|
311
325
|
handleOnSelect: function handleOnSelect(dataSelected) {
|
|
312
326
|
if (dataSelected) onSelect(dataSelected);
|
|
313
327
|
},
|
|
328
|
+
handlerSelecionadoAgora: function handlerSelecionadoAgora(exemplo) {
|
|
329
|
+
return setSelecionadoAgora(exemplo);
|
|
330
|
+
},
|
|
314
331
|
handleOnFilter: function handleOnFilter(valueFilter) {
|
|
315
332
|
return onFilter(valueFilter);
|
|
316
333
|
},
|
|
317
334
|
handleOnKeydown: onInputKeyDown,
|
|
318
335
|
handleOnBlur: function handleOnBlur() {
|
|
319
|
-
return
|
|
336
|
+
return _onBlur;
|
|
320
337
|
},
|
|
321
|
-
handleOnFocus:
|
|
338
|
+
handleOnFocus: _onFocus,
|
|
322
339
|
opened: opened,
|
|
323
340
|
dataCombo: dataCombo,
|
|
324
341
|
dropdownWidth: dropdownWidth || 0
|
package/lib/inputs/types.d.ts
CHANGED
|
@@ -110,6 +110,7 @@ interface IDropdownSelectProps {
|
|
|
110
110
|
handleOnKeydown: (e: CustomInputEvent | KeyboardEvent) => void;
|
|
111
111
|
handleOnBlur: (item: DataCombo) => void;
|
|
112
112
|
handleOnFocus: () => void;
|
|
113
|
+
handlerSelecionadoAgora?: (bool: boolean) => void;
|
|
113
114
|
opened: boolean;
|
|
114
115
|
dropdownRef: MutableRefObject<HTMLDivElement | null>;
|
|
115
116
|
dataCombo: DataCombo[];
|
|
@@ -84,7 +84,6 @@ var NavMenuItem = function NavMenuItem(props) {
|
|
|
84
84
|
}), /*#__PURE__*/_react.default.createElement(_react.Fragment, null, iconName && /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
85
85
|
name: iconName,
|
|
86
86
|
size: menuSize === 'small' && 16 || menuSize === 'medium' && 24 || menuSize === 'large' && 32 || 16,
|
|
87
|
-
customClassForContainer: "menuicon-container",
|
|
88
87
|
customClass: "menuicon"
|
|
89
88
|
}), isExpanded && /*#__PURE__*/_react.default.createElement("span", {
|
|
90
89
|
className: "title"
|