@progress/kendo-react-buttons 5.10.0-dev.202301051045 → 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.
Files changed (39) hide show
  1. package/dist/cdn/js/kendo-react-buttons.js +1 -1
  2. package/dist/es/Button.d.ts +0 -15
  3. package/dist/es/Button.js +1 -4
  4. package/dist/es/FloatingActionButton/FloatingActionButton.js +14 -16
  5. package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +0 -15
  6. package/dist/es/ListButton/DropDownButton.d.ts +0 -1
  7. package/dist/es/ListButton/DropDownButton.js +1 -2
  8. package/dist/es/ListButton/SplitButton.d.ts +0 -1
  9. package/dist/es/ListButton/SplitButton.js +0 -1
  10. package/dist/es/ListButton/models/ListButtonProps.d.ts +0 -13
  11. package/dist/es/main.d.ts +1 -2
  12. package/dist/es/package-metadata.js +1 -1
  13. package/dist/es/toolbar/Toolbar.d.ts +14 -0
  14. package/dist/es/toolbar/Toolbar.js +9 -4
  15. package/dist/es/toolbar/tools/ToolbarItem.js +2 -1
  16. package/dist/es/toolbar/tools/ToolbarSeparator.d.ts +7 -1
  17. package/dist/es/toolbar/tools/ToolbarSeparator.js +2 -5
  18. package/dist/npm/Button.d.ts +0 -15
  19. package/dist/npm/Button.js +1 -4
  20. package/dist/npm/FloatingActionButton/FloatingActionButton.js +14 -16
  21. package/dist/npm/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +0 -15
  22. package/dist/npm/ListButton/DropDownButton.d.ts +0 -1
  23. package/dist/npm/ListButton/DropDownButton.js +1 -2
  24. package/dist/npm/ListButton/SplitButton.d.ts +0 -1
  25. package/dist/npm/ListButton/SplitButton.js +0 -1
  26. package/dist/npm/ListButton/models/ListButtonProps.d.ts +0 -13
  27. package/dist/npm/main.d.ts +1 -2
  28. package/dist/npm/package-metadata.js +1 -1
  29. package/dist/npm/toolbar/Toolbar.d.ts +14 -0
  30. package/dist/npm/toolbar/Toolbar.js +8 -3
  31. package/dist/npm/toolbar/tools/ToolbarItem.js +2 -1
  32. package/dist/npm/toolbar/tools/ToolbarSeparator.d.ts +7 -1
  33. package/dist/npm/toolbar/tools/ToolbarSeparator.js +2 -5
  34. package/dist/systemjs/kendo-react-buttons.js +1 -1
  35. package/package.json +12 -12
  36. package/dist/es/FloatingActionButton/models/shape.d.ts +0 -14
  37. package/dist/es/FloatingActionButton/models/shape.js +0 -1
  38. package/dist/npm/FloatingActionButton/models/shape.d.ts +0 -14
  39. package/dist/npm/FloatingActionButton/models/shape.js +0 -2
@@ -22,19 +22,6 @@ export interface ButtonProps extends ButtonInterface, React.ButtonHTMLAttributes
22
22
  * @default `medium`
23
23
  */
24
24
  size?: null | 'small' | 'medium' | 'large';
25
- /**
26
- * Configures the `shape` of the Button.
27
- *
28
- * The available options are:
29
- * - rectangle
30
- * - square
31
- * - null—Does not set a shape `className`.
32
- *
33
- * @default `null`
34
- *
35
- * @deprecated The `shape` property will be deprecated with version `^6` of the `@progress/kendo-react-buttons` package.
36
- */
37
- shape?: null | 'rectangle' | 'square';
38
25
  /**
39
26
  * Configures the `roundness` of the Button.
40
27
  *
@@ -101,7 +88,6 @@ export declare class Button extends React.Component<ButtonProps, ButtonState> {
101
88
  imageUrl: PropTypes.Requireable<string>;
102
89
  imageAlt: PropTypes.Requireable<string>;
103
90
  size: PropTypes.Requireable<string | null>;
104
- shape: PropTypes.Requireable<string | null>;
105
91
  rounded: PropTypes.Requireable<string | null>;
106
92
  fillMode: PropTypes.Requireable<string | null>;
107
93
  themeColor: PropTypes.Requireable<string | null>;
@@ -112,7 +98,6 @@ export declare class Button extends React.Component<ButtonProps, ButtonState> {
112
98
  static defaultProps: {
113
99
  togglable: boolean;
114
100
  size: string;
115
- shape: null;
116
101
  rounded: string;
117
102
  fillMode: string;
118
103
  themeColor: string;
package/dist/es/Button.js CHANGED
@@ -108,7 +108,7 @@ var Button = /** @class */ (function (_super) {
108
108
  Button.prototype.render = function () {
109
109
  var _a;
110
110
  var _this = this;
111
- var _b = this.props, children = _b.children, togglable = _b.togglable, icon = _b.icon, iconClass = _b.iconClass, imageUrl = _b.imageUrl, imageAlt = _b.imageAlt, className = _b.className, onClick = _b.onClick, _c = _b.size, size = _c === void 0 ? Button.defaultProps.size : _c, _d = _b.shape, shape = _d === void 0 ? Button.defaultProps.shape : _d, _e = _b.rounded, rounded = _e === void 0 ? Button.defaultProps.rounded : _e, _f = _b.fillMode, fillMode = _f === void 0 ? Button.defaultProps.fillMode : _f, _g = _b.themeColor, themeColor = _g === void 0 ? Button.defaultProps.themeColor : _g, htmlAttributes = __rest(_b, ["children", "togglable", "icon", "iconClass", "imageUrl", "imageAlt", "className", "onClick", "size", "shape", "rounded", "fillMode", "themeColor"]);
111
+ var _b = this.props, children = _b.children, togglable = _b.togglable, icon = _b.icon, iconClass = _b.iconClass, imageUrl = _b.imageUrl, imageAlt = _b.imageAlt, className = _b.className, onClick = _b.onClick, _c = _b.size, size = _c === void 0 ? Button.defaultProps.size : _c, _d = _b.rounded, rounded = _d === void 0 ? Button.defaultProps.rounded : _d, _e = _b.fillMode, fillMode = _e === void 0 ? Button.defaultProps.fillMode : _e, _f = _b.themeColor, themeColor = _f === void 0 ? Button.defaultProps.themeColor : _f, htmlAttributes = __rest(_b, ["children", "togglable", "icon", "iconClass", "imageUrl", "imageAlt", "className", "onClick", "size", "rounded", "fillMode", "themeColor"]);
112
112
  var hasIcon = (icon !== undefined || iconClass !== undefined || imageUrl !== undefined);
113
113
  var hasChildren = children !== undefined;
114
114
  var iconEl = iconElement({
@@ -119,7 +119,6 @@ var Button = /** @class */ (function (_super) {
119
119
  });
120
120
  return (React.createElement("button", __assign({ ref: function (button) { return _this._element = button; }, "aria-pressed": togglable ? this.state.selected : undefined }, htmlAttributes, { onClick: this.handleClick, className: classNames('k-button', (_a = {},
121
121
  _a["k-button-".concat(kendoThemeMaps.sizeMap[size] || size)] = size,
122
- _a["k-button-".concat(shape)] = shape,
123
122
  _a["k-button-".concat(fillMode)] = fillMode,
124
123
  _a["k-button-".concat(fillMode, "-").concat(themeColor)] = Boolean(fillMode && themeColor),
125
124
  _a["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
@@ -151,7 +150,6 @@ var Button = /** @class */ (function (_super) {
151
150
  imageUrl: PropTypes.string,
152
151
  imageAlt: PropTypes.string,
153
152
  size: PropTypes.oneOf([null, 'small', 'medium', 'large']),
154
- shape: PropTypes.oneOf([null, 'rectangle', 'square']),
155
153
  rounded: PropTypes.oneOf([null, 'small', 'medium', 'large', 'full']),
156
154
  fillMode: PropTypes.oneOf([null, 'flat', 'link', 'outline', 'solid']),
157
155
  // eslint-disable-next-line max-len
@@ -163,7 +161,6 @@ var Button = /** @class */ (function (_super) {
163
161
  Button.defaultProps = {
164
162
  togglable: false,
165
163
  size: 'medium',
166
- shape: null,
167
164
  rounded: 'medium',
168
165
  fillMode: 'solid',
169
166
  themeColor: 'base'
@@ -47,7 +47,7 @@ var DEFAULT_FAB_ZINDEX = 100;
47
47
  */
48
48
  export var FloatingActionButton = React.forwardRef(function (props, ref) {
49
49
  validatePackage(packageMetadata);
50
- var _a = props.align, align = _a === void 0 ? defaultProps.align : _a, alignOffset = props.alignOffset, className = props.className, disabled = props.disabled, icon = props.icon, iconClass = props.iconClass, id = props.id, items = props.items, item = props.item, text = props.text, _b = props.positionMode, positionMode = _b === void 0 ? defaultProps.positionMode : _b, _c = props.shape, shape = _c === void 0 ? defaultProps.shape : _c, _d = props.size, size = _d === void 0 ? defaultProps.size : _d, style = props.style, _e = props.rounded, rounded = _e === void 0 ? defaultProps.rounded : _e, _f = props.themeColor, themeColor = _f === void 0 ? defaultProps.themeColor : _f, overlayStyle = props.overlayStyle, tabIndex = props.tabIndex, accessKey = props.accessKey, _g = props.popupSettings, popupSettings = _g === void 0 ? {} : _g, modal = props.modal, onClick = props.onClick, onItemClick = props.onItemClick, onFocus = props.onFocus, onBlur = props.onBlur, onKeyDown = props.onKeyDown, onOpen = props.onOpen, onClose = props.onClose, others = __rest(props, ["align", "alignOffset", "className", "disabled", "icon", "iconClass", "id", "items", "item", "text", "positionMode", "shape", "size", "style", "rounded", "themeColor", "overlayStyle", "tabIndex", "accessKey", "popupSettings", "modal", "onClick", "onItemClick", "onFocus", "onBlur", "onKeyDown", "onOpen", "onClose"]);
50
+ var _a = props.align, align = _a === void 0 ? defaultProps.align : _a, alignOffset = props.alignOffset, className = props.className, disabled = props.disabled, icon = props.icon, iconClass = props.iconClass, id = props.id, items = props.items, item = props.item, text = props.text, _b = props.positionMode, positionMode = _b === void 0 ? defaultProps.positionMode : _b, _c = props.size, size = _c === void 0 ? defaultProps.size : _c, style = props.style, _d = props.rounded, rounded = _d === void 0 ? defaultProps.rounded : _d, _e = props.themeColor, themeColor = _e === void 0 ? defaultProps.themeColor : _e, overlayStyle = props.overlayStyle, tabIndex = props.tabIndex, accessKey = props.accessKey, _f = props.popupSettings, popupSettings = _f === void 0 ? {} : _f, modal = props.modal, onClick = props.onClick, onItemClick = props.onItemClick, onFocus = props.onFocus, onBlur = props.onBlur, onKeyDown = props.onKeyDown, onOpen = props.onOpen, onClose = props.onClose, others = __rest(props, ["align", "alignOffset", "className", "disabled", "icon", "iconClass", "id", "items", "item", "text", "positionMode", "size", "style", "rounded", "themeColor", "overlayStyle", "tabIndex", "accessKey", "popupSettings", "modal", "onClick", "onItemClick", "onFocus", "onBlur", "onKeyDown", "onOpen", "onClose"]);
51
51
  var zIndexContext = useZIndexContext();
52
52
  var currentZIndex = zIndexContext ? zIndexContext + ZINDEX_FAB_STEP : DEFAULT_FAB_ZINDEX;
53
53
  var target = React.useRef(null);
@@ -65,9 +65,9 @@ export var FloatingActionButton = React.forwardRef(function (props, ref) {
65
65
  }); }, [focusElement]);
66
66
  React.useImperativeHandle(target, getImperativeHandle);
67
67
  React.useImperativeHandle(ref, function () { return target.current; });
68
- var _h = React.useState(false), open = _h[0], setOpen = _h[1];
69
- var _j = React.useState(false), focused = _j[0], setFocused = _j[1];
70
- var _k = React.useState(-1), focusedIndex = _k[0], setFocusedIndex = _k[1];
68
+ var _g = React.useState(false), open = _g[0], setOpen = _g[1];
69
+ var _h = React.useState(false), focused = _h[0], setFocused = _h[1];
70
+ var _j = React.useState(-1), focusedIndex = _j[0], setFocusedIndex = _j[1];
71
71
  var buttonId = React.useMemo(function () { return guid(); }, []);
72
72
  var dir = useDir(elementRef, props.dir);
73
73
  var isRtl = dir === 'rtl';
@@ -201,19 +201,19 @@ export var FloatingActionButton = React.forwardRef(function (props, ref) {
201
201
  }, [onKeyDown, focusedIndex, setFocusedIndex, isRtl, setOpen]);
202
202
  var buttonClassNames = React.useMemo(function () {
203
203
  var _a;
204
- return classNames('k-fab k-fab-solid', (_a = {},
205
- _a["k-fab-".concat(shape)] = shape,
206
- _a['k-fab-sm'] = size === 'small',
207
- _a['k-fab-md'] = size === 'medium',
208
- _a['k-fab-lg'] = size === 'large',
209
- _a['k-disabled'] = disabled,
210
- _a['k-pos-absolute'] = positionMode === 'absolute',
211
- _a['k-pos-fixed'] = positionMode === 'fixed',
212
- _a['k-focus'] = focused,
204
+ return classNames('k-fab k-fab-solid', (_a = {
205
+ 'k-fab-sm': size === 'small',
206
+ 'k-fab-md': size === 'medium',
207
+ 'k-fab-lg': size === 'large',
208
+ 'k-disabled': disabled,
209
+ 'k-pos-absolute': positionMode === 'absolute',
210
+ 'k-pos-fixed': positionMode === 'fixed',
211
+ 'k-focus': focused
212
+ },
213
213
  _a["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
214
214
  _a["k-fab-solid-".concat(themeColor)] = themeColor,
215
215
  _a), "k-".concat(align.vertical, "-").concat(align.horizontal), className);
216
- }, [themeColor, size, rounded, shape, disabled, positionMode, align, focused, className]);
216
+ }, [themeColor, size, rounded, disabled, positionMode, align, focused, className]);
217
217
  var fabItems = (items && (items.map(function (element, index) {
218
218
  return (React.createElement(FloatingActionButtonItem, __assign({}, element, { key: index, index: index, id: "".concat(listId, "-").concat(index), disabled: disabled || element.disabled, focused: focusedIndex === index, dataItem: element, item: item, className: classNames(element.className, getTextDirectionClass(dir || 'ltr', align.horizontal)), onClick: handleItemClick, onDown: handleItemDown })));
219
219
  })));
@@ -260,7 +260,6 @@ FloatingActionButton.propTypes = {
260
260
  horizontal: PropTypes.oneOf(['start', 'center', 'end'])
261
261
  }),
262
262
  positionMode: PropTypes.oneOf(['absolute', 'fixed']),
263
- shape: PropTypes.oneOf([null, 'rectangle', 'square']),
264
263
  size: PropTypes.oneOf([null, 'small', 'medium', 'large']),
265
264
  rounded: PropTypes.oneOf([null, 'small', 'medium', 'large', 'full']),
266
265
  themeColor: PropTypes.oneOf([null,
@@ -273,7 +272,6 @@ FloatingActionButton.propTypes = {
273
272
  };
274
273
  var defaultProps = {
275
274
  align: { vertical: 'bottom', horizontal: 'end' },
276
- shape: null,
277
275
  size: 'medium',
278
276
  rounded: 'full',
279
277
  themeColor: 'primary',
@@ -5,7 +5,6 @@ import { FloatingActionButtonAlign } from '../models/align';
5
5
  import { FloatingActionButtonAlignOffset } from '../models/align-offset';
6
6
  import { FloatingActionButtonEvent, FloatingActionButtonItemEvent } from '../models/events';
7
7
  import { FloatingActionButtonPositionMode } from '../models/position-mode';
8
- import { FloatingActionButtonShape } from '../models/shape';
9
8
  import { FloatingActionButtonSize } from '../models/size';
10
9
  import { FloatingActionButtonThemeColor } from '../models/theme-color';
11
10
  import { FloatingActionButtonRounded } from '../models/rounded';
@@ -97,20 +96,6 @@ export interface FloatingActionButtonProps extends Omit<React.ButtonHTMLAttribut
97
96
  * * 'absolute'
98
97
  */
99
98
  positionMode?: FloatingActionButtonPositionMode;
100
- /**
101
- * Specifies the shape of the Floating Action Button
102
- * [see example]({% slug appearance_floatingactionbutton %}).
103
- *
104
- * The possible values are:
105
- * * `rectangle`&mdash;Applies no border radius on the FloatingActionButton.
106
- * * `square`&mdash;Applies square shape on the FloatingActionButton.
107
- * * `null`&mdash;Does not set a shape `className`.
108
- *
109
- * @default null
110
- *
111
- * @deprecated The `shape` property will be deprecated with version `^6` of the `@progress/kendo-react-buttons` package.
112
- */
113
- shape?: FloatingActionButtonShape;
114
99
  /**
115
100
  * Specifies the size of the Floating Action Button
116
101
  * [see example]({% slug appearance_floatingactionbutton %}).
@@ -61,7 +61,6 @@ export declare class DropDownButton extends React.Component<DropDownButtonProps,
61
61
  static defaultProps: {
62
62
  size: string;
63
63
  rounded: string;
64
- shape: null;
65
64
  fillMode: string;
66
65
  themeColor: string;
67
66
  };
@@ -215,7 +215,7 @@ var DropDownButton = /** @class */ (function (_super) {
215
215
  return (React.createElement("div", { id: id, style: style, className: classNames('k-dropdown-button', {
216
216
  'k-focus': this.state.focused
217
217
  }, this.props.className), onKeyDown: this.onKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, dir: dir, ref: function (el) { return _this.wrapper = el; } },
218
- React.createElement(Button, { size: this.props.size, shape: this.props.shape, rounded: this.props.rounded, fillMode: this.props.fillMode, themeColor: this.props.themeColor, onClick: this.onClickMainButton, onMouseDown: this.mouseDown, disabled: disabled || undefined, tabIndex: tabIndex, accessKey: this.props.accessKey, icon: this.props.icon, iconClass: this.props.iconClass, className: this.props.buttonClass, imageUrl: this.props.imageUrl, dir: dir, ref: function (btn) { return _this.mainButton = btn && btn.element; }, type: "button", "aria-haspopup": true, "aria-expanded": this.opened || undefined, "aria-label": this.props.ariaLabel, "aria-controls": this.opened ? this.guid : undefined, id: 'button-' + this.guid, title: this.props.title }, this.props.text),
218
+ React.createElement(Button, { size: this.props.size, rounded: this.props.rounded, fillMode: this.props.fillMode, themeColor: this.props.themeColor, onClick: this.onClickMainButton, onMouseDown: this.mouseDown, disabled: disabled || undefined, tabIndex: tabIndex, accessKey: this.props.accessKey, icon: this.props.icon, iconClass: this.props.iconClass, className: this.props.buttonClass, imageUrl: this.props.imageUrl, dir: dir, ref: function (btn) { return _this.mainButton = btn && btn.element; }, type: "button", "aria-haspopup": true, "aria-expanded": this.opened || undefined, "aria-label": this.props.ariaLabel, "aria-controls": this.opened ? this.guid : undefined, id: 'button-' + this.guid, title: this.props.title }, this.props.text),
219
219
  this.renderPopup(rtl)));
220
220
  };
221
221
  /**
@@ -300,7 +300,6 @@ var DropDownButton = /** @class */ (function (_super) {
300
300
  DropDownButton.defaultProps = {
301
301
  size: 'medium',
302
302
  rounded: 'medium',
303
- shape: null,
304
303
  fillMode: 'solid',
305
304
  themeColor: 'base'
306
305
  };
@@ -63,7 +63,6 @@ export declare class SplitButton extends React.Component<SplitButtonProps, Split
63
63
  static defaultProps: {
64
64
  size: string;
65
65
  rounded: string;
66
- shape: null;
67
66
  fillMode: string;
68
67
  themeColor: string;
69
68
  };
@@ -313,7 +313,6 @@ var SplitButton = /** @class */ (function (_super) {
313
313
  SplitButton.defaultProps = {
314
314
  size: 'medium',
315
315
  rounded: 'medium',
316
- shape: null,
317
316
  fillMode: 'solid',
318
317
  themeColor: 'base'
319
318
  };
@@ -116,19 +116,6 @@ export interface DropDownButtonProps extends KendoReactComponentBaseProps {
116
116
  * @default `medium`
117
117
  */
118
118
  size?: null | 'small' | 'medium' | 'large';
119
- /**
120
- * Configures the `shape` of the DropDownButton.
121
- *
122
- * The available options are:
123
- * - rectangle
124
- * - square
125
- * - null&mdash;Does not set a shape `className`.
126
- *
127
- * @default `null`
128
- *
129
- * @deprecated The `shape` property will be deprecated with version `^6` of the `@progress/kendo-react-buttons` package.
130
- */
131
- shape?: null | 'rectangle' | 'square';
132
119
  /**
133
120
  * Configures the `roundness` of the DropDownButton.
134
121
  *
package/dist/es/main.d.ts CHANGED
@@ -26,8 +26,7 @@ export * from './FloatingActionButton/models/events';
26
26
  import { FloatingActionButtonAlign } from './FloatingActionButton/models/align';
27
27
  import { FloatingActionButtonAlignOffset } from './FloatingActionButton/models/align-offset';
28
28
  import { FloatingActionButtonPositionMode } from './FloatingActionButton/models/position-mode';
29
- import { FloatingActionButtonShape } from './FloatingActionButton/models/shape';
30
29
  import { FloatingActionButtonSize } from './FloatingActionButton/models/size';
31
30
  import { FloatingActionButtonRounded } from './FloatingActionButton/models/rounded';
32
31
  import { FloatingActionButtonThemeColor } from './FloatingActionButton/models/theme-color';
33
- export { Toolbar, ToolbarProps, ToolbarItem, ToolbarItemProps, ToolbarSeparator, ToolbarResizeEvent, ToolbarSpacer, ToolbarSpacerProps, toolbarButtons, Button, ButtonProps, ButtonGroup, ButtonGroupProps, SplitButton, SplitButtonItem, SplitButtonItemProps, DropDownButton, DropDownButtonProps, DropDownButtonItem, DropDownButtonItemProps, ButtonItem, ButtonItemProps, SplitButtonFocusEvent, SplitButtonBlurEvent, SplitButtonClickEvent, SplitButtonOpenEvent, SplitButtonCloseEvent, SplitButtonItemClickEvent, DropDownButtonFocusEvent, DropDownButtonBlurEvent, DropDownButtonOpenEvent, DropDownButtonCloseEvent, DropDownButtonItemClickEvent, ButtonsPopupSettings, Chip, ChipProps, ChipHandle, ChipRemoveEvent, ChipMouseEvent, ChipKeyboardEvent, ChipFocusEvent, ChipList, ChipListProps, ChipListHandle, ChipListDataChangeEvent, ChipListChangeEvent, FloatingActionButton, FloatingActionButtonProps, FloatingActionButtonHandle, FloatingActionButtonItem, FloatingActionButtonItemHandle, FloatingActionButtonItemProps, FloatingActionButtonPopupSettings, FloatingActionButtonAlign, FloatingActionButtonAlignOffset, FloatingActionButtonPositionMode, FloatingActionButtonSize, FloatingActionButtonShape, FloatingActionButtonRounded, FloatingActionButtonThemeColor };
32
+ export { Toolbar, ToolbarProps, ToolbarItem, ToolbarItemProps, ToolbarSeparator, ToolbarResizeEvent, ToolbarSpacer, ToolbarSpacerProps, toolbarButtons, Button, ButtonProps, ButtonGroup, ButtonGroupProps, SplitButton, SplitButtonItem, SplitButtonItemProps, DropDownButton, DropDownButtonProps, DropDownButtonItem, DropDownButtonItemProps, ButtonItem, ButtonItemProps, SplitButtonFocusEvent, SplitButtonBlurEvent, SplitButtonClickEvent, SplitButtonOpenEvent, SplitButtonCloseEvent, SplitButtonItemClickEvent, DropDownButtonFocusEvent, DropDownButtonBlurEvent, DropDownButtonOpenEvent, DropDownButtonCloseEvent, DropDownButtonItemClickEvent, ButtonsPopupSettings, Chip, ChipProps, ChipHandle, ChipRemoveEvent, ChipMouseEvent, ChipKeyboardEvent, ChipFocusEvent, ChipList, ChipListProps, ChipListHandle, ChipListDataChangeEvent, ChipListChangeEvent, FloatingActionButton, FloatingActionButtonProps, FloatingActionButtonHandle, FloatingActionButtonItem, FloatingActionButtonItemHandle, FloatingActionButtonItemProps, FloatingActionButtonPopupSettings, FloatingActionButtonAlign, FloatingActionButtonAlignOffset, FloatingActionButtonPositionMode, FloatingActionButtonSize, FloatingActionButtonRounded, FloatingActionButtonThemeColor };
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-buttons',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1672914133,
8
+ publishDate: 1673300411,
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
  };
@@ -63,6 +63,18 @@ export interface ToolbarProps extends KendoReactComponentBaseProps {
63
63
  * ].
64
64
  */
65
65
  buttons?: string[];
66
+ /**
67
+ * Configures the `size` of the Toolbar.
68
+ *
69
+ * The available options are:
70
+ * - small
71
+ * - medium
72
+ * - large
73
+ * - null&mdash;Does not set a size `className`.
74
+ *
75
+ * @default `medium`
76
+ */
77
+ size?: null | 'small' | 'medium' | 'large';
66
78
  /**
67
79
  * @hidden
68
80
  */
@@ -111,12 +123,14 @@ export declare class Toolbar extends React.Component<ToolbarProps> {
111
123
  role: PropTypes.Requireable<string>;
112
124
  onResize: PropTypes.Requireable<(...args: any[]) => any>;
113
125
  buttons: PropTypes.Requireable<(string | null | undefined)[]>;
126
+ size: PropTypes.Requireable<string | null>;
114
127
  };
115
128
  /**
116
129
  * @hidden
117
130
  */
118
131
  static defaultProps: {
119
132
  tabIndex: number;
133
+ size: string;
120
134
  };
121
135
  private _element;
122
136
  private offsetHeight;
@@ -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, Keys } from '@progress/kendo-react-common';
29
+ import { classNames, Keys, kendoThemeMaps } from '@progress/kendo-react-common';
30
30
  import { toolbarButtons } from './../util';
31
31
  import { validatePackage } from '@progress/kendo-react-common';
32
32
  import { packageMetadata } from '../package-metadata';
@@ -170,8 +170,11 @@ var Toolbar = /** @class */ (function (_super) {
170
170
  * @hidden
171
171
  */
172
172
  Toolbar.prototype.render = function () {
173
+ var _a;
173
174
  var _this = this;
174
- return (React.createElement("div", { id: this.props.id, className: classNames('k-widget k-toolbar', this.props.className), style: this.props.style, role: this.props.role !== undefined ? (this.props.role || undefined) : 'toolbar', dir: this.props.dir, ref: function (element) { return _this._element = element; }, onKeyDown: this.props.keyboardNavigation !== false ? this.onKeyDown : undefined }, this.props.children));
175
+ return (React.createElement("div", { id: this.props.id, className: classNames('k-toolbar', (_a = {},
176
+ _a["k-toolbar-".concat(kendoThemeMaps.sizeMap[this.props.size] || this.props.size)] = this.props.size,
177
+ _a), this.props.className), style: this.props.style, role: this.props.role !== undefined ? (this.props.role || undefined) : 'toolbar', dir: this.props.dir, ref: function (element) { return _this._element = element; }, onKeyDown: this.props.keyboardNavigation !== false ? this.onKeyDown : undefined }, this.props.children));
175
178
  };
176
179
  Toolbar.prototype.focusButton = function (prevIndex, index) {
177
180
  var _a = this.props.tabIndex, tabIndex = _a === void 0 ? Toolbar.defaultProps.tabIndex : _a;
@@ -196,13 +199,15 @@ var Toolbar = /** @class */ (function (_super) {
196
199
  className: PropTypes.string,
197
200
  role: PropTypes.string,
198
201
  onResize: PropTypes.func,
199
- buttons: PropTypes.arrayOf(PropTypes.string)
202
+ buttons: PropTypes.arrayOf(PropTypes.string),
203
+ size: PropTypes.oneOf([null, 'small', 'medium', 'large'])
200
204
  };
201
205
  /**
202
206
  * @hidden
203
207
  */
204
208
  Toolbar.defaultProps = {
205
- tabIndex: 0
209
+ tabIndex: 0,
210
+ size: 'medium'
206
211
  };
207
212
  return Toolbar;
208
213
  }(React.Component));
@@ -15,6 +15,7 @@ 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
19
  /**
19
20
  * Represents the KendoReact ToolbarItem component.
20
21
  * To add a tool to the Toolbar, wrap it inside a ToolbarItem component
@@ -42,7 +43,7 @@ var ToolbarItem = /** @class */ (function (_super) {
42
43
  */
43
44
  ToolbarItem.prototype.render = function () {
44
45
  var _this = this;
45
- return (React.createElement("span", { id: this.props.id, className: this.props.className, style: this.props.style, ref: function (e) { return _this._element = e; } }, this.props.children));
46
+ return (React.createElement("div", { id: this.props.id, className: classNames('k-toolbar-item', this.props.className), style: this.props.style, ref: function (e) { return _this._element = e; } }, this.props.children));
46
47
  };
47
48
  /**
48
49
  * @hidden
@@ -2,7 +2,13 @@ import * as React from 'react';
2
2
  /**
3
3
  * Represents the KendoReact Toolbar Separator component.
4
4
  */
5
- export declare class ToolbarSeparator extends React.PureComponent<{}> {
5
+ export interface ToolbarSeparatorProps {
6
+ /**
7
+ * Sets additional classes to the ToolbarSeparator component.
8
+ */
9
+ className?: string;
10
+ }
11
+ export declare class ToolbarSeparator extends React.PureComponent<ToolbarSeparatorProps> {
6
12
  /**
7
13
  * @hidden
8
14
  */
@@ -14,10 +14,7 @@ var __extends = (this && this.__extends) || (function () {
14
14
  };
15
15
  })();
16
16
  import * as React from 'react';
17
- import { ToolbarItem } from './ToolbarItem';
18
- /**
19
- * Represents the KendoReact Toolbar Separator component.
20
- */
17
+ import { classNames } from '@progress/kendo-react-common';
21
18
  var ToolbarSeparator = /** @class */ (function (_super) {
22
19
  __extends(ToolbarSeparator, _super);
23
20
  function ToolbarSeparator() {
@@ -27,7 +24,7 @@ var ToolbarSeparator = /** @class */ (function (_super) {
27
24
  * @hidden
28
25
  */
29
26
  ToolbarSeparator.prototype.render = function () {
30
- return (React.createElement(ToolbarItem, { className: "k-separator" }));
27
+ return (React.createElement("div", { className: classNames('k-separator', this.props.className) }));
31
28
  };
32
29
  return ToolbarSeparator;
33
30
  }(React.PureComponent));
@@ -22,19 +22,6 @@ export interface ButtonProps extends ButtonInterface, React.ButtonHTMLAttributes
22
22
  * @default `medium`
23
23
  */
24
24
  size?: null | 'small' | 'medium' | 'large';
25
- /**
26
- * Configures the `shape` of the Button.
27
- *
28
- * The available options are:
29
- * - rectangle
30
- * - square
31
- * - null&mdash;Does not set a shape `className`.
32
- *
33
- * @default `null`
34
- *
35
- * @deprecated The `shape` property will be deprecated with version `^6` of the `@progress/kendo-react-buttons` package.
36
- */
37
- shape?: null | 'rectangle' | 'square';
38
25
  /**
39
26
  * Configures the `roundness` of the Button.
40
27
  *
@@ -101,7 +88,6 @@ export declare class Button extends React.Component<ButtonProps, ButtonState> {
101
88
  imageUrl: PropTypes.Requireable<string>;
102
89
  imageAlt: PropTypes.Requireable<string>;
103
90
  size: PropTypes.Requireable<string | null>;
104
- shape: PropTypes.Requireable<string | null>;
105
91
  rounded: PropTypes.Requireable<string | null>;
106
92
  fillMode: PropTypes.Requireable<string | null>;
107
93
  themeColor: PropTypes.Requireable<string | null>;
@@ -112,7 +98,6 @@ export declare class Button extends React.Component<ButtonProps, ButtonState> {
112
98
  static defaultProps: {
113
99
  togglable: boolean;
114
100
  size: string;
115
- shape: null;
116
101
  rounded: string;
117
102
  fillMode: string;
118
103
  themeColor: string;
@@ -111,7 +111,7 @@ var Button = /** @class */ (function (_super) {
111
111
  Button.prototype.render = function () {
112
112
  var _a;
113
113
  var _this = this;
114
- var _b = this.props, children = _b.children, togglable = _b.togglable, icon = _b.icon, iconClass = _b.iconClass, imageUrl = _b.imageUrl, imageAlt = _b.imageAlt, className = _b.className, onClick = _b.onClick, _c = _b.size, size = _c === void 0 ? Button.defaultProps.size : _c, _d = _b.shape, shape = _d === void 0 ? Button.defaultProps.shape : _d, _e = _b.rounded, rounded = _e === void 0 ? Button.defaultProps.rounded : _e, _f = _b.fillMode, fillMode = _f === void 0 ? Button.defaultProps.fillMode : _f, _g = _b.themeColor, themeColor = _g === void 0 ? Button.defaultProps.themeColor : _g, htmlAttributes = __rest(_b, ["children", "togglable", "icon", "iconClass", "imageUrl", "imageAlt", "className", "onClick", "size", "shape", "rounded", "fillMode", "themeColor"]);
114
+ var _b = this.props, children = _b.children, togglable = _b.togglable, icon = _b.icon, iconClass = _b.iconClass, imageUrl = _b.imageUrl, imageAlt = _b.imageAlt, className = _b.className, onClick = _b.onClick, _c = _b.size, size = _c === void 0 ? Button.defaultProps.size : _c, _d = _b.rounded, rounded = _d === void 0 ? Button.defaultProps.rounded : _d, _e = _b.fillMode, fillMode = _e === void 0 ? Button.defaultProps.fillMode : _e, _f = _b.themeColor, themeColor = _f === void 0 ? Button.defaultProps.themeColor : _f, htmlAttributes = __rest(_b, ["children", "togglable", "icon", "iconClass", "imageUrl", "imageAlt", "className", "onClick", "size", "rounded", "fillMode", "themeColor"]);
115
115
  var hasIcon = (icon !== undefined || iconClass !== undefined || imageUrl !== undefined);
116
116
  var hasChildren = children !== undefined;
117
117
  var iconEl = iconElement({
@@ -122,7 +122,6 @@ var Button = /** @class */ (function (_super) {
122
122
  });
123
123
  return (React.createElement("button", __assign({ ref: function (button) { return _this._element = button; }, "aria-pressed": togglable ? this.state.selected : undefined }, htmlAttributes, { onClick: this.handleClick, className: (0, kendo_react_common_1.classNames)('k-button', (_a = {},
124
124
  _a["k-button-".concat(kendo_react_common_1.kendoThemeMaps.sizeMap[size] || size)] = size,
125
- _a["k-button-".concat(shape)] = shape,
126
125
  _a["k-button-".concat(fillMode)] = fillMode,
127
126
  _a["k-button-".concat(fillMode, "-").concat(themeColor)] = Boolean(fillMode && themeColor),
128
127
  _a["k-rounded-".concat(kendo_react_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
@@ -154,7 +153,6 @@ var Button = /** @class */ (function (_super) {
154
153
  imageUrl: PropTypes.string,
155
154
  imageAlt: PropTypes.string,
156
155
  size: PropTypes.oneOf([null, 'small', 'medium', 'large']),
157
- shape: PropTypes.oneOf([null, 'rectangle', 'square']),
158
156
  rounded: PropTypes.oneOf([null, 'small', 'medium', 'large', 'full']),
159
157
  fillMode: PropTypes.oneOf([null, 'flat', 'link', 'outline', 'solid']),
160
158
  // eslint-disable-next-line max-len
@@ -166,7 +164,6 @@ var Button = /** @class */ (function (_super) {
166
164
  Button.defaultProps = {
167
165
  togglable: false,
168
166
  size: 'medium',
169
- shape: null,
170
167
  rounded: 'medium',
171
168
  fillMode: 'solid',
172
169
  themeColor: 'base'
@@ -50,7 +50,7 @@ var DEFAULT_FAB_ZINDEX = 100;
50
50
  */
51
51
  exports.FloatingActionButton = React.forwardRef(function (props, ref) {
52
52
  (0, kendo_react_common_1.validatePackage)(package_metadata_1.packageMetadata);
53
- var _a = props.align, align = _a === void 0 ? defaultProps.align : _a, alignOffset = props.alignOffset, className = props.className, disabled = props.disabled, icon = props.icon, iconClass = props.iconClass, id = props.id, items = props.items, item = props.item, text = props.text, _b = props.positionMode, positionMode = _b === void 0 ? defaultProps.positionMode : _b, _c = props.shape, shape = _c === void 0 ? defaultProps.shape : _c, _d = props.size, size = _d === void 0 ? defaultProps.size : _d, style = props.style, _e = props.rounded, rounded = _e === void 0 ? defaultProps.rounded : _e, _f = props.themeColor, themeColor = _f === void 0 ? defaultProps.themeColor : _f, overlayStyle = props.overlayStyle, tabIndex = props.tabIndex, accessKey = props.accessKey, _g = props.popupSettings, popupSettings = _g === void 0 ? {} : _g, modal = props.modal, onClick = props.onClick, onItemClick = props.onItemClick, onFocus = props.onFocus, onBlur = props.onBlur, onKeyDown = props.onKeyDown, onOpen = props.onOpen, onClose = props.onClose, others = __rest(props, ["align", "alignOffset", "className", "disabled", "icon", "iconClass", "id", "items", "item", "text", "positionMode", "shape", "size", "style", "rounded", "themeColor", "overlayStyle", "tabIndex", "accessKey", "popupSettings", "modal", "onClick", "onItemClick", "onFocus", "onBlur", "onKeyDown", "onOpen", "onClose"]);
53
+ var _a = props.align, align = _a === void 0 ? defaultProps.align : _a, alignOffset = props.alignOffset, className = props.className, disabled = props.disabled, icon = props.icon, iconClass = props.iconClass, id = props.id, items = props.items, item = props.item, text = props.text, _b = props.positionMode, positionMode = _b === void 0 ? defaultProps.positionMode : _b, _c = props.size, size = _c === void 0 ? defaultProps.size : _c, style = props.style, _d = props.rounded, rounded = _d === void 0 ? defaultProps.rounded : _d, _e = props.themeColor, themeColor = _e === void 0 ? defaultProps.themeColor : _e, overlayStyle = props.overlayStyle, tabIndex = props.tabIndex, accessKey = props.accessKey, _f = props.popupSettings, popupSettings = _f === void 0 ? {} : _f, modal = props.modal, onClick = props.onClick, onItemClick = props.onItemClick, onFocus = props.onFocus, onBlur = props.onBlur, onKeyDown = props.onKeyDown, onOpen = props.onOpen, onClose = props.onClose, others = __rest(props, ["align", "alignOffset", "className", "disabled", "icon", "iconClass", "id", "items", "item", "text", "positionMode", "size", "style", "rounded", "themeColor", "overlayStyle", "tabIndex", "accessKey", "popupSettings", "modal", "onClick", "onItemClick", "onFocus", "onBlur", "onKeyDown", "onOpen", "onClose"]);
54
54
  var zIndexContext = (0, kendo_react_common_1.useZIndexContext)();
55
55
  var currentZIndex = zIndexContext ? zIndexContext + ZINDEX_FAB_STEP : DEFAULT_FAB_ZINDEX;
56
56
  var target = React.useRef(null);
@@ -68,9 +68,9 @@ exports.FloatingActionButton = React.forwardRef(function (props, ref) {
68
68
  }); }, [focusElement]);
69
69
  React.useImperativeHandle(target, getImperativeHandle);
70
70
  React.useImperativeHandle(ref, function () { return target.current; });
71
- var _h = React.useState(false), open = _h[0], setOpen = _h[1];
72
- var _j = React.useState(false), focused = _j[0], setFocused = _j[1];
73
- var _k = React.useState(-1), focusedIndex = _k[0], setFocusedIndex = _k[1];
71
+ var _g = React.useState(false), open = _g[0], setOpen = _g[1];
72
+ var _h = React.useState(false), focused = _h[0], setFocused = _h[1];
73
+ var _j = React.useState(-1), focusedIndex = _j[0], setFocusedIndex = _j[1];
74
74
  var buttonId = React.useMemo(function () { return (0, kendo_react_common_2.guid)(); }, []);
75
75
  var dir = (0, kendo_react_common_2.useDir)(elementRef, props.dir);
76
76
  var isRtl = dir === 'rtl';
@@ -204,19 +204,19 @@ exports.FloatingActionButton = React.forwardRef(function (props, ref) {
204
204
  }, [onKeyDown, focusedIndex, setFocusedIndex, isRtl, setOpen]);
205
205
  var buttonClassNames = React.useMemo(function () {
206
206
  var _a;
207
- return (0, kendo_react_common_2.classNames)('k-fab k-fab-solid', (_a = {},
208
- _a["k-fab-".concat(shape)] = shape,
209
- _a['k-fab-sm'] = size === 'small',
210
- _a['k-fab-md'] = size === 'medium',
211
- _a['k-fab-lg'] = size === 'large',
212
- _a['k-disabled'] = disabled,
213
- _a['k-pos-absolute'] = positionMode === 'absolute',
214
- _a['k-pos-fixed'] = positionMode === 'fixed',
215
- _a['k-focus'] = focused,
207
+ return (0, kendo_react_common_2.classNames)('k-fab k-fab-solid', (_a = {
208
+ 'k-fab-sm': size === 'small',
209
+ 'k-fab-md': size === 'medium',
210
+ 'k-fab-lg': size === 'large',
211
+ 'k-disabled': disabled,
212
+ 'k-pos-absolute': positionMode === 'absolute',
213
+ 'k-pos-fixed': positionMode === 'fixed',
214
+ 'k-focus': focused
215
+ },
216
216
  _a["k-rounded-".concat(kendo_react_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
217
217
  _a["k-fab-solid-".concat(themeColor)] = themeColor,
218
218
  _a), "k-".concat(align.vertical, "-").concat(align.horizontal), className);
219
- }, [themeColor, size, rounded, shape, disabled, positionMode, align, focused, className]);
219
+ }, [themeColor, size, rounded, disabled, positionMode, align, focused, className]);
220
220
  var fabItems = (items && (items.map(function (element, index) {
221
221
  return (React.createElement(FloatingActionButtonItem_1.FloatingActionButtonItem, __assign({}, element, { key: index, index: index, id: "".concat(listId, "-").concat(index), disabled: disabled || element.disabled, focused: focusedIndex === index, dataItem: element, item: item, className: (0, kendo_react_common_2.classNames)(element.className, (0, utils_1.getTextDirectionClass)(dir || 'ltr', align.horizontal)), onClick: handleItemClick, onDown: handleItemDown })));
222
222
  })));
@@ -263,7 +263,6 @@ exports.FloatingActionButton.propTypes = {
263
263
  horizontal: PropTypes.oneOf(['start', 'center', 'end'])
264
264
  }),
265
265
  positionMode: PropTypes.oneOf(['absolute', 'fixed']),
266
- shape: PropTypes.oneOf([null, 'rectangle', 'square']),
267
266
  size: PropTypes.oneOf([null, 'small', 'medium', 'large']),
268
267
  rounded: PropTypes.oneOf([null, 'small', 'medium', 'large', 'full']),
269
268
  themeColor: PropTypes.oneOf([null,
@@ -276,7 +275,6 @@ exports.FloatingActionButton.propTypes = {
276
275
  };
277
276
  var defaultProps = {
278
277
  align: { vertical: 'bottom', horizontal: 'end' },
279
- shape: null,
280
278
  size: 'medium',
281
279
  rounded: 'full',
282
280
  themeColor: 'primary',
@@ -5,7 +5,6 @@ import { FloatingActionButtonAlign } from '../models/align';
5
5
  import { FloatingActionButtonAlignOffset } from '../models/align-offset';
6
6
  import { FloatingActionButtonEvent, FloatingActionButtonItemEvent } from '../models/events';
7
7
  import { FloatingActionButtonPositionMode } from '../models/position-mode';
8
- import { FloatingActionButtonShape } from '../models/shape';
9
8
  import { FloatingActionButtonSize } from '../models/size';
10
9
  import { FloatingActionButtonThemeColor } from '../models/theme-color';
11
10
  import { FloatingActionButtonRounded } from '../models/rounded';
@@ -97,20 +96,6 @@ export interface FloatingActionButtonProps extends Omit<React.ButtonHTMLAttribut
97
96
  * * 'absolute'
98
97
  */
99
98
  positionMode?: FloatingActionButtonPositionMode;
100
- /**
101
- * Specifies the shape of the Floating Action Button
102
- * [see example]({% slug appearance_floatingactionbutton %}).
103
- *
104
- * The possible values are:
105
- * * `rectangle`&mdash;Applies no border radius on the FloatingActionButton.
106
- * * `square`&mdash;Applies square shape on the FloatingActionButton.
107
- * * `null`&mdash;Does not set a shape `className`.
108
- *
109
- * @default null
110
- *
111
- * @deprecated The `shape` property will be deprecated with version `^6` of the `@progress/kendo-react-buttons` package.
112
- */
113
- shape?: FloatingActionButtonShape;
114
99
  /**
115
100
  * Specifies the size of the Floating Action Button
116
101
  * [see example]({% slug appearance_floatingactionbutton %}).
@@ -61,7 +61,6 @@ export declare class DropDownButton extends React.Component<DropDownButtonProps,
61
61
  static defaultProps: {
62
62
  size: string;
63
63
  rounded: string;
64
- shape: null;
65
64
  fillMode: string;
66
65
  themeColor: string;
67
66
  };
@@ -218,7 +218,7 @@ var DropDownButton = /** @class */ (function (_super) {
218
218
  return (React.createElement("div", { id: id, style: style, className: (0, kendo_react_common_1.classNames)('k-dropdown-button', {
219
219
  'k-focus': this.state.focused
220
220
  }, this.props.className), onKeyDown: this.onKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, dir: dir, ref: function (el) { return _this.wrapper = el; } },
221
- React.createElement(main_1.Button, { size: this.props.size, shape: this.props.shape, rounded: this.props.rounded, fillMode: this.props.fillMode, themeColor: this.props.themeColor, onClick: this.onClickMainButton, onMouseDown: this.mouseDown, disabled: disabled || undefined, tabIndex: tabIndex, accessKey: this.props.accessKey, icon: this.props.icon, iconClass: this.props.iconClass, className: this.props.buttonClass, imageUrl: this.props.imageUrl, dir: dir, ref: function (btn) { return _this.mainButton = btn && btn.element; }, type: "button", "aria-haspopup": true, "aria-expanded": this.opened || undefined, "aria-label": this.props.ariaLabel, "aria-controls": this.opened ? this.guid : undefined, id: 'button-' + this.guid, title: this.props.title }, this.props.text),
221
+ React.createElement(main_1.Button, { size: this.props.size, rounded: this.props.rounded, fillMode: this.props.fillMode, themeColor: this.props.themeColor, onClick: this.onClickMainButton, onMouseDown: this.mouseDown, disabled: disabled || undefined, tabIndex: tabIndex, accessKey: this.props.accessKey, icon: this.props.icon, iconClass: this.props.iconClass, className: this.props.buttonClass, imageUrl: this.props.imageUrl, dir: dir, ref: function (btn) { return _this.mainButton = btn && btn.element; }, type: "button", "aria-haspopup": true, "aria-expanded": this.opened || undefined, "aria-label": this.props.ariaLabel, "aria-controls": this.opened ? this.guid : undefined, id: 'button-' + this.guid, title: this.props.title }, this.props.text),
222
222
  this.renderPopup(rtl)));
223
223
  };
224
224
  /**
@@ -303,7 +303,6 @@ var DropDownButton = /** @class */ (function (_super) {
303
303
  DropDownButton.defaultProps = {
304
304
  size: 'medium',
305
305
  rounded: 'medium',
306
- shape: null,
307
306
  fillMode: 'solid',
308
307
  themeColor: 'base'
309
308
  };
@@ -63,7 +63,6 @@ export declare class SplitButton extends React.Component<SplitButtonProps, Split
63
63
  static defaultProps: {
64
64
  size: string;
65
65
  rounded: string;
66
- shape: null;
67
66
  fillMode: string;
68
67
  themeColor: string;
69
68
  };
@@ -316,7 +316,6 @@ var SplitButton = /** @class */ (function (_super) {
316
316
  SplitButton.defaultProps = {
317
317
  size: 'medium',
318
318
  rounded: 'medium',
319
- shape: null,
320
319
  fillMode: 'solid',
321
320
  themeColor: 'base'
322
321
  };