@progress/kendo-react-inputs 15.1.1-develop.3 → 15.2.0-develop.2

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