@progress/kendo-react-buttons 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009
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/cdn/js/kendo-react-buttons.js +1 -1
- package/dist/es/Button.d.ts +9 -9
- package/dist/es/Button.js +16 -12
- package/dist/es/ButtonGroup.d.ts +2 -2
- package/dist/es/ButtonGroup.js +8 -6
- package/dist/es/ButtonGroupInterface.d.ts +5 -0
- package/dist/es/ButtonGroupInterface.js +1 -0
- package/dist/es/ButtonInterface.js +1 -0
- package/dist/es/Chip/Chip.d.ts +1 -1
- package/dist/es/Chip/Chip.js +4 -4
- package/dist/es/Chip/ChipList.d.ts +4 -4
- package/dist/es/Chip/ChipList.js +4 -4
- package/dist/es/Chip/selection-reducer.js +11 -2
- package/dist/es/FloatingActionButton/FloatingActionButton.d.ts +1 -1
- package/dist/es/FloatingActionButton/FloatingActionButton.js +11 -9
- package/dist/es/FloatingActionButton/FloatingActionButtonItem.d.ts +1 -1
- package/dist/es/FloatingActionButton/FloatingActionButtonItem.js +6 -4
- package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonHandle.js +1 -0
- package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonPopupSettings.js +1 -0
- package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonProps.js +1 -0
- package/dist/es/FloatingActionButton/models/align-offset.js +1 -0
- package/dist/es/FloatingActionButton/models/align.js +1 -0
- package/dist/es/FloatingActionButton/models/events.js +1 -0
- package/dist/es/FloatingActionButton/models/position-mode.js +1 -0
- package/dist/es/FloatingActionButton/models/rounded.js +1 -0
- package/dist/es/FloatingActionButton/models/shape.js +1 -0
- package/dist/es/FloatingActionButton/models/size.js +1 -0
- package/dist/es/FloatingActionButton/models/theme-color.js +1 -0
- package/dist/es/FloatingActionButton/utils.d.ts +2 -2
- package/dist/es/FloatingActionButton/utils.js +2 -2
- package/dist/es/ListButton/ButtonItem.d.ts +1 -2
- package/dist/es/ListButton/ButtonItem.js +3 -4
- package/dist/es/ListButton/DropDownButton.d.ts +3 -3
- package/dist/es/ListButton/DropDownButton.js +12 -10
- package/dist/es/ListButton/DropDownButtonItem.d.ts +2 -2
- package/dist/es/ListButton/DropDownButtonItem.js +4 -2
- package/dist/es/ListButton/SplitButton.d.ts +3 -3
- package/dist/es/ListButton/SplitButton.js +13 -11
- package/dist/es/ListButton/SplitButtonItem.d.ts +2 -2
- package/dist/es/ListButton/SplitButtonItem.js +4 -2
- package/dist/es/ListButton/models/ButtonItem.js +1 -0
- package/dist/es/ListButton/models/ListButtonProps.js +1 -0
- package/dist/es/ListButton/models/PopupSettings.js +1 -0
- package/dist/es/ListButton/models/events.d.ts +2 -2
- package/dist/es/ListButton/models/events.js +1 -0
- package/dist/es/ListButton/utils/navigation.d.ts +1 -1
- package/dist/es/ListButton/utils/navigation.js +1 -1
- package/dist/es/main.d.ts +9 -9
- package/dist/es/main.js +10 -9
- package/dist/es/models/index.js +1 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/toolbar/Toolbar.d.ts +5 -5
- package/dist/es/toolbar/Toolbar.js +8 -6
- package/dist/es/toolbar/tools/ToolbarItem.d.ts +2 -2
- package/dist/es/toolbar/tools/ToolbarItem.js +5 -3
- package/dist/es/toolbar/tools/ToolbarSeparator.d.ts +1 -1
- package/dist/es/toolbar/tools/ToolbarSeparator.js +5 -3
- package/dist/es/toolbar/tools/ToolbarSpacer.d.ts +1 -1
- package/dist/es/toolbar/tools/ToolbarSpacer.js +1 -0
- package/dist/es/util.d.ts +9 -9
- package/dist/npm/Button.d.ts +9 -9
- package/dist/npm/Button.js +21 -16
- package/dist/npm/ButtonGroup.d.ts +2 -2
- package/dist/npm/ButtonGroup.js +12 -9
- package/dist/npm/ButtonGroupInterface.d.ts +5 -0
- package/dist/npm/Chip/Chip.d.ts +1 -1
- package/dist/npm/Chip/Chip.js +12 -11
- package/dist/npm/Chip/ChipList.d.ts +4 -4
- package/dist/npm/Chip/ChipList.js +11 -10
- package/dist/npm/Chip/data-reducer.js +3 -1
- package/dist/npm/Chip/focus-reducer.js +3 -1
- package/dist/npm/Chip/selection-reducer.js +14 -3
- package/dist/npm/FloatingActionButton/FloatingActionButton.d.ts +1 -1
- package/dist/npm/FloatingActionButton/FloatingActionButton.js +27 -24
- package/dist/npm/FloatingActionButton/FloatingActionButtonItem.d.ts +1 -1
- package/dist/npm/FloatingActionButton/FloatingActionButtonItem.js +8 -5
- package/dist/npm/FloatingActionButton/utils.d.ts +2 -2
- package/dist/npm/FloatingActionButton/utils.js +15 -9
- package/dist/npm/ListButton/ButtonItem.d.ts +1 -2
- package/dist/npm/ListButton/ButtonItem.js +7 -6
- package/dist/npm/ListButton/DropDownButton.d.ts +3 -3
- package/dist/npm/ListButton/DropDownButton.js +21 -18
- package/dist/npm/ListButton/DropDownButtonItem.d.ts +2 -2
- package/dist/npm/ListButton/DropDownButtonItem.js +5 -2
- package/dist/npm/ListButton/SplitButton.d.ts +3 -3
- package/dist/npm/ListButton/SplitButton.js +23 -20
- package/dist/npm/ListButton/SplitButtonItem.d.ts +2 -2
- package/dist/npm/ListButton/SplitButtonItem.js +5 -2
- package/dist/npm/ListButton/models/events.d.ts +2 -2
- package/dist/npm/ListButton/utils/navigation.d.ts +1 -1
- package/dist/npm/ListButton/utils/navigation.js +2 -1
- package/dist/npm/ListButton/utils/popup.js +1 -0
- package/dist/npm/main.d.ts +9 -9
- package/dist/npm/main.js +30 -14
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/toolbar/Toolbar.d.ts +5 -5
- package/dist/npm/toolbar/Toolbar.js +11 -8
- package/dist/npm/toolbar/tools/ToolbarItem.d.ts +2 -2
- package/dist/npm/toolbar/tools/ToolbarItem.js +6 -3
- package/dist/npm/toolbar/tools/ToolbarSeparator.d.ts +1 -1
- package/dist/npm/toolbar/tools/ToolbarSeparator.js +6 -3
- package/dist/npm/toolbar/tools/ToolbarSpacer.d.ts +1 -1
- package/dist/npm/toolbar/tools/ToolbarSpacer.js +3 -1
- package/dist/npm/util.d.ts +9 -9
- package/dist/npm/util.js +1 -0
- package/dist/systemjs/kendo-react-buttons.js +1 -1
- package/package.json +13 -13
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.SplitButton = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var PropTypes = require("prop-types");
|
|
18
21
|
var main_1 = require("./../main");
|
|
@@ -58,7 +61,7 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
58
61
|
};
|
|
59
62
|
_this.wrapper = null;
|
|
60
63
|
_this.mainButton = null;
|
|
61
|
-
_this.guid = kendo_react_common_1.guid();
|
|
64
|
+
_this.guid = (0, kendo_react_common_1.guid)();
|
|
62
65
|
_this.buttonsData = [];
|
|
63
66
|
_this.onKeyDown = function (event) {
|
|
64
67
|
var focusedIndex = _this.state.focusedIndex;
|
|
@@ -95,7 +98,7 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
95
98
|
_this.dispatchPopupEvent(event, newState.opened);
|
|
96
99
|
}
|
|
97
100
|
if (_this.opened) {
|
|
98
|
-
var newFocused = navigation_1.
|
|
101
|
+
var newFocused = (0, navigation_1.navigate)(focusedIndex, event.keyCode, event.altKey, _this.buttonsData.length);
|
|
99
102
|
if (newFocused !== focusedIndex) {
|
|
100
103
|
newState = newState || {};
|
|
101
104
|
newState.focusedIndex = newFocused;
|
|
@@ -112,7 +115,7 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
112
115
|
}
|
|
113
116
|
};
|
|
114
117
|
_this.onFocus = function (event) {
|
|
115
|
-
kendo_react_common_2.dispatchEvent(_this.props.onFocus, event, _this, undefined);
|
|
118
|
+
(0, kendo_react_common_2.dispatchEvent)(_this.props.onFocus, event, _this, undefined);
|
|
116
119
|
_this.setState({ focused: true, focusedIndex: -1 });
|
|
117
120
|
};
|
|
118
121
|
_this.onItemClick = function (event, clickedItemIndex) {
|
|
@@ -131,7 +134,7 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
131
134
|
focusedIndex: -1,
|
|
132
135
|
opened: false
|
|
133
136
|
});
|
|
134
|
-
kendo_react_common_2.dispatchEvent(_this.props.onBlur, event, _this, undefined);
|
|
137
|
+
(0, kendo_react_common_2.dispatchEvent)(_this.props.onBlur, event, _this, undefined);
|
|
135
138
|
if (_this.opened) {
|
|
136
139
|
_this.dispatchPopupEvent(event, false);
|
|
137
140
|
}
|
|
@@ -159,16 +162,16 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
159
162
|
}
|
|
160
163
|
};
|
|
161
164
|
_this.dispatchPopupEvent = function (dispatchedEvent, open) {
|
|
162
|
-
kendo_react_common_2.dispatchEvent(open ? _this.props.onOpen : _this.props.onClose, dispatchedEvent, _this, undefined);
|
|
165
|
+
(0, kendo_react_common_2.dispatchEvent)(open ? _this.props.onOpen : _this.props.onClose, dispatchedEvent, _this, undefined);
|
|
163
166
|
};
|
|
164
|
-
kendo_react_common_3.validatePackage(package_metadata_1.packageMetadata);
|
|
167
|
+
(0, kendo_react_common_3.validatePackage)(package_metadata_1.packageMetadata);
|
|
165
168
|
return _this;
|
|
166
169
|
}
|
|
167
170
|
Object.defineProperty(SplitButton.prototype, "opened", {
|
|
168
171
|
get: function () {
|
|
169
172
|
return this.props.opened === undefined ? this.state.opened : this.props.opened;
|
|
170
173
|
},
|
|
171
|
-
enumerable:
|
|
174
|
+
enumerable: false,
|
|
172
175
|
configurable: true
|
|
173
176
|
});
|
|
174
177
|
/**
|
|
@@ -178,16 +181,16 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
178
181
|
var _this = this;
|
|
179
182
|
this.buttonsData = this.props.items ||
|
|
180
183
|
React.Children.toArray(this.props.children)
|
|
181
|
-
.filter(function (child) { return child && child.type === SplitButtonItem_1.
|
|
184
|
+
.filter(function (child) { return child && child.type === SplitButtonItem_1.SplitButtonItem; })
|
|
182
185
|
.map(function (child) { return child.props; });
|
|
183
186
|
var rtl = this.isRtl();
|
|
184
187
|
var dir = rtl ? 'rtl' : undefined;
|
|
185
188
|
var _a = this.props, id = _a.id, style = _a.style, tabIndex = _a.tabIndex, disabled = _a.disabled;
|
|
186
189
|
var focusedIndex = this.state.focusedIndex;
|
|
187
|
-
return (React.createElement("div", { id: id, style: style, className: kendo_react_common_1.classNames('k-split-button', 'k-button-group', {
|
|
190
|
+
return (React.createElement("div", { id: id, style: style, className: (0, kendo_react_common_1.classNames)('k-split-button', 'k-button-group', {
|
|
188
191
|
'k-focus': this.state.focused
|
|
189
|
-
}, "k-rounded-"
|
|
190
|
-
React.createElement(main_1.Button, { ref: function (el) { return _this.mainButton = el && el.element; }, type: "button", size: this.props.size, rounded: this.props.rounded, fillMode: this.props.fillMode, themeColor: this.props.themeColor, onClick: function (event) { return _this.onItemClick(event, -1); }, disabled: disabled || undefined, tabIndex: tabIndex, accessKey: this.props.accessKey, className: this.props.buttonClass, icon: this.props.icon, iconClass: this.props.iconClass, imageUrl: this.props.imageUrl, dir: dir, "aria-disabled": disabled, "aria-haspopup": true, "aria-expanded": this.opened, "aria-label": this.props.text
|
|
192
|
+
}, "k-rounded-".concat(kendo_react_common_1.kendoThemeMaps.roundedMap[this.props.rounded || 'medium']), this.props.className), onKeyDown: this.onKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, dir: dir, ref: function (el) { return _this.wrapper = el; } },
|
|
193
|
+
React.createElement(main_1.Button, { ref: function (el) { return _this.mainButton = el && el.element; }, type: "button", size: this.props.size, rounded: this.props.rounded, fillMode: this.props.fillMode, themeColor: this.props.themeColor, onClick: function (event) { return _this.onItemClick(event, -1); }, disabled: disabled || undefined, tabIndex: tabIndex, accessKey: this.props.accessKey, className: this.props.buttonClass, icon: this.props.icon, iconClass: this.props.iconClass, imageUrl: this.props.imageUrl, dir: dir, "aria-disabled": disabled, "aria-haspopup": true, "aria-expanded": this.opened, "aria-label": "".concat(this.props.text, " splitbutton"), "aria-owns": this.guid, "aria-activedescendant": focusedIndex >= 0 ? "".concat(this.guid, "-").concat(focusedIndex) : undefined }, this.props.text),
|
|
191
194
|
React.createElement(main_1.Button, { type: "button", size: this.props.size, rounded: this.props.rounded, fillMode: this.props.fillMode, themeColor: this.props.themeColor, icon: "arrow-s", className: "k-split-button-arrow", disabled: disabled || undefined, tabIndex: -1, onClick: this.onSplitPartClick, onMouseDown: this.onDownSplitPart, onPointerDown: this.onDownSplitPart, dir: dir, "aria-label": "menu toggling button" }),
|
|
192
195
|
this.renderPopup(rtl)));
|
|
193
196
|
};
|
|
@@ -207,16 +210,16 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
207
210
|
get: function () {
|
|
208
211
|
return this.mainButton;
|
|
209
212
|
},
|
|
210
|
-
enumerable:
|
|
213
|
+
enumerable: false,
|
|
211
214
|
configurable: true
|
|
212
215
|
});
|
|
213
216
|
SplitButton.prototype.dispatchClickEvent = function (dispatchedEvent, clickedItemIndex) {
|
|
214
217
|
if (!this.isItemDisabled(clickedItemIndex)) {
|
|
215
218
|
if (clickedItemIndex === -1) {
|
|
216
|
-
kendo_react_common_2.dispatchEvent(this.props.onButtonClick, dispatchedEvent, this, undefined);
|
|
219
|
+
(0, kendo_react_common_2.dispatchEvent)(this.props.onButtonClick, dispatchedEvent, this, undefined);
|
|
217
220
|
}
|
|
218
221
|
else {
|
|
219
|
-
kendo_react_common_2.dispatchEvent(this.props.onItemClick, dispatchedEvent, this, {
|
|
222
|
+
(0, kendo_react_common_2.dispatchEvent)(this.props.onItemClick, dispatchedEvent, this, {
|
|
220
223
|
item: this.buttonsData[clickedItemIndex],
|
|
221
224
|
itemIndex: clickedItemIndex
|
|
222
225
|
});
|
|
@@ -226,16 +229,16 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
226
229
|
SplitButton.prototype.renderPopup = function (rtl) {
|
|
227
230
|
var _a;
|
|
228
231
|
var _b = this.props.popupSettings, popupSettings = _b === void 0 ? {} : _b;
|
|
229
|
-
return (React.createElement(kendo_react_popup_1.Popup, { anchor: this.wrapper, show: this.opened, animate: popupSettings.animate, popupClass: kendo_react_common_1.classNames('k-menu-popup', popupSettings.popupClass), anchorAlign: popupSettings.anchorAlign || popup_1.getAnchorAlign(rtl), popupAlign: popupSettings.popupAlign || popup_1.getPopupAlign(rtl), style: rtl ? { direction: 'rtl' } : undefined },
|
|
230
|
-
React.createElement("ul", { role: "menu", id: this.guid, className: kendo_react_common_1.classNames('k-group k-menu-group k-reset', (_a = {},
|
|
231
|
-
_a["k-menu-group-"
|
|
232
|
+
return (React.createElement(kendo_react_popup_1.Popup, { anchor: this.wrapper, show: this.opened, animate: popupSettings.animate, popupClass: (0, kendo_react_common_1.classNames)('k-menu-popup', popupSettings.popupClass), anchorAlign: popupSettings.anchorAlign || (0, popup_1.getAnchorAlign)(rtl), popupAlign: popupSettings.popupAlign || (0, popup_1.getPopupAlign)(rtl), style: rtl ? { direction: 'rtl' } : undefined },
|
|
233
|
+
React.createElement("ul", { role: "menu", id: this.guid, className: (0, kendo_react_common_1.classNames)('k-group k-menu-group k-reset', (_a = {},
|
|
234
|
+
_a["k-menu-group-".concat(kendo_react_common_1.kendoThemeMaps.sizeMap[this.props.size] || this.props.size)] = this.props.size,
|
|
232
235
|
_a)) }, this.renderChildItems())));
|
|
233
236
|
};
|
|
234
237
|
SplitButton.prototype.renderChildItems = function () {
|
|
235
238
|
var _this = this;
|
|
236
239
|
var _a = this.props, item = _a.item, itemRender = _a.itemRender, textField = _a.textField;
|
|
237
240
|
return this.buttonsData.length > 0 ? (this.buttonsData.map(function (dataItem, index) {
|
|
238
|
-
return (React.createElement(ButtonItem_1.
|
|
241
|
+
return (React.createElement(ButtonItem_1.ButtonItem, { className: "k-menu-item", dataItem: dataItem, textField: textField, focused: _this.state.focusedIndex === index, onClick: _this.onItemClick, onDown: _this.onItemDown, render: itemRender, item: item, key: index, index: index, id: "".concat(_this.guid, "-").concat(index) }));
|
|
239
242
|
})) : null;
|
|
240
243
|
};
|
|
241
244
|
SplitButton.prototype.isItemDisabled = function (index) {
|
|
@@ -283,4 +286,4 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
283
286
|
};
|
|
284
287
|
return SplitButton;
|
|
285
288
|
}(React.Component));
|
|
286
|
-
exports.
|
|
289
|
+
exports.SplitButton = SplitButton;
|
|
@@ -6,7 +6,7 @@ import { ButtonItem } from './models/ButtonItem';
|
|
|
6
6
|
*/
|
|
7
7
|
export interface SplitButtonItemProps extends ButtonItem {
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export declare class SplitButtonItem extends React.Component<SplitButtonItemProps, {}> {
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
@@ -21,5 +21,5 @@ export default class SplitButtonItem extends React.Component<SplitButtonItemProp
|
|
|
21
21
|
/**
|
|
22
22
|
* @hidden
|
|
23
23
|
*/
|
|
24
|
-
render():
|
|
24
|
+
render(): null;
|
|
25
25
|
}
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.SplitButtonItem = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var PropTypes = require("prop-types");
|
|
18
21
|
var SplitButtonItem = /** @class */ (function (_super) {
|
|
@@ -39,4 +42,4 @@ var SplitButtonItem = /** @class */ (function (_super) {
|
|
|
39
42
|
};
|
|
40
43
|
return SplitButtonItem;
|
|
41
44
|
}(React.Component));
|
|
42
|
-
exports.
|
|
45
|
+
exports.SplitButtonItem = SplitButtonItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import SplitButton from './../SplitButton';
|
|
2
|
-
import DropDownButton from './../DropDownButton';
|
|
1
|
+
import { SplitButton } from './../SplitButton';
|
|
2
|
+
import { DropDownButton } from './../DropDownButton';
|
|
3
3
|
import { BaseEvent } from '@progress/kendo-react-common';
|
|
4
4
|
export interface SplitButtonFocusEvent extends BaseEvent<SplitButton> {
|
|
5
5
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.navigate = void 0;
|
|
3
4
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
4
5
|
/**
|
|
5
6
|
* @hidden
|
|
@@ -23,4 +24,4 @@ var navigate = function (focusedIndex, keyCode, altKey, total) {
|
|
|
23
24
|
return focusedIndex;
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
|
-
exports.
|
|
27
|
+
exports.navigate = navigate;
|
package/dist/npm/main.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import Button,
|
|
2
|
-
import ButtonGroup,
|
|
3
|
-
import SplitButton from './ListButton/SplitButton';
|
|
4
|
-
import SplitButtonItem,
|
|
5
|
-
import DropDownButton from './ListButton/DropDownButton';
|
|
6
|
-
import DropDownButtonItem,
|
|
1
|
+
import { Button, ButtonProps } from './Button';
|
|
2
|
+
import { ButtonGroup, ButtonGroupProps } from './ButtonGroup';
|
|
3
|
+
import { SplitButton } from './ListButton/SplitButton';
|
|
4
|
+
import { SplitButtonItem, SplitButtonItemProps } from './ListButton/SplitButtonItem';
|
|
5
|
+
import { DropDownButton } from './ListButton/DropDownButton';
|
|
6
|
+
import { DropDownButtonItem, DropDownButtonItemProps } from './ListButton/DropDownButtonItem';
|
|
7
7
|
import { DropDownButtonProps } from './ListButton/models/ListButtonProps';
|
|
8
8
|
import { SplitButtonFocusEvent, SplitButtonBlurEvent, SplitButtonClickEvent, SplitButtonOpenEvent, SplitButtonCloseEvent, SplitButtonItemClickEvent, DropDownButtonFocusEvent, DropDownButtonBlurEvent, DropDownButtonOpenEvent, DropDownButtonCloseEvent, DropDownButtonItemClickEvent } from './ListButton/models/events';
|
|
9
9
|
import { ButtonItem } from './ListButton/models/ButtonItem';
|
|
10
10
|
import { ButtonItemProps } from './ListButton/ButtonItem';
|
|
11
11
|
import { ButtonsPopupSettings } from './ListButton/models/PopupSettings';
|
|
12
|
-
import Toolbar,
|
|
13
|
-
import ToolbarItem,
|
|
14
|
-
import ToolbarSeparator from './toolbar/tools/ToolbarSeparator';
|
|
12
|
+
import { Toolbar, ToolbarProps, ToolbarResizeEvent } from './toolbar/Toolbar';
|
|
13
|
+
import { ToolbarItem, ToolbarItemProps } from './toolbar/tools/ToolbarItem';
|
|
14
|
+
import { ToolbarSeparator } from './toolbar/tools/ToolbarSeparator';
|
|
15
15
|
import { ToolbarSpacer, ToolbarSpacerProps } from './toolbar/tools/ToolbarSpacer';
|
|
16
16
|
import { Chip, ChipProps, ChipHandle } from './Chip/Chip';
|
|
17
17
|
import { ChipList, ChipListProps, ChipListHandle } from './Chip/ChipList';
|
package/dist/npm/main.js
CHANGED
|
@@ -1,30 +1,46 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.FloatingActionButtonItem = exports.FloatingActionButton = exports.ChipList = exports.Chip = exports.DropDownButtonItem = exports.DropDownButton = exports.SplitButtonItem = exports.SplitButton = exports.ButtonGroup = exports.Button = exports.ToolbarSpacer = exports.ToolbarSeparator = exports.ToolbarItem = exports.Toolbar = void 0;
|
|
3
18
|
var Button_1 = require("./Button");
|
|
4
|
-
exports
|
|
19
|
+
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.Button; } });
|
|
5
20
|
var ButtonGroup_1 = require("./ButtonGroup");
|
|
6
|
-
exports
|
|
21
|
+
Object.defineProperty(exports, "ButtonGroup", { enumerable: true, get: function () { return ButtonGroup_1.ButtonGroup; } });
|
|
7
22
|
var SplitButton_1 = require("./ListButton/SplitButton");
|
|
8
|
-
exports
|
|
23
|
+
Object.defineProperty(exports, "SplitButton", { enumerable: true, get: function () { return SplitButton_1.SplitButton; } });
|
|
9
24
|
var SplitButtonItem_1 = require("./ListButton/SplitButtonItem");
|
|
10
|
-
exports
|
|
25
|
+
Object.defineProperty(exports, "SplitButtonItem", { enumerable: true, get: function () { return SplitButtonItem_1.SplitButtonItem; } });
|
|
11
26
|
var DropDownButton_1 = require("./ListButton/DropDownButton");
|
|
12
|
-
exports
|
|
27
|
+
Object.defineProperty(exports, "DropDownButton", { enumerable: true, get: function () { return DropDownButton_1.DropDownButton; } });
|
|
13
28
|
var DropDownButtonItem_1 = require("./ListButton/DropDownButtonItem");
|
|
14
|
-
exports
|
|
29
|
+
Object.defineProperty(exports, "DropDownButtonItem", { enumerable: true, get: function () { return DropDownButtonItem_1.DropDownButtonItem; } });
|
|
15
30
|
var Toolbar_1 = require("./toolbar/Toolbar");
|
|
16
|
-
exports
|
|
31
|
+
Object.defineProperty(exports, "Toolbar", { enumerable: true, get: function () { return Toolbar_1.Toolbar; } });
|
|
17
32
|
var ToolbarItem_1 = require("./toolbar/tools/ToolbarItem");
|
|
18
|
-
exports
|
|
33
|
+
Object.defineProperty(exports, "ToolbarItem", { enumerable: true, get: function () { return ToolbarItem_1.ToolbarItem; } });
|
|
19
34
|
var ToolbarSeparator_1 = require("./toolbar/tools/ToolbarSeparator");
|
|
20
|
-
exports
|
|
35
|
+
Object.defineProperty(exports, "ToolbarSeparator", { enumerable: true, get: function () { return ToolbarSeparator_1.ToolbarSeparator; } });
|
|
21
36
|
var ToolbarSpacer_1 = require("./toolbar/tools/ToolbarSpacer");
|
|
22
|
-
exports
|
|
37
|
+
Object.defineProperty(exports, "ToolbarSpacer", { enumerable: true, get: function () { return ToolbarSpacer_1.ToolbarSpacer; } });
|
|
23
38
|
var Chip_1 = require("./Chip/Chip");
|
|
24
|
-
exports
|
|
39
|
+
Object.defineProperty(exports, "Chip", { enumerable: true, get: function () { return Chip_1.Chip; } });
|
|
25
40
|
var ChipList_1 = require("./Chip/ChipList");
|
|
26
|
-
exports
|
|
41
|
+
Object.defineProperty(exports, "ChipList", { enumerable: true, get: function () { return ChipList_1.ChipList; } });
|
|
27
42
|
var FloatingActionButton_1 = require("./FloatingActionButton/FloatingActionButton");
|
|
28
|
-
exports
|
|
43
|
+
Object.defineProperty(exports, "FloatingActionButton", { enumerable: true, get: function () { return FloatingActionButton_1.FloatingActionButton; } });
|
|
29
44
|
var FloatingActionButtonItem_1 = require("./FloatingActionButton/FloatingActionButtonItem");
|
|
30
|
-
exports
|
|
45
|
+
Object.defineProperty(exports, "FloatingActionButtonItem", { enumerable: true, get: function () { return FloatingActionButtonItem_1.FloatingActionButtonItem; } });
|
|
46
|
+
__exportStar(require("./FloatingActionButton/models/events"), exports);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.packageMetadata = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* @hidden
|
|
5
6
|
*/
|
|
@@ -7,7 +8,7 @@ exports.packageMetadata = {
|
|
|
7
8
|
name: '@progress/kendo-react-buttons',
|
|
8
9
|
productName: 'KendoReact',
|
|
9
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
10
|
-
publishDate:
|
|
11
|
+
publishDate: 1654508868,
|
|
11
12
|
version: '',
|
|
12
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'
|
|
13
14
|
};
|
|
@@ -94,7 +94,7 @@ export interface ToolbarProps extends KendoReactComponentBaseProps {
|
|
|
94
94
|
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
95
95
|
* ```
|
|
96
96
|
*/
|
|
97
|
-
export
|
|
97
|
+
export declare class Toolbar extends React.Component<ToolbarProps> {
|
|
98
98
|
/**
|
|
99
99
|
* @hidden
|
|
100
100
|
*/
|
|
@@ -105,7 +105,7 @@ export default class Toolbar extends React.Component<ToolbarProps> {
|
|
|
105
105
|
style: PropTypes.Requireable<object>;
|
|
106
106
|
className: PropTypes.Requireable<string>;
|
|
107
107
|
onResize: PropTypes.Requireable<(...args: any[]) => any>;
|
|
108
|
-
buttons: PropTypes.Requireable<string[]>;
|
|
108
|
+
buttons: PropTypes.Requireable<(string | null)[]>;
|
|
109
109
|
};
|
|
110
110
|
/**
|
|
111
111
|
* @hidden
|
|
@@ -119,12 +119,12 @@ export default class Toolbar extends React.Component<ToolbarProps> {
|
|
|
119
119
|
private buttons;
|
|
120
120
|
private focusedSelector;
|
|
121
121
|
constructor(props: ToolbarProps);
|
|
122
|
-
private
|
|
123
|
-
private
|
|
122
|
+
private get selectors();
|
|
123
|
+
private get focusedIndex();
|
|
124
124
|
/**
|
|
125
125
|
* Returns the HTML element of the Toolbar component.
|
|
126
126
|
*/
|
|
127
|
-
|
|
127
|
+
get element(): HTMLDivElement | null;
|
|
128
128
|
/**
|
|
129
129
|
* @hidden
|
|
130
130
|
*/
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
24
26
|
return __assign.apply(this, arguments);
|
|
25
27
|
};
|
|
26
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Toolbar = void 0;
|
|
27
30
|
var React = require("react");
|
|
28
31
|
var PropTypes = require("prop-types");
|
|
29
32
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
@@ -101,18 +104,18 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
101
104
|
_this.offsetHeight = offsetHeight;
|
|
102
105
|
var newSizes = { offsetWidth: _this.offsetWidth, offsetHeight: _this.offsetHeight };
|
|
103
106
|
if (_this.props.onResize) {
|
|
104
|
-
_this.props.onResize.call(undefined, __assign({ target: _this }, newSizes, { nativeEvent: event }));
|
|
107
|
+
_this.props.onResize.call(undefined, __assign(__assign({ target: _this }, newSizes), { nativeEvent: event }));
|
|
105
108
|
}
|
|
106
109
|
}
|
|
107
110
|
};
|
|
108
|
-
kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
|
|
111
|
+
(0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
|
|
109
112
|
return _this;
|
|
110
113
|
}
|
|
111
114
|
Object.defineProperty(Toolbar.prototype, "selectors", {
|
|
112
115
|
get: function () {
|
|
113
116
|
return this.props.buttons || util_1.toolbarButtons;
|
|
114
117
|
},
|
|
115
|
-
enumerable:
|
|
118
|
+
enumerable: false,
|
|
116
119
|
configurable: true
|
|
117
120
|
});
|
|
118
121
|
Object.defineProperty(Toolbar.prototype, "focusedIndex", {
|
|
@@ -120,7 +123,7 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
120
123
|
var focused = this.element && this.element.querySelector(this.focusedSelector);
|
|
121
124
|
return Math.max(0, this.buttons.findIndex(function (e) { return e === focused; }));
|
|
122
125
|
},
|
|
123
|
-
enumerable:
|
|
126
|
+
enumerable: false,
|
|
124
127
|
configurable: true
|
|
125
128
|
});
|
|
126
129
|
Object.defineProperty(Toolbar.prototype, "element", {
|
|
@@ -130,7 +133,7 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
130
133
|
get: function () {
|
|
131
134
|
return this._element;
|
|
132
135
|
},
|
|
133
|
-
enumerable:
|
|
136
|
+
enumerable: false,
|
|
134
137
|
configurable: true
|
|
135
138
|
});
|
|
136
139
|
/**
|
|
@@ -171,7 +174,7 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
171
174
|
*/
|
|
172
175
|
Toolbar.prototype.render = function () {
|
|
173
176
|
var _this = this;
|
|
174
|
-
return (React.createElement("div", { id: this.props.id, className: kendo_react_common_1.classNames('k-widget k-toolbar', this.props.className), style: this.props.style, role: "toolbar", dir: this.props.dir, ref: function (element) { return _this._element = element; }, onKeyDown: this.props.keyboardNavigation !== false ? this.onKeyDown : undefined }, this.props.children));
|
|
177
|
+
return (React.createElement("div", { id: this.props.id, className: (0, kendo_react_common_1.classNames)('k-widget k-toolbar', this.props.className), style: this.props.style, role: "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;
|
|
@@ -205,4 +208,4 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
205
208
|
};
|
|
206
209
|
return Toolbar;
|
|
207
210
|
}(React.Component));
|
|
208
|
-
exports.
|
|
211
|
+
exports.Toolbar = Toolbar;
|
|
@@ -19,7 +19,7 @@ export interface ToolbarItemProps extends KendoReactComponentBaseProps {
|
|
|
19
19
|
* To add a tool to the Toolbar, wrap it inside a ToolbarItem component
|
|
20
20
|
* ([see example]({% slug content_toolbar %})).
|
|
21
21
|
*/
|
|
22
|
-
export
|
|
22
|
+
export declare class ToolbarItem extends React.PureComponent<ToolbarItemProps> {
|
|
23
23
|
/**
|
|
24
24
|
* @hidden
|
|
25
25
|
*/
|
|
@@ -30,7 +30,7 @@ export default class ToolbarItem extends React.PureComponent<ToolbarItemProps> {
|
|
|
30
30
|
/**
|
|
31
31
|
* Returns the HTML element of the ToolbarItem component.
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
get element(): HTMLSpanElement | null;
|
|
34
34
|
/**
|
|
35
35
|
* @hidden
|
|
36
36
|
*/
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ToolbarItem = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var PropTypes = require("prop-types");
|
|
18
21
|
/**
|
|
@@ -34,7 +37,7 @@ var ToolbarItem = /** @class */ (function (_super) {
|
|
|
34
37
|
get: function () {
|
|
35
38
|
return this._element;
|
|
36
39
|
},
|
|
37
|
-
enumerable:
|
|
40
|
+
enumerable: false,
|
|
38
41
|
configurable: true
|
|
39
42
|
});
|
|
40
43
|
/**
|
|
@@ -52,4 +55,4 @@ var ToolbarItem = /** @class */ (function (_super) {
|
|
|
52
55
|
};
|
|
53
56
|
return ToolbarItem;
|
|
54
57
|
}(React.PureComponent));
|
|
55
|
-
exports.
|
|
58
|
+
exports.ToolbarItem = ToolbarItem;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* Represents the KendoReact Toolbar Separator component.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export declare class ToolbarSeparator extends React.PureComponent<{}> {
|
|
6
6
|
/**
|
|
7
7
|
* @hidden
|
|
8
8
|
*/
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ToolbarSeparator = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var ToolbarItem_1 = require("./ToolbarItem");
|
|
18
21
|
/**
|
|
@@ -27,8 +30,8 @@ var ToolbarSeparator = /** @class */ (function (_super) {
|
|
|
27
30
|
* @hidden
|
|
28
31
|
*/
|
|
29
32
|
ToolbarSeparator.prototype.render = function () {
|
|
30
|
-
return (React.createElement(ToolbarItem_1.
|
|
33
|
+
return (React.createElement(ToolbarItem_1.ToolbarItem, { className: "k-separator" }));
|
|
31
34
|
};
|
|
32
35
|
return ToolbarSeparator;
|
|
33
36
|
}(React.PureComponent));
|
|
34
|
-
exports.
|
|
37
|
+
exports.ToolbarSeparator = ToolbarSeparator;
|
|
@@ -20,4 +20,4 @@ export interface ToolbarSpacerHandle {
|
|
|
20
20
|
* To specify an empty space, provide a ToolbarSpacer component
|
|
21
21
|
* ([see example]({% slug content_toolbar %})).
|
|
22
22
|
*/
|
|
23
|
-
export declare const ToolbarSpacer: React.
|
|
23
|
+
export declare const ToolbarSpacer: React.ForwardRefExoticComponent<ToolbarSpacerProps & React.RefAttributes<ToolbarSpacerHandle>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ToolbarSpacer = void 0;
|
|
3
4
|
var React = require("react");
|
|
4
5
|
var PropTypes = require("prop-types");
|
|
5
6
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
@@ -13,9 +14,10 @@ exports.ToolbarSpacer = React.forwardRef(function (props, ref) {
|
|
|
13
14
|
var spacer = React.useRef(null);
|
|
14
15
|
React.useImperativeHandle(spacer, function () { return ({ element: element.current }); });
|
|
15
16
|
React.useImperativeHandle(ref, function () { return ({ element: element.current }); });
|
|
16
|
-
var className = React.useMemo(function () { return kendo_react_common_1.classNames('k-spacer', props.className); }, [props.className]);
|
|
17
|
+
var className = React.useMemo(function () { return (0, kendo_react_common_1.classNames)('k-spacer', props.className); }, [props.className]);
|
|
17
18
|
return (React.createElement("span", { ref: element, className: className }));
|
|
18
19
|
});
|
|
20
|
+
exports.ToolbarSpacer.displayName = 'KendoReactToolbarSpacer';
|
|
19
21
|
exports.ToolbarSpacer.propTypes = {
|
|
20
22
|
className: PropTypes.string
|
|
21
23
|
};
|
package/dist/npm/util.d.ts
CHANGED
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
* @hidden
|
|
3
3
|
*/
|
|
4
4
|
export declare const toolbarButtons: string[];
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
5
8
|
declare const _default: {
|
|
6
9
|
styles: {
|
|
7
10
|
button: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
flat: string;
|
|
12
|
+
outline: string;
|
|
13
|
+
clear: string;
|
|
14
|
+
primary: string;
|
|
12
15
|
'state-selected': string;
|
|
13
16
|
'button-icon': string;
|
|
14
17
|
'button-icontext': string;
|
|
@@ -17,11 +20,8 @@ declare const _default: {
|
|
|
17
20
|
'group-end': string;
|
|
18
21
|
'button-group': string;
|
|
19
22
|
'button-group-stretched': string;
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
ltr: string;
|
|
24
|
+
rtl: string;
|
|
22
25
|
};
|
|
23
26
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
27
|
export default _default;
|