@progress/kendo-react-layout 5.12.0-dev.202302211107 → 5.12.0-dev.202303021526

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 (43) hide show
  1. package/dist/cdn/js/kendo-react-layout.js +1 -1
  2. package/dist/es/actionsheet/ActionSheet.d.ts +32 -20
  3. package/dist/es/actionsheet/ActionSheet.js +91 -52
  4. package/dist/es/bottomnavigation/BottomNavigationItem.js +1 -1
  5. package/dist/es/breadcrumb/BreadcrumbDelimiter.js +1 -1
  6. package/dist/es/breadcrumb/BreadcrumbLink.js +1 -1
  7. package/dist/es/drawer/DrawerItem.js +2 -2
  8. package/dist/es/drawer/DrawerNavigation.js +1 -1
  9. package/dist/es/menu/components/MenuItemArrow.js +1 -1
  10. package/dist/es/package-metadata.js +1 -1
  11. package/dist/es/panelbar/PanelBarItem.js +1 -1
  12. package/dist/es/splitter/Splitter.js +4 -1
  13. package/dist/es/splitter/SplitterBar.d.ts +1 -0
  14. package/dist/es/splitter/SplitterBar.js +1 -1
  15. package/dist/es/splitter/SplitterPane.js +1 -1
  16. package/dist/es/splitter/messages/index.d.ts +10 -0
  17. package/dist/es/splitter/messages/index.js +11 -0
  18. package/dist/es/stepper/Step.js +1 -1
  19. package/dist/es/stepper/Stepper.js +5 -1
  20. package/dist/es/stepper/messages/index.d.ts +5 -0
  21. package/dist/es/stepper/messages/index.js +5 -0
  22. package/dist/npm/actionsheet/ActionSheet.d.ts +32 -20
  23. package/dist/npm/actionsheet/ActionSheet.js +90 -51
  24. package/dist/npm/bottomnavigation/BottomNavigationItem.js +1 -1
  25. package/dist/npm/breadcrumb/BreadcrumbDelimiter.js +1 -1
  26. package/dist/npm/breadcrumb/BreadcrumbLink.js +1 -1
  27. package/dist/npm/drawer/DrawerItem.js +2 -2
  28. package/dist/npm/drawer/DrawerNavigation.js +1 -1
  29. package/dist/npm/menu/components/MenuItemArrow.js +1 -1
  30. package/dist/npm/package-metadata.js +1 -1
  31. package/dist/npm/panelbar/PanelBarItem.js +1 -1
  32. package/dist/npm/splitter/Splitter.js +4 -1
  33. package/dist/npm/splitter/SplitterBar.d.ts +1 -0
  34. package/dist/npm/splitter/SplitterBar.js +1 -1
  35. package/dist/npm/splitter/SplitterPane.js +1 -1
  36. package/dist/npm/splitter/messages/index.d.ts +10 -0
  37. package/dist/npm/splitter/messages/index.js +14 -0
  38. package/dist/npm/stepper/Step.js +1 -1
  39. package/dist/npm/stepper/Stepper.js +5 -1
  40. package/dist/npm/stepper/messages/index.d.ts +5 -0
  41. package/dist/npm/stepper/messages/index.js +6 -1
  42. package/dist/systemjs/kendo-react-layout.js +1 -1
  43. package/package.json +13 -13
@@ -62,18 +62,33 @@ export interface ActionSheetProps {
62
62
  * Specifies the selectors of the navigatable elements inside the templates of the ActionSheet.
63
63
  */
64
64
  navigatableElements: string[];
65
+ /**
66
+ * Controls the popup animation. By default, the open and close animations are disabled.
67
+ */
68
+ animation?: boolean;
69
+ /**
70
+ * The CSS classes that will be rendered on the inner ActionSheet element.
71
+ */
72
+ className?: string;
73
+ /**
74
+ * Specifies the state of the ActionSheet.
75
+ */
76
+ expand?: boolean;
77
+ }
78
+ /**
79
+ * @hidden
80
+ */
81
+ export interface ActionSheetState {
82
+ show?: boolean;
83
+ slide?: boolean;
65
84
  }
66
85
  /**
67
86
  * Represents the [KendoReact ActionSheet]({% slug overview_actionsheet %}) component.
68
87
  */
69
- export declare class ActionSheet extends React.Component<ActionSheetProps> {
70
- /**
71
- * @hidden
72
- */
88
+ export declare class ActionSheet extends React.Component<ActionSheetProps, ActionSheetState> {
89
+ /** @hidden */
73
90
  static displayName: string;
74
- /**
75
- * @hidden
76
- */
91
+ /** @hidden */
77
92
  static propTypes: {
78
93
  items: PropTypes.Requireable<any[]>;
79
94
  subTitle: PropTypes.Requireable<string>;
@@ -81,28 +96,24 @@ export declare class ActionSheet extends React.Component<ActionSheetProps> {
81
96
  navigatable: PropTypes.Requireable<boolean>;
82
97
  navigatableElements: PropTypes.Requireable<any[]>;
83
98
  };
84
- /**
85
- * @hidden
86
- */
99
+ /** @hidden */
87
100
  static defaultProps: {
88
101
  navigatable: boolean;
89
102
  navigatableElements: never[];
90
103
  };
91
- private actionSheetAnimationRef;
104
+ private actionSheetRef;
92
105
  private actionSheetTitleClass;
93
106
  private ariaLabeledBy;
94
107
  private navigation?;
95
- /**
96
- * @hidden
97
- */
108
+ private animationDuration;
109
+ private bottomPosition;
110
+ /** @hidden */
98
111
  constructor(props: ActionSheetProps);
99
- /**
100
- * @hidden
101
- */
112
+ /** @hidden */
102
113
  componentDidMount(): void;
103
- /**
104
- * @hidden
105
- */
114
+ /** @hidden */
115
+ componentDidUpdate(_prevProps: Readonly<ActionSheetProps>, prevState: Readonly<ActionSheetState>): void;
116
+ /** @hidden */
106
117
  render(): JSX.Element;
107
118
  private handleKeyDown;
108
119
  private onTab;
@@ -110,5 +121,6 @@ export declare class ActionSheet extends React.Component<ActionSheetProps> {
110
121
  private handleItemClick;
111
122
  private onEnter;
112
123
  private onEscape;
124
+ private hideActionSheet;
113
125
  private children;
114
126
  }
@@ -38,6 +38,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
38
38
  exports.ActionSheet = void 0;
39
39
  var React = require("react");
40
40
  var PropTypes = require("prop-types");
41
+ var kendo_react_animation_1 = require("@progress/kendo-react-animation");
41
42
  var kendo_react_common_1 = require("@progress/kendo-react-common");
42
43
  var package_metadata_1 = require("../package-metadata");
43
44
  var ActionSheetItem_1 = require("./ActionSheetItem");
@@ -49,14 +50,14 @@ var ActionSheetContent_1 = require("./ActionSheetContent");
49
50
  */
50
51
  var ActionSheet = /** @class */ (function (_super) {
51
52
  __extends(ActionSheet, _super);
52
- /**
53
- * @hidden
54
- */
53
+ /** @hidden */
55
54
  function ActionSheet(props) {
56
55
  var _this = _super.call(this, props) || this;
57
- _this.actionSheetAnimationRef = React.createRef();
56
+ _this.actionSheetRef = React.createRef();
58
57
  _this.actionSheetTitleClass = 'k-actionsheet-title';
59
58
  _this.ariaLabeledBy = _this.actionSheetTitleClass + 1;
59
+ _this.animationDuration = 300;
60
+ _this.bottomPosition = { bottom: '0', width: '100%' };
60
61
  _this.handleKeyDown = function (e) {
61
62
  if (_this.props.navigatable) {
62
63
  _this.navigation.triggerKeyboardEvent(e);
@@ -72,24 +73,36 @@ var ActionSheet = /** @class */ (function (_super) {
72
73
  }
73
74
  };
74
75
  _this.handleOverlayClick = function (ev) {
76
+ /** Deprecated */
75
77
  if (_this.props.onOverlayClick) {
76
78
  _this.props.onOverlayClick.call(undefined, ev);
77
79
  }
78
80
  if (_this.props.onClose) {
79
81
  _this.props.onClose.call(undefined, ev);
80
82
  }
83
+ if (!_this.props.animation) {
84
+ _this.hideActionSheet();
85
+ }
81
86
  };
82
87
  _this.handleItemClick = function (ev) {
88
+ /** Deprecated */
83
89
  if (_this.props.onItemClick) {
84
90
  _this.props.onItemClick.call(undefined, ev);
85
91
  }
86
92
  if (_this.props.onItemSelect) {
87
93
  _this.props.onItemSelect.call(undefined, ev);
88
94
  }
95
+ if (!_this.props.animation) {
96
+ _this.hideActionSheet();
97
+ }
89
98
  };
90
99
  _this.onEnter = function (target, nav, ev) {
100
+ if (target.ariaDisabled) {
101
+ return;
102
+ }
91
103
  var isItem = target.className && target.className.indexOf('k-actionsheet-item') !== -1;
92
104
  var allItems = nav.elements.filter(function (e) { return e.className.indexOf('k-actionsheet-item') !== -1; });
105
+ /** Deprecated */
93
106
  if (isItem && _this.props.onItemClick) {
94
107
  ev.preventDefault();
95
108
  var item = _this.props.items[allItems.indexOf(target)];
@@ -108,8 +121,12 @@ var ActionSheet = /** @class */ (function (_super) {
108
121
  title: item && item.title
109
122
  });
110
123
  }
124
+ if (!_this.props.animation) {
125
+ _this.hideActionSheet();
126
+ }
111
127
  };
112
128
  _this.onEscape = function (_target, _nav, ev) {
129
+ /** Deprecated */
113
130
  if (_this.props.onOverlayClick) {
114
131
  ev.preventDefault();
115
132
  _this.props.onOverlayClick.call(undefined, ev);
@@ -118,22 +135,55 @@ var ActionSheet = /** @class */ (function (_super) {
118
135
  ev.preventDefault();
119
136
  _this.props.onClose.call(undefined, ev);
120
137
  }
138
+ if (!_this.props.animation) {
139
+ _this.hideActionSheet();
140
+ }
141
+ };
142
+ _this.hideActionSheet = function () {
143
+ _this.setState({ show: false });
144
+ };
145
+ _this.children = function (children) {
146
+ var components = {};
147
+ React.Children.forEach(children, function (child) {
148
+ components[child.type.displayName] = child;
149
+ });
150
+ return components;
151
+ };
152
+ _this.state = {
153
+ show: false,
154
+ slide: false
121
155
  };
122
156
  (0, kendo_react_common_1.validatePackage)(package_metadata_1.packageMetadata);
123
157
  return _this;
124
158
  }
125
- /**
126
- * @hidden
127
- */
159
+ /** @hidden */
128
160
  ActionSheet.prototype.componentDidMount = function () {
161
+ if (this.props.expand && !this.state.show) {
162
+ this.setState({ show: true });
163
+ }
164
+ };
165
+ /** @hidden */
166
+ ActionSheet.prototype.componentDidUpdate = function (_prevProps, prevState) {
129
167
  var _this = this;
130
- if (this.actionSheetAnimationRef.current) {
131
- this.actionSheetAnimationRef.current.style.setProperty('--kendo-actionsheet-height', 'auto');
132
- this.actionSheetAnimationRef.current.style.setProperty('--kendo-actionsheet-max-height', 'none');
168
+ var currentRef = this.actionSheetRef.current;
169
+ if (this.props.expand && !this.state.show) {
170
+ this.setState({ show: true });
171
+ }
172
+ if (this.props.expand && this.state.show && !this.state.slide) {
173
+ this.setState({ slide: true });
174
+ }
175
+ if (!this.props.expand && this.state.show && this.state.slide) {
176
+ this.setState({ slide: false });
177
+ }
178
+ if (prevState !== this.state && this.state.slide && currentRef && !this.props.className) {
179
+ currentRef.style.setProperty('--kendo-actionsheet-height', 'auto');
180
+ currentRef.style.setProperty('--kendo-actionsheet-max-height', 'none');
181
+ }
182
+ if (currentRef) {
133
183
  if (this.props.navigatable) {
134
184
  this.navigation = new kendo_react_common_1.Navigation({
135
185
  tabIndex: this.props.tabIndex || 0,
136
- root: this.actionSheetAnimationRef,
186
+ root: this.actionSheetRef,
137
187
  rovingTabIndex: false,
138
188
  selectors: __spreadArray([
139
189
  '.k-actionsheet-item'
@@ -156,9 +206,8 @@ var ActionSheet = /** @class */ (function (_super) {
156
206
  }
157
207
  }
158
208
  };
159
- /**
160
- * @hidden
161
- */
209
+ ;
210
+ /** @hidden */
162
211
  ActionSheet.prototype.render = function () {
163
212
  var _this = this;
164
213
  var _a, _b;
@@ -166,43 +215,35 @@ var ActionSheet = /** @class */ (function (_super) {
166
215
  var bottomGroupItems = (_b = this.props.items) === null || _b === void 0 ? void 0 : _b.filter(function (item) { return item.group === 'bottom'; });
167
216
  var shouldRenderSeparator = (topGroupItems && topGroupItems.length > 0) && (bottomGroupItems && bottomGroupItems.length > 0);
168
217
  var children = this.children(this.props.children);
169
- return (React.createElement("div", { className: "k-actionsheet-container" },
170
- React.createElement("div", { className: "k-overlay", onClick: this.handleOverlayClick }),
171
- React.createElement("div", { className: "k-animation-container" },
172
- React.createElement("div", { className: "k-child-animation-container", style: { bottom: '0px', width: '100%' } },
173
- React.createElement("div", { className: "k-actionsheet k-actionsheet-bottom", role: "dialog", "aria-modal": "true", "aria-hidden": false, "aria-labelledby": this.ariaLabeledBy, ref: this.actionSheetAnimationRef, onKeyDown: this.handleKeyDown },
174
- (children[ActionSheetHeader_1.headerDisplayName] || this.props.title || this.props.subTitle) && (React.createElement("div", { className: "k-actionsheet-titlebar" },
175
- React.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" },
176
- React.createElement("div", { className: this.actionSheetTitleClass, id: this.ariaLabeledBy }, children[ActionSheetHeader_1.headerDisplayName] ||
177
- React.createElement(React.Fragment, null,
178
- React.createElement("div", { className: "k-text-center" }, this.props.title),
179
- this.props.subTitle && React.createElement("div", { className: "k-actionsheet-subtitle k-text-center" }, this.props.subTitle)))))),
180
- children[ActionSheetContent_1.contentDisplayName] || React.createElement("div", { className: "k-actionsheet-content" },
181
- React.createElement("div", { className: "k-list-ul", role: "group" }, topGroupItems && topGroupItems.map(function (item, idx) {
182
- return (React.createElement(ActionSheetItem_1.ActionSheetItem, __assign({}, item, { id: idx, key: idx, item: item, tabIndex: _this.props.tabIndex || 0, onClick: _this.handleItemClick })));
183
- })),
184
- shouldRenderSeparator && React.createElement("hr", { className: "k-hr" }),
185
- React.createElement("div", { className: "k-list-ul", role: "group" }, bottomGroupItems && bottomGroupItems.map(function (item, idx) {
186
- return (React.createElement(ActionSheetItem_1.ActionSheetItem, __assign({}, item, { id: idx + ((topGroupItems === null || topGroupItems === void 0 ? void 0 : topGroupItems.length) || 0), key: idx, item: item, tabIndex: _this.props.tabIndex || 0, onClick: _this.handleItemClick })));
187
- }))),
188
- children[ActionSheetFooter_1.footerDisplayName])))));
189
- };
190
- ;
191
- ActionSheet.prototype.children = function (children) {
192
- var components = {};
193
- React.Children.forEach(children, function (child) {
194
- components[child.type.displayName] = child;
195
- });
196
- return components;
218
+ var actionSheetPanel = this.state.slide && React.createElement("div", { className: (0, kendo_react_common_1.classNames)('k-actionsheet', this.props.className, {
219
+ 'k-actionsheet-bottom': !this.props.className
220
+ }), role: "dialog", "aria-modal": "true", "aria-hidden": false, "aria-labelledby": this.ariaLabeledBy, ref: this.actionSheetRef, onKeyDown: this.handleKeyDown },
221
+ (children[ActionSheetHeader_1.headerDisplayName] || this.props.title || this.props.subTitle) && (React.createElement("div", { className: "k-actionsheet-titlebar" },
222
+ React.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" },
223
+ React.createElement("div", { className: this.actionSheetTitleClass, id: this.ariaLabeledBy }, children[ActionSheetHeader_1.headerDisplayName] ||
224
+ React.createElement(React.Fragment, null,
225
+ React.createElement("div", { className: "k-text-center" }, this.props.title),
226
+ this.props.subTitle && React.createElement("div", { className: "k-actionsheet-subtitle k-text-center" }, this.props.subTitle)))))),
227
+ children[ActionSheetContent_1.contentDisplayName] || React.createElement("div", { className: "k-actionsheet-content" },
228
+ React.createElement("div", { className: "k-list-ul", role: "group" }, topGroupItems && topGroupItems.map(function (item, idx) {
229
+ return (React.createElement(ActionSheetItem_1.ActionSheetItem, __assign({}, item, { id: idx, key: idx, item: item, tabIndex: _this.props.tabIndex || 0, onClick: _this.handleItemClick })));
230
+ })),
231
+ shouldRenderSeparator && React.createElement("hr", { className: "k-hr" }),
232
+ React.createElement("div", { className: "k-list-ul", role: "group" }, bottomGroupItems && bottomGroupItems.map(function (item, idx) {
233
+ return (React.createElement(ActionSheetItem_1.ActionSheetItem, __assign({}, item, { id: idx + ((topGroupItems === null || topGroupItems === void 0 ? void 0 : topGroupItems.length) || 0), key: idx, item: item, tabIndex: _this.props.tabIndex || 0, onClick: _this.handleItemClick })));
234
+ }))),
235
+ children[ActionSheetFooter_1.footerDisplayName]);
236
+ return (React.createElement(React.Fragment, null, this.props.expand || this.state.show ? (React.createElement(React.Fragment, null,
237
+ React.createElement("div", { className: "k-actionsheet-container" },
238
+ React.createElement("div", { className: "k-overlay", onClick: this.handleOverlayClick }),
239
+ this.props.animation ? React.createElement(kendo_react_animation_1.Animation, { transitionName: this.state.slide ? 'slide-up' : 'slide-down', onExited: this.hideActionSheet, transitionEnterDuration: this.animationDuration, transitionExitDuration: this.animationDuration, animationEnteringStyle: this.bottomPosition, animationEnteredStyle: this.bottomPosition, animationExitingStyle: this.bottomPosition, exit: true, enter: true, appear: false }, actionSheetPanel)
240
+ : actionSheetPanel)))
241
+ : null));
197
242
  };
198
243
  ;
199
- /**
200
- * @hidden
201
- */
244
+ /** @hidden */
202
245
  ActionSheet.displayName = 'KendoReactActionSheet';
203
- /**
204
- * @hidden
205
- */
246
+ /** @hidden */
206
247
  ActionSheet.propTypes = {
207
248
  items: PropTypes.array,
208
249
  subTitle: PropTypes.string,
@@ -210,9 +251,7 @@ var ActionSheet = /** @class */ (function (_super) {
210
251
  navigatable: PropTypes.bool,
211
252
  navigatableElements: PropTypes.array
212
253
  };
213
- /**
214
- * @hidden
215
- */
254
+ /** @hidden */
216
255
  ActionSheet.defaultProps = {
217
256
  navigatable: true,
218
257
  navigatableElements: []
@@ -32,7 +32,7 @@ exports.BottomNavigationItem = React.forwardRef(function (props, ref) {
32
32
  }, [onKeyDown, index, disabled]);
33
33
  var renderer = render;
34
34
  var ItemComp = item;
35
- var bottomNavItem = (React.createElement("span", { ref: elementRef, className: itemClasses, style: style, role: 'link', id: id, tabIndex: tabIndex, onClick: handleClick, onKeyDown: handleKeyDown, "aria-selected": selected, "aria-disabled": disabled }, ItemComp ? React.createElement(ItemComp, { itemIndex: index, item: dataItem }) :
35
+ var bottomNavItem = (React.createElement("span", { ref: elementRef, className: itemClasses, style: style, role: 'link', id: id, tabIndex: tabIndex, onClick: handleClick, onKeyDown: handleKeyDown, "aria-current": selected, "aria-disabled": disabled }, ItemComp ? React.createElement(ItemComp, { itemIndex: index, item: dataItem }) :
36
36
  (React.createElement(React.Fragment, null,
37
37
  (icon || svgIcon) && React.createElement(kendo_react_common_1.IconWrap, { className: 'k-bottom-nav-item-icon', name: icon, icon: svgIcon }),
38
38
  text && React.createElement("span", { className: 'k-bottom-nav-item-text', style: { userSelect: 'none' } }, text)))));
@@ -22,7 +22,7 @@ exports.BreadcrumbDelimiter = React.forwardRef(function (props, ref) {
22
22
  });
23
23
  });
24
24
  React.useImperativeHandle(ref, function () { return target.current; });
25
- return (React.createElement(kendo_react_common_1.IconWrap, { ref: breadcrumbDelimiterRef, id: props.id, tabIndex: props.tabIndex, style: props.style, name: "chevron-right", icon: kendo_svg_icons_1.chevronRightIcon, className: "k-breadcrumb-delimiter-icon" }));
25
+ return (React.createElement(kendo_react_common_1.IconWrap, { ref: breadcrumbDelimiterRef, id: props.id, "aria-hidden": true, tabIndex: props.tabIndex, style: props.style, name: "chevron-right", icon: kendo_svg_icons_1.chevronRightIcon, className: "k-breadcrumb-delimiter-icon" }));
26
26
  });
27
27
  var propTypes = {
28
28
  id: PropTypes.string,
@@ -31,7 +31,7 @@ exports.BreadcrumbLink = React.forwardRef(function (props, ref) {
31
31
  (0, kendo_react_common_1.dispatchEvent)(props.onKeyDown, event, event.target, { id: props.id });
32
32
  }
33
33
  }, [props.onKeyDown]);
34
- return (React.createElement("span", { "aria-current": props.ariaCurrent ? props.ariaCurrent : props.isLast, id: props.id, ref: linkRef, style: props.style, dir: (0, kendo_react_common_1.useDir)(linkRef, props.dir), tabIndex: (0, kendo_react_common_1.getTabIndex)(props.tabIndex, props.disabled), className: (0, kendo_react_common_1.classNames)('k-cursor-pointer k-flex-none k-breadcrumb-link k-breadcrumb-icontext-link', {
34
+ return (React.createElement("span", { "aria-current": props.ariaCurrent ? props.ariaCurrent : props.isLast, role: 'link', id: props.id, ref: linkRef, style: props.style, dir: (0, kendo_react_common_1.useDir)(linkRef, props.dir), tabIndex: (0, kendo_react_common_1.getTabIndex)(props.tabIndex, props.disabled), className: (0, kendo_react_common_1.classNames)('k-cursor-pointer k-flex-none k-breadcrumb-link k-breadcrumb-icontext-link', {
35
35
  'k-disabled': props.disabled
36
36
  }), onClick: handleItemSelect, onKeyDown: handleKeyDown },
37
37
  props.iconClass
@@ -87,8 +87,8 @@ exports.DrawerItem = React.forwardRef(function (props, target) {
87
87
  (icon || svgIcon) && React.createElement(kendo_react_common_1.IconWrap, { name: icon ? (0, kendo_react_common_1.toIconName)(icon) : icon, icon: svgIcon }),
88
88
  !expanded && mini ? null : React.createElement("span", { className: 'k-item-text' }, text)));
89
89
  return (separator
90
- ? React.createElement("li", { className: 'k-drawer-item k-drawer-separator', role: "presentation" })
91
- : (React.createElement("li", __assign({ ref: elementRef, className: itemClassNames, style: style, role: "option", "aria-selected": selected, "aria-disabled": disabled, onClick: handleClick, tabIndex: (0, kendo_react_common_1.getTabIndex)(tabIndex, disabled) }, others), !item ? drawerItemContent : children)));
90
+ ? React.createElement("li", { className: 'k-drawer-item k-drawer-separator', role: "separator" })
91
+ : (React.createElement("li", __assign({ ref: elementRef, className: itemClassNames, style: style, role: "menuitem", "aria-label": text, "aria-disabled": disabled, onClick: handleClick, tabIndex: (0, kendo_react_common_1.getTabIndex)(tabIndex, disabled) }, others), !item ? drawerItemContent : children)));
92
92
  });
93
93
  exports.DrawerItem.propTypes = {
94
94
  className: PropTypes.string,
@@ -127,7 +127,7 @@ exports.DrawerNavigation = React.forwardRef(function (props, target) {
127
127
  (dir === 'ltr' && position === 'start') || (dir === 'rtl' && position === 'end') ?
128
128
  mini ? collapseOverlayMini : collapseOverlay :
129
129
  mini ? collapseOverlayMini : collapseOverlayRtl;
130
- var drawerItems = (items && (React.createElement("ul", { className: 'k-drawer-items', role: "listbox", "aria-label": "drawer-list", "aria-expanded": expanded }, items
130
+ var drawerItems = (items && (React.createElement("ul", { className: 'k-drawer-items', role: "menubar", "aria-label": "drawer-list", "aria-expanded": expanded }, items
131
131
  .map(function (element, index) {
132
132
  var drawerItemProps = __assign(__assign({ index: index }, element), { onSelect: onSelect });
133
133
  var ItemComp = item || DrawerItem_1.DrawerItem;
@@ -53,7 +53,7 @@ var MenuItemArrow = /** @class */ (function (_super) {
53
53
  * @hidden
54
54
  */
55
55
  MenuItemArrow.prototype.render = function () {
56
- return React.createElement(kendo_react_common_1.IconWrap, __assign({ className: 'k-menu-expand-arrow' }, this.getIcon()));
56
+ return React.createElement(kendo_react_common_1.IconWrap, __assign({ "aria-hidden": true, className: 'k-menu-expand-arrow' }, this.getIcon()));
57
57
  };
58
58
  MenuItemArrow.prototype.getIcon = function () {
59
59
  var childrenPosition = (0, misc_1.getChildrenPosition)(this.props.itemId, this.props.verticalMenu === true, this.props.dir === 'rtl');
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-layout',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1676976120,
11
+ publishDate: 1677769327,
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
  };
@@ -104,7 +104,7 @@ var PanelBarItem = /** @class */ (function (_super) {
104
104
  : null;
105
105
  var opened = (!disabled && expanded);
106
106
  var content = opened || keepItemsMounted
107
- ? (React.createElement("ul", { role: "group", className: "k-panelbar-group k-panel k-group", style: { display: keepItemsMounted
107
+ ? (React.createElement("ul", { role: "group", "aria-expanded": expanded, "aria-hidden": !expanded, className: "k-panelbar-group k-panel k-group", style: { display: keepItemsMounted
108
108
  ? (this.state.show ? 'block' : 'none')
109
109
  : 'block' } }, children))
110
110
  : null;
@@ -44,6 +44,8 @@ var SplitterBar_1 = require("./SplitterBar");
44
44
  var kendo_react_common_1 = require("@progress/kendo-react-common");
45
45
  var kendo_react_common_2 = require("@progress/kendo-react-common");
46
46
  var package_metadata_1 = require("../package-metadata");
47
+ var messages_1 = require("./messages");
48
+ var kendo_react_intl_1 = require("@progress/kendo-react-intl");
47
49
  /**
48
50
  * @hidden
49
51
  */
@@ -115,13 +117,14 @@ var Splitter = /** @class */ (function (_super) {
115
117
  return paneOptions;
116
118
  };
117
119
  _this.mapSplitterPanes = function (panes, panesContent) {
120
+ var ariaLabel = (0, kendo_react_intl_1.provideLocalizationService)(_this).toLanguageString(messages_1.splitBarLabel, messages_1.messages[messages_1.splitBarLabel]);
118
121
  return panes.map(function (pane, index) {
119
122
  var splitterBar;
120
123
  var paneKey = index * 2;
121
124
  var barKey = paneKey + 1;
122
125
  if (index + 1 < panes.length) {
123
126
  var next = panes[index + 1];
124
- splitterBar = (React.createElement(SplitterBar_1.SplitterBar, { key: barKey, index: index, orientation: pane.orientation, prev: pane, next: next, onDrag: _this.onBarDragResize, onToggle: _this.onBarToggle, onKeyboardResize: _this.onBarKeyboardResize }));
127
+ splitterBar = (React.createElement(SplitterBar_1.SplitterBar, { key: barKey, index: index, orientation: pane.orientation, prev: pane, next: next, ariaLabel: ariaLabel, onDrag: _this.onBarDragResize, onToggle: _this.onBarToggle, onKeyboardResize: _this.onBarKeyboardResize }));
125
128
  }
126
129
  var splitterPane = (React.createElement(SplitterPane_1.SplitterPane, __assign({ key: paneKey }, pane), panesContent[index]));
127
130
  return [splitterPane, splitterBar];
@@ -8,6 +8,7 @@ export interface SplitterBarProps {
8
8
  index: number;
9
9
  prev: SplitterPaneExtendedProps;
10
10
  next: SplitterPaneExtendedProps;
11
+ ariaLabel?: string;
11
12
  onDrag: (event: any, element: HTMLDivElement, index: number, isFirst: boolean, isLast: boolean) => void;
12
13
  onToggle: (index: number, nativeEvent: React.MouseEvent<HTMLDivElement, MouseEvent> | React.KeyboardEvent<HTMLDivElement>) => void;
13
14
  onKeyboardResize: (element: HTMLDivElement, index: number, delta: number, nativeEvent: React.KeyboardEvent<HTMLDivElement>) => void;
@@ -142,7 +142,7 @@ var SplitterBar = /** @class */ (function (_super) {
142
142
  _a['k-splitbar-static-vertical'] = !isHorizontal && isStatic,
143
143
  _a));
144
144
  return (React.createElement(kendo_react_common_1.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; } },
145
- 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 },
145
+ React.createElement("div", { tabIndex: isStatic ? -1 : 0, role: 'separator', "aria-valuenow": 0, "aria-label": this.props.ariaLabel, "aria-orientation": isHorizontal ? 'vertical' : undefined, className: barClasses, style: { touchAction: 'none' }, onFocus: this.onFocus, onBlur: this.onBlur, onDoubleClick: this.onToggle, onKeyDown: this.onKeyDown },
146
146
  this.props.prev.collapsible && React.createElement("div", { className: 'k-collapse-prev', onClick: this.onPrevToggle },
147
147
  React.createElement(kendo_react_common_1.IconWrap, { name: this.props.prev.collapsible
148
148
  ? isHorizontal
@@ -40,7 +40,7 @@ var SplitterPane = /** @class */ (function (_super) {
40
40
  _a['k-pane-static'] = !resizable && !collapsible || fixedSize,
41
41
  _a['k-scrollable'] = scrollable,
42
42
  _a));
43
- return (React.createElement("div", { id: id, style: style, className: paneClasses },
43
+ return (React.createElement("div", { id: id, role: 'group', style: style, className: paneClasses },
44
44
  !collapsed || keepMounted ? this.props.children : undefined,
45
45
  overlay ? React.createElement("div", { className: 'k-splitter-overlay k-overlay' }) : undefined));
46
46
  };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export declare const splitBarLabel = "splitBarLabel";
5
+ /**
6
+ * @hidden
7
+ */
8
+ export declare const messages: {
9
+ splitBarLabel: string;
10
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.messages = exports.splitBarLabel = void 0;
5
+ /**
6
+ * @hidden
7
+ */
8
+ exports.splitBarLabel = 'splitBarLabel';
9
+ /**
10
+ * @hidden
11
+ */
12
+ exports.messages = (_a = {},
13
+ _a[exports.splitBarLabel] = 'split bar',
14
+ _a);
@@ -120,7 +120,7 @@ exports.Step = React.forwardRef(function (props, target) {
120
120
  stepIndicator,
121
121
  stepLabel));
122
122
  return (React.createElement("li", __assign({ ref: elementRef, className: itemClassNames, style: itemStyles }, others),
123
- React.createElement("a", { className: "k-step-link", title: label ? label : undefined, onClick: handleClick, onFocus: handleFocus, tabIndex: tabIndex ? tabIndex : focused ? 0 : -1, "aria-current": current ? 'step' : undefined, "aria-disabled": disabled || !allowClick || undefined, "aria-invalid": isValid !== undefined && !isValid || undefined }, !item ? stepLink : children)));
123
+ React.createElement("a", { className: "k-step-link", title: label ? label : undefined, onClick: handleClick, onFocus: handleFocus, tabIndex: tabIndex ? tabIndex : focused ? 0 : -1, "aria-current": current, "aria-disabled": disabled || !allowClick || undefined, "aria-invalid": isValid !== undefined && !isValid || undefined }, !item ? stepLink : children)));
124
124
  });
125
125
  exports.Step.propTypes = {
126
126
  children: PropTypes.any,
@@ -21,6 +21,8 @@ var kendo_react_progressbars_1 = require("@progress/kendo-react-progressbars");
21
21
  var contants_1 = require("./contants");
22
22
  var kendo_react_common_2 = require("@progress/kendo-react-common");
23
23
  var package_metadata_1 = require("../package-metadata");
24
+ var kendo_react_intl_1 = require("@progress/kendo-react-intl");
25
+ var messages_1 = require("./messages");
24
26
  /**
25
27
  * Represents the [KendoReact Stepper component]({% slug overview_stepper %}).
26
28
  *
@@ -43,6 +45,8 @@ var package_metadata_1 = require("../package-metadata");
43
45
  exports.Stepper = React.forwardRef(function (props, target) {
44
46
  (0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
45
47
  var animationDuration = props.animationDuration, children = props.children, className = props.className, disabled = props.disabled, errorIcon = props.errorIcon, errorSVGIcon = props.errorSVGIcon, item = props.item, items = props.items, linear = props.linear, mode = props.mode, orientation = props.orientation, style = props.style, successIcon = props.successIcon, successSVGIcon = props.successSVGIcon, onChange = props.onChange, onFocus = props.onFocus;
48
+ var localizationService = (0, kendo_react_intl_1.useLocalization)();
49
+ var pbAriaLabel = localizationService.toLanguageString(messages_1.progBarAriaLabel, messages_1.messages[messages_1.progBarAriaLabel]);
46
50
  var elementRef = React.useRef(null);
47
51
  var focusElement = React.useCallback(function () {
48
52
  if (elementRef.current) {
@@ -191,7 +195,7 @@ exports.Stepper = React.forwardRef(function (props, target) {
191
195
  } },
192
196
  React.createElement("nav", { className: stepperClasses, style: stepperStyles, dir: dir, onKeyDown: handleKeyDown },
193
197
  React.createElement("ol", { className: listClasses, style: listStyles }, steps ? steps : children),
194
- React.createElement(kendo_react_progressbars_1.ProgressBar, { style: progressbarStyles, animation: { duration: animation }, "aria-hidden": true, max: numOfSteps - 1, labelVisible: false, orientation: orientation, reverse: orientation === 'vertical', value: value, disabled: disabled, tabIndex: -1 }))));
198
+ React.createElement(kendo_react_progressbars_1.ProgressBar, { style: progressbarStyles, animation: { duration: animation }, ariaLabel: pbAriaLabel, "aria-hidden": true, max: numOfSteps - 1, labelVisible: false, orientation: orientation, reverse: orientation === 'vertical', value: value, disabled: disabled, tabIndex: -1 }))));
195
199
  });
196
200
  exports.Stepper.propTypes = {
197
201
  animationDuration: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),
@@ -2,9 +2,14 @@
2
2
  * @hidden
3
3
  */
4
4
  export declare const optionalText = "stepper.optionalText";
5
+ /**
6
+ * @hidden
7
+ */
8
+ export declare const progBarAriaLabel = "stepper.progBarAriaLabel";
5
9
  /**
6
10
  * @hidden
7
11
  */
8
12
  export declare const messages: {
9
13
  "stepper.optionalText": string;
14
+ "stepper.progBarAriaLabel": string;
10
15
  };
@@ -1,14 +1,19 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.messages = exports.optionalText = void 0;
4
+ exports.messages = exports.progBarAriaLabel = exports.optionalText = void 0;
5
5
  /**
6
6
  * @hidden
7
7
  */
8
8
  exports.optionalText = 'stepper.optionalText';
9
+ /**
10
+ * @hidden
11
+ */
12
+ exports.progBarAriaLabel = 'stepper.progBarAriaLabel';
9
13
  /**
10
14
  * @hidden
11
15
  */
12
16
  exports.messages = (_a = {},
13
17
  _a[exports.optionalText] = '(Optional)',
18
+ _a[exports.progBarAriaLabel] = 'progressbar',
14
19
  _a);