@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
@@ -17,6 +17,8 @@ import * as React from 'react';
17
17
  import { registerForLocalization, provideLocalizationService } from '@progress/kendo-react-intl';
18
18
  import { messages, colorGradientContrastRatio, colorGradientAALevel, colorGradientAAALevel, colorGradientPass, colorGradientFail } from '../messages';
19
19
  import { getContrastFromTwoRGBAs } from './utils/color-parser';
20
+ import { IconWrap } from '@progress/kendo-react-common';
21
+ import { checkIcon, xIcon } from '@progress/kendo-svg-icons';
20
22
  /**
21
23
  * @hidden
22
24
  */
@@ -41,18 +43,18 @@ var ColorContrastLabels = /** @class */ (function (_super) {
41
43
  var success = (React.createElement("span", { className: "k-contrast-validation k-text-success" },
42
44
  passMessage,
43
45
  " ",
44
- React.createElement("span", { className: "k-icon k-i-check" })));
46
+ React.createElement(IconWrap, { name: "check", icon: checkIcon })));
45
47
  var error = (React.createElement("span", { className: "k-contrast-validation k-text-error" },
46
48
  failMessage,
47
49
  " ",
48
- React.createElement("span", { className: "k-icon k-i-close" })));
50
+ React.createElement(IconWrap, { name: "x", icon: xIcon })));
49
51
  return (React.createElement("div", { className: "k-vbox k-colorgradient-color-contrast" },
50
52
  React.createElement("div", { className: "k-contrast-ratio" },
51
53
  React.createElement("span", { className: "k-contrast-ratio-text" }, contrastText),
52
54
  contrast >= 4.5 ? (React.createElement("span", { className: "k-contrast-validation k-text-success" },
53
- React.createElement("span", { className: "k-icon k-i-check" }),
54
- contrast >= 7 && React.createElement("span", { className: "k-icon k-i-check" }))) : (React.createElement("span", { className: "k-contrast-validation k-text-error" },
55
- React.createElement("span", { className: "k-icon k-i-close" })))),
55
+ React.createElement(IconWrap, { name: "check", icon: checkIcon }),
56
+ contrast >= 7 && React.createElement(IconWrap, { name: "check", icon: checkIcon }))) : (React.createElement("span", { className: "k-contrast-validation k-text-error" },
57
+ React.createElement(IconWrap, { name: "x", icon: xIcon })))),
56
58
  React.createElement("div", null,
57
59
  React.createElement("span", null, aaText),
58
60
  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
@@ -173,7 +173,7 @@ var ColorGradientWithoutContext = /** @class */ (function (_super) {
173
173
  style.top = "".concat(top_1, "px");
174
174
  style.left = "".concat(left, "px");
175
175
  }
176
- return React.createElement("div", { className: "k-hsv-draghandle k-draghandle", style: style });
176
+ return (React.createElement("div", { role: 'slider', tabIndex: 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 }));
177
177
  };
178
178
  /**
179
179
  * @hidden
@@ -242,7 +242,7 @@ var ColorGradientWithoutContext = /** @class */ (function (_super) {
242
242
  var _this = this;
243
243
  var lS = provideLocalizationService(this);
244
244
  var className = classNames('k-colorgradient', { 'k-disabled': this.props.disabled });
245
- 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: getTabIndex(this.props.tabIndex, this.props.disabled), "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, onFocus: this.onFocus },
245
+ 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: 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 },
246
246
  React.createElement("div", { className: "k-colorgradient-canvas k-hstack" },
247
247
  React.createElement("div", { className: "k-hsv-rectangle", style: { background: this.state.backgroundColor } },
248
248
  React.createElement(Draggable, { onDrag: this.onDrag, onRelease: this.onRelease, ref: function (el) { return _this.gradientWrapper = el ? el.element : undefined; } },
@@ -270,6 +270,8 @@ var ColorGradientWithoutContext = /** @class */ (function (_super) {
270
270
  disabled: PropTypes.bool,
271
271
  style: PropTypes.any,
272
272
  id: PropTypes.string,
273
+ role: PropTypes.string,
274
+ ariaLabel: PropTypes.string,
273
275
  ariaLabelledBy: PropTypes.string,
274
276
  ariaDescribedBy: PropTypes.string
275
277
  };
@@ -277,7 +279,8 @@ var ColorGradientWithoutContext = /** @class */ (function (_super) {
277
279
  * @hidden
278
280
  */
279
281
  ColorGradientWithoutContext.defaultProps = {
280
- opacity: true
282
+ opacity: true,
283
+ role: 'textbox'
281
284
  };
282
285
  return ColorGradientWithoutContext;
283
286
  }(React.Component));
@@ -29,6 +29,7 @@ import { NumericTextBox } from '../main';
29
29
  import HexInput from './HexInput';
30
30
  import { Button } from '@progress/kendo-react-buttons';
31
31
  import { Label } from '@progress/kendo-react-labels';
32
+ import { caretAltExpandIcon } from '@progress/kendo-svg-icons';
32
33
  import { registerForIntl, registerForLocalization, provideLocalizationService } from '@progress/kendo-react-intl';
33
34
  import { messages, colorGradientR, colorGradientHex, colorGradientA, colorGradientB, colorGradientG, colorGradientToggleInputsButton } from '../messages';
34
35
  /**
@@ -69,7 +70,7 @@ var ColorInput = /** @class */ (function (_super) {
69
70
  var toggleButtonMessage = localizationService.toLanguageString(colorGradientToggleInputsButton, messages[colorGradientToggleInputsButton]);
70
71
  return (React.createElement("div", { className: "k-colorgradient-inputs k-hstack" },
71
72
  React.createElement("div", { className: "k-vstack" },
72
- React.createElement(Button, { "aria-label": toggleButtonMessage, fillMode: 'flat', icon: 'caret-alt-expand', className: "k-colorgradient-toggle-mode k-icon-button", onClick: this.onToggleModeChange.bind(this) })),
73
+ React.createElement(Button, { "aria-label": toggleButtonMessage, fillMode: 'flat', icon: 'caret-alt-expand', svgIcon: caretAltExpandIcon, className: "k-colorgradient-toggle-mode k-icon-button", onClick: this.onToggleModeChange.bind(this) })),
73
74
  this.state.inputMode === 'hex' &&
74
75
  React.createElement("div", { className: "k-vstack k-flex-1" },
75
76
  React.createElement("span", { className: "k-hex-value k-textbox k-input" },
@@ -115,8 +115,8 @@ var ColorPaletteWithoutContext = /** @class */ (function (_super) {
115
115
  var focusedCellCoords = svc.getCellCoordsFor(this.state.focusedColor);
116
116
  var className = classNames('k-colorpalette', { 'k-disabled': this.props.disabled });
117
117
  if (paletteInfo.colors.length) {
118
- 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: getTabIndex(this.props.tabIndex, this.props.disabled), ref: function (el) { return _this.wrapper = el; } },
119
- React.createElement("div", { className: "k-colorpalette-table-wrap", role: "grid" },
118
+ 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: getTabIndex(this.props.tabIndex, this.props.disabled), ref: function (el) { return _this.wrapper = el; } },
119
+ React.createElement("div", { className: "k-colorpalette-table-wrap" },
120
120
  React.createElement("table", { className: "k-colorpalette-table k-palette", role: "presentation" },
121
121
  React.createElement("tbody", { role: "rowgroup" }, this.renderRows(svc.colorRows, selectedCellCoords, focusedCellCoords))))));
122
122
  }
@@ -11,13 +11,14 @@ 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, Keys, useDir, getTabIndex, createPropsContext, usePropsContext, kendoThemeMaps } from '@progress/kendo-react-common';
14
+ import { classNames, Keys, useDir, getTabIndex, createPropsContext, usePropsContext, kendoThemeMaps, svgIconPropType, IconWrap } from '@progress/kendo-react-common';
15
15
  import { validatePackage } from '@progress/kendo-react-common';
16
16
  import { packageMetadata } from '../package-metadata';
17
17
  import { Picker } from './Picker';
18
18
  import { ColorGradient } from './ColorGradient';
19
19
  import { ColorPalette, DEFAULT_PRESET, DEFAULT_TILE_SIZE } from './ColorPalette';
20
20
  import { Button } from '@progress/kendo-react-buttons';
21
+ import { caretAltDownIcon } from '@progress/kendo-svg-icons';
21
22
  import { messages, colorPickerDropdownButtonAriaLabel } from '../messages';
22
23
  import { useLocalization } from '@progress/kendo-react-intl';
23
24
  /**
@@ -60,11 +61,11 @@ export var ColorPickerPropsContext = createPropsContext();
60
61
  * ```
61
62
  */
62
63
  export var ColorPicker = React.forwardRef(function (directProps, target) {
63
- var _a, _b;
64
+ var _a;
64
65
  validatePackage(packageMetadata);
65
66
  var props = usePropsContext(ColorPickerPropsContext, directProps);
66
67
  var localization = useLocalization();
67
- 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;
68
+ 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;
68
69
  var focusableElementRef = React.useRef(null);
69
70
  var gradientRef = React.useRef(null);
70
71
  var paletteRef = React.useRef(null);
@@ -81,9 +82,9 @@ export var ColorPicker = React.forwardRef(function (directProps, target) {
81
82
  actionElement: buttonRef.current,
82
83
  focus: focusElement
83
84
  }); });
84
- var _f = React.useState(false), focused = _f[0], setFocused = _f[1];
85
- var _g = React.useState(props.defaultValue), stateValue = _g[0], setStateValue = _g[1];
86
- var _h = React.useState(false), stateOpen = _h[0], setStateOpen = _h[1];
85
+ var _e = React.useState(false), focused = _e[0], setFocused = _e[1];
86
+ var _f = React.useState(props.defaultValue), stateValue = _f[0], setStateValue = _f[1];
87
+ var _g = React.useState(false), stateOpen = _g[0], setStateOpen = _g[1];
87
88
  var isValueControlled = isControlled(props.value);
88
89
  var isOpenControlled = isControlled(props.open);
89
90
  var value = isValueControlled ? props.value : stateValue;
@@ -196,7 +197,7 @@ export var ColorPicker = React.forwardRef(function (directProps, target) {
196
197
  var onPaletteChangeHandler = React.useCallback(function (event) { return onChangeHandler(event, true); }, [isControlled, onChangeHandler]);
197
198
  var dir = useDir(focusableElementRef, props.dir);
198
199
  var isValid = valid !== false;
199
- return (React.createElement("span", { id: props.id, "aria-labelledby": props.ariaLabelledBy, "aria-describedby": props.ariaDescribedBy, className: classNames('k-colorpicker', 'k-picker', 'k-icon-picker', (_a = {},
200
+ 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: classNames('k-colorpicker', 'k-picker', 'k-icon-picker', (_a = {},
200
201
  _a["k-picker-".concat(kendoThemeMaps.sizeMap[size] || size)] = size,
201
202
  _a["k-picker-".concat(fillMode)] = fillMode,
202
203
  _a["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
@@ -207,12 +208,11 @@ export var ColorPicker = React.forwardRef(function (directProps, target) {
207
208
  React.createElement(Picker, { dir: dir, open: open, onOpen: onOpenHandler, popupAnchor: focusableElementRef.current || undefined, popupSettings: __assign({}, popupSettings), input: (React.createElement("span", { onClick: onActiveColorClickHandler, className: 'k-input-inner' },
208
209
  React.createElement("span", { className: classNames('k-value-icon', 'k-color-preview', {
209
210
  'k-no-color': !value,
210
- 'k-icon-color-preview': (icon || iconClassName)
211
+ 'k-icon-color-preview': (icon || svgIcon || iconClassName)
211
212
  }) },
212
- (iconClassName || icon) && React.createElement("span", { className: classNames('k-color-preview-icon', iconClassName, (_b = {},
213
- _b["k-icon k-i-".concat(icon)] = (icon && !iconClassName),
214
- _b)) }),
215
- React.createElement("span", { className: "k-color-preview-mask", style: { backgroundColor: value } })))), button: (React.createElement(Button, { tabIndex: -1, type: "button", onClick: onClickHandler, className: "k-input-button", rounded: null, icon: 'caret-alt-down', "aria-label": localization.toLanguageString(colorPickerDropdownButtonAriaLabel, messages[colorPickerDropdownButtonAriaLabel]) })), content: (React.createElement(React.Fragment, null,
213
+ iconClassName && React.createElement("span", { className: classNames('k-color-preview-icon', iconClassName) }),
214
+ !iconClassName && (icon || svgIcon) && React.createElement(IconWrap, { name: icon, icon: svgIcon }),
215
+ React.createElement("span", { className: "k-color-preview-mask", style: { backgroundColor: value } })))), button: (React.createElement(Button, { tabIndex: -1, type: "button", onClick: onClickHandler, className: "k-input-button", rounded: null, icon: 'caret-alt-down', svgIcon: caretAltDownIcon, "aria-label": localization.toLanguageString(colorPickerDropdownButtonAriaLabel, messages[colorPickerDropdownButtonAriaLabel]) })), content: (React.createElement(React.Fragment, null,
216
216
  (view === 'combo' || view === 'gradient') && (React.createElement(ColorGradient, __assign({}, gradientSettings, { tabIndex: 0, ref: gradientRef, value: value, onChange: onChangeHandler }))),
217
217
  (view === 'combo' || view === 'palette') && (React.createElement(ColorPalette, __assign({}, paletteSettings, { ref: paletteRef, value: value, onChange: onPaletteChangeHandler }))))) })));
218
218
  });
@@ -223,6 +223,8 @@ ColorPicker.propTypes = {
223
223
  view: PropTypes.oneOf(['gradient', 'palette', 'combo']),
224
224
  dir: PropTypes.string,
225
225
  id: PropTypes.string,
226
+ icon: PropTypes.string,
227
+ svgIcon: svgIconPropType,
226
228
  ariaLabelledBy: PropTypes.string,
227
229
  ariaDescribedBy: PropTypes.string,
228
230
  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
  */
@@ -2,9 +2,11 @@ import * as React from 'react';
2
2
  import * as PropTypes from 'prop-types';
3
3
  import { classNames, validatePackage, getTabIndex } from '@progress/kendo-react-common';
4
4
  import { ButtonGroup, Button } from '@progress/kendo-react-buttons';
5
+ import { paletteIcon, dropletSlashIcon, dropletSliderIcon } from '@progress/kendo-svg-icons';
5
6
  import { ColorPalette, ColorGradient } from '../main';
6
7
  import { packageMetadata } from '../package-metadata';
7
- import { messages, flatColorPickerApplyBtn, flatColorPickerCancelBtn } from '../messages';
8
+ import { useLocalization } from '@progress/kendo-react-intl';
9
+ import { messages, flatColorPickerApplyBtn, flatColorPickerCancelBtn, flatColorPickerColorGradientBtn, flatColorPickerColorPaletteBtn, flatColorPickerClearBtn } from '../messages';
8
10
  ;
9
11
  ;
10
12
  /**
@@ -18,6 +20,7 @@ export var FlatColorPicker = React.forwardRef(function (props, ref) {
18
20
  var _a = React.useState((props.view || 'ColorGradient') === 'ColorGradient'), colorGradientView = _a[0], setColorGradientView = _a[1];
19
21
  var _b = React.useState('rgba(255, 255, 255, 1)'), colorValue = _b[0], setColorValue = _b[1];
20
22
  var _c = React.useState('rgba(255, 255, 255, 1)'), prevColor = _c[0], setPrevColor = _c[1];
23
+ var localizationService = useLocalization();
21
24
  var focus = React.useCallback(function () {
22
25
  if (target.current) {
23
26
  target.current.focus();
@@ -57,7 +60,7 @@ export var FlatColorPicker = React.forwardRef(function (props, ref) {
57
60
  var handleFlatColorPickerBlur = React.useCallback(function () {
58
61
  setPrevColor(colorValue);
59
62
  }, [colorValue]);
60
- return (React.createElement("div", { id: props.id, style: props.style, ref: flatColorPickerRef, tabIndex: getTabIndex(props.tabIndex, props.disabled), className: classNames('k-flatcolorpicker k-coloreditor', {
63
+ 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: getTabIndex(props.tabIndex, props.disabled), className: classNames('k-flatcolorpicker k-coloreditor', {
61
64
  'k-disabled': props.disabled
62
65
  }, props.className), onBlur: handleFlatColorPickerBlur },
63
66
  React.createElement(React.Fragment, null,
@@ -65,22 +68,19 @@ export var FlatColorPicker = React.forwardRef(function (props, ref) {
65
68
  React.createElement("div", { className: "k-coloreditor-header k-hstack" },
66
69
  React.createElement("div", { className: "k-coloreditor-header-actions k-hstack" },
67
70
  React.createElement(ButtonGroup, null,
68
- React.createElement(Button, { type: "button", togglable: true, fillMode: 'flat', selected: colorGradientView, onClick: function () { return handleViewChange('ColorGradient'); } },
69
- React.createElement("span", { className: "k-icon k-i-color-canvas" })),
70
- React.createElement(Button, { type: "button", togglable: true, fillMode: 'flat', selected: !colorGradientView, onClick: function () { return handleViewChange('ColorPalette'); } },
71
- React.createElement("span", { className: "k-icon k-i-palette" })))),
71
+ React.createElement(Button, { type: "button", "aria-label": localizationService.toLanguageString(flatColorPickerColorGradientBtn, messages[flatColorPickerColorGradientBtn]), togglable: true, fillMode: 'flat', selected: colorGradientView, onClick: function () { return handleViewChange('ColorGradient'); }, icon: "droplet-slider", svgIcon: dropletSliderIcon }),
72
+ React.createElement(Button, { type: "button", "aria-label": localizationService.toLanguageString(flatColorPickerColorPaletteBtn, messages[flatColorPickerColorPaletteBtn]), togglable: true, fillMode: 'flat', selected: !colorGradientView, onClick: function () { return handleViewChange('ColorPalette'); }, icon: "palette", svgIcon: paletteIcon }))),
72
73
  React.createElement("div", { className: "k-spacer" }),
73
74
  React.createElement("div", { className: "k-coloreditor-header-actions k-hstack" },
74
75
  (props.showClearButton && defaultProps.showClearButton) &&
75
- React.createElement(Button, { type: "button", fillMode: 'flat', onClick: handleResetColor },
76
- React.createElement("span", { className: "k-icon k-i-droplet-slash" })),
76
+ React.createElement(Button, { type: "button", fillMode: 'flat', onClick: handleResetColor, "aria-label": localizationService.toLanguageString(flatColorPickerClearBtn, messages[flatColorPickerClearBtn]), icon: "droplet-slash", svgIcon: dropletSlashIcon }),
77
77
  (props.showPreview && defaultProps.showPreview) &&
78
78
  React.createElement("div", { className: "k-coloreditor-preview k-vstack" },
79
79
  React.createElement("span", { className: "k-coloreditor-preview-color k-color-preview", style: { background: colorValue } }),
80
80
  React.createElement("span", { className: "k-coloreditor-current-color k-color-preview", style: { background: prevColor }, onClick: handlePrevColorClick })))),
81
81
  React.createElement("div", { className: "k-coloreditor-views k-vstack" }, colorGradientView
82
- ? React.createElement(ColorGradient, { ref: colorGradientRef, value: colorValue, onChange: handleColorChange, onFocus: handleFocus })
83
- : React.createElement(ColorPalette, { value: colorValue, onChange: handleColorChange, onFocus: handleFocus })),
82
+ ? React.createElement(ColorGradient, { ref: colorGradientRef, role: "none", tabIndex: -1, ariaLabel: undefined, value: colorValue, onChange: handleColorChange, onFocus: handleFocus })
83
+ : React.createElement(ColorPalette, { ariaDisabled: true, ariaLabelledBy: 'required_label', value: colorValue, onChange: handleColorChange, onFocus: handleFocus })),
84
84
  (props.showButtons && defaultProps.showButtons) &&
85
85
  React.createElement("div", { className: "k-coloreditor-footer k-actions k-actions-end" },
86
86
  React.createElement(Button, { type: "button", className: "k-coloreditor-cancel", onClick: handleCancelBtnClick }, messages[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>>;
@@ -9,12 +9,12 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import { classNames, Icon } from '@progress/kendo-react-common';
12
+ import { classNames, IconWrap } from '@progress/kendo-react-common';
13
13
  import * as React from 'react';
14
14
  /**
15
15
  * Represents the KendoReact InputValidationIcon component.
16
16
  */
17
17
  export var InputValidationIcon = React.forwardRef(function (props, ref) {
18
- return React.createElement(Icon, __assign({ ref: ref }, props, { className: classNames('k-input-validation-icon', props.className) }));
18
+ return React.createElement(IconWrap, __assign({ ref: ref }, props, { className: classNames('k-input-validation-icon', props.className) }));
19
19
  });
20
20
  InputValidationIcon.displayName = 'KendoReactInputValidationIcon';
@@ -298,7 +298,7 @@ var MaskedTextBoxWithoutContext = /** @class */ (function (_super) {
298
298
  _a), this.props.className), style: !this.props.label
299
299
  ? __assign({ width: this.props.width }, style) : style },
300
300
  React.createElement(Prefix, null),
301
- 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: 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: returnFalse, onDrop: returnFalse }),
301
+ 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: 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: returnFalse, onDrop: returnFalse }),
302
302
  React.createElement(Suffix, null)));
303
303
  return this.props.label
304
304
  ? (React.createElement(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;
@@ -79,6 +79,18 @@ export var flatColorPickerCancelBtn = 'flatColorPicker.cancelBtn';
79
79
  * @hidden
80
80
  */
81
81
  export var flatColorPickerApplyBtn = 'flatColorPicker.applyBtn';
82
+ /**
83
+ * @hidden
84
+ */
85
+ export var flatColorPickerColorGradientBtn = 'flatColorPicker.colorGradientBtn';
86
+ /**
87
+ * @hidden
88
+ */
89
+ export var flatColorPickerColorPaletteBtn = 'flatColorPicker.colorPaletteBtn';
90
+ /**
91
+ * @hidden
92
+ */
93
+ export var flatColorPickerClearBtn = 'flatColorPicker.clearBtn';
82
94
  /**
83
95
  * @hidden
84
96
  */
@@ -139,6 +151,9 @@ export var messages = (_a = {},
139
151
  _a[colorGradientToggleInputsButton] = 'Toggle colorgradient inputs',
140
152
  _a[flatColorPickerCancelBtn] = 'Cancel',
141
153
  _a[flatColorPickerApplyBtn] = 'Apply',
154
+ _a[flatColorPickerColorGradientBtn] = 'Color Gradient view',
155
+ _a[flatColorPickerColorPaletteBtn] = 'Color Palette view',
156
+ _a[flatColorPickerClearBtn] = 'Clear color value',
142
157
  _a[checkboxValidation] = 'Please check this box if you want to proceed!',
143
158
  _a[checkboxOptionalText] = '(Optional)',
144
159
  _a[radioButtonValidation] = 'Please select option if you want to proceed!',
@@ -13,6 +13,7 @@ import * as React from 'react';
13
13
  import * as PropTypes from 'prop-types';
14
14
  import { useInternationalization, useLocalization } from '@progress/kendo-react-intl';
15
15
  import { classNames, guid, getTabIndex, dispatchEvent, createPropsContext, usePropsContext, kendoThemeMaps, useCustomComponent } from '@progress/kendo-react-common';
16
+ import { caretAltUpIcon, caretAltDownIcon } from '@progress/kendo-svg-icons';
16
17
  import { FloatingLabel } from '@progress/kendo-react-labels';
17
18
  import { validatePackage } from '@progress/kendo-react-common';
18
19
  import { packageMetadata } from '../package-metadata';
@@ -273,13 +274,13 @@ export var NumericTextBox = React.forwardRef(function (directProps, target) {
273
274
  _a['k-disabled'] = props.disabled,
274
275
  _a), props.className), "aria-disabled": props.disabled ? 'true' : undefined },
275
276
  React.createElement(Prefix, null),
276
- React.createElement("input", { value: looseValue === null ? '' : looseValue, tabIndex: getTabIndex(props.tabIndex, props.disabled), accessKey: props.accessKey, disabled: props.disabled, title: props.title, "aria-valuemin": props.min, "aria-valuemax": props.max, "aria-label": props.ariaLabel, "aria-labelledby": props.ariaLabelledBy, "aria-describedby": props.ariaDescribedBy, placeholder: props.placeholder, spellCheck: false, autoComplete: 'off', autoCorrect: 'off', type: props.inputType || 'tel', className: 'k-input-inner', id: inputId, name: props.name, readOnly: props.readOnly, style: props.inputStyle, onChange: onChangeHandler, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, onPaste: onPasteHandler, onWheel: onWheelHandler, ref: elementRef }),
277
+ React.createElement("input", { role: 'spinbutton', value: looseValue === null ? '' : looseValue, tabIndex: getTabIndex(props.tabIndex, props.disabled), accessKey: props.accessKey, disabled: props.disabled, title: props.title, "aria-disabled": props.disabled ? 'true' : undefined, "aria-valuemin": props.min, "aria-valuemax": props.max, "aria-label": props.ariaLabel, "aria-labelledby": props.ariaLabelledBy, "aria-describedby": props.ariaDescribedBy, placeholder: props.placeholder, spellCheck: false, autoComplete: 'off', autoCorrect: 'off', type: props.inputType || 'tel', className: 'k-input-inner', id: inputId, name: props.name, readOnly: props.readOnly, style: props.inputStyle, onChange: onChangeHandler, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, onPaste: onPasteHandler, onWheel: onWheelHandler, ref: elementRef }),
277
278
  React.createElement(Suffix, null),
278
279
  props.children,
279
280
  props.spinners &&
280
281
  (React.createElement("span", { className: "k-input-spinner k-spin-button", onMouseDown: onMouseDown },
281
- React.createElement(Button, { tabIndex: -1, type: "button", icon: 'caret-alt-up', rounded: null, className: "k-spinner-increase", "aria-label": localizationService.toLanguageString(numericIncreaseValue, messages[numericIncreaseValue]), title: localizationService.toLanguageString(numericIncreaseValue, messages[numericIncreaseValue]), onClick: onIncrease }),
282
- React.createElement(Button, { tabIndex: -1, type: "button", icon: 'caret-alt-down', rounded: null, className: "k-spinner-decrease", "aria-label": localizationService.toLanguageString(numericDecreaseValue, messages[numericDecreaseValue]), title: localizationService.toLanguageString(numericDecreaseValue, messages[numericDecreaseValue]), onClick: onDecrease })))));
282
+ React.createElement(Button, { tabIndex: -1, type: "button", icon: 'caret-alt-up', svgIcon: caretAltUpIcon, rounded: null, className: "k-spinner-increase", "aria-label": localizationService.toLanguageString(numericIncreaseValue, messages[numericIncreaseValue]), title: localizationService.toLanguageString(numericIncreaseValue, messages[numericIncreaseValue]), onClick: onIncrease }),
283
+ React.createElement(Button, { tabIndex: -1, type: "button", icon: 'caret-alt-down', svgIcon: caretAltDownIcon, rounded: null, className: "k-spinner-decrease", "aria-label": localizationService.toLanguageString(numericDecreaseValue, messages[numericDecreaseValue]), title: localizationService.toLanguageString(numericDecreaseValue, messages[numericDecreaseValue]), onClick: onDecrease })))));
283
284
  return props.label
284
285
  ? (React.createElement(FloatingLabel, { label: props.label, editorId: inputId, editorValue: looseValue === null ? '' : looseValue, editorValid: isValid, editorDisabled: props.disabled, editorPlaceholder: props.placeholder, children: numerictextbox, style: { width: props.width }, dir: props.dir }))
285
286
  : numerictextbox;
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-inputs',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1673300705,
8
+ publishDate: 1673462421,
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
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { FormComponentProps } from '@progress/kendo-react-common';
2
+ import { FormComponentProps, SVGIcon } from '@progress/kendo-react-common';
3
3
  import { RatingItemProps } from './RatingItem';
4
4
  import { RatingKeyboardEvent, RatingItemMouseEvent, RatingItemFocusEvent } from './models';
5
5
  /**
@@ -70,6 +70,14 @@ export interface RatingProps extends FormComponentProps {
70
70
  * Sets custom Rating icon, by default - star. [See example]({% slug disabled_rating %})
71
71
  */
72
72
  icon?: string;
73
+ /**
74
+ * Sets custom Rating SVG icon.
75
+ */
76
+ svgIcon?: SVGIcon;
77
+ /**
78
+ * Sets custom Rating SVG icon.
79
+ */
80
+ svgIconOutline?: SVGIcon;
73
81
  /**
74
82
  * Determines the selection mode. By default set to `continues`. [See example]({% slug icon_rating %})
75
83
  */