@progress/kendo-react-dialogs 5.10.0-dev.202301091032 → 5.10.0-dev.202301092204

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/dist/es/Dialog.js CHANGED
@@ -29,7 +29,7 @@ import * as ReactDOM from 'react-dom';
29
29
  import * as PropTypes from 'prop-types';
30
30
  import { DialogTitleBar } from './DialogTitleBar';
31
31
  import { DialogActionsBar } from './DialogActionsBar';
32
- import { guid, dispatchEvent, Keys, canUseDOM, ZIndexContext, createPropsContext, withPropsContext } from '@progress/kendo-react-common';
32
+ import { guid, dispatchEvent, Keys, canUseDOM, ZIndexContext, createPropsContext, withPropsContext, classNames } from '@progress/kendo-react-common';
33
33
  import { validatePackage } from '@progress/kendo-react-common';
34
34
  import { packageMetadata } from './package-metadata';
35
35
  import { getMaxZIndex } from './utils';
@@ -113,10 +113,10 @@ var DialogWithoutContext = /** @class */ (function (_super) {
113
113
  * @hidden
114
114
  */
115
115
  DialogWithoutContext.prototype.render = function () {
116
- var _a;
116
+ var _a, _b;
117
117
  var _this = this;
118
118
  var id = this.props.id !== undefined ? this.props.id : this.titleId;
119
- var _b = this.props, title = _b.title, width = _b.width, height = _b.height, children = _b.children, minWidth = _b.minWidth, dir = _b.dir, style = _b.style, contentStyle = _b.contentStyle;
119
+ var _c = this.props, title = _c.title, width = _c.width, height = _c.height, children = _c.children, minWidth = _c.minWidth, dir = _c.dir, style = _c.style, contentStyle = _c.contentStyle;
120
120
  var elementsArray = React.Children.toArray(children);
121
121
  var content = this.getContent(elementsArray);
122
122
  var actions = this.getActionBar(elementsArray);
@@ -128,7 +128,9 @@ var DialogWithoutContext = /** @class */ (function (_super) {
128
128
  var dialogElement = (React.createElement(ZIndexContext.Provider, { value: currentZIndex },
129
129
  React.createElement("div", __assign({}, (_a = {}, _a[DATA_DIALOGS_ID] = this._id, _a), { className: 'k-dialog-wrapper' + (this.props.className ? ' ' + this.props.className : ''), onKeyDown: this.onKeyDown, tabIndex: 0, dir: dir, style: __assign({ zIndex: currentZIndex }, style), ref: (function (el) { return _this.element = el; }) }),
130
130
  React.createElement("div", { className: "k-overlay" }),
131
- React.createElement("div", __assign({}, aria, { className: "k-widget k-window k-dialog", role: "dialog", "aria-modal": true, "aria-describedby": this.contentId, style: { width: width, height: height, minWidth: minWidth } }),
131
+ React.createElement("div", __assign({}, aria, { className: classNames('k-window k-dialog', (_b = {},
132
+ _b["k-window-".concat(this.props.themeColor)] = this.props.themeColor,
133
+ _b)), role: "dialog", "aria-modal": true, "aria-describedby": this.contentId, style: { width: width, height: height, minWidth: minWidth } }),
132
134
  this.props.title &&
133
135
  React.createElement(DialogTitleBar, { closeIcon: closeIcon, onCloseButtonClick: this.onCloseDialog, id: id }, title),
134
136
  React.createElement("div", { className: "k-window-content k-dialog-content", style: contentStyle, id: this.contentId }, content),
@@ -9,7 +9,7 @@ import { classNames } from '@progress/kendo-react-common';
9
9
  export var DialogActionsBar = function (props) {
10
10
  var _a;
11
11
  var _b = props.layout, layout = _b === void 0 ? defaultProps.layout : _b, children = props.children;
12
- var wrapperClasses = classNames('k-dialog-buttongroup', 'k-actions', (_a = {},
12
+ var wrapperClasses = classNames('k-actions', 'k-actions-horizontal', 'k-window-actions k-dialog-actions', (_a = {},
13
13
  _a["k-actions-".concat(layout)] = layout,
14
14
  _a));
15
15
  return (React.createElement("div", { className: wrapperClasses }, children));
@@ -61,4 +61,14 @@ export interface DialogProps {
61
61
  * * If set to `null` the Dialog will be rendered without React Portal.
62
62
  */
63
63
  appendTo?: any;
64
+ /**
65
+ * Configures the `themeColor` of the Dialog.
66
+ *
67
+ * The available options are:
68
+ * - primary
69
+ * - dark
70
+ * - light
71
+ *
72
+ */
73
+ themeColor?: 'primary' | 'dark' | 'light';
64
74
  }
@@ -7,6 +7,6 @@ export var DialogTitleBar = function (_a) {
7
7
  var children = _a.children, onCloseButtonClick = _a.onCloseButtonClick, id = _a.id, closeIcon = _a.closeIcon;
8
8
  return (React.createElement("div", { className: "k-window-titlebar k-dialog-titlebar", id: id },
9
9
  React.createElement("div", { className: "k-window-title k-dialog-title" }, children),
10
- React.createElement("div", { className: "k-window-actions k-dialog-actions" }, closeIcon &&
11
- React.createElement(Button, { role: "button", "aria-label": "Close", onClick: onCloseButtonClick, icon: "x", fillMode: "flat", className: "k-window-action k-dialog-action" }))));
10
+ React.createElement("div", { className: "k-window-titlebar-actions k-dialog-titlebar-actions" }, closeIcon &&
11
+ React.createElement(Button, { role: "button", "aria-label": "Close", onClick: onCloseButtonClick, icon: "x", fillMode: "flat", className: "k-window-titlebar-action k-dialog-titlebar-action" }))));
12
12
  };
package/dist/es/Window.js CHANGED
@@ -466,17 +466,21 @@ var WindowWithoutContext = /** @class */ (function (_super) {
466
466
  * @hidden
467
467
  */
468
468
  WindowWithoutContext.prototype.render = function () {
469
- var _a;
469
+ var _a, _b;
470
470
  var _this = this;
471
471
  var elementsArray = React.Children.toArray(this.props.children);
472
472
  var content = this.getContent(elementsArray);
473
473
  var actions = this.getActionBar(elementsArray);
474
474
  var currentZIndex = this.getCurrentZIndex();
475
- var classNamesWindow = classNames('k-widget', 'k-window', this.props.className, { 'k-window-minimized': this.state.stage === 'MINIMIZED' }, { 'k-window-focused': this.state.focused });
475
+ var classNamesWindow = classNames('k-window', this.props.className, (_a = {},
476
+ _a["k-window-".concat(this.props.themeColor)] = this.props.themeColor,
477
+ _a['k-window-minimized'] = this.state.stage === 'MINIMIZED',
478
+ _a['k-window-focused'] = this.state.focused,
479
+ _a));
476
480
  var windowElement = (React.createElement(ZIndexContext.Provider, { value: currentZIndex },
477
481
  React.createElement(React.Fragment, null,
478
482
  this.props.modal && (React.createElement("div", { className: "k-overlay", style: __assign({ zIndex: currentZIndex }, this.props.overlayStyle) })),
479
- React.createElement("div", __assign({}, (_a = {}, _a[DATA_DIALOGS_ID] = this._id, _a), { tabIndex: 0, role: 'dialog', "aria-labelledby": this.titleId, onFocus: this.onFocus, onBlur: this.onBlur, onKeyDown: this.onKeyDown, ref: function (el) {
483
+ React.createElement("div", __assign({}, (_b = {}, _b[DATA_DIALOGS_ID] = this._id, _b), { tabIndex: 0, role: 'dialog', "aria-labelledby": this.titleId, onFocus: this.onFocus, onBlur: this.onBlur, onKeyDown: this.onKeyDown, ref: function (el) {
480
484
  _this.windowElement = el;
481
485
  _this.element = el;
482
486
  }, className: classNamesWindow, style: __assign({ top: this.top, left: this.left, width: this.width, height: this.height || '', zIndex: currentZIndex }, this.props.style) }),
@@ -8,7 +8,7 @@ import { classNames } from '@progress/kendo-react-common';
8
8
  */
9
9
  export var WindowActionsBar = function (props) {
10
10
  var _a = props.layout, layout = _a === void 0 ? defaultProps.layout : _a, children = props.children;
11
- var wrapperClasses = classNames('k-window-buttongroup', 'k-actions', 'k-hstack', {
11
+ var wrapperClasses = classNames('k-actions', 'k-window-actions', 'k-actions-horizontal', 'k-hstack', {
12
12
  'k-justify-content-start': layout === 'start',
13
13
  'k-justify-content-center': layout === 'center',
14
14
  'k-justify-content-end': layout === 'end',
@@ -115,6 +115,16 @@ export interface WindowProps {
115
115
  * Sets a class of the Window DOM element.
116
116
  */
117
117
  className?: string;
118
+ /**
119
+ * Configures the `themeColor` of the Window.
120
+ *
121
+ * The available options are:
122
+ * - primary
123
+ * - dark
124
+ * - light
125
+ *
126
+ */
127
+ themeColor?: 'primary' | 'dark' | 'light';
118
128
  /**
119
129
  * Fires when the **Close** button in the title is clicked or when the `Esc` button is pressed.
120
130
  */
@@ -29,7 +29,7 @@ var ResizeHandlers = /** @class */ (function (_super) {
29
29
  }
30
30
  ResizeHandlers.prototype.render = function () {
31
31
  var _this = this;
32
- return (React.createElement("div", null,
32
+ return (React.createElement("div", { className: 'k-resize-handles-wrapper' },
33
33
  " ",
34
34
  keys.map(function (key, index) {
35
35
  return (React.createElement(Draggable, { key: index, onDrag: function (data) {
@@ -22,19 +22,19 @@ var WindowTitleBarComponent = function (props) {
22
22
  var localization = useLocalization();
23
23
  var minimizeButtonRender = props.minimizeButton ?
24
24
  React.createElement(props.minimizeButton, { onClick: onMinimizeButtonClick, stage: stage }) :
25
- (React.createElement(Button, { fillMode: "flat", icon: "window-minimize", className: "k-window-action", onClick: onMinimizeButtonClick, "aria-label": localization.toLanguageString(dialogsWindowMinimizeButton, messages[dialogsWindowMinimizeButton]) }));
25
+ (React.createElement(Button, { fillMode: "flat", icon: "window-minimize", className: "k-window-titlebar-action", onClick: onMinimizeButtonClick, "aria-label": localization.toLanguageString(dialogsWindowMinimizeButton, messages[dialogsWindowMinimizeButton]) }));
26
26
  var maximizeButtonRender = props.maximizeButton ?
27
27
  React.createElement(props.maximizeButton, { onClick: onFullScreenButtonClick, stage: stage }) :
28
- (React.createElement(Button, { fillMode: "flat", icon: "window-maximize", className: "k-window-action", onClick: onFullScreenButtonClick, "aria-label": localization.toLanguageString(dialogsWindowMaximizeButton, messages[dialogsWindowMaximizeButton]) }));
28
+ (React.createElement(Button, { fillMode: "flat", icon: "window-maximize", className: "k-window-titlebar-action", onClick: onFullScreenButtonClick, "aria-label": localization.toLanguageString(dialogsWindowMaximizeButton, messages[dialogsWindowMaximizeButton]) }));
29
29
  var restoreButtonRender = props.restoreButton ?
30
30
  React.createElement(props.restoreButton, { onClick: onRestoreButtonClick, stage: stage }) :
31
- (React.createElement(Button, { fillMode: "flat", icon: "window-restore", className: "k-window-action", onClick: onRestoreButtonClick, "aria-label": localization.toLanguageString(dialogsWindowRestoreButton, messages[dialogsWindowRestoreButton]) }));
31
+ (React.createElement(Button, { fillMode: "flat", icon: "window-restore", className: "k-window-titlebar-action", onClick: onRestoreButtonClick, "aria-label": localization.toLanguageString(dialogsWindowRestoreButton, messages[dialogsWindowRestoreButton]) }));
32
32
  var closeButtonRender = props.closeButton ?
33
33
  React.createElement(props.closeButton, { onClick: onCloseButtonClick, stage: stage }) :
34
- (React.createElement(Button, { fillMode: "flat", icon: "close", className: "k-window-action", onClick: onCloseButtonClick, "aria-label": localization.toLanguageString(dialogsWindowCloseButton, messages[dialogsWindowCloseButton]) }));
35
- return (React.createElement("div", { className: "k-window-titlebar k-dialog-titlebar", style: { touchAction: 'none' }, ref: forwardedRef, onDoubleClick: onDoubleClick },
34
+ (React.createElement(Button, { fillMode: "flat", icon: "x", className: "k-window-titlebar-action", onClick: onCloseButtonClick, "aria-label": localization.toLanguageString(dialogsWindowCloseButton, messages[dialogsWindowCloseButton]) }));
35
+ return (React.createElement("div", { className: "k-window-titlebar", style: { touchAction: 'none' }, ref: forwardedRef, onDoubleClick: onDoubleClick },
36
36
  React.createElement("div", { className: "k-window-title", id: id }, children ? children : ''),
37
- React.createElement("div", { className: "k-window-actions" },
37
+ React.createElement("div", { className: "k-window-titlebar-actions" },
38
38
  (stage === windowStage.DEFAULT) && minimizeButtonRender,
39
39
  (stage === windowStage.DEFAULT) && maximizeButtonRender,
40
40
  (stage !== windowStage.DEFAULT) && restoreButtonRender,
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-dialogs',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1673259113,
8
+ publishDate: 1673300652,
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
  };
@@ -116,10 +116,10 @@ var DialogWithoutContext = /** @class */ (function (_super) {
116
116
  * @hidden
117
117
  */
118
118
  DialogWithoutContext.prototype.render = function () {
119
- var _a;
119
+ var _a, _b;
120
120
  var _this = this;
121
121
  var id = this.props.id !== undefined ? this.props.id : this.titleId;
122
- var _b = this.props, title = _b.title, width = _b.width, height = _b.height, children = _b.children, minWidth = _b.minWidth, dir = _b.dir, style = _b.style, contentStyle = _b.contentStyle;
122
+ var _c = this.props, title = _c.title, width = _c.width, height = _c.height, children = _c.children, minWidth = _c.minWidth, dir = _c.dir, style = _c.style, contentStyle = _c.contentStyle;
123
123
  var elementsArray = React.Children.toArray(children);
124
124
  var content = this.getContent(elementsArray);
125
125
  var actions = this.getActionBar(elementsArray);
@@ -131,7 +131,9 @@ var DialogWithoutContext = /** @class */ (function (_super) {
131
131
  var dialogElement = (React.createElement(kendo_react_common_1.ZIndexContext.Provider, { value: currentZIndex },
132
132
  React.createElement("div", __assign({}, (_a = {}, _a[constants_1.DATA_DIALOGS_ID] = this._id, _a), { className: 'k-dialog-wrapper' + (this.props.className ? ' ' + this.props.className : ''), onKeyDown: this.onKeyDown, tabIndex: 0, dir: dir, style: __assign({ zIndex: currentZIndex }, style), ref: (function (el) { return _this.element = el; }) }),
133
133
  React.createElement("div", { className: "k-overlay" }),
134
- React.createElement("div", __assign({}, aria, { className: "k-widget k-window k-dialog", role: "dialog", "aria-modal": true, "aria-describedby": this.contentId, style: { width: width, height: height, minWidth: minWidth } }),
134
+ React.createElement("div", __assign({}, aria, { className: (0, kendo_react_common_1.classNames)('k-window k-dialog', (_b = {},
135
+ _b["k-window-".concat(this.props.themeColor)] = this.props.themeColor,
136
+ _b)), role: "dialog", "aria-modal": true, "aria-describedby": this.contentId, style: { width: width, height: height, minWidth: minWidth } }),
135
137
  this.props.title &&
136
138
  React.createElement(DialogTitleBar_1.DialogTitleBar, { closeIcon: closeIcon, onCloseButtonClick: this.onCloseDialog, id: id }, title),
137
139
  React.createElement("div", { className: "k-window-content k-dialog-content", style: contentStyle, id: this.contentId }, content),
@@ -12,7 +12,7 @@ var kendo_react_common_1 = require("@progress/kendo-react-common");
12
12
  var DialogActionsBar = function (props) {
13
13
  var _a;
14
14
  var _b = props.layout, layout = _b === void 0 ? defaultProps.layout : _b, children = props.children;
15
- var wrapperClasses = (0, kendo_react_common_1.classNames)('k-dialog-buttongroup', 'k-actions', (_a = {},
15
+ var wrapperClasses = (0, kendo_react_common_1.classNames)('k-actions', 'k-actions-horizontal', 'k-window-actions k-dialog-actions', (_a = {},
16
16
  _a["k-actions-".concat(layout)] = layout,
17
17
  _a));
18
18
  return (React.createElement("div", { className: wrapperClasses }, children));
@@ -61,4 +61,14 @@ export interface DialogProps {
61
61
  * * If set to `null` the Dialog will be rendered without React Portal.
62
62
  */
63
63
  appendTo?: any;
64
+ /**
65
+ * Configures the `themeColor` of the Dialog.
66
+ *
67
+ * The available options are:
68
+ * - primary
69
+ * - dark
70
+ * - light
71
+ *
72
+ */
73
+ themeColor?: 'primary' | 'dark' | 'light';
64
74
  }
@@ -10,7 +10,7 @@ var DialogTitleBar = function (_a) {
10
10
  var children = _a.children, onCloseButtonClick = _a.onCloseButtonClick, id = _a.id, closeIcon = _a.closeIcon;
11
11
  return (React.createElement("div", { className: "k-window-titlebar k-dialog-titlebar", id: id },
12
12
  React.createElement("div", { className: "k-window-title k-dialog-title" }, children),
13
- React.createElement("div", { className: "k-window-actions k-dialog-actions" }, closeIcon &&
14
- React.createElement(kendo_react_buttons_1.Button, { role: "button", "aria-label": "Close", onClick: onCloseButtonClick, icon: "x", fillMode: "flat", className: "k-window-action k-dialog-action" }))));
13
+ React.createElement("div", { className: "k-window-titlebar-actions k-dialog-titlebar-actions" }, closeIcon &&
14
+ React.createElement(kendo_react_buttons_1.Button, { role: "button", "aria-label": "Close", onClick: onCloseButtonClick, icon: "x", fillMode: "flat", className: "k-window-titlebar-action k-dialog-titlebar-action" }))));
15
15
  };
16
16
  exports.DialogTitleBar = DialogTitleBar;
@@ -469,17 +469,21 @@ var WindowWithoutContext = /** @class */ (function (_super) {
469
469
  * @hidden
470
470
  */
471
471
  WindowWithoutContext.prototype.render = function () {
472
- var _a;
472
+ var _a, _b;
473
473
  var _this = this;
474
474
  var elementsArray = React.Children.toArray(this.props.children);
475
475
  var content = this.getContent(elementsArray);
476
476
  var actions = this.getActionBar(elementsArray);
477
477
  var currentZIndex = this.getCurrentZIndex();
478
- var classNamesWindow = (0, kendo_react_common_1.classNames)('k-widget', 'k-window', this.props.className, { 'k-window-minimized': this.state.stage === 'MINIMIZED' }, { 'k-window-focused': this.state.focused });
478
+ var classNamesWindow = (0, kendo_react_common_1.classNames)('k-window', this.props.className, (_a = {},
479
+ _a["k-window-".concat(this.props.themeColor)] = this.props.themeColor,
480
+ _a['k-window-minimized'] = this.state.stage === 'MINIMIZED',
481
+ _a['k-window-focused'] = this.state.focused,
482
+ _a));
479
483
  var windowElement = (React.createElement(kendo_react_common_1.ZIndexContext.Provider, { value: currentZIndex },
480
484
  React.createElement(React.Fragment, null,
481
485
  this.props.modal && (React.createElement("div", { className: "k-overlay", style: __assign({ zIndex: currentZIndex }, this.props.overlayStyle) })),
482
- React.createElement("div", __assign({}, (_a = {}, _a[constants_1.DATA_DIALOGS_ID] = this._id, _a), { tabIndex: 0, role: 'dialog', "aria-labelledby": this.titleId, onFocus: this.onFocus, onBlur: this.onBlur, onKeyDown: this.onKeyDown, ref: function (el) {
486
+ React.createElement("div", __assign({}, (_b = {}, _b[constants_1.DATA_DIALOGS_ID] = this._id, _b), { tabIndex: 0, role: 'dialog', "aria-labelledby": this.titleId, onFocus: this.onFocus, onBlur: this.onBlur, onKeyDown: this.onKeyDown, ref: function (el) {
483
487
  _this.windowElement = el;
484
488
  _this.element = el;
485
489
  }, className: classNamesWindow, style: __assign({ top: this.top, left: this.left, width: this.width, height: this.height || '', zIndex: currentZIndex }, this.props.style) }),
@@ -11,7 +11,7 @@ var kendo_react_common_1 = require("@progress/kendo-react-common");
11
11
  */
12
12
  var WindowActionsBar = function (props) {
13
13
  var _a = props.layout, layout = _a === void 0 ? defaultProps.layout : _a, children = props.children;
14
- var wrapperClasses = (0, kendo_react_common_1.classNames)('k-window-buttongroup', 'k-actions', 'k-hstack', {
14
+ var wrapperClasses = (0, kendo_react_common_1.classNames)('k-actions', 'k-window-actions', 'k-actions-horizontal', 'k-hstack', {
15
15
  'k-justify-content-start': layout === 'start',
16
16
  'k-justify-content-center': layout === 'center',
17
17
  'k-justify-content-end': layout === 'end',
@@ -115,6 +115,16 @@ export interface WindowProps {
115
115
  * Sets a class of the Window DOM element.
116
116
  */
117
117
  className?: string;
118
+ /**
119
+ * Configures the `themeColor` of the Window.
120
+ *
121
+ * The available options are:
122
+ * - primary
123
+ * - dark
124
+ * - light
125
+ *
126
+ */
127
+ themeColor?: 'primary' | 'dark' | 'light';
118
128
  /**
119
129
  * Fires when the **Close** button in the title is clicked or when the `Esc` button is pressed.
120
130
  */
@@ -32,7 +32,7 @@ var ResizeHandlers = /** @class */ (function (_super) {
32
32
  }
33
33
  ResizeHandlers.prototype.render = function () {
34
34
  var _this = this;
35
- return (React.createElement("div", null,
35
+ return (React.createElement("div", { className: 'k-resize-handles-wrapper' },
36
36
  " ",
37
37
  keys.map(function (key, index) {
38
38
  return (React.createElement(kendo_react_common_1.Draggable, { key: index, onDrag: function (data) {
@@ -25,19 +25,19 @@ var WindowTitleBarComponent = function (props) {
25
25
  var localization = (0, kendo_react_intl_1.useLocalization)();
26
26
  var minimizeButtonRender = props.minimizeButton ?
27
27
  React.createElement(props.minimizeButton, { onClick: onMinimizeButtonClick, stage: stage }) :
28
- (React.createElement(kendo_react_buttons_1.Button, { fillMode: "flat", icon: "window-minimize", className: "k-window-action", onClick: onMinimizeButtonClick, "aria-label": localization.toLanguageString(messages_1.dialogsWindowMinimizeButton, messages_1.messages[messages_1.dialogsWindowMinimizeButton]) }));
28
+ (React.createElement(kendo_react_buttons_1.Button, { fillMode: "flat", icon: "window-minimize", className: "k-window-titlebar-action", onClick: onMinimizeButtonClick, "aria-label": localization.toLanguageString(messages_1.dialogsWindowMinimizeButton, messages_1.messages[messages_1.dialogsWindowMinimizeButton]) }));
29
29
  var maximizeButtonRender = props.maximizeButton ?
30
30
  React.createElement(props.maximizeButton, { onClick: onFullScreenButtonClick, stage: stage }) :
31
- (React.createElement(kendo_react_buttons_1.Button, { fillMode: "flat", icon: "window-maximize", className: "k-window-action", onClick: onFullScreenButtonClick, "aria-label": localization.toLanguageString(messages_1.dialogsWindowMaximizeButton, messages_1.messages[messages_1.dialogsWindowMaximizeButton]) }));
31
+ (React.createElement(kendo_react_buttons_1.Button, { fillMode: "flat", icon: "window-maximize", className: "k-window-titlebar-action", onClick: onFullScreenButtonClick, "aria-label": localization.toLanguageString(messages_1.dialogsWindowMaximizeButton, messages_1.messages[messages_1.dialogsWindowMaximizeButton]) }));
32
32
  var restoreButtonRender = props.restoreButton ?
33
33
  React.createElement(props.restoreButton, { onClick: onRestoreButtonClick, stage: stage }) :
34
- (React.createElement(kendo_react_buttons_1.Button, { fillMode: "flat", icon: "window-restore", className: "k-window-action", onClick: onRestoreButtonClick, "aria-label": localization.toLanguageString(messages_1.dialogsWindowRestoreButton, messages_1.messages[messages_1.dialogsWindowRestoreButton]) }));
34
+ (React.createElement(kendo_react_buttons_1.Button, { fillMode: "flat", icon: "window-restore", className: "k-window-titlebar-action", onClick: onRestoreButtonClick, "aria-label": localization.toLanguageString(messages_1.dialogsWindowRestoreButton, messages_1.messages[messages_1.dialogsWindowRestoreButton]) }));
35
35
  var closeButtonRender = props.closeButton ?
36
36
  React.createElement(props.closeButton, { onClick: onCloseButtonClick, stage: stage }) :
37
- (React.createElement(kendo_react_buttons_1.Button, { fillMode: "flat", icon: "close", className: "k-window-action", onClick: onCloseButtonClick, "aria-label": localization.toLanguageString(messages_1.dialogsWindowCloseButton, messages_1.messages[messages_1.dialogsWindowCloseButton]) }));
38
- return (React.createElement("div", { className: "k-window-titlebar k-dialog-titlebar", style: { touchAction: 'none' }, ref: forwardedRef, onDoubleClick: onDoubleClick },
37
+ (React.createElement(kendo_react_buttons_1.Button, { fillMode: "flat", icon: "x", className: "k-window-titlebar-action", onClick: onCloseButtonClick, "aria-label": localization.toLanguageString(messages_1.dialogsWindowCloseButton, messages_1.messages[messages_1.dialogsWindowCloseButton]) }));
38
+ return (React.createElement("div", { className: "k-window-titlebar", style: { touchAction: 'none' }, ref: forwardedRef, onDoubleClick: onDoubleClick },
39
39
  React.createElement("div", { className: "k-window-title", id: id }, children ? children : ''),
40
- React.createElement("div", { className: "k-window-actions" },
40
+ React.createElement("div", { className: "k-window-titlebar-actions" },
41
41
  (stage === StageEnum_1.windowStage.DEFAULT) && minimizeButtonRender,
42
42
  (stage === StageEnum_1.windowStage.DEFAULT) && maximizeButtonRender,
43
43
  (stage !== StageEnum_1.windowStage.DEFAULT) && restoreButtonRender,
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-dialogs',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1673259113,
11
+ publishDate: 1673300652,
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
  };