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