@progress/kendo-react-inputs 14.5.0-develop.9 → 15.0.0-develop.1

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 (58) hide show
  1. package/MaskedTextBoxMcpWrapper.d.ts +17 -0
  2. package/MaskedTextBoxMcpWrapper.js +8 -0
  3. package/MaskedTextBoxMcpWrapper.mjs +18 -0
  4. package/README.md +4 -4
  5. package/checkbox/Checkbox.js +1 -1
  6. package/checkbox/Checkbox.mjs +64 -64
  7. package/colors/ColorGradient.js +1 -1
  8. package/colors/ColorGradient.mjs +74 -72
  9. package/colors/ColorInput.js +1 -1
  10. package/colors/ColorInput.mjs +57 -45
  11. package/colors/ColorPalette.js +1 -1
  12. package/colors/ColorPalette.mjs +84 -81
  13. package/colors/ColorPicker.js +1 -1
  14. package/colors/ColorPicker.mjs +203 -190
  15. package/colors/FlatColorPicker.js +1 -1
  16. package/colors/FlatColorPicker.mjs +86 -94
  17. package/colors/interfaces/ColorPickerProps.d.ts +6 -1
  18. package/dist/cdn/js/kendo-react-inputs.js +1 -1
  19. package/index.d.mts +5 -1
  20. package/index.d.ts +5 -1
  21. package/index.js +1 -1
  22. package/index.mjs +92 -89
  23. package/maskedtextbox/MaskedTextBoxProps.d.ts +6 -1
  24. package/messages/index.d.ts +55 -0
  25. package/messages/index.js +1 -1
  26. package/messages/index.mjs +82 -60
  27. package/numerictextbox/NumericTextBox.js +1 -1
  28. package/numerictextbox/NumericTextBox.mjs +190 -188
  29. package/numerictextbox/interfaces/NumericTextBoxProps.d.ts +6 -1
  30. package/package-metadata.js +1 -1
  31. package/package-metadata.mjs +2 -2
  32. package/package.json +10 -10
  33. package/radiobutton/RadioButton.js +1 -1
  34. package/radiobutton/RadioButton.mjs +23 -20
  35. package/radiobutton/interfaces/RadioButtonProps.d.ts +7 -0
  36. package/range-slider/RangeSlider.d.ts +14 -1
  37. package/range-slider/RangeSlider.js +11 -11
  38. package/range-slider/RangeSlider.mjs +188 -185
  39. package/rating/Rating.d.ts +6 -1
  40. package/rating/Rating.js +3 -3
  41. package/rating/Rating.mjs +88 -81
  42. package/signature/Signature.js +1 -1
  43. package/signature/Signature.mjs +127 -129
  44. package/signature/interfaces/SignatureProps.d.ts +6 -1
  45. package/slider/Slider.d.ts +6 -1
  46. package/slider/Slider.js +1 -1
  47. package/slider/Slider.mjs +149 -144
  48. package/slider/SliderLabel.js +1 -1
  49. package/slider/SliderLabel.mjs +3 -2
  50. package/switch/Switch.d.ts +6 -1
  51. package/switch/Switch.js +1 -1
  52. package/switch/Switch.mjs +100 -100
  53. package/textarea/TextArea.js +1 -1
  54. package/textarea/TextArea.mjs +101 -101
  55. package/textarea/interfaces/TextAreaProps.d.ts +6 -1
  56. package/textbox/Textbox.d.ts +20 -1
  57. package/textbox/Textbox.js +1 -1
  58. package/textbox/Textbox.mjs +92 -81
@@ -7,375 +7,388 @@
7
7
  */
8
8
  import * as t from "react";
9
9
  import o from "prop-types";
10
- import { validatePackage as $e, getLicenseMessage as Ge, usePropsContext as Me, useAdaptiveModeContext as Ze, canUseDOM as je, Navigation as qe, getActiveElement as Je, keepFocusInContainer as z, focusFirstFocusableChild as fe, WatermarkOverlay as Qe, useDir as Xe, getTabIndex as Ye, classNames as j, kendoThemeMaps as me, IconWrap as et, createPropsContext as tt, svgIconPropType as nt } from "@progress/kendo-react-common";
11
- import { packageMetadata as ve } from "../package-metadata.mjs";
12
- import { Picker as at } from "./Picker.mjs";
13
- import { ColorGradient as ot } from "./ColorGradient.mjs";
14
- import { DEFAULT_TILE_SIZE as rt, DEFAULT_PRESET as it, ColorPalette as lt } from "./ColorPalette.mjs";
15
- import { FlatColorPicker as L } from "./FlatColorPicker.mjs";
16
- import { Button as st } from "@progress/kendo-react-buttons";
17
- import { chevronDownIcon as ct } from "@progress/kendo-svg-icons";
18
- import { colorPickerAdaptiveTitle as ge, messages as D, flatColorPickerApplyBtn as ke, flatColorPickerCancelBtn as Ce, colorPickerDropdownButtonAriaLabel as Ee } from "../messages/index.mjs";
19
- import { useLocalization as ut } from "@progress/kendo-react-intl";
20
- import { AdaptiveMode as dt } from "../common/AdaptiveMode.mjs";
21
- import { ActionSheetContent as pt } from "@progress/kendo-react-layout";
22
- const ft = {
10
+ import { validatePackage as Ge, getLicenseMessage as Ze, usePropsContext as je, useAdaptiveModeContext as qe, useWebMcpRegister as Je, canUseDOM as Qe, Navigation as Xe, getActiveElement as Ye, keepFocusInContainer as D, focusFirstFocusableChild as ve, WatermarkOverlay as et, useDir as tt, getTabIndex as nt, classNames as q, kendoThemeMaps as ge, IconWrap as at, createPropsContext as ot, svgIconPropType as rt } from "@progress/kendo-react-common";
11
+ import { packageMetadata as ke } from "../package-metadata.mjs";
12
+ import { Picker as it } from "./Picker.mjs";
13
+ import { ColorGradient as lt } from "./ColorGradient.mjs";
14
+ import { DEFAULT_TILE_SIZE as ct, DEFAULT_PRESET as st, ColorPalette as ut } from "./ColorPalette.mjs";
15
+ import { FlatColorPicker as x } from "./FlatColorPicker.mjs";
16
+ import { Button as dt } from "@progress/kendo-react-buttons";
17
+ import { chevronDownIcon as pt } from "@progress/kendo-svg-icons";
18
+ import { colorPickerAdaptiveTitle as Ee, messages as T, flatColorPickerApplyBtn as be, flatColorPickerCancelBtn as Ce, colorPickerAriaLabel as we, colorPickerDropdownButtonAriaLabel as Se } from "../messages/index.mjs";
19
+ import { useLocalization as ft } from "@progress/kendo-react-intl";
20
+ import { AdaptiveMode as mt } from "../common/AdaptiveMode.mjs";
21
+ import { ActionSheetContent as vt } from "@progress/kendo-react-layout";
22
+ const gt = {
23
23
  opacity: !0
24
- }, mt = {
25
- palette: it,
26
- tileSize: rt
27
- }, q = (x) => x !== void 0, vt = tt(), be = t.forwardRef((x, we) => {
28
- var le, se;
29
- const Se = !$e(ve, { component: "ColorPicker" }), he = Ge(ve), r = Me(vt, x), S = ut(), J = Ze(), {
30
- size: u = C.size,
31
- rounded: v = C.rounded,
32
- fillMode: N = C.fillMode,
33
- gradientSettings: E = C.gradientSettings,
34
- paletteSettings: h = C.paletteSettings,
24
+ }, kt = {
25
+ palette: st,
26
+ tileSize: ct
27
+ }, J = (N) => N !== void 0, Et = ot(), he = t.forwardRef((N, ye) => {
28
+ var se, ue;
29
+ const _e = !Ge(ke, { component: "ColorPicker" }), Pe = Ze(ke), r = je(Et, N), b = ft(), Q = qe(), {
30
+ size: u = E.size,
31
+ rounded: v = E.rounded,
32
+ fillMode: O = E.fillMode,
33
+ gradientSettings: C = E.gradientSettings,
34
+ paletteSettings: h = E.paletteSettings,
35
35
  flatColorPickerSettings: y,
36
- view: d = r.views ? void 0 : C.view,
37
- views: s = d ? void 0 : C.views,
38
- activeView: Q,
36
+ view: p = r.views ? void 0 : E.view,
37
+ views: s = p ? void 0 : E.views,
38
+ activeView: X,
39
39
  popupSettings: g,
40
- valid: ye,
41
- disabled: O,
42
- tabIndex: _e,
43
- icon: F,
44
- svgIcon: V,
45
- iconClassName: P,
46
- onChange: H,
47
- onFocus: W,
40
+ valid: Te,
41
+ disabled: F,
42
+ tabIndex: Re,
43
+ icon: V,
44
+ svgIcon: H,
45
+ iconClassName: R,
46
+ onChange: W,
47
+ onFocus: M,
48
48
  onBlur: U,
49
49
  onActiveColorClick: K,
50
- className: Te,
51
- adaptive: Pe,
52
- adaptiveTitle: X = S.toLanguageString(ge, D[ge]),
53
- adaptiveSubtitle: Y,
54
- showButtons: b = !0
55
- } = r, c = t.useRef(null), _ = t.useRef(null), R = t.useRef(null), m = t.useRef(null), w = t.useRef(void 0), Re = t.useRef(null), [Ae, ee] = t.useState(!1), [Ie, Be] = t.useState(r.defaultValue || void 0), [ze, Le] = t.useState(!1), [A, De] = t.useState(), $ = q(r.value), k = q(r.open), i = $ ? r.value : Ie, p = k ? r.open : ze, te = t.useRef(i), ne = t.useCallback(() => {
56
- c.current && c.current.focus();
50
+ className: Ae,
51
+ adaptive: Ie,
52
+ adaptiveTitle: Y = b.toLanguageString(Ee, T[Ee]),
53
+ adaptiveSubtitle: ee,
54
+ showButtons: w = !0
55
+ } = r, l = t.useRef(null), _ = t.useRef(null), A = t.useRef(null), m = t.useRef(null), S = t.useRef(void 0), te = t.useRef(null), [Le, ne] = t.useState(!1), [Be, ze] = t.useState(r.defaultValue || void 0), [De, xe] = t.useState(!1), [I, Ne] = t.useState(), $ = J(r.value), k = J(r.open), i = $ ? r.value : Be, d = k ? r.open : De, ae = t.useRef(i), L = t.useCallback(() => {
56
+ l.current && l.current.focus();
57
57
  }, []);
58
58
  t.useImperativeHandle(
59
- we,
59
+ ye,
60
60
  () => ({
61
61
  // we agreed that each element will have focus method exposed
62
- element: c.current,
63
- actionElement: Re.current,
62
+ element: l.current,
63
+ actionElement: te.current,
64
64
  value: i,
65
- focus: ne
65
+ focus: L
66
66
  }),
67
- [i, ne]
67
+ [i, L]
68
68
  );
69
- const G = !!(A && J && A <= J.medium && Pe);
69
+ const oe = t.useRef(null);
70
+ t.useImperativeHandle(
71
+ oe,
72
+ () => ({
73
+ element: l.current,
74
+ actionElement: te.current,
75
+ value: i,
76
+ focus: L
77
+ }),
78
+ [i, L]
79
+ ), Je("colorpicker", oe, r, r.webMcp);
80
+ const G = !!(I && Q && I <= Q.medium && Ie);
70
81
  t.useEffect(() => {
71
- const e = je && window.ResizeObserver && new window.ResizeObserver(Ue.bind(void 0));
82
+ const e = Qe && window.ResizeObserver && new window.ResizeObserver(Ke.bind(void 0));
72
83
  return document != null && document.body && e && e.observe(document.body), () => {
73
84
  document != null && document.body && e && e.disconnect();
74
85
  };
75
86
  }, []);
76
87
  const a = t.useCallback(
77
- (e, l) => {
78
- k || (!e && !l && c && c.current && c.current.focus(), Le(e));
88
+ (e, c) => {
89
+ k || (!e && !c && l && l.current && l.current.focus(), xe(e));
79
90
  },
80
91
  [k]
81
- ), ae = t.useMemo(() => new qe({
82
- root: c,
92
+ ), re = t.useMemo(() => new Xe({
93
+ root: l,
83
94
  selectors: [".k-colorpicker", ".k-color-picker-popup"],
84
95
  tabIndex: 0,
85
96
  keyboardEvents: {
86
97
  keydown: {
87
- Escape: (e, l, n) => {
98
+ Escape: (e, c, n) => {
88
99
  a(!1);
89
100
  },
90
- Enter: (e, l, n) => {
91
- !k && e === c.current && (n.preventDefault(), n.stopPropagation(), a(!0));
101
+ Enter: (e, c, n) => {
102
+ !k && e === l.current && (n.preventDefault(), n.stopPropagation(), a(!0));
92
103
  },
93
- ArrowDown: (e, l, n) => {
104
+ ArrowDown: (e, c, n) => {
94
105
  n.altKey && (n.preventDefault(), n.stopPropagation(), a(!0));
95
106
  },
96
- ArrowUp: (e, l, n) => {
107
+ ArrowUp: (e, c, n) => {
97
108
  n.altKey && (n.preventDefault(), n.stopPropagation(), a(!1));
98
109
  },
99
- Tab: (e, l, n) => {
100
- var T, ce, ue;
101
- if (Je(document) !== c.current) {
102
- const de = (T = R.current) == null ? void 0 : T.wrapperRef.current, B = (ce = _.current) == null ? void 0 : ce.wrapperRef.current, pe = (ue = m.current) == null ? void 0 : ue.element;
103
- d === "palette" && de ? z(n, de) : d === "gradient" && B ? z(n, B) : d === "combo" && B ? z(n, B.parentElement) : s && pe && z(n, pe);
110
+ Tab: (e, c, n) => {
111
+ var P, de, pe;
112
+ if (Ye(document) !== l.current) {
113
+ const fe = (P = A.current) == null ? void 0 : P.wrapperRef.current, z = (de = _.current) == null ? void 0 : de.wrapperRef.current, me = (pe = m.current) == null ? void 0 : pe.element;
114
+ p === "palette" && fe ? D(n, fe) : p === "gradient" && z ? D(n, z) : p === "combo" && z ? D(n, z.parentElement) : s && me && D(n, me);
104
115
  }
105
116
  }
106
117
  }
107
118
  }
108
- }), [a, k]), xe = t.useCallback(ae.triggerKeyboardEvent.bind(ae), []), Ne = t.useCallback(() => {
109
- k || (_.current && _.current.wrapperRef.current ? fe(_.current.wrapperRef.current) : R.current ? R.current.focus() : m.current && m.current.element && fe(m.current.element));
110
- }, [k]), I = (e) => te.current = e, oe = t.useCallback(
119
+ }), [a, k]), Oe = t.useCallback(re.triggerKeyboardEvent.bind(re), []), Fe = t.useCallback(() => {
120
+ k || (_.current && _.current.wrapperRef.current ? ve(_.current.wrapperRef.current) : A.current ? A.current.focus() : m.current && m.current.element && ve(m.current.element));
121
+ }, [k]), B = (e) => ae.current = e, ie = t.useCallback(
111
122
  (e) => {
112
- const l = {
113
- value: te.current,
123
+ const c = {
124
+ value: ae.current,
114
125
  nativeEvent: e.nativeEvent,
115
126
  syntheticEvent: e
116
127
  };
117
- f(l), a(!p, !0);
128
+ f(c), a(!d, !0);
118
129
  },
119
- [p]
120
- ), M = t.useCallback(() => {
130
+ [d]
131
+ ), Z = t.useCallback(() => {
121
132
  a(!1, !0);
122
- }, [a]), Oe = t.useCallback(
133
+ }, [a]), Ve = t.useCallback(
123
134
  (e) => {
124
135
  K && K.call(void 0, {
125
136
  syntheticEvent: e,
126
137
  nativeEvent: e.nativeEvent,
127
138
  value: i,
128
139
  target: {
129
- element: c.current,
140
+ element: l.current,
130
141
  value: i
131
142
  }
132
143
  });
133
144
  },
134
145
  [K, i]
135
- ), Fe = t.useCallback(
146
+ ), He = t.useCallback(
136
147
  (e) => {
137
- w.current ? (clearTimeout(w.current), w.current = void 0) : (ee(!0), G && !p && a(!0)), W && W.call(void 0, {
148
+ S.current ? (clearTimeout(S.current), S.current = void 0) : (ne(!0), G && !d && a(!0)), M && M.call(void 0, {
138
149
  nativeEvent: e.nativeEvent,
139
150
  syntheticEvent: e
140
151
  });
141
152
  },
142
- [G, W, p, a]
143
- ), Ve = t.useCallback(() => {
144
- a(!1, !0), ee(!1), w.current = void 0;
145
- }, []), He = t.useCallback(
153
+ [G, M, d, a]
154
+ ), We = t.useCallback(() => {
155
+ a(!1, !0), ne(!1), S.current = void 0;
156
+ }, []), Me = t.useCallback(
146
157
  (e) => {
147
- clearTimeout(w.current), w.current = window.setTimeout(Ve), U && U.call(void 0, {
158
+ clearTimeout(S.current), S.current = window.setTimeout(We), U && U.call(void 0, {
148
159
  nativeEvent: e.nativeEvent,
149
160
  syntheticEvent: e
150
161
  });
151
162
  },
152
163
  [U]
153
164
  ), f = t.useCallback(
154
- (e, l) => {
155
- var T;
156
- const n = l ? e.rgbaValue || "" : (T = e.value) != null ? T : "";
157
- $ || Be(n), H && H.call(void 0, {
165
+ (e, c) => {
166
+ var P;
167
+ const n = c ? e.rgbaValue || "" : (P = e.value) != null ? P : "";
168
+ $ || ze(n), W && W.call(void 0, {
158
169
  value: n,
159
170
  nativeEvent: e.nativeEvent,
160
171
  syntheticEvent: e.syntheticEvent,
161
172
  target: {
162
- element: c.current,
173
+ element: l.current,
163
174
  value: n
164
175
  }
165
176
  }), a(!1);
166
177
  },
167
- [$, H]
168
- ), re = t.useCallback(
178
+ [$, W]
179
+ ), le = t.useCallback(
169
180
  (e) => f(e, !0),
170
- [q, f]
171
- ), Z = t.useCallback(
172
- (e) => /* @__PURE__ */ t.createElement(t.Fragment, null, (d === "combo" || d === "gradient") && /* @__PURE__ */ t.createElement(
173
- ot,
181
+ [J, f]
182
+ ), j = t.useCallback(
183
+ (e) => /* @__PURE__ */ t.createElement(t.Fragment, null, (p === "combo" || p === "gradient") && /* @__PURE__ */ t.createElement(
184
+ lt,
174
185
  {
175
- ...E,
186
+ ...C,
176
187
  _adaptive: e,
177
188
  ref: _,
178
189
  isInsidePopup: !0,
190
+ role: "none",
191
+ ariaLabel: void 0,
179
192
  size: e ? "large" : u,
180
193
  value: i,
181
194
  onChange: f
182
195
  }
183
- ), (d === "combo" || d === "palette") && /* @__PURE__ */ t.createElement(
184
- lt,
196
+ ), (p === "combo" || p === "palette") && /* @__PURE__ */ t.createElement(
197
+ ut,
185
198
  {
186
199
  ...h,
187
- ref: R,
200
+ ref: A,
188
201
  size: e ? "large" : u,
189
202
  value: i,
190
- onChange: re
203
+ onChange: le
191
204
  }
192
205
  ), s && s[0] === "gradient" && s[1] === "palette" && /* @__PURE__ */ t.createElement(
193
- L,
206
+ x,
194
207
  {
195
208
  ...y,
196
209
  _paletteSettings: h,
197
- _gradientSettings: { _adaptive: e, ...E },
210
+ _gradientSettings: { _adaptive: e, ...C },
198
211
  ref: m,
199
212
  size: e ? "large" : u,
200
213
  rounded: v,
201
214
  views: ["gradient", "palette"],
202
- activeView: Q,
215
+ activeView: X,
203
216
  setOpen: a,
204
- showButtons: e ? !1 : b,
217
+ showButtons: e ? !1 : w,
205
218
  value: i,
206
219
  onChange: f,
207
- setAdaptiveModeValue: I
220
+ setAdaptiveModeValue: B
208
221
  }
209
222
  ), s && s[0] === "palette" && s[1] === "gradient" && /* @__PURE__ */ t.createElement(
210
- L,
223
+ x,
211
224
  {
212
225
  ...y,
213
226
  _paletteSettings: h,
214
- _gradientSettings: { _adaptive: e, ...E },
227
+ _gradientSettings: { _adaptive: e, ...C },
215
228
  ref: m,
216
229
  size: e ? "large" : u,
217
230
  rounded: v,
218
231
  views: ["palette", "gradient"],
219
232
  setOpen: a,
220
- showButtons: e ? !1 : b,
233
+ showButtons: e ? !1 : w,
221
234
  value: i,
222
235
  onChange: f,
223
- setAdaptiveModeValue: I
236
+ setAdaptiveModeValue: B
224
237
  }
225
238
  ), s && s.includes("gradient") && !s.includes("palette") && /* @__PURE__ */ t.createElement(
226
- L,
239
+ x,
227
240
  {
228
241
  ...y,
229
- _gradientSettings: { _adaptive: e, ...E },
242
+ _gradientSettings: { _adaptive: e, ...C },
230
243
  ref: m,
231
244
  size: e ? "large" : u,
232
245
  rounded: v,
233
246
  views: ["gradient"],
234
- showButtons: e ? !1 : b,
247
+ showButtons: e ? !1 : w,
235
248
  setOpen: a,
236
249
  value: i,
237
250
  onChange: f,
238
- setAdaptiveModeValue: I
251
+ setAdaptiveModeValue: B
239
252
  }
240
253
  ), s && s.includes("palette") && !s.includes("gradient") && /* @__PURE__ */ t.createElement(
241
- L,
254
+ x,
242
255
  {
243
256
  ...y,
244
257
  _paletteSettings: h,
245
- _gradientSettings: { _adaptive: e, ...E },
258
+ _gradientSettings: { _adaptive: e, ...C },
246
259
  ref: m,
247
260
  size: e ? "large" : u,
248
261
  rounded: v,
249
262
  views: ["palette"],
250
- showButtons: e ? !1 : b,
263
+ showButtons: e ? !1 : w,
251
264
  setOpen: a,
252
265
  value: i,
253
266
  onChange: f,
254
- setAdaptiveModeValue: I
267
+ setAdaptiveModeValue: B
255
268
  }
256
- ), Se && /* @__PURE__ */ t.createElement(Qe, { message: he })),
269
+ ), _e && /* @__PURE__ */ t.createElement(et, { message: Pe })),
257
270
  [
258
- Q,
259
- N,
271
+ X,
272
+ O,
260
273
  y,
261
- E,
274
+ C,
262
275
  f,
263
- re,
276
+ le,
264
277
  h,
265
278
  a,
266
279
  u,
267
280
  i,
268
- d,
281
+ p,
269
282
  s
270
283
  ]
271
- ), We = t.useCallback(() => {
272
- var l;
284
+ ), Ue = t.useCallback(() => {
285
+ var c;
273
286
  const e = {
274
- animation: !!((l = g == null ? void 0 : g.animate) == null || l),
275
- title: X,
276
- subTitle: Y,
277
- expand: p,
278
- onClose: M,
279
- windowWidth: A,
280
- footer: b ? {
281
- cancelText: S.toLanguageString(
287
+ animation: !!((c = g == null ? void 0 : g.animate) == null || c),
288
+ title: Y,
289
+ subTitle: ee,
290
+ expand: d,
291
+ onClose: Z,
292
+ windowWidth: I,
293
+ footer: w ? {
294
+ cancelText: b.toLanguageString(
282
295
  Ce,
283
- D[Ce]
296
+ T[Ce]
284
297
  ),
285
- onCancel: M,
286
- applyText: S.toLanguageString(ke, D[ke]),
287
- onApply: oe
298
+ onCancel: Z,
299
+ applyText: b.toLanguageString(be, T[be]),
300
+ onApply: ie
288
301
  } : void 0
289
302
  };
290
- return /* @__PURE__ */ t.createElement(dt, { ...e }, /* @__PURE__ */ t.createElement(pt, null, Z(!0)));
303
+ return /* @__PURE__ */ t.createElement(mt, { ...e }, /* @__PURE__ */ t.createElement(vt, null, j(!0)));
291
304
  }, [
292
305
  g == null ? void 0 : g.animate,
293
- X,
294
306
  Y,
295
- p,
296
- M,
297
- A,
307
+ ee,
308
+ d,
309
+ Z,
310
+ I,
311
+ w,
298
312
  b,
299
- S,
300
- oe,
301
- Z
302
- ]), Ue = t.useCallback((e) => {
303
- for (const l of e)
304
- De(l.target.clientWidth);
305
- }, []), ie = Xe(c, r.dir), Ke = ye !== !1;
313
+ ie,
314
+ j
315
+ ]), Ke = t.useCallback((e) => {
316
+ for (const c of e)
317
+ Ne(c.target.clientWidth);
318
+ }, []), ce = tt(l, r.dir), $e = Te !== !1;
306
319
  return /* @__PURE__ */ t.createElement(
307
320
  "span",
308
321
  {
309
322
  id: r.id,
310
323
  role: "combobox",
311
- "aria-label": r.ariaLabel,
324
+ "aria-label": r.ariaLabel || b.toLanguageString(we, T[we]),
312
325
  "aria-labelledby": r.ariaLabelledBy,
313
326
  "aria-describedby": r.ariaDescribedBy,
314
327
  "aria-haspopup": "dialog",
315
- "aria-expanded": p,
316
- "aria-controls": `k-colorpicker-popup-${(le = r.id) != null ? le : 0}`,
317
- "aria-disabled": O ? "true" : void 0,
318
- className: j("k-colorpicker", "k-picker", "k-icon-picker", {
319
- [`k-picker-${me.sizeMap[u] || u}`]: u,
320
- [`k-picker-${N}`]: N,
321
- [`k-rounded-${me.roundedMap[v] || v}`]: v,
322
- "k-invalid": !Ke,
323
- "k-disabled": O,
324
- "k-focus": Ae,
325
- className: Te
328
+ "aria-expanded": d,
329
+ "aria-controls": d ? `k-colorpicker-popup-${(se = r.id) != null ? se : 0}` : void 0,
330
+ "aria-disabled": F ? "true" : void 0,
331
+ className: q("k-colorpicker", "k-picker", "k-icon-picker", {
332
+ [`k-picker-${ge.sizeMap[u] || u}`]: u,
333
+ [`k-picker-${O}`]: O,
334
+ [`k-rounded-${ge.roundedMap[v] || v}`]: v,
335
+ "k-invalid": !$e,
336
+ "k-disabled": F,
337
+ "k-focus": Le,
338
+ className: Ae
326
339
  }),
327
- ref: c,
328
- tabIndex: Ye(_e, O),
340
+ ref: l,
341
+ tabIndex: nt(Re, F),
329
342
  title: r.title,
330
- onKeyDown: xe,
331
- onFocus: Fe,
332
- onBlur: He,
333
- dir: ie
343
+ onKeyDown: Oe,
344
+ onFocus: He,
345
+ onBlur: Me,
346
+ dir: ce
334
347
  },
335
348
  /* @__PURE__ */ t.createElement(
336
- at,
349
+ it,
337
350
  {
338
- dir: ie,
339
- open: p,
340
- onOpen: Ne,
341
- popupAnchor: c.current || void 0,
342
- popupSettings: { id: `k-colorpicker-popup-${(se = r.id) != null ? se : 0}`, ...g },
343
- input: /* @__PURE__ */ t.createElement("span", { onClick: Oe, className: "k-input-inner" }, /* @__PURE__ */ t.createElement(
351
+ dir: ce,
352
+ open: d,
353
+ onOpen: Fe,
354
+ popupAnchor: l.current || void 0,
355
+ popupSettings: { id: `k-colorpicker-popup-${(ue = r.id) != null ? ue : 0}`, ...g },
356
+ input: /* @__PURE__ */ t.createElement("span", { onClick: Ve, className: "k-input-inner" }, /* @__PURE__ */ t.createElement(
344
357
  "span",
345
358
  {
346
- className: j("k-value-icon", "k-color-preview", {
359
+ className: q("k-value-icon", "k-color-preview", {
347
360
  "k-no-color": !i,
348
- "k-icon-color-preview": F || V || P
361
+ "k-icon-color-preview": V || H || R
349
362
  })
350
363
  },
351
- P && /* @__PURE__ */ t.createElement("span", { className: j("k-color-preview-icon", P) }),
352
- !P && (F || V) && /* @__PURE__ */ t.createElement(et, { name: F, icon: V }),
364
+ R && /* @__PURE__ */ t.createElement("span", { className: q("k-color-preview-icon", R) }),
365
+ !R && (V || H) && /* @__PURE__ */ t.createElement(at, { name: V, icon: H }),
353
366
  /* @__PURE__ */ t.createElement("span", { className: "k-color-preview-mask", style: { backgroundColor: i } })
354
367
  )),
355
368
  button: /* @__PURE__ */ t.createElement(
356
- st,
369
+ dt,
357
370
  {
358
371
  tabIndex: -1,
359
372
  type: "button",
360
- onClick: () => a(!p),
373
+ onClick: () => a(!d),
361
374
  className: "k-input-button",
362
375
  icon: "chevron-down",
363
- svgIcon: ct,
376
+ svgIcon: pt,
364
377
  size: u,
365
- "aria-label": S.toLanguageString(
366
- Ee,
367
- D[Ee]
378
+ "aria-label": b.toLanguageString(
379
+ Se,
380
+ T[Se]
368
381
  )
369
382
  }
370
383
  ),
371
- content: Z(!1),
384
+ content: j(!1),
372
385
  _mobileMode: G,
373
- _actionSheet: We()
386
+ _actionSheet: Ue()
374
387
  }
375
388
  )
376
389
  );
377
390
  });
378
- be.propTypes = {
391
+ he.propTypes = {
379
392
  value: o.string,
380
393
  defaultValue: o.string,
381
394
  disabled: o.bool,
@@ -384,7 +397,7 @@ be.propTypes = {
384
397
  dir: o.string,
385
398
  id: o.string,
386
399
  icon: o.string,
387
- svgIcon: nt,
400
+ svgIcon: rt,
388
401
  ariaLabelledBy: o.string,
389
402
  ariaDescribedBy: o.string,
390
403
  size: o.oneOf(["small", "medium", "large"]),
@@ -395,17 +408,17 @@ be.propTypes = {
395
408
  adaptiveTitle: o.string,
396
409
  adaptiveSubtitle: o.string
397
410
  };
398
- const C = {
411
+ const E = {
399
412
  size: void 0,
400
413
  rounded: void 0,
401
414
  fillMode: void 0,
402
415
  view: "palette",
403
416
  views: ["gradient", "palette"],
404
- gradientSettings: ft,
405
- paletteSettings: mt
417
+ gradientSettings: gt,
418
+ paletteSettings: kt
406
419
  };
407
- be.displayName = "KendoColorPicker";
420
+ he.displayName = "KendoColorPicker";
408
421
  export {
409
- be as ColorPicker,
410
- vt as ColorPickerPropsContext
422
+ he as ColorPicker,
423
+ Et as ColorPickerPropsContext
411
424
  };