@progress/kendo-react-inputs 5.3.0-dev.202205051853 → 5.3.0

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.
@@ -208,7 +208,7 @@ var ColorPaletteWithoutContext = /** @class */ (function (_super) {
208
208
  var isSelected = rowIsSelected && selectedColumn === i;
209
209
  var className = classNames('k-colorpalette-tile', {
210
210
  'k-selected': isSelected,
211
- 'k-state-focus': rowIsFocused && focusedColumn === i
211
+ 'k-focus': rowIsFocused && focusedColumn === i
212
212
  });
213
213
  return (React.createElement("td", { className: className, "aria-label": color, "aria-selected": isSelected ? true : _this.props.disabled ? undefined : false, style: { backgroundColor: color, width: width, height: height, minWidth: width }, onClick: function (event) { return _this.onColorClick(color, event); }, id: _this.createCellId({ row: rowIndex, col: i }), key: i }));
214
214
  });
@@ -18,6 +18,8 @@ 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 { messages, colorPickerDropdownButtonAriaLabel } from '../messages';
22
+ import { useLocalization } from '@progress/kendo-react-intl';
21
23
  /**
22
24
  * @hidden
23
25
  */
@@ -61,6 +63,7 @@ export var ColorPicker = React.forwardRef(function (directProps, target) {
61
63
  var _a, _b;
62
64
  validatePackage(packageMetadata);
63
65
  var props = usePropsContext(ColorPickerPropsContext, directProps);
66
+ var localization = useLocalization();
64
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;
65
68
  var focusableElementRef = React.useRef(null);
66
69
  var gradientRef = React.useRef(null);
@@ -209,7 +212,7 @@ export var ColorPicker = React.forwardRef(function (directProps, target) {
209
212
  (iconClassName || icon) && React.createElement("span", { className: classNames('k-color-preview-icon', iconClassName, (_b = {},
210
213
  _b["k-icon k-i-" + icon] = (icon && !iconClassName),
211
214
  _b)) }),
212
- 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: 'arrow-s' })), content: (React.createElement(React.Fragment, null,
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: 'arrow-s', "aria-label": localization.toLanguageString(colorPickerDropdownButtonAriaLabel, messages[colorPickerDropdownButtonAriaLabel]) })), content: (React.createElement(React.Fragment, null,
213
216
  (view === 'combo' || view === 'gradient') && (React.createElement(ColorGradient, __assign({}, gradientSettings, { tabIndex: 0, ref: gradientRef, value: value, onChange: onChangeHandler }))),
214
217
  (view === 'combo' || view === 'palette') && (React.createElement(ColorPalette, __assign({}, paletteSettings, { ref: paletteRef, value: value, onChange: onPaletteChangeHandler }))))) })));
215
218
  });
@@ -82,6 +82,10 @@ export declare const radioButtonValidation = "radioButton.validation";
82
82
  * @hidden
83
83
  */
84
84
  export declare const switchValidation = "switch.validation";
85
+ /**
86
+ * @hidden
87
+ */
88
+ export declare const colorPickerDropdownButtonAriaLabel = "colorPicker.dropdownButtonAriaLabel";
85
89
  /**
86
90
  * @hidden
87
91
  */
@@ -107,4 +111,5 @@ export declare const messages: {
107
111
  [checkboxOptionalText]: string;
108
112
  [radioButtonValidation]: string;
109
113
  [switchValidation]: string;
114
+ [colorPickerDropdownButtonAriaLabel]: string;
110
115
  };
@@ -83,6 +83,10 @@ export var radioButtonValidation = 'radioButton.validation';
83
83
  * @hidden
84
84
  */
85
85
  export var switchValidation = 'switch.validation';
86
+ /**
87
+ * @hidden
88
+ */
89
+ export var colorPickerDropdownButtonAriaLabel = 'colorPicker.dropdownButtonAriaLabel';
86
90
  /**
87
91
  * @hidden
88
92
  */
@@ -108,4 +112,5 @@ export var messages = (_a = {},
108
112
  _a[checkboxOptionalText] = '(Optional)',
109
113
  _a[radioButtonValidation] = 'Please select option if you want to proceed!',
110
114
  _a[switchValidation] = 'Please turn on if you want to proceed!',
115
+ _a[colorPickerDropdownButtonAriaLabel] = 'Select',
111
116
  _a);
@@ -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: 1651775776,
8
+ publishDate: 1652189121,
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
  };
@@ -74,7 +74,7 @@ export var RatingItem = React.forwardRef(function (props, ref) {
74
74
  return (React.createElement("span", { id: props.id, ref: element, dir: dir, "data-half": props.half, tabIndex: props.tabIndex, title: props.title, style: props.style, className: classNames('k-rating-item', {
75
75
  'k-rtl': dir === 'rtl',
76
76
  'k-selected': props.selected,
77
- 'k-state-hovered': props.hovered
77
+ 'k-hover': props.hovered
78
78
  }, props.className), onClick: handleClick, onKeyDown: handleKeyDown, onFocus: handleFocus, onBlur: handleBlur, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onMouseMove: handleMouseMove }, props.children));
79
79
  });
80
80
  var propTypes = {
@@ -210,7 +210,7 @@ var ColorPaletteWithoutContext = /** @class */ (function (_super) {
210
210
  var isSelected = rowIsSelected && selectedColumn === i;
211
211
  var className = kendo_react_common_1.classNames('k-colorpalette-tile', {
212
212
  'k-selected': isSelected,
213
- 'k-state-focus': rowIsFocused && focusedColumn === i
213
+ 'k-focus': rowIsFocused && focusedColumn === i
214
214
  });
215
215
  return (React.createElement("td", { className: className, "aria-label": color, "aria-selected": isSelected ? true : _this.props.disabled ? undefined : false, style: { backgroundColor: color, width: width, height: height, minWidth: width }, onClick: function (event) { return _this.onColorClick(color, event); }, id: _this.createCellId({ row: rowIndex, col: i }), key: i }));
216
216
  });
@@ -20,6 +20,8 @@ var Picker_1 = require("./Picker");
20
20
  var ColorGradient_1 = require("./ColorGradient");
21
21
  var ColorPalette_1 = require("./ColorPalette");
22
22
  var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
23
+ var messages_1 = require("../messages");
24
+ var kendo_react_intl_1 = require("@progress/kendo-react-intl");
23
25
  /**
24
26
  * @hidden
25
27
  */
@@ -63,6 +65,7 @@ exports.ColorPicker = React.forwardRef(function (directProps, target) {
63
65
  var _a, _b;
64
66
  kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
65
67
  var props = kendo_react_common_1.usePropsContext(exports.ColorPickerPropsContext, directProps);
68
+ var localization = kendo_react_intl_1.useLocalization();
66
69
  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;
67
70
  var focusableElementRef = React.useRef(null);
68
71
  var gradientRef = React.useRef(null);
@@ -211,7 +214,7 @@ exports.ColorPicker = React.forwardRef(function (directProps, target) {
211
214
  (iconClassName || icon) && React.createElement("span", { className: kendo_react_common_1.classNames('k-color-preview-icon', iconClassName, (_b = {},
212
215
  _b["k-icon k-i-" + icon] = (icon && !iconClassName),
213
216
  _b)) }),
214
- 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: 'arrow-s' })), content: (React.createElement(React.Fragment, null,
217
+ 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: 'arrow-s', "aria-label": localization.toLanguageString(messages_1.colorPickerDropdownButtonAriaLabel, messages_1.messages[messages_1.colorPickerDropdownButtonAriaLabel]) })), content: (React.createElement(React.Fragment, null,
215
218
  (view === 'combo' || view === 'gradient') && (React.createElement(ColorGradient_1.ColorGradient, __assign({}, gradientSettings, { tabIndex: 0, ref: gradientRef, value: value, onChange: onChangeHandler }))),
216
219
  (view === 'combo' || view === 'palette') && (React.createElement(ColorPalette_1.ColorPalette, __assign({}, paletteSettings, { ref: paletteRef, value: value, onChange: onPaletteChangeHandler }))))) })));
217
220
  });
@@ -82,6 +82,10 @@ export declare const radioButtonValidation = "radioButton.validation";
82
82
  * @hidden
83
83
  */
84
84
  export declare const switchValidation = "switch.validation";
85
+ /**
86
+ * @hidden
87
+ */
88
+ export declare const colorPickerDropdownButtonAriaLabel = "colorPicker.dropdownButtonAriaLabel";
85
89
  /**
86
90
  * @hidden
87
91
  */
@@ -107,4 +111,5 @@ export declare const messages: {
107
111
  [checkboxOptionalText]: string;
108
112
  [radioButtonValidation]: string;
109
113
  [switchValidation]: string;
114
+ [colorPickerDropdownButtonAriaLabel]: string;
110
115
  };
@@ -85,6 +85,10 @@ exports.radioButtonValidation = 'radioButton.validation';
85
85
  * @hidden
86
86
  */
87
87
  exports.switchValidation = 'switch.validation';
88
+ /**
89
+ * @hidden
90
+ */
91
+ exports.colorPickerDropdownButtonAriaLabel = 'colorPicker.dropdownButtonAriaLabel';
88
92
  /**
89
93
  * @hidden
90
94
  */
@@ -110,4 +114,5 @@ exports.messages = (_a = {},
110
114
  _a[exports.checkboxOptionalText] = '(Optional)',
111
115
  _a[exports.radioButtonValidation] = 'Please select option if you want to proceed!',
112
116
  _a[exports.switchValidation] = 'Please turn on if you want to proceed!',
117
+ _a[exports.colorPickerDropdownButtonAriaLabel] = 'Select',
113
118
  _a);
@@ -7,7 +7,7 @@ exports.packageMetadata = {
7
7
  name: '@progress/kendo-react-inputs',
8
8
  productName: 'KendoReact',
9
9
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
10
- publishDate: 1651775776,
10
+ publishDate: 1652189121,
11
11
  version: '',
12
12
  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
13
  };
@@ -76,7 +76,7 @@ exports.RatingItem = React.forwardRef(function (props, ref) {
76
76
  return (React.createElement("span", { id: props.id, ref: element, dir: dir, "data-half": props.half, tabIndex: props.tabIndex, title: props.title, style: props.style, className: kendo_react_common_1.classNames('k-rating-item', {
77
77
  'k-rtl': dir === 'rtl',
78
78
  'k-selected': props.selected,
79
- 'k-state-hovered': props.hovered
79
+ 'k-hover': props.hovered
80
80
  }, props.className), onClick: handleClick, onKeyDown: handleKeyDown, onFocus: handleFocus, onBlur: handleBlur, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onMouseMove: handleMouseMove }, props.children));
81
81
  });
82
82
  var propTypes = {