@progress/kendo-react-inputs 15.2.0-develop.1 → 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 +79 -77
  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 +247 -239
  11. package/colors/FlatColorPicker.d.ts +4 -4
  12. package/colors/FlatColorPicker.js +1 -1
  13. package/colors/FlatColorPicker.mjs +104 -100
  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 +61 -56
  38. package/switch/Switch.d.ts +15 -0
  39. package/switch/Switch.js +1 -1
  40. package/switch/Switch.mjs +82 -79
  41. package/textarea/TextArea.js +1 -1
  42. package/textarea/TextArea.mjs +11 -12
@@ -6,133 +6,133 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import * as t from "react";
9
- import o from "prop-types";
10
- import { validatePackage as $e, getLicenseMessage as Ge, usePropsContext as Ze, useAdaptiveModeContext as je, useWebMcpRegister as qe, canUseDOM as Je, Navigation as Qe, getActiveElement as Xe, keepFocusInContainer as z, focusFirstFocusableChild as ve, WatermarkOverlay as Ye, useDir as et, getTabIndex as tt, classNames as q, kendoThemeMaps as ge, IconWrap as nt, createPropsContext as at, svgIconPropType as ot } from "@progress/kendo-react-common";
11
- import { packageMetadata as ke } from "../package-metadata.mjs";
12
- import { Picker as rt } from "./Picker.mjs";
13
- import { ColorGradient as it } from "./ColorGradient.mjs";
14
- import { DEFAULT_TILE_SIZE as lt, DEFAULT_PRESET as st, ColorPalette as ct } from "./ColorPalette.mjs";
15
- import { FlatColorPicker as D } from "./FlatColorPicker.mjs";
16
- import { Button as ut } from "@progress/kendo-react-buttons";
17
- import { chevronDownIcon as dt } from "@progress/kendo-svg-icons";
18
- import { colorPickerAdaptiveTitle as Ee, messages as x, flatColorPickerApplyBtn as Ce, flatColorPickerCancelBtn as be, colorPickerDropdownButtonAriaLabel as we } from "../messages/index.mjs";
19
- import { useLocalization as pt } from "@progress/kendo-react-intl";
20
- import { AdaptiveMode as ft } from "../common/AdaptiveMode.mjs";
21
- import { ActionSheetContent as mt } from "@progress/kendo-react-layout";
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
+ 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 O } 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 Ce, messages as v, flatColorPickerAriaLabel as k, flatColorPickerApplyBtn as Ee, flatColorPickerCancelBtn 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 gt } from "@progress/kendo-react-layout";
22
22
  const vt = {
23
23
  opacity: !0
24
- }, gt = {
24
+ }, kt = {
25
25
  palette: st,
26
- tileSize: lt
27
- }, J = (N) => N !== void 0, kt = at(), Se = t.forwardRef((N, he) => {
28
- var ce, ue;
29
- const ye = !$e(ke, { component: "ColorPicker" }), _e = Ge(ke), r = Ze(kt, N), S = pt(), Q = je(), {
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: c = p ? void 0 : E.views,
38
- activeView: X,
39
- popupSettings: g,
40
- valid: Te,
41
- disabled: F,
42
- tabIndex: Pe,
43
- icon: V,
44
- svgIcon: H,
45
- iconClassName: P,
46
- onChange: W,
47
- onFocus: M,
48
- onBlur: U,
49
- onActiveColorClick: K,
50
- className: Re,
26
+ tileSize: ct
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
51
  adaptive: Ae,
52
- adaptiveTitle: Y = S.toLanguageString(Ee, x[Ee]),
53
- adaptiveSubtitle: ee,
54
- showButtons: b = !0
55
- } = r, l = t.useRef(null), _ = t.useRef(null), R = t.useRef(null), m = t.useRef(null), w = t.useRef(void 0), te = t.useRef(null), [Ie, ne] = t.useState(!1), [Be, Le] = t.useState(r.defaultValue || void 0), [ze, De] = t.useState(!1), [A, xe] = t.useState(), $ = J(r.value), k = J(r.open), i = $ ? r.value : Be, d = k ? r.open : ze, ae = t.useRef(i), I = t.useCallback(() => {
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(
59
- he,
59
+ ye,
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: I
65
+ focus: z
66
66
  }),
67
- [i, I]
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: I
76
+ focus: z
77
77
  }),
78
- [i, I]
79
- ), qe("colorpicker", oe, r, r.webMcp);
80
- const G = !!(A && Q && A <= Q.medium && Ae);
78
+ [i, z]
79
+ ), Je("colorpicker", oe, o, o.webMcp);
80
+ const Z = !!(B && X && B <= X.medium && Ae);
81
81
  t.useEffect(() => {
82
- 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));
83
83
  return document != null && document.body && e && e.observe(document.body), () => {
84
84
  document != null && document.body && e && e.disconnect();
85
85
  };
86
86
  }, []);
87
87
  const a = t.useCallback(
88
- (e, s) => {
89
- k || (!e && !s && l && l.current && l.current.focus(), De(e));
88
+ (e, c) => {
89
+ E || (!e && !c && l && l.current && l.current.focus(), xe(e));
90
90
  },
91
- [k]
92
- ), re = t.useMemo(() => new Qe({
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,
96
96
  keyboardEvents: {
97
97
  keydown: {
98
- Escape: (e, s, n) => {
98
+ Escape: (e, c, n) => {
99
99
  a(!1);
100
100
  },
101
- Enter: (e, s, n) => {
102
- !k && e === l.current && (n.preventDefault(), n.stopPropagation(), a(!0));
101
+ Enter: (e, c, n) => {
102
+ !E && e === l.current && (n.preventDefault(), n.stopPropagation(), a(!0));
103
103
  },
104
- ArrowDown: (e, s, n) => {
104
+ ArrowDown: (e, c, n) => {
105
105
  n.altKey && (n.preventDefault(), n.stopPropagation(), a(!0));
106
106
  },
107
- ArrowUp: (e, s, n) => {
107
+ ArrowUp: (e, c, n) => {
108
108
  n.altKey && (n.preventDefault(), n.stopPropagation(), a(!1));
109
109
  },
110
- Tab: (e, s, n) => {
111
- var T, de, pe;
112
- if (Xe(document) !== l.current) {
113
- const fe = (T = R.current) == null ? void 0 : T.wrapperRef.current, L = (de = _.current) == null ? void 0 : de.wrapperRef.current, me = (pe = m.current) == null ? void 0 : pe.element;
114
- p === "palette" && fe ? z(n, fe) : p === "gradient" && L ? z(n, L) : p === "combo" && L ? z(n, L.parentElement) : c && me && z(n, me);
110
+ Tab: (e, c, n) => {
111
+ var L, pe, fe;
112
+ if (Ye(document) !== l.current) {
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]), Ne = t.useCallback(re.triggerKeyboardEvent.bind(re), []), Oe = t.useCallback(() => {
120
- k || (_.current && _.current.wrapperRef.current ? ve(_.current.wrapperRef.current) : R.current ? R.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
- const s = {
124
- value: ae.current,
123
+ const c = {
124
+ value: re.current,
125
125
  nativeEvent: e.nativeEvent,
126
126
  syntheticEvent: e
127
127
  };
128
- f(s), 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
- }, [a]), Fe = t.useCallback(
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 vt = {
142
142
  }
143
143
  });
144
144
  },
145
- [K, i]
146
- ), Ve = t.useCallback(
145
+ [$, i]
146
+ ), He = t.useCallback(
147
147
  (e) => {
148
- w.current ? (clearTimeout(w.current), w.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]
154
- ), He = t.useCallback(() => {
155
- a(!1, !0), ne(!1), w.current = void 0;
156
- }, []), We = t.useCallback(
153
+ [Z, U, d, a]
154
+ ), We = t.useCallback(() => {
155
+ a(!1, !0), ae(!1), y.current = void 0;
156
+ }, []), Me = t.useCallback(
157
157
  (e) => {
158
- clearTimeout(w.current), w.current = window.setTimeout(He), 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(
165
- (e, s) => {
166
- var T;
167
- const n = s ? e.rgbaValue || "" : (T = e.value) != null ? T : "";
168
- $ || Le(n), W && W.call(void 0, {
163
+ [K]
164
+ ), m = t.useCallback(
165
+ (e, c) => {
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,250 +175,258 @@ const vt = {
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(
184
- it,
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
+ 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(
197
- ct,
196
+ ), (f === "combo" || f === "palette") && /* @__PURE__ */ t.createElement(
197
+ ut,
198
198
  {
199
- ...h,
200
- ref: R,
199
+ ...P,
200
+ ref: I,
201
201
  size: e ? "large" : u,
202
202
  value: i,
203
- onChange: le
203
+ onChange: ce
204
204
  }
205
- ), c && c[0] === "gradient" && c[1] === "palette" && /* @__PURE__ */ t.createElement(
206
- D,
205
+ ), s && s[0] === "gradient" && s[1] === "palette" && /* @__PURE__ */ t.createElement(
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 : b,
218
+ showButtons: e ? !1 : h,
218
219
  value: i,
219
- onChange: f,
220
- setAdaptiveModeValue: B
220
+ onChange: m,
221
+ setAdaptiveModeValue: D
221
222
  }
222
- ), c && c[0] === "palette" && c[1] === "gradient" && /* @__PURE__ */ t.createElement(
223
- D,
223
+ ), s && s[0] === "palette" && s[1] === "gradient" && /* @__PURE__ */ t.createElement(
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 : b,
235
+ showButtons: e ? !1 : h,
234
236
  value: i,
235
- onChange: f,
236
- setAdaptiveModeValue: B
237
+ onChange: m,
238
+ setAdaptiveModeValue: D
237
239
  }
238
- ), c && c.includes("gradient") && !c.includes("palette") && /* @__PURE__ */ t.createElement(
239
- D,
240
+ ), s && s.includes("gradient") && !s.includes("palette") && /* @__PURE__ */ t.createElement(
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 : b,
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
- ), c && c.includes("palette") && !c.includes("gradient") && /* @__PURE__ */ t.createElement(
254
- D,
256
+ ), s && s.includes("palette") && !s.includes("gradient") && /* @__PURE__ */ t.createElement(
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 : b,
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
- ), ye && /* @__PURE__ */ t.createElement(Ye, { message: _e })),
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,
282
- c
285
+ f,
286
+ s
283
287
  ]
284
- ), Me = t.useCallback(() => {
285
- var s;
288
+ ), Ue = t.useCallback(() => {
289
+ var c;
286
290
  const e = {
287
- animation: !!((s = g == null ? void 0 : g.animate) == null || s),
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: A,
293
- footer: b ? {
294
- cancelText: S.toLanguageString(
295
- be,
296
- x[be]
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: S.toLanguageString(Ce, x[Ce]),
300
- onApply: ie
307
+ onApply: le
301
308
  } : void 0
302
309
  };
303
- return /* @__PURE__ */ t.createElement(ft, { ...e }, /* @__PURE__ */ t.createElement(mt, 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
- A,
311
- b,
312
- S,
313
- ie,
314
- j
315
- ]), Ue = t.useCallback((e) => {
316
- for (const s of e)
317
- xe(s.target.clientWidth);
318
- }, []), se = et(l, r.dir), Ke = Te !== !1;
316
+ j,
317
+ B,
318
+ h,
319
+ p,
320
+ le,
321
+ q
322
+ ]), Ke = t.useCallback((e) => {
323
+ for (const c of e)
324
+ Ne(c.target.clientWidth);
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,
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-${(ce = r.id) != null ? ce : 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": !Ke,
336
- "k-disabled": F,
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,
342
+ "k-invalid": !$e,
343
+ "k-disabled": _,
337
344
  "k-focus": Ie,
338
- className: Re
345
+ className: _e
339
346
  }),
340
347
  ref: l,
341
- tabIndex: tt(Pe, F),
342
- title: r.title,
343
- onKeyDown: Ne,
344
- onFocus: Ve,
345
- onBlur: We,
348
+ tabIndex: nt(Le, _),
349
+ title: o.title,
350
+ onKeyDown: Oe,
351
+ onFocus: He,
352
+ onBlur: Me,
346
353
  dir: se
347
354
  },
348
355
  /* @__PURE__ */ t.createElement(
349
- rt,
356
+ it,
350
357
  {
351
358
  dir: se,
352
359
  open: d,
353
- onOpen: Oe,
360
+ onOpen: Fe,
354
361
  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: Fe, className: "k-input-inner" }, /* @__PURE__ */ t.createElement(
362
+ popupSettings: { id: `k-colorpicker-popup-${(de = o.id) != null ? de : 0}`, ...C },
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 || P
368
+ "k-icon-color-preview": H || W || A
362
369
  })
363
370
  },
364
- P && /* @__PURE__ */ t.createElement("span", { className: q("k-color-preview-icon", P) }),
365
- !P && (V || H) && /* @__PURE__ */ t.createElement(nt, { 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(
369
- ut,
376
+ dt,
370
377
  {
371
378
  tabIndex: -1,
372
379
  type: "button",
373
380
  onClick: () => a(!d),
374
381
  className: "k-input-button",
382
+ disabled: _,
375
383
  icon: "chevron-down",
376
- svgIcon: dt,
384
+ svgIcon: pt,
377
385
  size: u,
378
- "aria-label": S.toLanguageString(
379
- we,
380
- x[we]
386
+ "aria-label": p.toLanguageString(
387
+ Se,
388
+ v[Se]
381
389
  )
382
390
  }
383
391
  ),
384
- content: j(!1),
385
- _mobileMode: G,
386
- _actionSheet: Me()
392
+ content: q(!1),
393
+ _mobileMode: Z,
394
+ _actionSheet: Ue()
387
395
  }
388
396
  )
389
397
  );
390
398
  });
391
- Se.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,
399
+ he.propTypes = {
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,
400
408
  svgIcon: ot,
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
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
425
  gradientSettings: vt,
418
- paletteSettings: gt
426
+ paletteSettings: kt
419
427
  };
420
- Se.displayName = "KendoColorPicker";
428
+ he.displayName = "KendoColorPicker";
421
429
  export {
422
- Se as ColorPicker,
423
- kt as ColorPickerPropsContext
430
+ he as ColorPicker,
431
+ bt as ColorPickerPropsContext
424
432
  };