@progress/kendo-react-layout 5.5.1-dev.202207252139 → 5.6.0-dev.202208090643

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.
@@ -18,6 +18,7 @@ export var ExpansionPanel = React.forwardRef(function (props, target) {
18
18
  }, [onAction, expanded]);
19
19
  var onKeyDown = React.useCallback(function (event) {
20
20
  if (event.keyCode === Keys.enter || event.keyCode === Keys.space) {
21
+ event.preventDefault();
21
22
  dispatchEvent(onAction, event, getImperativeHandle(), { expanded: expanded });
22
23
  }
23
24
  }, [onAction, expanded]);
@@ -38,8 +39,8 @@ export var ExpansionPanel = React.forwardRef(function (props, target) {
38
39
  'k-expanded': expanded,
39
40
  'k-focus': focused && !disabled,
40
41
  'k-disabled': disabled
41
- }), onFocus: onFocus, onBlur: onBlur, style: props.style, id: props.id, "aria-expanded": expanded, "aria-disabled": disabled, dir: useRtl(elementRef, props.dir), tabIndex: getTabIndex(props.tabIndex, disabled), onKeyDown: disabled ? undefined : onKeyDown },
42
- React.createElement("div", { className: "k-expander-header", onClick: disabled ? undefined : onClick },
42
+ }), onFocus: onFocus, onBlur: onBlur, style: props.style, id: props.id, dir: useRtl(elementRef, props.dir), onKeyDown: disabled ? undefined : onKeyDown },
43
+ React.createElement("div", { role: 'button', "aria-controls": props.ariaControls, "aria-expanded": expanded, "aria-disabled": disabled, tabIndex: getTabIndex(props.tabIndex, disabled), className: "k-expander-header", onClick: disabled ? undefined : onClick },
43
44
  title !== undefined ? React.createElement("div", { className: "k-expander-title" }, title) : undefined,
44
45
  React.createElement("span", { className: "k-spacer" }),
45
46
  subtitle !== undefined ? React.createElement("div", { className: "k-expander-sub-title" }, subtitle) : undefined,
@@ -70,6 +70,10 @@ export interface ExpansionPanelProps {
70
70
  * Sets the `disabled` state of the ExpansionPanel.
71
71
  */
72
72
  disabled?: boolean;
73
+ /**
74
+ * Sets `aria-controls`. The value should represent the `id` of the controlled content element.
75
+ */
76
+ ariaControls?: string;
73
77
  /**
74
78
  * The event handler that will be fired when the expanded state of the ExpansionPanel is about to change.
75
79
  */
@@ -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: 1658784334,
8
+ publishDate: 1660026365,
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
  };
@@ -134,6 +134,8 @@ export var Stepper = React.forwardRef(function (props, target) {
134
134
  setFocusedIdx(maxNavIndex);
135
135
  break;
136
136
  case Keys.space:
137
+ event.preventDefault();
138
+ break;
137
139
  case Keys.enter:
138
140
  event.preventDefault();
139
141
  if (!items[currIndex].disabled) {
@@ -21,6 +21,7 @@ exports.ExpansionPanel = React.forwardRef(function (props, target) {
21
21
  }, [onAction, expanded]);
22
22
  var onKeyDown = React.useCallback(function (event) {
23
23
  if (event.keyCode === kendo_react_common_1.Keys.enter || event.keyCode === kendo_react_common_1.Keys.space) {
24
+ event.preventDefault();
24
25
  (0, kendo_react_common_1.dispatchEvent)(onAction, event, getImperativeHandle(), { expanded: expanded });
25
26
  }
26
27
  }, [onAction, expanded]);
@@ -41,8 +42,8 @@ exports.ExpansionPanel = React.forwardRef(function (props, target) {
41
42
  'k-expanded': expanded,
42
43
  'k-focus': focused && !disabled,
43
44
  'k-disabled': disabled
44
- }), onFocus: onFocus, onBlur: onBlur, style: props.style, id: props.id, "aria-expanded": expanded, "aria-disabled": disabled, dir: (0, kendo_react_common_1.useRtl)(elementRef, props.dir), tabIndex: (0, kendo_react_common_1.getTabIndex)(props.tabIndex, disabled), onKeyDown: disabled ? undefined : onKeyDown },
45
- React.createElement("div", { className: "k-expander-header", onClick: disabled ? undefined : onClick },
45
+ }), onFocus: onFocus, onBlur: onBlur, style: props.style, id: props.id, dir: (0, kendo_react_common_1.useRtl)(elementRef, props.dir), onKeyDown: disabled ? undefined : onKeyDown },
46
+ React.createElement("div", { role: 'button', "aria-controls": props.ariaControls, "aria-expanded": expanded, "aria-disabled": disabled, tabIndex: (0, kendo_react_common_1.getTabIndex)(props.tabIndex, disabled), className: "k-expander-header", onClick: disabled ? undefined : onClick },
46
47
  title !== undefined ? React.createElement("div", { className: "k-expander-title" }, title) : undefined,
47
48
  React.createElement("span", { className: "k-spacer" }),
48
49
  subtitle !== undefined ? React.createElement("div", { className: "k-expander-sub-title" }, subtitle) : undefined,
@@ -70,6 +70,10 @@ export interface ExpansionPanelProps {
70
70
  * Sets the `disabled` state of the ExpansionPanel.
71
71
  */
72
72
  disabled?: boolean;
73
+ /**
74
+ * Sets `aria-controls`. The value should represent the `id` of the controlled content element.
75
+ */
76
+ ariaControls?: string;
73
77
  /**
74
78
  * The event handler that will be fired when the expanded state of the ExpansionPanel is about to change.
75
79
  */
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-layout',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1658784334,
11
+ publishDate: 1660026365,
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
  };
@@ -137,6 +137,8 @@ exports.Stepper = React.forwardRef(function (props, target) {
137
137
  setFocusedIdx(maxNavIndex);
138
138
  break;
139
139
  case kendo_react_common_1.Keys.space:
140
+ event.preventDefault();
141
+ break;
140
142
  case kendo_react_common_1.Keys.enter:
141
143
  event.preventDefault();
142
144
  if (!items[currIndex].disabled) {