@progress/kendo-react-inputs 5.10.0-dev.202301092204 → 5.10.0-dev.202301111905

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 (51) hide show
  1. package/dist/cdn/js/kendo-react-inputs.js +1 -1
  2. package/dist/es/colors/ColorContrastLabels.js +7 -5
  3. package/dist/es/colors/ColorGradient.d.ts +3 -0
  4. package/dist/es/colors/ColorGradient.js +6 -3
  5. package/dist/es/colors/ColorInput.js +2 -1
  6. package/dist/es/colors/ColorPalette.js +2 -2
  7. package/dist/es/colors/ColorPicker.js +14 -12
  8. package/dist/es/colors/FlatColorPicker.d.ts +8 -0
  9. package/dist/es/colors/FlatColorPicker.js +10 -10
  10. package/dist/es/colors/interfaces/ColorGradientProps.d.ts +16 -0
  11. package/dist/es/colors/interfaces/ColorPaletteProps.d.ts +4 -0
  12. package/dist/es/colors/interfaces/ColorPickerProps.d.ts +9 -0
  13. package/dist/es/input/InputValidationIcon.d.ts +4 -4
  14. package/dist/es/input/InputValidationIcon.js +2 -2
  15. package/dist/es/maskedtextbox/MaskedTextBox.js +1 -1
  16. package/dist/es/messages/index.d.ts +15 -0
  17. package/dist/es/messages/index.js +15 -0
  18. package/dist/es/numerictextbox/NumericTextBox.js +4 -3
  19. package/dist/es/package-metadata.js +1 -1
  20. package/dist/es/rating/Rating.d.ts +9 -1
  21. package/dist/es/rating/Rating.js +19 -24
  22. package/dist/es/signature/Signature.js +4 -3
  23. package/dist/es/slider/Slider.js +3 -2
  24. package/dist/es/switch/Switch.js +8 -6
  25. package/dist/es/textarea/TextArea.js +1 -1
  26. package/dist/npm/colors/ColorContrastLabels.js +7 -5
  27. package/dist/npm/colors/ColorGradient.d.ts +3 -0
  28. package/dist/npm/colors/ColorGradient.js +6 -3
  29. package/dist/npm/colors/ColorInput.js +2 -1
  30. package/dist/npm/colors/ColorPalette.js +2 -2
  31. package/dist/npm/colors/ColorPicker.js +13 -11
  32. package/dist/npm/colors/FlatColorPicker.d.ts +8 -0
  33. package/dist/npm/colors/FlatColorPicker.js +9 -9
  34. package/dist/npm/colors/interfaces/ColorGradientProps.d.ts +16 -0
  35. package/dist/npm/colors/interfaces/ColorPaletteProps.d.ts +4 -0
  36. package/dist/npm/colors/interfaces/ColorPickerProps.d.ts +9 -0
  37. package/dist/npm/input/InputValidationIcon.d.ts +4 -4
  38. package/dist/npm/input/InputValidationIcon.js +1 -1
  39. package/dist/npm/maskedtextbox/MaskedTextBox.js +1 -1
  40. package/dist/npm/messages/index.d.ts +15 -0
  41. package/dist/npm/messages/index.js +16 -1
  42. package/dist/npm/numerictextbox/NumericTextBox.js +4 -3
  43. package/dist/npm/package-metadata.js +1 -1
  44. package/dist/npm/rating/Rating.d.ts +9 -1
  45. package/dist/npm/rating/Rating.js +18 -23
  46. package/dist/npm/signature/Signature.js +4 -3
  47. package/dist/npm/slider/Slider.js +3 -2
  48. package/dist/npm/switch/Switch.js +8 -6
  49. package/dist/npm/textarea/TextArea.js +1 -1
  50. package/dist/systemjs/kendo-react-inputs.js +1 -1
  51. package/package.json +20 -18
@@ -11,7 +11,8 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import * as React from 'react';
13
13
  import * as PropTypes from 'prop-types';
14
- import { classNames, useDir, Keys, getTabIndex, createPropsContext, usePropsContext } from '@progress/kendo-react-common';
14
+ import { classNames, useDir, Keys, getTabIndex, createPropsContext, usePropsContext, IconWrap, toIconName, svgIconPropType } from '@progress/kendo-react-common';
15
+ import { starIcon, starOutlineIcon } from '@progress/kendo-svg-icons';
15
16
  import { RatingItem } from './RatingItem';
16
17
  import { ratingReducer, RATING_ACTION } from './rating-reducer';
17
18
  import { isSelected, isHalf, calcIsFirstHalf, isCorrectValue, toRound, getRemainder } from './utils';
@@ -45,7 +46,7 @@ export var RatingPropsContext = createPropsContext();
45
46
  * Obtaining the `ref` returns an object of type [RatingHandle]({% slug api_inputs_ratinghandle %}).
46
47
  */
47
48
  export var Rating = React.forwardRef(function (directProps, ref) {
48
- var _a, _b, _c, _d;
49
+ var _a;
49
50
  var props = usePropsContext(RatingPropsContext, directProps);
50
51
  var localization = useLocalization();
51
52
  var target = React.useRef(null);
@@ -72,19 +73,19 @@ export var Rating = React.forwardRef(function (directProps, ref) {
72
73
  var readonly = React.useMemo(function () { return props.readonly || defaultProps.readonly; }, [props.readonly]);
73
74
  var disabled = React.useMemo(function () { return props.disabled || defaultProps.disabled; }, [props.disabled]);
74
75
  var Item = React.useMemo(function () { return props.item || defaultProps.item; }, [props.item]);
75
- var _e = useRating(props.defaultValue || defaultProps.defaultValue, {
76
+ var _b = useRating(props.defaultValue || defaultProps.defaultValue, {
76
77
  state: props.value,
77
78
  min: min,
78
79
  max: max,
79
80
  step: precision === 'half' ? step / 2 : step
80
- }, handleChange), stateValue = _e[0], dispatchStateValue = _e[1];
81
- var _f = useRating(null, {
81
+ }, handleChange), stateValue = _b[0], dispatchStateValue = _b[1];
82
+ var _c = useRating(null, {
82
83
  state: props.value,
83
84
  min: min,
84
85
  max: max,
85
86
  step: precision === 'half' ? step / 2 : step,
86
87
  precision: precision
87
- }), stateHover = _f[0], dispatchStateHover = _f[1];
88
+ }), stateHover = _c[0], dispatchStateHover = _c[1];
88
89
  var value = React.useMemo(function () { return props.value || stateValue; }, [props.value, stateValue]);
89
90
  var hoveredValue = React.useMemo(function () { return stateHover; }, [stateHover]);
90
91
  var selection = React.useMemo(function () { return props.selection || defaultProps.selection; }, [props.selection]);
@@ -202,27 +203,19 @@ export var Rating = React.forwardRef(function (directProps, ref) {
202
203
  var selectedValue = isSelected(itemValue, value, step, selection);
203
204
  var selected = isSelected(itemValue, hoveredValue !== null ? hoveredValue : value, step, selection);
204
205
  var hovered = isSelected(itemValue, hoveredValue, step, selection);
205
- items.push(React.createElement(Item, { key: itemValue, value: itemValue, dir: dir, title: String(half ? toRound(itemValue - (step / 2), base) : itemValue), icon: props.icon, half: half, selected: selectedValue || selected, hovered: hovered, onClick: handleItemClick, onMouseMove: handleItemMouseMove, onMouseLeave: handleMouseLeave },
206
+ items.push(React.createElement(Item, { key: itemValue, value: itemValue, dir: dir, title: String(half ? toRound(itemValue - (step / 2), base) : itemValue), icon: props.icon, svgIcon: props.svgIcon, half: half, selected: selectedValue || selected, hovered: hovered, onClick: handleItemClick, onMouseMove: handleItemMouseMove, onMouseLeave: handleMouseLeave },
206
207
  half && (React.createElement("span", { className: 'k-rating-precision-complement', style: (_a = { width: '12px' }, _a[dir === 'rtl' ? 'right' : 'left'] = '50%', _a) },
207
- React.createElement("span", { className: classNames('k-icon', (_b = {
208
- 'k-i-star-outline': !props.icon
209
- },
210
- _b["".concat(props.icon, "-outline")] = props.icon,
211
- _b)) }))),
208
+ !(props.icon || props.svgIconOutline) && React.createElement(IconWrap, { name: 'star-outline', icon: starOutlineIcon }),
209
+ (props.icon || props.svgIconOutline) && React.createElement(IconWrap, { name: toIconName("".concat(props.icon, "-outline")), icon: props.svgIconOutline }))),
212
210
  half && (React.createElement("span", { className: 'k-rating-precision-part', style: { width: '12px' } },
213
- React.createElement("span", { className: classNames('k-icon', (_c = {
214
- 'k-i-star': !props.icon
215
- },
216
- _c["".concat(props.icon)] = props.icon,
217
- _c)) }))),
211
+ !(props.icon || props.svgIcon) && React.createElement(IconWrap, { name: 'star', icon: starIcon }),
212
+ (props.icon || props.svgIcon) && React.createElement(IconWrap, { name: props.icon ? toIconName(props.icon) : undefined, icon: props.svgIcon }))),
218
213
  half && (React.createElement("span", { style: { width: '24px', height: '24px', display: 'block' } })),
219
- !half && (React.createElement("span", { className: classNames('k-icon', (_d = {
220
- 'k-i-star': !props.icon && (hovered || (selected && !hovered)),
221
- 'k-i-star-outline': !props.icon && (!hovered)
222
- },
223
- _d["".concat(props.icon)] = props.icon && (hovered || (selected && !hovered)),
224
- _d["".concat(props.icon, "-outline")] = props.icon && (!hovered),
225
- _d)) }))));
214
+ !half &&
215
+ (!(props.icon || props.svgIcon) && (hovered || (selected && !hovered)) && React.createElement(IconWrap, { name: 'star', icon: starIcon })) ||
216
+ (!(props.icon || props.svgIcon) && !hovered && React.createElement(IconWrap, { name: 'star-outline', icon: starOutlineIcon })) ||
217
+ ((props.icon || props.svgIcon) && (hovered || (selected && !hovered)) && React.createElement(IconWrap, { name: props.icon, icon: props.svgIcon })) ||
218
+ ((props.icon || props.svgIcon) && !hovered && React.createElement(IconWrap, { name: toIconName("".concat(props.icon, "-outline")), icon: props.svgIconOutline }))));
226
219
  }
227
220
  return (React.createElement("span", { id: props.id, style: props.style, ref: ratingRef, role: "slider", dir: dir, tabIndex: getTabIndex(props.tabIndex, props.disabled, undefined), className: classNames('k-rating k-widget', {
228
221
  'k-rtl': dir === 'rtl',
@@ -265,6 +258,8 @@ var propTypes = {
265
258
  disabled: PropTypes.bool,
266
259
  half: PropTypes.bool,
267
260
  icon: PropTypes.string,
261
+ svgIcon: svgIconPropType,
262
+ svgIconOutline: svgIconPropType,
268
263
  ariaDescribedBy: PropTypes.string
269
264
  };
270
265
  var defaultProps = {
@@ -56,6 +56,7 @@ import * as React from 'react';
56
56
  import { messages, signatureClear, signatureMaximize, signatureMinimize } from '../messages';
57
57
  import { packageMetadata } from '../package-metadata';
58
58
  import { hasParent } from './utils';
59
+ import { hyperlinkOpenIcon, xIcon } from '@progress/kendo-svg-icons';
59
60
  var DEFAULT_WIDTH = 250;
60
61
  var DEFAULT_HEIGHT = 84;
61
62
  var DEFAULT_POPUP_SCALE = 3;
@@ -335,10 +336,10 @@ export var Signature = React.forwardRef(function (directProps, target) {
335
336
  _a), props.className), onFocus: onFocus, onBlur: onBlur },
336
337
  React.createElement("div", { className: 'k-signature-canvas', ref: canvasRef, tabIndex: getTabIndex(props.tabIndex, props.disabled), role: "img", id: props.id, "aria-label": props.ariaLabel, "aria-labelledby": props.ariaLabelledBy, "aria-describedby": props.ariaDescribedBy, "aria-disabled": props.disabled ? 'true' : undefined }),
337
338
  React.createElement("div", { className: 'k-signature-actions k-signature-actions-top' },
338
- showMaximize && (React.createElement(Button, { className: 'k-signature-action k-signature-maximize', ref: maximizeButtonRef, icon: 'hyperlink-open', fillMode: 'flat', size: props.size, onClick: onMaximizeClick, "aria-label": maximizeTitle, title: maximizeTitle })),
339
- showMinimize && (React.createElement(Button, { className: 'k-signature-action k-signature-minimize k-rotate-180', ref: minimizeButtonRef, icon: 'hyperlink-open', fillMode: 'flat', size: props.size, onClick: onMinimizeClick, "aria-label": minimizeTitle, title: minimizeTitle }))),
339
+ showMaximize && (React.createElement(Button, { className: 'k-signature-action k-signature-maximize', ref: maximizeButtonRef, icon: 'hyperlink-open', svgIcon: hyperlinkOpenIcon, fillMode: 'flat', size: props.size, onClick: onMaximizeClick, "aria-label": maximizeTitle, title: maximizeTitle })),
340
+ showMinimize && (React.createElement(Button, { className: 'k-signature-action k-signature-minimize k-rotate-180', ref: minimizeButtonRef, icon: 'hyperlink-open', svgIcon: hyperlinkOpenIcon, fillMode: 'flat', size: props.size, onClick: onMinimizeClick, "aria-label": minimizeTitle, title: minimizeTitle }))),
340
341
  !props.hideLine && (React.createElement("div", { className: 'k-signature-line', style: { zIndex: 2, pointerEvents: 'none' } })),
341
- React.createElement("div", { className: 'k-signature-actions k-signature-actions-bottom' }, showClear && (React.createElement(Button, { className: 'k-signature-action k-signature-clear', icon: 'close', fillMode: 'flat', size: props.size, onClick: onClear, "aria-label": clearTitle, title: clearTitle }))),
342
+ React.createElement("div", { className: 'k-signature-actions k-signature-actions-bottom' }, showClear && (React.createElement(Button, { className: 'k-signature-action k-signature-clear', icon: 'x', svgIcon: xIcon, fillMode: 'flat', size: props.size, onClick: onClear, "aria-label": clearTitle, title: clearTitle }))),
342
343
  open && (React.createElement(Dialog, { ref: dialogRef },
343
344
  React.createElement(Signature, __assign({}, props, popupSize(), { value: popupValue, maximized: true, exportScale: (1 / popupScale) * exportScale, open: false, onChange: onDialogChange, onClose: onDialogClose }))))));
344
345
  });
@@ -33,6 +33,7 @@ import { SLIDER_LABEL_ATTRIBUTE } from './SliderLabel';
33
33
  import { validatePackage } from '@progress/kendo-react-common';
34
34
  import { packageMetadata } from '../package-metadata';
35
35
  import { Button } from '@progress/kendo-react-buttons';
36
+ import { caretAltDownIcon, caretAltLeftIcon, caretAltUpIcon, caretAltRightIcon } from '@progress/kendo-svg-icons';
36
37
  /** @hidden */
37
38
  var SliderWithoutContext = /** @class */ (function (_super) {
38
39
  __extends(SliderWithoutContext, _super);
@@ -56,9 +57,9 @@ var SliderWithoutContext = /** @class */ (function (_super) {
56
57
  return props.children;
57
58
  }
58
59
  return (React.createElement(React.Fragment, null,
59
- React.createElement(Button, { className: "k-button-decrease", rounded: 'full', icon: _this.props.vertical ? 'caret-alt-down' : 'caret-alt-left', title: props.decrementTitle, onClick: props.decrement }),
60
+ React.createElement(Button, { className: "k-button-decrease", rounded: 'full', icon: _this.props.vertical ? 'caret-alt-down' : 'caret-alt-left', svgIcon: _this.props.vertical ? caretAltDownIcon : caretAltLeftIcon, title: props.decrementTitle, onClick: props.decrement }),
60
61
  props.children,
61
- React.createElement(Button, { className: "k-button-increase", rounded: 'full', icon: _this.props.vertical ? 'caret-alt-up' : 'caret-alt-right', title: props.incrementTitle, onClick: props.increment })));
62
+ React.createElement(Button, { className: "k-button-increase", rounded: 'full', icon: _this.props.vertical ? 'caret-alt-up' : 'caret-alt-right', svgIcon: _this.props.vertical ? caretAltUpIcon : caretAltRightIcon, title: props.incrementTitle, onClick: props.increment })));
62
63
  };
63
64
  /**
64
65
  * @hidden
@@ -252,16 +252,18 @@ var SwitchWithoutContext = /** @class */ (function (_super) {
252
252
  _a), this.props.className);
253
253
  var ariaAttributes = {
254
254
  'aria-checked': this.value,
255
- 'aria-disabled': disabled || undefined
255
+ 'aria-disabled': disabled || undefined,
256
+ 'aria-labelledby': this.props.ariaLabelledBy,
257
+ 'aria-describedby': this.props.ariaDescribedBy
256
258
  };
257
- return (React.createElement("span", { ref: function (span) {
259
+ return (React.createElement("span", __assign({ ref: function (span) {
258
260
  _this._wrapper = span;
259
- }, className: switchClassName, dir: this.dir, onKeyDown: this.handleKeyDown, onClick: this.handleClick, onBlur: this.handleWrapperBlur, onFocus: this.handleWrapperFocus },
260
- React.createElement("span", __assign({ className: classNames('k-switch-track', (_b = {},
261
+ }, role: 'switch' }, ariaAttributes, { className: switchClassName, dir: this.dir, onKeyDown: this.handleKeyDown, onClick: this.handleClick, onBlur: this.handleWrapperBlur, onFocus: this.handleWrapperFocus }),
262
+ React.createElement("span", { className: classNames('k-switch-track', (_b = {},
261
263
  _b["k-rounded-".concat(kendoThemeMaps.roundedMap[trackRounded] || trackRounded)] = trackRounded,
262
- _b)), id: id || this._id, role: 'switch' }, ariaAttributes, { "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, ref: function (span) {
264
+ _b)), id: id || this._id, ref: function (span) {
263
265
  _this._element = span;
264
- }, tabIndex: getTabIndex(tabIndex, disabled, undefined), accessKey: this.props.accessKey }),
266
+ }, tabIndex: getTabIndex(tabIndex, disabled, undefined), accessKey: this.props.accessKey },
265
267
  this.dummyInput(this.value),
266
268
  React.createElement("span", { className: 'k-switch-label-on' }, onLabel),
267
269
  React.createElement("span", { className: 'k-switch-label-off' }, offLabel)),
@@ -111,7 +111,7 @@ export var TextArea = React.forwardRef(function (directProps, target) {
111
111
  dispatchEvent(onBlur, event, getImperativeHandle(), undefined);
112
112
  }
113
113
  }, [onBlur, disabled]);
114
- var textAreaProps = __assign(__assign({ id: id || calculatedId, name: name, className: 'k-input-inner !k-overflow-auto', ref: elementRef, disabled: disabled, rows: rows, placeholder: placeholder, readOnly: readOnly, required: required, tabIndex: getTabIndex(tabIndex, disabled), style: autoSize ? { resize: 'none', overflow: 'hidden', height: textAreaHeight } : {}, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, 'aria-multiline': true, 'aria-disabled': disabled || undefined, value: isControlled ? value : stateValue }, others), { onChange: handleChange, onFocus: handleFocus, onBlur: handleBlur });
114
+ var textAreaProps = __assign(__assign({ id: id || calculatedId, role: 'textbox', name: name, className: 'k-input-inner !k-overflow-auto', ref: elementRef, disabled: disabled, rows: rows, placeholder: placeholder, readOnly: readOnly, required: required, tabIndex: getTabIndex(tabIndex, disabled), style: autoSize ? { resize: 'none', overflow: 'hidden', height: textAreaHeight } : {}, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, 'aria-multiline': true, 'aria-disabled': disabled || undefined, value: isControlled ? value : stateValue }, others), { onChange: handleChange, onFocus: handleFocus, onBlur: handleBlur });
115
115
  return (React.createElement("span", { className: classNames('k-input', 'k-textarea', (_a = {},
116
116
  _a["k-input-".concat(kendoThemeMaps.sizeMap[size] || size)] = size,
117
117
  _a["k-input-".concat(fillMode)] = fillMode,
@@ -20,6 +20,8 @@ var React = require("react");
20
20
  var kendo_react_intl_1 = require("@progress/kendo-react-intl");
21
21
  var messages_1 = require("../messages");
22
22
  var color_parser_1 = require("./utils/color-parser");
23
+ var kendo_react_common_1 = require("@progress/kendo-react-common");
24
+ var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
23
25
  /**
24
26
  * @hidden
25
27
  */
@@ -44,18 +46,18 @@ var ColorContrastLabels = /** @class */ (function (_super) {
44
46
  var success = (React.createElement("span", { className: "k-contrast-validation k-text-success" },
45
47
  passMessage,
46
48
  " ",
47
- React.createElement("span", { className: "k-icon k-i-check" })));
49
+ React.createElement(kendo_react_common_1.IconWrap, { name: "check", icon: kendo_svg_icons_1.checkIcon })));
48
50
  var error = (React.createElement("span", { className: "k-contrast-validation k-text-error" },
49
51
  failMessage,
50
52
  " ",
51
- React.createElement("span", { className: "k-icon k-i-close" })));
53
+ React.createElement(kendo_react_common_1.IconWrap, { name: "x", icon: kendo_svg_icons_1.xIcon })));
52
54
  return (React.createElement("div", { className: "k-vbox k-colorgradient-color-contrast" },
53
55
  React.createElement("div", { className: "k-contrast-ratio" },
54
56
  React.createElement("span", { className: "k-contrast-ratio-text" }, contrastText),
55
57
  contrast >= 4.5 ? (React.createElement("span", { className: "k-contrast-validation k-text-success" },
56
- React.createElement("span", { className: "k-icon k-i-check" }),
57
- contrast >= 7 && React.createElement("span", { className: "k-icon k-i-check" }))) : (React.createElement("span", { className: "k-contrast-validation k-text-error" },
58
- React.createElement("span", { className: "k-icon k-i-close" })))),
58
+ React.createElement(kendo_react_common_1.IconWrap, { name: "check", icon: kendo_svg_icons_1.checkIcon }),
59
+ contrast >= 7 && React.createElement(kendo_react_common_1.IconWrap, { name: "check", icon: kendo_svg_icons_1.checkIcon }))) : (React.createElement("span", { className: "k-contrast-validation k-text-error" },
60
+ React.createElement(kendo_react_common_1.IconWrap, { name: "x", icon: kendo_svg_icons_1.xIcon })))),
59
61
  React.createElement("div", null,
60
62
  React.createElement("span", null, aaText),
61
63
  contrast >= 4.5 ? success : error),
@@ -32,6 +32,8 @@ export declare class ColorGradientWithoutContext extends React.Component<ColorGr
32
32
  disabled: PropTypes.Requireable<boolean>;
33
33
  style: PropTypes.Requireable<any>;
34
34
  id: PropTypes.Requireable<string>;
35
+ role: PropTypes.Requireable<string>;
36
+ ariaLabel: PropTypes.Requireable<string>;
35
37
  ariaLabelledBy: PropTypes.Requireable<string>;
36
38
  ariaDescribedBy: PropTypes.Requireable<string>;
37
39
  };
@@ -40,6 +42,7 @@ export declare class ColorGradientWithoutContext extends React.Component<ColorGr
40
42
  */
41
43
  static defaultProps: {
42
44
  opacity: boolean;
45
+ role: string;
43
46
  };
44
47
  /**
45
48
  * @hidden
@@ -176,7 +176,7 @@ var ColorGradientWithoutContext = /** @class */ (function (_super) {
176
176
  style.top = "".concat(top_1, "px");
177
177
  style.left = "".concat(left, "px");
178
178
  }
179
- return React.createElement("div", { className: "k-hsv-draghandle k-draghandle", style: style });
179
+ return (React.createElement("div", { role: 'slider', tabIndex: (0, kendo_react_common_1.getTabIndex)(this.props.tabIndex, this.props.disabled), "aria-valuetext": this.props.ariaValueText, "aria-valuenow": parseInt(this.state.hex.substring(1), 16), "aria-label": this.props.ariaLabelHSV, "aria-orientation": undefined, "aria-disabled": this.props.disabled ? 'true' : undefined, className: "k-hsv-draghandle k-draghandle", style: style }));
180
180
  };
181
181
  /**
182
182
  * @hidden
@@ -245,7 +245,7 @@ var ColorGradientWithoutContext = /** @class */ (function (_super) {
245
245
  var _this = this;
246
246
  var lS = (0, kendo_react_intl_1.provideLocalizationService)(this);
247
247
  var className = (0, kendo_react_common_1.classNames)('k-colorgradient', { 'k-disabled': this.props.disabled });
248
- return (React.createElement("div", { id: this.props.id, className: className, "aria-disabled": this.props.disabled ? 'true' : undefined, style: this.props.style, ref: function (el) { return _this.wrapper = el; }, tabIndex: (0, kendo_react_common_1.getTabIndex)(this.props.tabIndex, this.props.disabled), "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, onFocus: this.onFocus },
248
+ return (React.createElement("div", { id: this.props.id, role: this.props.role, className: className, "aria-disabled": this.props.disabled ? 'true' : undefined, style: this.props.style, ref: function (el) { return _this.wrapper = el; }, tabIndex: (0, kendo_react_common_1.getTabIndex)(this.props.tabIndex, this.props.disabled), "aria-label": this.props.ariaLabel, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, onFocus: this.onFocus },
249
249
  React.createElement("div", { className: "k-colorgradient-canvas k-hstack" },
250
250
  React.createElement("div", { className: "k-hsv-rectangle", style: { background: this.state.backgroundColor } },
251
251
  React.createElement(kendo_react_common_1.Draggable, { onDrag: this.onDrag, onRelease: this.onRelease, ref: function (el) { return _this.gradientWrapper = el ? el.element : undefined; } },
@@ -273,6 +273,8 @@ var ColorGradientWithoutContext = /** @class */ (function (_super) {
273
273
  disabled: PropTypes.bool,
274
274
  style: PropTypes.any,
275
275
  id: PropTypes.string,
276
+ role: PropTypes.string,
277
+ ariaLabel: PropTypes.string,
276
278
  ariaLabelledBy: PropTypes.string,
277
279
  ariaDescribedBy: PropTypes.string
278
280
  };
@@ -280,7 +282,8 @@ var ColorGradientWithoutContext = /** @class */ (function (_super) {
280
282
  * @hidden
281
283
  */
282
284
  ColorGradientWithoutContext.defaultProps = {
283
- opacity: true
285
+ opacity: true,
286
+ role: 'textbox'
284
287
  };
285
288
  return ColorGradientWithoutContext;
286
289
  }(React.Component));
@@ -31,6 +31,7 @@ var main_1 = require("../main");
31
31
  var HexInput_1 = require("./HexInput");
32
32
  var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
33
33
  var kendo_react_labels_1 = require("@progress/kendo-react-labels");
34
+ var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
34
35
  var kendo_react_intl_1 = require("@progress/kendo-react-intl");
35
36
  var messages_1 = require("../messages");
36
37
  /**
@@ -71,7 +72,7 @@ var ColorInput = /** @class */ (function (_super) {
71
72
  var toggleButtonMessage = localizationService.toLanguageString(messages_1.colorGradientToggleInputsButton, messages_1.messages[messages_1.colorGradientToggleInputsButton]);
72
73
  return (React.createElement("div", { className: "k-colorgradient-inputs k-hstack" },
73
74
  React.createElement("div", { className: "k-vstack" },
74
- React.createElement(kendo_react_buttons_1.Button, { "aria-label": toggleButtonMessage, fillMode: 'flat', icon: 'caret-alt-expand', className: "k-colorgradient-toggle-mode k-icon-button", onClick: this.onToggleModeChange.bind(this) })),
75
+ React.createElement(kendo_react_buttons_1.Button, { "aria-label": toggleButtonMessage, fillMode: 'flat', icon: 'caret-alt-expand', svgIcon: kendo_svg_icons_1.caretAltExpandIcon, className: "k-colorgradient-toggle-mode k-icon-button", onClick: this.onToggleModeChange.bind(this) })),
75
76
  this.state.inputMode === 'hex' &&
76
77
  React.createElement("div", { className: "k-vstack k-flex-1" },
77
78
  React.createElement("span", { className: "k-hex-value k-textbox k-input" },
@@ -118,8 +118,8 @@ var ColorPaletteWithoutContext = /** @class */ (function (_super) {
118
118
  var focusedCellCoords = svc.getCellCoordsFor(this.state.focusedColor);
119
119
  var className = (0, kendo_react_common_1.classNames)('k-colorpalette', { 'k-disabled': this.props.disabled });
120
120
  if (paletteInfo.colors.length) {
121
- return (React.createElement("div", { id: this.props.id, className: className, onFocus: this.onFocus, onBlur: this.onBlur, onKeyDown: this.onKeyDown, "aria-disabled": this.props.disabled ? 'true' : undefined, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, tabIndex: (0, kendo_react_common_1.getTabIndex)(this.props.tabIndex, this.props.disabled), ref: function (el) { return _this.wrapper = el; } },
122
- React.createElement("div", { className: "k-colorpalette-table-wrap", role: "grid" },
121
+ return (React.createElement("div", { id: this.props.id, role: "grid", className: className, onFocus: this.onFocus, onBlur: this.onBlur, onKeyDown: this.onKeyDown, "aria-disabled": this.props.ariaDisabled || (this.props.disabled ? 'true' : undefined), "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, tabIndex: (0, kendo_react_common_1.getTabIndex)(this.props.tabIndex, this.props.disabled), ref: function (el) { return _this.wrapper = el; } },
122
+ React.createElement("div", { className: "k-colorpalette-table-wrap" },
123
123
  React.createElement("table", { className: "k-colorpalette-table k-palette", role: "presentation" },
124
124
  React.createElement("tbody", { role: "rowgroup" }, this.renderRows(svc.colorRows, selectedCellCoords, focusedCellCoords))))));
125
125
  }
@@ -21,6 +21,7 @@ var Picker_1 = require("./Picker");
21
21
  var ColorGradient_1 = require("./ColorGradient");
22
22
  var ColorPalette_1 = require("./ColorPalette");
23
23
  var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
24
+ var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
24
25
  var messages_1 = require("../messages");
25
26
  var kendo_react_intl_1 = require("@progress/kendo-react-intl");
26
27
  /**
@@ -63,11 +64,11 @@ exports.ColorPickerPropsContext = (0, kendo_react_common_1.createPropsContext)()
63
64
  * ```
64
65
  */
65
66
  exports.ColorPicker = React.forwardRef(function (directProps, target) {
66
- var _a, _b;
67
+ var _a;
67
68
  (0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
68
69
  var props = (0, kendo_react_common_1.usePropsContext)(exports.ColorPickerPropsContext, directProps);
69
70
  var localization = (0, kendo_react_intl_1.useLocalization)();
70
- var _c = props.size, size = _c === void 0 ? defaultProps.size : _c, _d = props.rounded, rounded = _d === void 0 ? defaultProps.rounded : _d, _e = props.fillMode, fillMode = _e === void 0 ? defaultProps.fillMode : _e, popupSettings = props.popupSettings, gradientSettings = props.gradientSettings, paletteSettings = props.paletteSettings, valid = props.valid, disabled = props.disabled, tabIndex = props.tabIndex, view = props.view, icon = props.icon, iconClassName = props.iconClassName, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onActiveColorClick = props.onActiveColorClick;
71
+ var _b = props.size, size = _b === void 0 ? defaultProps.size : _b, _c = props.rounded, rounded = _c === void 0 ? defaultProps.rounded : _c, _d = props.fillMode, fillMode = _d === void 0 ? defaultProps.fillMode : _d, popupSettings = props.popupSettings, gradientSettings = props.gradientSettings, paletteSettings = props.paletteSettings, valid = props.valid, disabled = props.disabled, tabIndex = props.tabIndex, view = props.view, icon = props.icon, svgIcon = props.svgIcon, iconClassName = props.iconClassName, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onActiveColorClick = props.onActiveColorClick;
71
72
  var focusableElementRef = React.useRef(null);
72
73
  var gradientRef = React.useRef(null);
73
74
  var paletteRef = React.useRef(null);
@@ -84,9 +85,9 @@ exports.ColorPicker = React.forwardRef(function (directProps, target) {
84
85
  actionElement: buttonRef.current,
85
86
  focus: focusElement
86
87
  }); });
87
- var _f = React.useState(false), focused = _f[0], setFocused = _f[1];
88
- var _g = React.useState(props.defaultValue), stateValue = _g[0], setStateValue = _g[1];
89
- var _h = React.useState(false), stateOpen = _h[0], setStateOpen = _h[1];
88
+ var _e = React.useState(false), focused = _e[0], setFocused = _e[1];
89
+ var _f = React.useState(props.defaultValue), stateValue = _f[0], setStateValue = _f[1];
90
+ var _g = React.useState(false), stateOpen = _g[0], setStateOpen = _g[1];
90
91
  var isValueControlled = isControlled(props.value);
91
92
  var isOpenControlled = isControlled(props.open);
92
93
  var value = isValueControlled ? props.value : stateValue;
@@ -199,7 +200,7 @@ exports.ColorPicker = React.forwardRef(function (directProps, target) {
199
200
  var onPaletteChangeHandler = React.useCallback(function (event) { return onChangeHandler(event, true); }, [isControlled, onChangeHandler]);
200
201
  var dir = (0, kendo_react_common_1.useDir)(focusableElementRef, props.dir);
201
202
  var isValid = valid !== false;
202
- return (React.createElement("span", { id: props.id, "aria-labelledby": props.ariaLabelledBy, "aria-describedby": props.ariaDescribedBy, className: (0, kendo_react_common_1.classNames)('k-colorpicker', 'k-picker', 'k-icon-picker', (_a = {},
203
+ return (React.createElement("span", { id: props.id, role: 'combobox', "aria-label": props.ariaLabel, "aria-labelledby": props.ariaLabelledBy, "aria-describedby": props.ariaDescribedBy, "aria-haspopup": 'dialog', "aria-expanded": open, "aria-disabled": disabled ? 'true' : undefined, className: (0, kendo_react_common_1.classNames)('k-colorpicker', 'k-picker', 'k-icon-picker', (_a = {},
203
204
  _a["k-picker-".concat(kendo_react_common_1.kendoThemeMaps.sizeMap[size] || size)] = size,
204
205
  _a["k-picker-".concat(fillMode)] = fillMode,
205
206
  _a["k-rounded-".concat(kendo_react_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
@@ -210,12 +211,11 @@ exports.ColorPicker = React.forwardRef(function (directProps, target) {
210
211
  React.createElement(Picker_1.Picker, { dir: dir, open: open, onOpen: onOpenHandler, popupAnchor: focusableElementRef.current || undefined, popupSettings: __assign({}, popupSettings), input: (React.createElement("span", { onClick: onActiveColorClickHandler, className: 'k-input-inner' },
211
212
  React.createElement("span", { className: (0, kendo_react_common_1.classNames)('k-value-icon', 'k-color-preview', {
212
213
  'k-no-color': !value,
213
- 'k-icon-color-preview': (icon || iconClassName)
214
+ 'k-icon-color-preview': (icon || svgIcon || iconClassName)
214
215
  }) },
215
- (iconClassName || icon) && React.createElement("span", { className: (0, kendo_react_common_1.classNames)('k-color-preview-icon', iconClassName, (_b = {},
216
- _b["k-icon k-i-".concat(icon)] = (icon && !iconClassName),
217
- _b)) }),
218
- React.createElement("span", { className: "k-color-preview-mask", style: { backgroundColor: value } })))), button: (React.createElement(kendo_react_buttons_1.Button, { tabIndex: -1, type: "button", onClick: onClickHandler, className: "k-input-button", rounded: null, icon: 'caret-alt-down', "aria-label": localization.toLanguageString(messages_1.colorPickerDropdownButtonAriaLabel, messages_1.messages[messages_1.colorPickerDropdownButtonAriaLabel]) })), content: (React.createElement(React.Fragment, null,
216
+ iconClassName && React.createElement("span", { className: (0, kendo_react_common_1.classNames)('k-color-preview-icon', iconClassName) }),
217
+ !iconClassName && (icon || svgIcon) && React.createElement(kendo_react_common_1.IconWrap, { name: icon, icon: svgIcon }),
218
+ React.createElement("span", { className: "k-color-preview-mask", style: { backgroundColor: value } })))), button: (React.createElement(kendo_react_buttons_1.Button, { tabIndex: -1, type: "button", onClick: onClickHandler, className: "k-input-button", rounded: null, icon: 'caret-alt-down', svgIcon: kendo_svg_icons_1.caretAltDownIcon, "aria-label": localization.toLanguageString(messages_1.colorPickerDropdownButtonAriaLabel, messages_1.messages[messages_1.colorPickerDropdownButtonAriaLabel]) })), content: (React.createElement(React.Fragment, null,
219
219
  (view === 'combo' || view === 'gradient') && (React.createElement(ColorGradient_1.ColorGradient, __assign({}, gradientSettings, { tabIndex: 0, ref: gradientRef, value: value, onChange: onChangeHandler }))),
220
220
  (view === 'combo' || view === 'palette') && (React.createElement(ColorPalette_1.ColorPalette, __assign({}, paletteSettings, { ref: paletteRef, value: value, onChange: onPaletteChangeHandler }))))) })));
221
221
  });
@@ -226,6 +226,8 @@ exports.ColorPicker.propTypes = {
226
226
  view: PropTypes.oneOf(['gradient', 'palette', 'combo']),
227
227
  dir: PropTypes.string,
228
228
  id: PropTypes.string,
229
+ icon: PropTypes.string,
230
+ svgIcon: kendo_react_common_1.svgIconPropType,
229
231
  ariaLabelledBy: PropTypes.string,
230
232
  ariaDescribedBy: PropTypes.string,
231
233
  size: PropTypes.oneOf([null, 'small', 'medium', 'large']),
@@ -23,6 +23,14 @@ export interface FlatColorPickerProps {
23
23
  * Sets the `tabIndex` property of the FlatColorPicker.
24
24
  */
25
25
  tabIndex?: number;
26
+ /**
27
+ * Represents the label of the FlatColorPicker component.
28
+ */
29
+ ariaLabel?: string;
30
+ /**
31
+ * Identifies the element(s) which will label the component.
32
+ */
33
+ ariaLabelledBy?: string;
26
34
  /**
27
35
  * Determines whether the FlatColorPicker is disabled.
28
36
  */
@@ -5,8 +5,10 @@ var React = require("react");
5
5
  var PropTypes = require("prop-types");
6
6
  var kendo_react_common_1 = require("@progress/kendo-react-common");
7
7
  var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
8
+ var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
8
9
  var main_1 = require("../main");
9
10
  var package_metadata_1 = require("../package-metadata");
11
+ var kendo_react_intl_1 = require("@progress/kendo-react-intl");
10
12
  var messages_1 = require("../messages");
11
13
  ;
12
14
  ;
@@ -21,6 +23,7 @@ exports.FlatColorPicker = React.forwardRef(function (props, ref) {
21
23
  var _a = React.useState((props.view || 'ColorGradient') === 'ColorGradient'), colorGradientView = _a[0], setColorGradientView = _a[1];
22
24
  var _b = React.useState('rgba(255, 255, 255, 1)'), colorValue = _b[0], setColorValue = _b[1];
23
25
  var _c = React.useState('rgba(255, 255, 255, 1)'), prevColor = _c[0], setPrevColor = _c[1];
26
+ var localizationService = (0, kendo_react_intl_1.useLocalization)();
24
27
  var focus = React.useCallback(function () {
25
28
  if (target.current) {
26
29
  target.current.focus();
@@ -60,7 +63,7 @@ exports.FlatColorPicker = React.forwardRef(function (props, ref) {
60
63
  var handleFlatColorPickerBlur = React.useCallback(function () {
61
64
  setPrevColor(colorValue);
62
65
  }, [colorValue]);
63
- return (React.createElement("div", { id: props.id, style: props.style, ref: flatColorPickerRef, tabIndex: (0, kendo_react_common_1.getTabIndex)(props.tabIndex, props.disabled), className: (0, kendo_react_common_1.classNames)('k-flatcolorpicker k-coloreditor', {
66
+ return (React.createElement("div", { id: props.id, role: 'textbox', "aria-label": props.ariaLabel, "aria-labelledby": props.ariaLabelledBy, "aria-disabled": props.disabled ? 'true' : undefined, style: props.style, ref: flatColorPickerRef, tabIndex: (0, kendo_react_common_1.getTabIndex)(props.tabIndex, props.disabled), className: (0, kendo_react_common_1.classNames)('k-flatcolorpicker k-coloreditor', {
64
67
  'k-disabled': props.disabled
65
68
  }, props.className), onBlur: handleFlatColorPickerBlur },
66
69
  React.createElement(React.Fragment, null,
@@ -68,22 +71,19 @@ exports.FlatColorPicker = React.forwardRef(function (props, ref) {
68
71
  React.createElement("div", { className: "k-coloreditor-header k-hstack" },
69
72
  React.createElement("div", { className: "k-coloreditor-header-actions k-hstack" },
70
73
  React.createElement(kendo_react_buttons_1.ButtonGroup, null,
71
- React.createElement(kendo_react_buttons_1.Button, { type: "button", togglable: true, fillMode: 'flat', selected: colorGradientView, onClick: function () { return handleViewChange('ColorGradient'); } },
72
- React.createElement("span", { className: "k-icon k-i-color-canvas" })),
73
- React.createElement(kendo_react_buttons_1.Button, { type: "button", togglable: true, fillMode: 'flat', selected: !colorGradientView, onClick: function () { return handleViewChange('ColorPalette'); } },
74
- React.createElement("span", { className: "k-icon k-i-palette" })))),
74
+ React.createElement(kendo_react_buttons_1.Button, { type: "button", "aria-label": localizationService.toLanguageString(messages_1.flatColorPickerColorGradientBtn, messages_1.messages[messages_1.flatColorPickerColorGradientBtn]), togglable: true, fillMode: 'flat', selected: colorGradientView, onClick: function () { return handleViewChange('ColorGradient'); }, icon: "droplet-slider", svgIcon: kendo_svg_icons_1.dropletSliderIcon }),
75
+ React.createElement(kendo_react_buttons_1.Button, { type: "button", "aria-label": localizationService.toLanguageString(messages_1.flatColorPickerColorPaletteBtn, messages_1.messages[messages_1.flatColorPickerColorPaletteBtn]), togglable: true, fillMode: 'flat', selected: !colorGradientView, onClick: function () { return handleViewChange('ColorPalette'); }, icon: "palette", svgIcon: kendo_svg_icons_1.paletteIcon }))),
75
76
  React.createElement("div", { className: "k-spacer" }),
76
77
  React.createElement("div", { className: "k-coloreditor-header-actions k-hstack" },
77
78
  (props.showClearButton && defaultProps.showClearButton) &&
78
- React.createElement(kendo_react_buttons_1.Button, { type: "button", fillMode: 'flat', onClick: handleResetColor },
79
- React.createElement("span", { className: "k-icon k-i-droplet-slash" })),
79
+ React.createElement(kendo_react_buttons_1.Button, { type: "button", fillMode: 'flat', onClick: handleResetColor, "aria-label": localizationService.toLanguageString(messages_1.flatColorPickerClearBtn, messages_1.messages[messages_1.flatColorPickerClearBtn]), icon: "droplet-slash", svgIcon: kendo_svg_icons_1.dropletSlashIcon }),
80
80
  (props.showPreview && defaultProps.showPreview) &&
81
81
  React.createElement("div", { className: "k-coloreditor-preview k-vstack" },
82
82
  React.createElement("span", { className: "k-coloreditor-preview-color k-color-preview", style: { background: colorValue } }),
83
83
  React.createElement("span", { className: "k-coloreditor-current-color k-color-preview", style: { background: prevColor }, onClick: handlePrevColorClick })))),
84
84
  React.createElement("div", { className: "k-coloreditor-views k-vstack" }, colorGradientView
85
- ? React.createElement(main_1.ColorGradient, { ref: colorGradientRef, value: colorValue, onChange: handleColorChange, onFocus: handleFocus })
86
- : React.createElement(main_1.ColorPalette, { value: colorValue, onChange: handleColorChange, onFocus: handleFocus })),
85
+ ? React.createElement(main_1.ColorGradient, { ref: colorGradientRef, role: "none", tabIndex: -1, ariaLabel: undefined, value: colorValue, onChange: handleColorChange, onFocus: handleFocus })
86
+ : React.createElement(main_1.ColorPalette, { ariaDisabled: true, ariaLabelledBy: 'required_label', value: colorValue, onChange: handleColorChange, onFocus: handleFocus })),
87
87
  (props.showButtons && defaultProps.showButtons) &&
88
88
  React.createElement("div", { className: "k-coloreditor-footer k-actions k-actions-end" },
89
89
  React.createElement(kendo_react_buttons_1.Button, { type: "button", className: "k-coloreditor-cancel", onClick: handleCancelBtnClick }, messages_1.messages[messages_1.flatColorPickerCancelBtn]),
@@ -12,6 +12,10 @@ export interface ColorGradientProps {
12
12
  * The value of the ColorGradient.
13
13
  */
14
14
  value?: string;
15
+ /**
16
+ * @hidden
17
+ */
18
+ role?: string;
15
19
  /**
16
20
  * Determines the event handler that will be fired when the user edits the value.
17
21
  */
@@ -65,8 +69,20 @@ export interface ColorGradientProps {
65
69
  * For example these elements could contain error or hint message.
66
70
  */
67
71
  ariaDescribedBy?: string;
72
+ /**
73
+ * Represents the label of the `hsv` drag handle component used inside the ColorGradient.
74
+ */
75
+ ariaLabelHSV?: string;
76
+ /**
77
+ * Represent the label of the component.
78
+ */
79
+ ariaLabel?: string;
68
80
  /**
69
81
  * Identifies the element(s) which will label the component.
70
82
  */
71
83
  ariaLabelledBy?: string;
84
+ /**
85
+ * Represents the text rendered inside the `hsv` drag handle.
86
+ */
87
+ ariaValueText?: string;
72
88
  }
@@ -64,6 +64,10 @@ export interface ColorPaletteProps {
64
64
  * Identifies the element(s) which will label the component.
65
65
  */
66
66
  ariaLabelledBy?: string;
67
+ /**
68
+ * @hidden
69
+ */
70
+ ariaDisabled?: boolean;
67
71
  /**
68
72
  * Determines the event handler that will be fired when the user edits the value.
69
73
  */
@@ -6,6 +6,7 @@ import { ColorPickerPopupSettings } from './ColorPickerPopupSettings';
6
6
  import { ColorPickerPaletteSettings } from './ColorPickerPaletteSettings';
7
7
  import { ColorPickerGradientSettings } from './ColorPickerGradientSettings';
8
8
  import { ColorPickerView } from './ColorPickerView';
9
+ import { SVGIcon } from '@progress/kendo-react-common';
9
10
  /**
10
11
  * Represents the props of the [KendoReact ColorPicker component]({% slug overview_colorpicker %}).
11
12
  */
@@ -56,6 +57,10 @@ export interface ColorPickerProps {
56
57
  * ([see example]({% slug customizecolorpicker_colorpicker %}#toc-displaying-kendo-ui-icons)).
57
58
  */
58
59
  icon?: string;
60
+ /**
61
+ * Defines the SVG icon.
62
+ */
63
+ svgIcon?: SVGIcon;
59
64
  /**
60
65
  * The class name which displays an icon in the ColorPicker button
61
66
  * ([see example]({% slug customizecolorpicker_colorpicker %}#toc-displaying-custom-icons)).
@@ -92,6 +97,10 @@ export interface ColorPickerProps {
92
97
  * Identifies the element(s) which will label the component.
93
98
  */
94
99
  ariaLabelledBy?: string;
100
+ /**
101
+ * Represent the label of the component.
102
+ */
103
+ ariaLabel?: string;
95
104
  /**
96
105
  * The event handler that will be fired when the user edits the value.
97
106
  */
@@ -1,14 +1,14 @@
1
- import { IconHandle, IconProps } from '@progress/kendo-react-common';
1
+ import { IconHandle, SvgIconHandle, IconProps, SvgIconProps } from '@progress/kendo-react-common';
2
2
  import * as React from 'react';
3
3
  /**
4
4
  * Represent the `ref` of the `InputValidationIcon` component.
5
5
  */
6
- export declare type InputValidationIconHandle = IconHandle;
6
+ export declare type InputValidationIconHandle = IconHandle & SvgIconHandle;
7
7
  /**
8
8
  * Represents the `props` of the `InputValidationIcon` component.
9
9
  */
10
- export declare type InputValidationIconProps = IconProps;
10
+ export declare type InputValidationIconProps = IconProps & SvgIconProps;
11
11
  /**
12
12
  * Represents the KendoReact InputValidationIcon component.
13
13
  */
14
- export declare const InputValidationIcon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<IconHandle>>;
14
+ export declare const InputValidationIcon: React.ForwardRefExoticComponent<IconProps & SvgIconProps & React.RefAttributes<InputValidationIconHandle>>;
@@ -18,6 +18,6 @@ var React = require("react");
18
18
  * Represents the KendoReact InputValidationIcon component.
19
19
  */
20
20
  exports.InputValidationIcon = React.forwardRef(function (props, ref) {
21
- return React.createElement(kendo_react_common_1.Icon, __assign({ ref: ref }, props, { className: (0, kendo_react_common_1.classNames)('k-input-validation-icon', props.className) }));
21
+ return React.createElement(kendo_react_common_1.IconWrap, __assign({ ref: ref }, props, { className: (0, kendo_react_common_1.classNames)('k-input-validation-icon', props.className) }));
22
22
  });
23
23
  exports.InputValidationIcon.displayName = 'KendoReactInputValidationIcon';
@@ -301,7 +301,7 @@ var MaskedTextBoxWithoutContext = /** @class */ (function (_super) {
301
301
  _a), this.props.className), style: !this.props.label
302
302
  ? __assign({ width: this.props.width }, style) : style },
303
303
  React.createElement(Prefix, null),
304
- React.createElement("input", { type: "text", autoComplete: "off", autoCorrect: "off", autoCapitalize: "off", spellCheck: false, className: "k-input-inner", value: this.value, id: inputId, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, name: this.props.name, tabIndex: (0, kendo_react_common_1.getTabIndex)(this.props.tabIndex, this.props.disabled, true), accessKey: this.props.accessKey, title: this.props.title, disabled: this.props.disabled || undefined, readOnly: this.props.readonly || undefined, placeholder: this.props.placeholder, ref: function (input) { return _this._input = input; }, onChange: this.onChangeHandler, onPaste: this.pasteHandler, onFocus: this.focusHandler, onBlur: this.blurHandler, onDragStart: utils_1.returnFalse, onDrop: utils_1.returnFalse }),
304
+ React.createElement("input", { type: "text", autoComplete: "off", autoCorrect: "off", autoCapitalize: "off", spellCheck: false, className: "k-input-inner", value: this.value, id: inputId, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, "aria-placeholder": this.props.mask, name: this.props.name, tabIndex: (0, kendo_react_common_1.getTabIndex)(this.props.tabIndex, this.props.disabled, true), accessKey: this.props.accessKey, title: this.props.title, disabled: this.props.disabled || undefined, readOnly: this.props.readonly || undefined, placeholder: this.props.placeholder, ref: function (input) { return _this._input = input; }, onChange: this.onChangeHandler, onPaste: this.pasteHandler, onFocus: this.focusHandler, onBlur: this.blurHandler, onDragStart: utils_1.returnFalse, onDrop: utils_1.returnFalse }),
305
305
  React.createElement(Suffix, null)));
306
306
  return this.props.label
307
307
  ? (React.createElement(kendo_react_labels_1.FloatingLabel, { label: this.props.label, editorId: inputId, editorValue: this.value, editorValid: isValid, editorDisabled: this.props.disabled, editorPlaceholder: this.props.placeholder, children: component, style: { width: this.props.width }, dir: this.props.dir }))
@@ -78,6 +78,18 @@ export declare const flatColorPickerCancelBtn = "flatColorPicker.cancelBtn";
78
78
  * @hidden
79
79
  */
80
80
  export declare const flatColorPickerApplyBtn = "flatColorPicker.applyBtn";
81
+ /**
82
+ * @hidden
83
+ */
84
+ export declare const flatColorPickerColorGradientBtn = "flatColorPicker.colorGradientBtn";
85
+ /**
86
+ * @hidden
87
+ */
88
+ export declare const flatColorPickerColorPaletteBtn = "flatColorPicker.colorPaletteBtn";
89
+ /**
90
+ * @hidden
91
+ */
92
+ export declare const flatColorPickerClearBtn = "flatColorPicker.clearBtn";
81
93
  /**
82
94
  * @hidden
83
95
  */
@@ -138,6 +150,9 @@ export declare const messages: {
138
150
  "colorGradient.toggleInputsButton": string;
139
151
  "flatColorPicker.cancelBtn": string;
140
152
  "flatColorPicker.applyBtn": string;
153
+ "flatColorPicker.colorGradientBtn": string;
154
+ "flatColorPicker.colorPaletteBtn": string;
155
+ "flatColorPicker.clearBtn": string;
141
156
  "checkbox.validation": string;
142
157
  "checkbox.optionalText": string;
143
158
  "radioButton.validation": string;