@progress/kendo-react-layout 5.6.0-dev.202208261541 → 5.6.0-dev.202209021051

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.
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import * as PropTypes from 'prop-types';
3
3
  import { validatePackage } from '@progress/kendo-licensing';
4
- import { classNames } from '@progress/kendo-react-common';
4
+ import { Icon } from '@progress/kendo-react-common';
5
5
  import { packageMetadata } from '../package-metadata';
6
6
  /**
7
7
  * Represents the BreadcrumbDelimiter component.
@@ -10,12 +10,15 @@ export var BreadcrumbDelimiter = React.forwardRef(function (props, ref) {
10
10
  validatePackage(packageMetadata);
11
11
  var target = React.useRef(null);
12
12
  var breadcrumbDelimiterRef = React.useRef(null);
13
- React.useImperativeHandle(target, function () { return ({
14
- element: breadcrumbDelimiterRef.current,
15
- props: props
16
- }); });
13
+ React.useImperativeHandle(target, function () {
14
+ var _a;
15
+ return ({
16
+ element: ((_a = breadcrumbDelimiterRef.current) === null || _a === void 0 ? void 0 : _a.element) || null,
17
+ props: props
18
+ });
19
+ });
17
20
  React.useImperativeHandle(ref, function () { return target.current; });
18
- return (React.createElement("span", { ref: breadcrumbDelimiterRef, id: props.id, tabIndex: props.tabIndex, style: props.style, className: classNames('k-icon k-i-arrow-chevron-right k-breadcrumb-delimiter-icon', props.className) }));
21
+ return (React.createElement(Icon, { ref: breadcrumbDelimiterRef, id: props.id, tabIndex: props.tabIndex, style: props.style, name: "chevron-right", className: "k-breadcrumb-delimiter-icon" }));
19
22
  });
20
23
  var propTypes = {
21
24
  id: PropTypes.string,
@@ -1,18 +1,18 @@
1
1
  import * as React from 'react';
2
2
  import * as PropTypes from 'prop-types';
3
- import { classNames, getTabIndex, useRtl, validatePackage, dispatchEvent, Keys, useAsyncFocusBlur } from '@progress/kendo-react-common';
3
+ import { classNames, getTabIndex, useRtl, validatePackage, dispatchEvent, Keys, useAsyncFocusBlur, Icon } from '@progress/kendo-react-common';
4
4
  import { packageMetadata } from '../package-metadata';
5
5
  /**
6
6
  * Represents the [KendoReact ExpansionPanel component]({% slug overview_expansionpanel %}).
7
7
  */
8
8
  export var ExpansionPanel = React.forwardRef(function (props, target) {
9
- var _a;
9
+ var _a, _b;
10
10
  validatePackage(packageMetadata);
11
11
  var elementRef = React.useRef(null);
12
- var _b = React.useState(false), focused = _b[0], setFocused = _b[1];
12
+ var _c = React.useState(false), focused = _c[0], setFocused = _c[1];
13
13
  var getImperativeHandle = React.useCallback(function () { return ({ element: elementRef.current }); }, []);
14
14
  React.useImperativeHandle(target, getImperativeHandle);
15
- var _c = props.expanded, expanded = _c === void 0 ? false : _c, disabled = props.disabled, title = props.title, subtitle = props.subtitle, onAction = props.onAction, expandIcon = props.expandIcon, collapseIcon = props.collapseIcon;
15
+ var _d = props.expanded, expanded = _d === void 0 ? false : _d, disabled = props.disabled, title = props.title, subtitle = props.subtitle, onAction = props.onAction, expandIcon = props.expandIcon, collapseIcon = props.collapseIcon;
16
16
  var onClick = React.useCallback(function (event) {
17
17
  dispatchEvent(onAction, event, getImperativeHandle(), { expanded: expanded });
18
18
  }, [onAction, expanded]);
@@ -34,7 +34,7 @@ export var ExpansionPanel = React.forwardRef(function (props, target) {
34
34
  }
35
35
  setFocused(false);
36
36
  }, [props.disabled]);
37
- var _d = useAsyncFocusBlur({ onFocus: handleFocus, onBlur: handleBlur }), onFocus = _d.onFocus, onBlur = _d.onBlur;
37
+ var _e = useAsyncFocusBlur({ onFocus: handleFocus, onBlur: handleBlur }), onFocus = _e.onFocus, onBlur = _e.onBlur;
38
38
  return (React.createElement("div", { ref: elementRef, className: classNames('k-expander', props.className, {
39
39
  'k-expanded': expanded,
40
40
  'k-focus': focused && !disabled,
@@ -45,14 +45,14 @@ export var ExpansionPanel = React.forwardRef(function (props, target) {
45
45
  React.createElement("span", { className: "k-spacer" }),
46
46
  subtitle !== undefined ? React.createElement("div", { className: "k-expander-sub-title" }, subtitle) : undefined,
47
47
  React.createElement("span", { className: "k-expander-indicator" },
48
- React.createElement("span", { className: classNames((_a = {},
49
- // expand icon
50
- _a[String(expandIcon)] = Boolean(!expanded && expandIcon),
51
- _a['k-icon k-i-arrow-chevron-down'] = !expanded && !expandIcon,
52
- // collapse icon
53
- _a[String(collapseIcon)] = Boolean(expanded && collapseIcon),
54
- _a['k-icon k-i-arrow-chevron-up'] = expanded && !collapseIcon,
55
- _a)) }))),
48
+ React.createElement(Icon, { name: !expanded
49
+ ? !expandIcon ? 'chevron-down' : undefined
50
+ : !collapseIcon ? 'chevron-up' : undefined, className: classNames(expanded
51
+ ? (_a = {},
52
+ _a[String(collapseIcon)] = Boolean(collapseIcon),
53
+ _a) : (_b = {},
54
+ _b[String(expandIcon)] = Boolean(expandIcon),
55
+ _b)) }))),
56
56
  props.children));
57
57
  });
58
58
  ExpansionPanel.propTypes = {
@@ -20,15 +20,15 @@ export interface MenuItemArrowProps {
20
20
  /**
21
21
  * @hidden
22
22
  */
23
- export declare const downArrowClass = "k-i-arrow-60-down";
23
+ export declare const downArrowName = "caret-alt-down";
24
24
  /**
25
25
  * @hidden
26
26
  */
27
- export declare const rightArrowClass = "k-i-arrow-60-right";
27
+ export declare const rightArrowName = "caret-alt-right";
28
28
  /**
29
29
  * @hidden
30
30
  */
31
- export declare const leftArrowClass = "k-i-arrow-60-left";
31
+ export declare const leftArrowName = "caret-alt-left";
32
32
  export declare class MenuItemArrow extends React.Component<MenuItemArrowProps, {}> {
33
33
  /**
34
34
  * @hidden
@@ -42,5 +42,5 @@ export declare class MenuItemArrow extends React.Component<MenuItemArrowProps, {
42
42
  * @hidden
43
43
  */
44
44
  render(): JSX.Element;
45
- private getArrowClassName;
45
+ private getIconName;
46
46
  }
@@ -15,20 +15,20 @@ var __extends = (this && this.__extends) || (function () {
15
15
  })();
16
16
  import * as React from 'react';
17
17
  import * as PropTypes from 'prop-types';
18
- import { classNames } from '@progress/kendo-react-common';
18
+ import { Icon } from '@progress/kendo-react-common';
19
19
  import { getChildrenPosition } from '../utils/misc';
20
20
  /**
21
21
  * @hidden
22
22
  */
23
- export var downArrowClass = 'k-i-arrow-60-down';
23
+ export var downArrowName = 'caret-alt-down';
24
24
  /**
25
25
  * @hidden
26
26
  */
27
- export var rightArrowClass = 'k-i-arrow-60-right';
27
+ export var rightArrowName = 'caret-alt-right';
28
28
  /**
29
29
  * @hidden
30
30
  */
31
- export var leftArrowClass = 'k-i-arrow-60-left';
31
+ export var leftArrowName = 'caret-alt-left';
32
32
  var MenuItemArrow = /** @class */ (function (_super) {
33
33
  __extends(MenuItemArrow, _super);
34
34
  function MenuItemArrow() {
@@ -38,17 +38,20 @@ var MenuItemArrow = /** @class */ (function (_super) {
38
38
  * @hidden
39
39
  */
40
40
  MenuItemArrow.prototype.render = function () {
41
- return React.createElement("span", { className: "k-menu-expand-arrow", role: "presentation" },
42
- React.createElement("span", { className: this.getArrowClassName() }));
41
+ return React.createElement(Icon, { className: 'k-menu-expand-arrow', name: this.getIconName() });
43
42
  };
44
- MenuItemArrow.prototype.getArrowClassName = function () {
45
- var _a;
43
+ MenuItemArrow.prototype.getIconName = function () {
46
44
  var childrenPosition = getChildrenPosition(this.props.itemId, this.props.verticalMenu === true, this.props.dir === 'rtl');
47
- return classNames('k-icon', (_a = {},
48
- _a[downArrowClass] = childrenPosition === 'downward',
49
- _a[rightArrowClass] = childrenPosition === 'rightward',
50
- _a[leftArrowClass] = childrenPosition === 'leftward',
51
- _a));
45
+ switch (childrenPosition) {
46
+ case 'downward':
47
+ return downArrowName;
48
+ case 'rightward':
49
+ return rightArrowName;
50
+ case 'leftward':
51
+ return leftArrowName;
52
+ default:
53
+ return undefined;
54
+ }
52
55
  };
53
56
  /**
54
57
  * @hidden
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-layout',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1661527562,
8
+ publishDate: 1662114946,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
11
  };
@@ -26,7 +26,7 @@ var __assign = (this && this.__assign) || function () {
26
26
  };
27
27
  import * as React from 'react';
28
28
  import * as PropTypes from 'prop-types';
29
- import { classNames } from '@progress/kendo-react-common';
29
+ import { classNames, Icon } from '@progress/kendo-react-common';
30
30
  import { Reveal } from '@progress/kendo-react-animation';
31
31
  /**
32
32
  * @hidden
@@ -74,9 +74,8 @@ var PanelBarItem = /** @class */ (function (_super) {
74
74
  * @hidden
75
75
  */
76
76
  PanelBarItem.prototype.render = function () {
77
- var _a;
78
77
  var _this = this;
79
- var _b = this.props, id = _b.id, children = _b.children, title = _b.title, uniquePrivateKey = _b.uniquePrivateKey, disabled = _b.disabled, selected = _b.selected, focused = _b.focused, expanded = _b.expanded, className = _b.className, level = _b.level, headerClassName = _b.headerClassName, animation = _b.animation, keepItemsMounted = _b.keepItemsMounted;
78
+ var _a = this.props, id = _a.id, children = _a.children, title = _a.title, uniquePrivateKey = _a.uniquePrivateKey, disabled = _a.disabled, selected = _a.selected, focused = _a.focused, expanded = _a.expanded, className = _a.className, level = _a.level, headerClassName = _a.headerClassName, animation = _a.animation, keepItemsMounted = _a.keepItemsMounted;
80
79
  var panelBarItemAriaAttributes = {
81
80
  'role': 'treeitem',
82
81
  'aria-disabled': disabled,
@@ -84,25 +83,22 @@ var PanelBarItem = /** @class */ (function (_super) {
84
83
  'aria-selected': !disabled && selected,
85
84
  'aria-expanded': !disabled && expanded && !!children
86
85
  };
87
- var panelBarItemClassName = classNames('k-item', {
86
+ var panelBarItemClassName = classNames('k-panelbar-item', {
88
87
  'k-panelbar-header': level === 0,
89
- 'k-panelbar-item': level !== 0,
90
- 'k-state-expanded': expanded && !!children
88
+ 'k-state-expanded': expanded && !!children,
89
+ 'k-disabled': disabled
91
90
  }, "k-level-".concat(level), className);
92
91
  var panelBarLinkClassName = classNames('k-link', {
93
92
  'k-selected': !disabled && selected,
94
- 'k-focus': !disabled && focused,
95
- 'k-disabled': disabled
93
+ 'k-focus': !disabled && focused
96
94
  }, headerClassName);
97
- var panelBarItemArrowClassName = classNames('k-panelbar-toggle', 'k-icon', (_a = {},
98
- _a['k-i-arrow-chevron-up'] = expanded && !!children,
99
- _a['k-panelbar-collapse'] = expanded && !!children,
100
- _a['k-i-arrow-chevron-down'] = !expanded && !!children,
101
- _a['k-panelbar-expand'] = !expanded && !!children,
102
- _a));
103
95
  var animationStyle = { display: 'block' };
104
96
  var icon = iconElement(this.props);
105
- var arrow = (!disabled && children) ? React.createElement("span", { className: panelBarItemArrowClassName }) : null;
97
+ var arrow = (!disabled && children)
98
+ ? (React.createElement(Icon, { name: expanded ? 'chevron-up' : 'chevron-down', className: classNames('k-panelbar-toggle', expanded
99
+ ? 'k-panelbar-collapse'
100
+ : 'k-panelbar-expand') }))
101
+ : null;
106
102
  var opened = (!disabled && expanded);
107
103
  var content = opened || keepItemsMounted
108
104
  ? (React.createElement("ul", { role: "group", className: "k-panelbar-group k-panel k-group", style: { display: keepItemsMounted
@@ -35,6 +35,4 @@ export declare class SplitterBar extends React.Component<SplitterBarProps, Split
35
35
  private onPrevToggle;
36
36
  private onNextToggle;
37
37
  private onKeyDown;
38
- private previousArrowClass;
39
- private nextArrowClass;
40
38
  }
@@ -14,7 +14,7 @@ var __extends = (this && this.__extends) || (function () {
14
14
  };
15
15
  })();
16
16
  import * as React from 'react';
17
- import { classNames, Draggable, Keys } from '@progress/kendo-react-common';
17
+ import { classNames, Draggable, Icon, Keys } from '@progress/kendo-react-common';
18
18
  /**
19
19
  * @hidden
20
20
  */
@@ -27,9 +27,6 @@ var SplitterBar = /** @class */ (function (_super) {
27
27
  var event = data.event;
28
28
  var _a = _this.props, onDrag = _a.onDrag, index = _a.index;
29
29
  var element = _this.draggable && _this.draggable.element;
30
- if (!isLast && event) {
31
- event.originalEvent.preventDefault();
32
- }
33
30
  if (element && !_this.isStatic && _this.isDraggable) {
34
31
  onDrag(event, element, index, isFirst, isLast);
35
32
  }
@@ -93,34 +90,6 @@ var SplitterBar = /** @class */ (function (_super) {
93
90
  }
94
91
  }
95
92
  };
96
- _this.previousArrowClass = function (isHorizontal) {
97
- var _a;
98
- var prev = _this.props.prev;
99
- var isCollapsible = prev.collapsible;
100
- var isCollapsed = prev.collapsed;
101
- return classNames('k-icon', (_a = {},
102
- _a['k-hidden'] = !isCollapsible,
103
- _a['k-collapse-prev'] = isCollapsible,
104
- _a['k-i-arrow-60-left'] = isCollapsible && isHorizontal && !isCollapsed,
105
- _a['k-i-arrow-60-right'] = isCollapsible && isHorizontal && isCollapsed,
106
- _a['k-i-arrow-60-up'] = isCollapsible && !isHorizontal && !isCollapsed,
107
- _a['k-i-arrow-60-down'] = isCollapsible && !isHorizontal && isCollapsed,
108
- _a));
109
- };
110
- _this.nextArrowClass = function (isHorizontal) {
111
- var _a;
112
- var next = _this.props.next;
113
- var isCollapsible = next.collapsible;
114
- var isCollapsed = next.collapsed;
115
- return classNames('k-icon', (_a = {},
116
- _a['k-hidden'] = !isCollapsible,
117
- _a['k-collapse-next'] = isCollapsible,
118
- _a['k-i-arrow-60-right'] = isCollapsible && isHorizontal && !isCollapsed,
119
- _a['k-i-arrow-60-left'] = isCollapsible && isHorizontal && isCollapsed,
120
- _a['k-i-arrow-60-down'] = isCollapsible && !isHorizontal && !isCollapsed,
121
- _a['k-i-arrow-60-up'] = isCollapsible && !isHorizontal && isCollapsed,
122
- _a));
123
- };
124
93
  _this.state = {
125
94
  focused: false
126
95
  };
@@ -168,13 +137,29 @@ var SplitterBar = /** @class */ (function (_super) {
168
137
  _a['k-splitbar-static-horizontal'] = isHorizontal && isStatic,
169
138
  _a['k-splitbar-static-vertical'] = !isHorizontal && isStatic,
170
139
  _a));
171
- var previousArrowClass = this.previousArrowClass(isHorizontal);
172
- var nextArrowClass = this.nextArrowClass(isHorizontal);
173
140
  return (React.createElement(Draggable, { onPress: function (event) { return _this.onDrag(event, true, false); }, onDrag: function (event) { return _this.onDrag(event, false, false); }, onRelease: function (event) { return _this.onDrag(event, false, true); }, ref: function (component) { _this.draggable = component; } },
174
141
  React.createElement("div", { tabIndex: isStatic ? -1 : 0, role: 'separator', className: barClasses, style: { touchAction: 'none' }, onFocus: this.onFocus, onBlur: this.onBlur, onDoubleClick: this.onToggle, onKeyDown: this.onKeyDown },
175
- React.createElement("div", { className: previousArrowClass, onClick: this.onPrevToggle }),
142
+ this.props.prev.collapsible && React.createElement("div", { className: 'k-collapse-prev', onClick: this.onPrevToggle },
143
+ React.createElement(Icon, { name: this.props.prev.collapsible
144
+ ? isHorizontal
145
+ ? this.props.prev.collapsed
146
+ ? 'caret-alt-right'
147
+ : 'caret-alt-left'
148
+ : this.props.prev.collapsed
149
+ ? 'caret-alt-down'
150
+ : 'caret-alt-up'
151
+ : undefined })),
176
152
  React.createElement("div", { className: 'k-resize-handle' }),
177
- React.createElement("div", { className: nextArrowClass, onClick: this.onNextToggle }))));
153
+ this.props.next.collapsible && React.createElement("div", { className: 'k-collapse-next', onClick: this.onNextToggle },
154
+ React.createElement(Icon, { name: this.props.next.collapsible
155
+ ? isHorizontal
156
+ ? this.props.next.collapsed
157
+ ? 'caret-alt-left'
158
+ : 'caret-alt-right'
159
+ : this.props.next.collapsed
160
+ ? 'caret-alt-up'
161
+ : 'caret-alt-down'
162
+ : undefined })))));
178
163
  };
179
164
  return SplitterBar;
180
165
  }(React.Component));
@@ -90,15 +90,16 @@ export var Step = React.forwardRef(function (props, target) {
90
90
  'k-step-done': index < value,
91
91
  'k-step-current': current,
92
92
  'k-step-optional': optional,
93
- 'k-step-disabled': disabled,
94
- 'k-step-focus': focused,
95
93
  'k-step-error': isValid !== undefined && !isValid,
96
94
  'k-step-success': isValid
95
+ }, {
96
+ 'k-disabled': disabled,
97
+ 'k-focus': focused
97
98
  }, className); }, [index, numOfSteps, value, current, optional, disabled, focused, isValid, className]);
98
99
  var itemStyles = React.useMemo(function () { return (__assign({ maxWidth: !isVertical ? "calc(100% / ".concat(numOfSteps, ")") : undefined, maxHeight: isVertical ? "calc(100% / ".concat(numOfSteps, ")") : undefined, pointerEvents: !allowClick ? 'none' : undefined }, style)); }, [isVertical, numOfSteps, style, allowClick]);
99
100
  var validationIconClasses = (isValid
100
- ? successIcon ? "".concat(successIcon) : 'k-icon k-i-check'
101
- : errorIcon ? "".concat(errorIcon) : 'k-icon k-i-warning');
101
+ ? successIcon ? "".concat(successIcon) : 'k-icon k-i-check-circle'
102
+ : errorIcon ? "".concat(errorIcon) : 'k-icon k-i-exclamation-circle');
102
103
  var validationIcons = (React.createElement("span", { className: 'k-step-indicator-icon ' + validationIconClasses, "aria-hidden": "true" }));
103
104
  var stepIndicator = (React.createElement(React.Fragment, null, mode !== 'labels' ?
104
105
  React.createElement("span", { className: "k-step-indicator", "aria-hidden": true, style: { transitionDuration: progressAnimation + 'ms' } }, icon
@@ -167,7 +167,7 @@ var TabStrip = /** @class */ (function (_super) {
167
167
  var tabProps = __assign(__assign({}, this.props), { children: this.children(), onKeyDown: this.onKeyDown, onSelect: this.onSelect });
168
168
  var tabPosition = tabProps.tabPosition, _a = tabProps.tabIndex, tabIndex = _a === void 0 ? 0 : _a;
169
169
  var bottom = tabPosition === 'bottom';
170
- var componentClasses = classNames('k-tabstrip', 'k-floatwrap', {
170
+ var componentClasses = classNames('k-tabstrip', {
171
171
  'k-tabstrip-left': tabPosition === 'left',
172
172
  'k-tabstrip-right': tabPosition === 'right',
173
173
  'k-tabstrip-bottom': tabPosition === 'bottom',
@@ -13,12 +13,15 @@ exports.BreadcrumbDelimiter = React.forwardRef(function (props, ref) {
13
13
  (0, kendo_licensing_1.validatePackage)(package_metadata_1.packageMetadata);
14
14
  var target = React.useRef(null);
15
15
  var breadcrumbDelimiterRef = React.useRef(null);
16
- React.useImperativeHandle(target, function () { return ({
17
- element: breadcrumbDelimiterRef.current,
18
- props: props
19
- }); });
16
+ React.useImperativeHandle(target, function () {
17
+ var _a;
18
+ return ({
19
+ element: ((_a = breadcrumbDelimiterRef.current) === null || _a === void 0 ? void 0 : _a.element) || null,
20
+ props: props
21
+ });
22
+ });
20
23
  React.useImperativeHandle(ref, function () { return target.current; });
21
- return (React.createElement("span", { ref: breadcrumbDelimiterRef, id: props.id, tabIndex: props.tabIndex, style: props.style, className: (0, kendo_react_common_1.classNames)('k-icon k-i-arrow-chevron-right k-breadcrumb-delimiter-icon', props.className) }));
24
+ return (React.createElement(kendo_react_common_1.Icon, { ref: breadcrumbDelimiterRef, id: props.id, tabIndex: props.tabIndex, style: props.style, name: "chevron-right", className: "k-breadcrumb-delimiter-icon" }));
22
25
  });
23
26
  var propTypes = {
24
27
  id: PropTypes.string,
@@ -9,13 +9,13 @@ var package_metadata_1 = require("../package-metadata");
9
9
  * Represents the [KendoReact ExpansionPanel component]({% slug overview_expansionpanel %}).
10
10
  */
11
11
  exports.ExpansionPanel = React.forwardRef(function (props, target) {
12
- var _a;
12
+ var _a, _b;
13
13
  (0, kendo_react_common_1.validatePackage)(package_metadata_1.packageMetadata);
14
14
  var elementRef = React.useRef(null);
15
- var _b = React.useState(false), focused = _b[0], setFocused = _b[1];
15
+ var _c = React.useState(false), focused = _c[0], setFocused = _c[1];
16
16
  var getImperativeHandle = React.useCallback(function () { return ({ element: elementRef.current }); }, []);
17
17
  React.useImperativeHandle(target, getImperativeHandle);
18
- var _c = props.expanded, expanded = _c === void 0 ? false : _c, disabled = props.disabled, title = props.title, subtitle = props.subtitle, onAction = props.onAction, expandIcon = props.expandIcon, collapseIcon = props.collapseIcon;
18
+ var _d = props.expanded, expanded = _d === void 0 ? false : _d, disabled = props.disabled, title = props.title, subtitle = props.subtitle, onAction = props.onAction, expandIcon = props.expandIcon, collapseIcon = props.collapseIcon;
19
19
  var onClick = React.useCallback(function (event) {
20
20
  (0, kendo_react_common_1.dispatchEvent)(onAction, event, getImperativeHandle(), { expanded: expanded });
21
21
  }, [onAction, expanded]);
@@ -37,7 +37,7 @@ exports.ExpansionPanel = React.forwardRef(function (props, target) {
37
37
  }
38
38
  setFocused(false);
39
39
  }, [props.disabled]);
40
- var _d = (0, kendo_react_common_1.useAsyncFocusBlur)({ onFocus: handleFocus, onBlur: handleBlur }), onFocus = _d.onFocus, onBlur = _d.onBlur;
40
+ var _e = (0, kendo_react_common_1.useAsyncFocusBlur)({ onFocus: handleFocus, onBlur: handleBlur }), onFocus = _e.onFocus, onBlur = _e.onBlur;
41
41
  return (React.createElement("div", { ref: elementRef, className: (0, kendo_react_common_1.classNames)('k-expander', props.className, {
42
42
  'k-expanded': expanded,
43
43
  'k-focus': focused && !disabled,
@@ -48,14 +48,14 @@ exports.ExpansionPanel = React.forwardRef(function (props, target) {
48
48
  React.createElement("span", { className: "k-spacer" }),
49
49
  subtitle !== undefined ? React.createElement("div", { className: "k-expander-sub-title" }, subtitle) : undefined,
50
50
  React.createElement("span", { className: "k-expander-indicator" },
51
- React.createElement("span", { className: (0, kendo_react_common_1.classNames)((_a = {},
52
- // expand icon
53
- _a[String(expandIcon)] = Boolean(!expanded && expandIcon),
54
- _a['k-icon k-i-arrow-chevron-down'] = !expanded && !expandIcon,
55
- // collapse icon
56
- _a[String(collapseIcon)] = Boolean(expanded && collapseIcon),
57
- _a['k-icon k-i-arrow-chevron-up'] = expanded && !collapseIcon,
58
- _a)) }))),
51
+ React.createElement(kendo_react_common_1.Icon, { name: !expanded
52
+ ? !expandIcon ? 'chevron-down' : undefined
53
+ : !collapseIcon ? 'chevron-up' : undefined, className: (0, kendo_react_common_1.classNames)(expanded
54
+ ? (_a = {},
55
+ _a[String(collapseIcon)] = Boolean(collapseIcon),
56
+ _a) : (_b = {},
57
+ _b[String(expandIcon)] = Boolean(expandIcon),
58
+ _b)) }))),
59
59
  props.children));
60
60
  });
61
61
  exports.ExpansionPanel.propTypes = {
@@ -20,15 +20,15 @@ export interface MenuItemArrowProps {
20
20
  /**
21
21
  * @hidden
22
22
  */
23
- export declare const downArrowClass = "k-i-arrow-60-down";
23
+ export declare const downArrowName = "caret-alt-down";
24
24
  /**
25
25
  * @hidden
26
26
  */
27
- export declare const rightArrowClass = "k-i-arrow-60-right";
27
+ export declare const rightArrowName = "caret-alt-right";
28
28
  /**
29
29
  * @hidden
30
30
  */
31
- export declare const leftArrowClass = "k-i-arrow-60-left";
31
+ export declare const leftArrowName = "caret-alt-left";
32
32
  export declare class MenuItemArrow extends React.Component<MenuItemArrowProps, {}> {
33
33
  /**
34
34
  * @hidden
@@ -42,5 +42,5 @@ export declare class MenuItemArrow extends React.Component<MenuItemArrowProps, {
42
42
  * @hidden
43
43
  */
44
44
  render(): JSX.Element;
45
- private getArrowClassName;
45
+ private getIconName;
46
46
  }
@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
15
15
  };
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.MenuItemArrow = exports.leftArrowClass = exports.rightArrowClass = exports.downArrowClass = void 0;
18
+ exports.MenuItemArrow = exports.leftArrowName = exports.rightArrowName = exports.downArrowName = void 0;
19
19
  var React = require("react");
20
20
  var PropTypes = require("prop-types");
21
21
  var kendo_react_common_1 = require("@progress/kendo-react-common");
@@ -23,15 +23,15 @@ var misc_1 = require("../utils/misc");
23
23
  /**
24
24
  * @hidden
25
25
  */
26
- exports.downArrowClass = 'k-i-arrow-60-down';
26
+ exports.downArrowName = 'caret-alt-down';
27
27
  /**
28
28
  * @hidden
29
29
  */
30
- exports.rightArrowClass = 'k-i-arrow-60-right';
30
+ exports.rightArrowName = 'caret-alt-right';
31
31
  /**
32
32
  * @hidden
33
33
  */
34
- exports.leftArrowClass = 'k-i-arrow-60-left';
34
+ exports.leftArrowName = 'caret-alt-left';
35
35
  var MenuItemArrow = /** @class */ (function (_super) {
36
36
  __extends(MenuItemArrow, _super);
37
37
  function MenuItemArrow() {
@@ -41,17 +41,20 @@ var MenuItemArrow = /** @class */ (function (_super) {
41
41
  * @hidden
42
42
  */
43
43
  MenuItemArrow.prototype.render = function () {
44
- return React.createElement("span", { className: "k-menu-expand-arrow", role: "presentation" },
45
- React.createElement("span", { className: this.getArrowClassName() }));
44
+ return React.createElement(kendo_react_common_1.Icon, { className: 'k-menu-expand-arrow', name: this.getIconName() });
46
45
  };
47
- MenuItemArrow.prototype.getArrowClassName = function () {
48
- var _a;
46
+ MenuItemArrow.prototype.getIconName = function () {
49
47
  var childrenPosition = (0, misc_1.getChildrenPosition)(this.props.itemId, this.props.verticalMenu === true, this.props.dir === 'rtl');
50
- return (0, kendo_react_common_1.classNames)('k-icon', (_a = {},
51
- _a[exports.downArrowClass] = childrenPosition === 'downward',
52
- _a[exports.rightArrowClass] = childrenPosition === 'rightward',
53
- _a[exports.leftArrowClass] = childrenPosition === 'leftward',
54
- _a));
48
+ switch (childrenPosition) {
49
+ case 'downward':
50
+ return exports.downArrowName;
51
+ case 'rightward':
52
+ return exports.rightArrowName;
53
+ case 'leftward':
54
+ return exports.leftArrowName;
55
+ default:
56
+ return undefined;
57
+ }
55
58
  };
56
59
  /**
57
60
  * @hidden
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-layout',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1661527562,
11
+ publishDate: 1662114946,
12
12
  version: '',
13
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
14
14
  };
@@ -77,9 +77,8 @@ var PanelBarItem = /** @class */ (function (_super) {
77
77
  * @hidden
78
78
  */
79
79
  PanelBarItem.prototype.render = function () {
80
- var _a;
81
80
  var _this = this;
82
- var _b = this.props, id = _b.id, children = _b.children, title = _b.title, uniquePrivateKey = _b.uniquePrivateKey, disabled = _b.disabled, selected = _b.selected, focused = _b.focused, expanded = _b.expanded, className = _b.className, level = _b.level, headerClassName = _b.headerClassName, animation = _b.animation, keepItemsMounted = _b.keepItemsMounted;
81
+ var _a = this.props, id = _a.id, children = _a.children, title = _a.title, uniquePrivateKey = _a.uniquePrivateKey, disabled = _a.disabled, selected = _a.selected, focused = _a.focused, expanded = _a.expanded, className = _a.className, level = _a.level, headerClassName = _a.headerClassName, animation = _a.animation, keepItemsMounted = _a.keepItemsMounted;
83
82
  var panelBarItemAriaAttributes = {
84
83
  'role': 'treeitem',
85
84
  'aria-disabled': disabled,
@@ -87,25 +86,22 @@ var PanelBarItem = /** @class */ (function (_super) {
87
86
  'aria-selected': !disabled && selected,
88
87
  'aria-expanded': !disabled && expanded && !!children
89
88
  };
90
- var panelBarItemClassName = (0, kendo_react_common_1.classNames)('k-item', {
89
+ var panelBarItemClassName = (0, kendo_react_common_1.classNames)('k-panelbar-item', {
91
90
  'k-panelbar-header': level === 0,
92
- 'k-panelbar-item': level !== 0,
93
- 'k-state-expanded': expanded && !!children
91
+ 'k-state-expanded': expanded && !!children,
92
+ 'k-disabled': disabled
94
93
  }, "k-level-".concat(level), className);
95
94
  var panelBarLinkClassName = (0, kendo_react_common_1.classNames)('k-link', {
96
95
  'k-selected': !disabled && selected,
97
- 'k-focus': !disabled && focused,
98
- 'k-disabled': disabled
96
+ 'k-focus': !disabled && focused
99
97
  }, headerClassName);
100
- var panelBarItemArrowClassName = (0, kendo_react_common_1.classNames)('k-panelbar-toggle', 'k-icon', (_a = {},
101
- _a['k-i-arrow-chevron-up'] = expanded && !!children,
102
- _a['k-panelbar-collapse'] = expanded && !!children,
103
- _a['k-i-arrow-chevron-down'] = !expanded && !!children,
104
- _a['k-panelbar-expand'] = !expanded && !!children,
105
- _a));
106
98
  var animationStyle = { display: 'block' };
107
99
  var icon = iconElement(this.props);
108
- var arrow = (!disabled && children) ? React.createElement("span", { className: panelBarItemArrowClassName }) : null;
100
+ var arrow = (!disabled && children)
101
+ ? (React.createElement(kendo_react_common_1.Icon, { name: expanded ? 'chevron-up' : 'chevron-down', className: (0, kendo_react_common_1.classNames)('k-panelbar-toggle', expanded
102
+ ? 'k-panelbar-collapse'
103
+ : 'k-panelbar-expand') }))
104
+ : null;
109
105
  var opened = (!disabled && expanded);
110
106
  var content = opened || keepItemsMounted
111
107
  ? (React.createElement("ul", { role: "group", className: "k-panelbar-group k-panel k-group", style: { display: keepItemsMounted
@@ -35,6 +35,4 @@ export declare class SplitterBar extends React.Component<SplitterBarProps, Split
35
35
  private onPrevToggle;
36
36
  private onNextToggle;
37
37
  private onKeyDown;
38
- private previousArrowClass;
39
- private nextArrowClass;
40
38
  }