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

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.
@@ -38,8 +38,8 @@ export var ExpansionPanel = React.forwardRef(function (props, target) {
38
38
  'k-expanded': expanded,
39
39
  'k-focus': focused && !disabled,
40
40
  '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 },
41
+ }), onFocus: onFocus, onBlur: onBlur, style: props.style, id: props.id, dir: useRtl(elementRef, props.dir), onKeyDown: disabled ? undefined : onKeyDown },
42
+ 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
43
  title !== undefined ? React.createElement("div", { className: "k-expander-title" }, title) : undefined,
44
44
  React.createElement("span", { className: "k-spacer" }),
45
45
  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: 1659604364,
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
  };
@@ -41,8 +41,8 @@ exports.ExpansionPanel = React.forwardRef(function (props, target) {
41
41
  'k-expanded': expanded,
42
42
  'k-focus': focused && !disabled,
43
43
  '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 },
44
+ }), onFocus: onFocus, onBlur: onBlur, style: props.style, id: props.id, dir: (0, kendo_react_common_1.useRtl)(elementRef, props.dir), onKeyDown: disabled ? undefined : onKeyDown },
45
+ 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
46
  title !== undefined ? React.createElement("div", { className: "k-expander-title" }, title) : undefined,
47
47
  React.createElement("span", { className: "k-spacer" }),
48
48
  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: 1659604364,
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
  };