@progress/kendo-react-inputs 9.4.0-develop.28 → 9.4.0-develop.29

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,7 +7,7 @@
7
7
  */
8
8
  import * as a from "react";
9
9
  import l from "prop-types";
10
- import { validatePackage as p, Navigation as ee, getActiveElement as V, disableNavigatableContainer as K, keepFocusInContainer as ae, focusFirstFocusableChild as te, enableNavigatableContainer as le, getTabIndex as ne, classNames as _, kendoThemeMaps as oe } from "@progress/kendo-react-common";
10
+ import { validatePackage as p, Navigation as ee, getActiveElement as _, disableNavigatableContainer as K, keepFocusInContainer as ae, focusFirstFocusableChild as te, enableNavigatableContainer as le, getTabIndex as ne, classNames as V, kendoThemeMaps as oe } from "@progress/kendo-react-common";
11
11
  import { ButtonGroup as M, Button as s } from "@progress/kendo-react-buttons";
12
12
  import { dropletSliderIcon as L, paletteIcon as G, dropletSlashIcon as ie } from "@progress/kendo-svg-icons";
13
13
  import { ColorPalette as re } from "./ColorPalette.mjs";
@@ -30,7 +30,7 @@ const D = a.forwardRef((e, O) => {
30
30
  (h || "ColorGradient") === "ColorGradient"
31
31
  ), [d, x] = a.useState(
32
32
  (r != null ? r : [])[0] === "gradient" && P === "gradient"
33
- ), [i, E] = a.useState(e.value || b || void 0), [g, S] = a.useState(e.value || b || void 0), B = e.value !== void 0 ? e.value : void 0;
33
+ ), [i, E] = a.useState(e.value || b || void 0), [g, I] = a.useState(e.value || b || void 0), B = e.value !== void 0 ? e.value : void 0;
34
34
  a.useEffect(() => {
35
35
  E(e.value);
36
36
  }, [e.value]);
@@ -61,13 +61,13 @@ const D = a.forwardRef((e, O) => {
61
61
  (t) => {
62
62
  var c;
63
63
  const n = b || void 0;
64
- if (E(n), S(n), (c = e._gradientSettings) != null && c._adaptive && e.setAdaptiveModeValue && e.setAdaptiveModeValue(n), e.onPreviewChange) {
65
- const I = {
64
+ if (E(n), I(n), (c = e._gradientSettings) != null && c._adaptive && e.setAdaptiveModeValue && e.setAdaptiveModeValue(n), e.onPreviewChange) {
65
+ const S = {
66
66
  value: n,
67
67
  nativeEvent: t.nativeEvent,
68
68
  syntheticEvent: t
69
69
  };
70
- e.onPreviewChange.call(void 0, I);
70
+ e.onPreviewChange.call(void 0, S);
71
71
  }
72
72
  },
73
73
  [b, e.onPreviewChange]
@@ -87,7 +87,7 @@ const D = a.forwardRef((e, O) => {
87
87
  [e.onPreviewChange]
88
88
  ), Q = a.useCallback(
89
89
  (t) => {
90
- if (i !== void 0 && S(i), e.onChange) {
90
+ if (i !== void 0 && I(i), e.onChange) {
91
91
  const n = {
92
92
  value: i,
93
93
  nativeEvent: t.nativeEvent,
@@ -113,8 +113,8 @@ const D = a.forwardRef((e, O) => {
113
113
  [g, e.onPreviewChange]
114
114
  ), X = a.useCallback(
115
115
  (t) => {
116
- var c, I;
117
- if ((!t.relatedTarget || !((c = y.current) != null && c.contains(t.relatedTarget))) && !((I = e._gradientSettings) != null && I._adaptive) && (!w && i !== void 0 && S(i), !w && e.onChange)) {
116
+ var c, S;
117
+ if ((!t.relatedTarget || !((c = y.current) != null && c.contains(t.relatedTarget))) && !((S = e._gradientSettings) != null && S._adaptive) && (!w && i !== void 0 && I(i), !w && e.onChange)) {
118
118
  const Z = {
119
119
  value: i,
120
120
  nativeEvent: t.nativeEvent,
@@ -132,13 +132,13 @@ const D = a.forwardRef((e, O) => {
132
132
  keyboardEvents: {
133
133
  keydown: {
134
134
  Tab: (t, n, c) => {
135
- V(document) === t ? K(t) : ae(c, t);
135
+ _(document) === t ? K(t) : ae(c, t);
136
136
  },
137
137
  Enter: (t, n, c) => {
138
- V(document) === t && (te(t), le(t));
138
+ _(document) === t && (te(t), le(t));
139
139
  },
140
140
  Escape: (t, n, c) => {
141
- V(document) !== t && (t.focus(), K(t));
141
+ _(document) !== t && (t.focus(), K(t));
142
142
  }
143
143
  }
144
144
  }
@@ -156,7 +156,7 @@ const D = a.forwardRef((e, O) => {
156
156
  style: e.style,
157
157
  ref: y,
158
158
  tabIndex: ne(e.tabIndex, e.disabled),
159
- className: _(
159
+ className: V(
160
160
  "k-flatcolorpicker k-coloreditor",
161
161
  {
162
162
  [`k-coloreditor-${oe.sizeMap[o] || o}`]: o,
@@ -276,7 +276,7 @@ const D = a.forwardRef((e, O) => {
276
276
  ), q && /* @__PURE__ */ a.createElement("div", { className: "k-coloreditor-preview k-vstack" }, /* @__PURE__ */ a.createElement(
277
277
  "span",
278
278
  {
279
- className: _("k-coloreditor-preview-color", "k-color-preview", {
279
+ className: V("k-coloreditor-preview-color", "k-color-preview", {
280
280
  "k-no-color": B === void 0
281
281
  })
282
282
  },
@@ -290,7 +290,7 @@ const D = a.forwardRef((e, O) => {
290
290
  ), /* @__PURE__ */ a.createElement(
291
291
  "span",
292
292
  {
293
- className: _("k-coloreditor-current-color", "k-color-preview", {
293
+ className: V("k-coloreditor-current-color", "k-color-preview", {
294
294
  "k-no-color": g === void 0
295
295
  }),
296
296
  onClick: W
@@ -314,7 +314,8 @@ const D = a.forwardRef((e, O) => {
314
314
  opacity: e.opacity,
315
315
  format: e.format,
316
316
  size: o,
317
- _adaptive: e._gradientSettings ? e._gradientSettings._adaptive : void 0
317
+ _adaptive: e._gradientSettings ? e._gradientSettings._adaptive : void 0,
318
+ ...e._gradientSettings
318
319
  }
319
320
  ), (h && !v || r && !d) && /* @__PURE__ */ a.createElement(
320
321
  re,