@progress/kendo-react-inputs 13.3.0 → 13.4.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 (149) hide show
  1. package/checkbox/Checkbox.d.ts +49 -0
  2. package/checkbox/Checkbox.js +1 -1
  3. package/checkbox/Checkbox.mjs +35 -36
  4. package/checkbox/interfaces/CheckboxBlurEvent.d.ts +14 -0
  5. package/checkbox/interfaces/CheckboxChangeEvent.d.ts +18 -0
  6. package/checkbox/interfaces/CheckboxFocusEvent.d.ts +14 -0
  7. package/checkbox/interfaces/CheckboxProps.d.ts +148 -0
  8. package/colors/ColorContrastLabels.d.ts +22 -0
  9. package/colors/ColorContrastSvg.d.ts +25 -0
  10. package/colors/ColorGradient.d.ts +215 -0
  11. package/colors/ColorGradient.js +1 -1
  12. package/colors/ColorGradient.mjs +20 -19
  13. package/colors/ColorInput.d.ts +40 -0
  14. package/colors/ColorInput.js +1 -1
  15. package/colors/ColorInput.mjs +20 -16
  16. package/colors/ColorPalette.d.ts +129 -0
  17. package/colors/ColorPalette.js +1 -1
  18. package/colors/ColorPalette.mjs +7 -7
  19. package/colors/ColorPicker.d.ts +34 -0
  20. package/colors/ColorPicker.js +1 -1
  21. package/colors/ColorPicker.mjs +96 -94
  22. package/colors/FlatColorPicker.d.ts +189 -0
  23. package/colors/FlatColorPicker.js +1 -1
  24. package/colors/FlatColorPicker.mjs +41 -40
  25. package/colors/HexInput.d.ts +39 -0
  26. package/colors/HexInput.js +1 -1
  27. package/colors/HexInput.mjs +2 -1
  28. package/colors/Picker.d.ts +13 -0
  29. package/colors/interfaces/ColorGradientChangeEvent.d.ts +18 -0
  30. package/colors/interfaces/ColorGradientProps.d.ts +160 -0
  31. package/colors/interfaces/ColorPaletteChangeEvent.d.ts +22 -0
  32. package/colors/interfaces/ColorPaletteProps.d.ts +116 -0
  33. package/colors/interfaces/ColorPickerActiveColorClick.d.ts +29 -0
  34. package/colors/interfaces/ColorPickerBlurEvent.d.ts +20 -0
  35. package/colors/interfaces/ColorPickerChangeEvent.d.ts +29 -0
  36. package/colors/interfaces/ColorPickerFocusEvent.d.ts +20 -0
  37. package/colors/interfaces/ColorPickerGradientSettings.d.ts +29 -0
  38. package/colors/interfaces/ColorPickerPaletteSettings.d.ts +39 -0
  39. package/colors/interfaces/ColorPickerPopupSettings.d.ts +21 -0
  40. package/colors/interfaces/ColorPickerProps.d.ts +242 -0
  41. package/colors/interfaces/ColorPickerView.d.ts +17 -0
  42. package/colors/interfaces/PickerPopupSettings.d.ts +29 -0
  43. package/colors/interfaces/PickerProps.d.ts +57 -0
  44. package/colors/models/hsva.d.ts +16 -0
  45. package/colors/models/output-format.d.ts +11 -0
  46. package/colors/models/palette-presets.d.ts +60 -0
  47. package/colors/models/rgb.d.ts +15 -0
  48. package/colors/models/rgba.d.ts +16 -0
  49. package/colors/models/table-cell.d.ts +14 -0
  50. package/colors/models/tile-size.d.ts +18 -0
  51. package/colors/utils/color-cache.d.ts +37 -0
  52. package/colors/utils/color-palette.service.d.ts +19 -0
  53. package/colors/utils/color-parser.d.ts +72 -0
  54. package/colors/utils/color-parser.js +1 -1
  55. package/colors/utils/color-parser.mjs +1 -1
  56. package/colors/utils/misc.d.ts +23 -0
  57. package/colors/utils/svg-calc.d.ts +69 -0
  58. package/common/AdaptiveMode.d.ts +21 -0
  59. package/common/SliderTooltip.d.ts +25 -0
  60. package/common/SwitchController.d.ts +38 -0
  61. package/common/SwitchModel.d.ts +14 -0
  62. package/dist/cdn/js/kendo-react-inputs.js +1 -1
  63. package/index.d.mts +72 -5128
  64. package/index.d.ts +72 -5128
  65. package/input/Input.d.ts +119 -0
  66. package/input/Input.js +1 -1
  67. package/input/Input.mjs +45 -43
  68. package/input/InputClearValue.d.ts +28 -0
  69. package/input/InputPrefix.d.ts +30 -0
  70. package/input/InputSeparator.d.ts +30 -0
  71. package/input/InputSuffix.d.ts +32 -0
  72. package/input/InputValidationIcon.d.ts +21 -0
  73. package/input/interfaces/InputChangeEvent.d.ts +18 -0
  74. package/interfaces/Direction.d.ts +8 -0
  75. package/interfaces/ToggleBaseProps.d.ts +24 -0
  76. package/maskedtextbox/MaskedTextBox.d.ts +224 -0
  77. package/maskedtextbox/MaskedTextBox.js +1 -1
  78. package/maskedtextbox/MaskedTextBox.mjs +80 -79
  79. package/maskedtextbox/MaskedTextBoxProps.d.ts +273 -0
  80. package/maskedtextbox/masking.service.d.ts +48 -0
  81. package/maskedtextbox/masking.service.mjs +9 -9
  82. package/maskedtextbox/parsing/combinators.d.ts +16 -0
  83. package/maskedtextbox/parsing/parsers.d.ts +54 -0
  84. package/maskedtextbox/parsing/result.d.ts +30 -0
  85. package/maskedtextbox/parsing/stream.d.ts +29 -0
  86. package/maskedtextbox/utils.d.ts +23 -0
  87. package/messages/index.d.ts +177 -0
  88. package/numerictextbox/NumericTextBox.d.ts +21 -0
  89. package/numerictextbox/NumericTextBox.js +1 -1
  90. package/numerictextbox/NumericTextBox.mjs +161 -161
  91. package/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +14 -0
  92. package/numerictextbox/interfaces/NumericTextBoxChangeEvent.d.ts +18 -0
  93. package/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +14 -0
  94. package/numerictextbox/interfaces/NumericTextBoxHandle.d.ts +46 -0
  95. package/numerictextbox/interfaces/NumericTextBoxProps.d.ts +212 -0
  96. package/numerictextbox/interfaces/NumericTextBoxState.d.ts +22 -0
  97. package/numerictextbox/utils/index.d.ts +126 -0
  98. package/package-metadata.d.ts +12 -0
  99. package/package-metadata.js +1 -1
  100. package/package-metadata.mjs +10 -16
  101. package/package.json +10 -10
  102. package/radiobutton/RadioButton.d.ts +36 -0
  103. package/radiobutton/RadioButton.js +1 -1
  104. package/radiobutton/RadioButton.mjs +8 -8
  105. package/radiobutton/RadioGroup.d.ts +36 -0
  106. package/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +14 -0
  107. package/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +18 -0
  108. package/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +14 -0
  109. package/radiobutton/interfaces/RadioButtonProps.d.ts +107 -0
  110. package/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +18 -0
  111. package/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +14 -0
  112. package/radiobutton/interfaces/RadioGroupProps.d.ts +178 -0
  113. package/range-slider/RangeSlider.d.ts +152 -0
  114. package/range-slider/range-raducer.d.ts +46 -0
  115. package/rating/Rating.d.ts +302 -0
  116. package/rating/Rating.mjs +3 -3
  117. package/rating/RatingItem.d.ts +111 -0
  118. package/rating/models/index.d.ts +91 -0
  119. package/rating/rating-reducer.d.ts +39 -0
  120. package/rating/utils/index.d.ts +31 -0
  121. package/signature/Signature.d.ts +21 -0
  122. package/signature/Signature.js +1 -1
  123. package/signature/Signature.mjs +26 -23
  124. package/signature/interfaces/SignatureBlurEvent.d.ts +14 -0
  125. package/signature/interfaces/SignatureChangeEvent.d.ts +18 -0
  126. package/signature/interfaces/SignatureCloseEvent.d.ts +14 -0
  127. package/signature/interfaces/SignatureFocusEvent.d.ts +14 -0
  128. package/signature/interfaces/SignatureHandle.d.ts +49 -0
  129. package/signature/interfaces/SignatureOpenEvent.d.ts +14 -0
  130. package/signature/interfaces/SignatureProps.d.ts +324 -0
  131. package/signature/interfaces/index.d.ts +14 -0
  132. package/signature/utils/index.d.ts +11 -0
  133. package/slider/Slider.d.ts +288 -0
  134. package/slider/Slider.mjs +9 -9
  135. package/slider/SliderLabel.d.ts +51 -0
  136. package/switch/Switch.d.ts +397 -0
  137. package/switch/Switch.js +1 -1
  138. package/switch/Switch.mjs +29 -22
  139. package/textarea/TextArea.d.ts +40 -0
  140. package/textarea/TextArea.js +1 -1
  141. package/textarea/TextArea.mjs +41 -41
  142. package/textarea/interfaces/TextAreaBlurEvent.d.ts +14 -0
  143. package/textarea/interfaces/TextAreaChangeEvent.d.ts +18 -0
  144. package/textarea/interfaces/TextAreaFocusEvent.d.ts +14 -0
  145. package/textarea/interfaces/TextAreaProps.d.ts +199 -0
  146. package/textbox/Textbox.d.ts +99 -0
  147. package/textbox/Textbox.js +1 -1
  148. package/textbox/Textbox.mjs +70 -66
  149. package/utils.d.ts +11 -0
@@ -6,105 +6,109 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import * as e from "react";
9
- import o from "prop-types";
10
- import { useUnstyled as w, useCustomComponent as g, useAsyncFocusBlur as H, classNames as h, uTextBox as C } from "@progress/kendo-react-common";
11
- const B = e.forwardRef((t, F) => {
12
- const l = e.useRef(null), s = e.useRef(null), r = e.useRef(void 0), i = w(), a = i && i.uTextBox, b = e.useCallback(() => {
9
+ import a from "prop-types";
10
+ import { useUnstyled as j, useCustomComponent as x, useAsyncFocusBlur as H, classNames as g, kendoThemeMaps as h, uTextBox as w } from "@progress/kendo-react-common";
11
+ const C = e.forwardRef((t, k) => {
12
+ const o = e.useRef(null), i = e.useRef(null), s = e.useRef(void 0), c = j(), y = c && c.uTextBox, B = e.useCallback(() => {
13
13
  var n;
14
- return r.current !== void 0 ? r.current : (n = l.current) == null ? void 0 : n.value;
14
+ return s.current !== void 0 ? s.current : (n = o.current) == null ? void 0 : n.value;
15
15
  }, []);
16
- e.useImperativeHandle(s, () => ({
16
+ e.useImperativeHandle(i, () => ({
17
17
  get element() {
18
- return l.current;
18
+ return o.current;
19
19
  },
20
20
  get name() {
21
- return l.current && l.current.name;
21
+ return o.current && o.current.name;
22
22
  },
23
23
  get value() {
24
- return b();
24
+ return B();
25
25
  }
26
- })), e.useImperativeHandle(F, () => s.current);
26
+ })), e.useImperativeHandle(k, () => i.current);
27
27
  const {
28
- size: c = u.size,
28
+ size: l = u.size,
29
29
  fillMode: d = u.fillMode,
30
- rounded: f = u.rounded,
31
- autoFocus: y = u.autoFocus,
30
+ rounded: r = u.rounded,
31
+ autoFocus: F = u.autoFocus,
32
32
  inputAttributes: _,
33
- className: m,
34
- dir: E,
35
- style: R,
36
- prefix: N = u.prefix,
37
- suffix: T = u.suffix,
33
+ className: f,
34
+ dir: b,
35
+ style: M,
36
+ prefix: p = u.prefix,
37
+ suffix: S = u.suffix,
38
38
  valid: D,
39
- onFocus: p,
40
- onBlur: q,
39
+ onFocus: z,
40
+ onBlur: E,
41
41
  // Destruct to avoid warning when used inside a form field
42
42
  modified: G,
43
43
  touched: K,
44
44
  visited: U,
45
- ...M
46
- } = t, [z] = g(N), [O] = g(T), [v, x] = e.useState(!1), S = (n) => {
47
- x(!0);
48
- }, A = (n) => {
49
- x(!1);
50
- }, I = e.useCallback(
45
+ validationMessage: J,
46
+ autoSize: L,
47
+ textareaStyle: Q,
48
+ ...R
49
+ } = t, [T] = x(p), [N] = x(S), [m, v] = e.useState(!1), q = (n) => {
50
+ v(!0);
51
+ }, O = (n) => {
52
+ v(!1);
53
+ }, A = e.useCallback(
51
54
  (n) => {
52
- r.current = n.target.value, t.onChange && t.onChange.call(void 0, {
55
+ s.current = n.target.value, t.onChange && t.onChange.call(void 0, {
53
56
  syntheticEvent: n,
54
57
  nativeEvent: n.nativeEvent,
55
58
  value: n.target.value,
56
- target: s.current
57
- }), r.current = void 0;
59
+ target: i.current
60
+ }), s.current = void 0;
58
61
  },
59
62
  [t.onChange]
60
- ), { onFocus: P, onBlur: j } = H({
61
- onFocus: S,
62
- onBlur: A,
63
- onSyncFocus: p,
64
- onSyncBlur: q
65
- }), k = e.useMemo(
66
- () => h(
67
- C.wrapper({
68
- c: a,
69
- rounded: f,
70
- fillMode: d,
71
- size: c,
72
- focused: v,
73
- required: t.required,
74
- disabled: t.disabled,
75
- invalid: t.valid === !1
76
- }),
77
- m
63
+ ), { onFocus: I, onBlur: P } = H({
64
+ onFocus: q,
65
+ onBlur: O,
66
+ onSyncFocus: z,
67
+ onSyncBlur: E
68
+ }), $ = e.useMemo(
69
+ () => g(
70
+ "k-input",
71
+ "k-textbox",
72
+ {
73
+ [`k-input-${h.sizeMap[l] || l}`]: l,
74
+ [`k-input-${d}`]: d,
75
+ [`k-rounded-${h.roundedMap[r] || r}`]: r,
76
+ "k-focus": m,
77
+ "k-required": t.required,
78
+ "k-disabled": t.disabled,
79
+ "k-invalid": t.valid === !1
80
+ },
81
+ f
78
82
  ),
79
- [m, d, v, t.disabled, t.required, t.valid, f, c, a]
83
+ [f, d, m, t.disabled, t.required, t.valid, r, l]
80
84
  );
81
- return /* @__PURE__ */ e.createElement("span", { style: R, dir: E, className: k, onFocus: P, onBlur: j }, /* @__PURE__ */ e.createElement(z, null), /* @__PURE__ */ e.createElement(
85
+ return /* @__PURE__ */ e.createElement("span", { style: M, dir: b, className: $, onFocus: I, onBlur: P }, /* @__PURE__ */ e.createElement(T, null), /* @__PURE__ */ e.createElement(
82
86
  "input",
83
87
  {
84
- ref: l,
85
- className: h(C.inputInner({ c: a })),
86
- autoFocus: y,
87
- ...Object.assign({}, M, _),
88
+ ref: o,
89
+ className: g(w.inputInner({ c: y })),
90
+ autoFocus: F,
91
+ ...Object.assign({}, R, _),
88
92
  "aria-required": t.required,
89
- onChange: I
93
+ onChange: A
90
94
  }
91
- ), /* @__PURE__ */ e.createElement(O, null));
95
+ ), /* @__PURE__ */ e.createElement(N, null));
92
96
  }), u = {
93
97
  prefix: (t) => null,
94
98
  suffix: (t) => null,
95
- size: "medium",
96
- rounded: "medium",
97
- fillMode: "solid",
99
+ size: void 0,
100
+ rounded: void 0,
101
+ fillMode: void 0,
98
102
  autoFocus: !1
99
103
  };
100
- B.propTypes = {
101
- size: o.oneOf([null, "small", "medium", "large"]),
102
- rounded: o.oneOf([null, "small", "medium", "large", "full"]),
103
- fillMode: o.oneOf([null, "solid", "flat", "outline"]),
104
- autoFocus: o.bool,
105
- inputAttributes: o.object
104
+ C.propTypes = {
105
+ size: a.oneOf(["small", "medium", "large"]),
106
+ rounded: a.oneOf(["small", "medium", "large", "full"]),
107
+ fillMode: a.oneOf(["solid", "flat", "outline"]),
108
+ autoFocus: a.bool,
109
+ inputAttributes: a.object
106
110
  };
107
- B.displayName = "KendoReactTextBoxComponent";
111
+ C.displayName = "KendoReactTextBoxComponent";
108
112
  export {
109
- B as TextBox
113
+ C as TextBox
110
114
  };
package/utils.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare function nullable(subRequirement: any): any;