@progress/kendo-react-inputs 7.2.4-develop.3 → 7.3.0-develop.1

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 (205) hide show
  1. package/checkbox/Checkbox.js +8 -0
  2. package/checkbox/Checkbox.mjs +214 -0
  3. package/colors/ColorContrastLabels.js +8 -0
  4. package/colors/ColorContrastLabels.mjs +24 -0
  5. package/colors/ColorContrastSvg.js +8 -0
  6. package/colors/ColorContrastSvg.mjs +52 -0
  7. package/colors/ColorGradient.js +8 -0
  8. package/colors/ColorGradient.mjs +293 -0
  9. package/colors/ColorInput.js +8 -0
  10. package/colors/ColorInput.mjs +122 -0
  11. package/colors/ColorPalette.js +8 -0
  12. package/colors/ColorPalette.mjs +191 -0
  13. package/colors/ColorPicker.js +8 -0
  14. package/colors/ColorPicker.mjs +253 -0
  15. package/colors/FlatColorPicker.js +8 -0
  16. package/colors/FlatColorPicker.mjs +216 -0
  17. package/colors/HexInput.js +8 -0
  18. package/colors/HexInput.mjs +39 -0
  19. package/colors/Picker.js +8 -0
  20. package/colors/Picker.mjs +42 -0
  21. package/colors/models/palette-presets.js +8 -0
  22. package/colors/models/palette-presets.mjs +61 -0
  23. package/colors/utils/color-cache.js +8 -0
  24. package/colors/utils/color-cache.mjs +51 -0
  25. package/colors/utils/color-palette.service.js +8 -0
  26. package/colors/utils/color-palette.service.mjs +50 -0
  27. package/colors/utils/color-parser.js +8 -0
  28. package/colors/utils/color-parser.mjs +61 -0
  29. package/colors/utils/misc.js +8 -0
  30. package/colors/utils/misc.mjs +13 -0
  31. package/colors/utils/svg-calc.js +8 -0
  32. package/colors/utils/svg-calc.mjs +36 -0
  33. package/dist/cdn/js/kendo-react-inputs.js +8 -21
  34. package/index.d.mts +4275 -5
  35. package/index.d.ts +4275 -75
  36. package/index.js +8 -21
  37. package/index.mjs +97 -5042
  38. package/input/Input.js +8 -0
  39. package/input/Input.mjs +185 -0
  40. package/input/InputClearValue.js +8 -0
  41. package/input/InputClearValue.mjs +24 -0
  42. package/input/InputPrefix.js +8 -0
  43. package/input/InputPrefix.mjs +24 -0
  44. package/input/InputSeparator.js +8 -0
  45. package/input/InputSeparator.mjs +24 -0
  46. package/input/InputSuffix.js +8 -0
  47. package/input/InputSuffix.mjs +24 -0
  48. package/input/InputValidationIcon.js +8 -0
  49. package/input/InputValidationIcon.mjs +15 -0
  50. package/maskedtextbox/MaskedTextBox.js +8 -0
  51. package/maskedtextbox/MaskedTextBox.mjs +322 -0
  52. package/maskedtextbox/masking.service.js +8 -0
  53. package/maskedtextbox/masking.service.mjs +121 -0
  54. package/maskedtextbox/parsing/combinators.js +8 -0
  55. package/maskedtextbox/parsing/combinators.mjs +20 -0
  56. package/maskedtextbox/parsing/parsers.js +8 -0
  57. package/maskedtextbox/parsing/parsers.mjs +80 -0
  58. package/maskedtextbox/parsing/result.js +8 -0
  59. package/maskedtextbox/parsing/result.mjs +35 -0
  60. package/maskedtextbox/parsing/stream.js +8 -0
  61. package/maskedtextbox/parsing/stream.mjs +41 -0
  62. package/maskedtextbox/utils.js +8 -0
  63. package/maskedtextbox/utils.mjs +43 -0
  64. package/messages/index.js +8 -0
  65. package/messages/index.mjs +77 -0
  66. package/numerictextbox/NumericTextBox.js +8 -0
  67. package/numerictextbox/NumericTextBox.mjs +415 -0
  68. package/numerictextbox/utils/index.js +8 -0
  69. package/numerictextbox/utils/index.mjs +218 -0
  70. package/package-metadata.js +8 -0
  71. package/package-metadata.mjs +19 -0
  72. package/package.json +8 -8
  73. package/radiobutton/RadioButton.js +8 -0
  74. package/radiobutton/RadioButton.mjs +138 -0
  75. package/radiobutton/RadioGroup.js +8 -0
  76. package/radiobutton/RadioGroup.mjs +135 -0
  77. package/range-slider/RangeSlider.js +20 -0
  78. package/range-slider/RangeSlider.mjs +337 -0
  79. package/range-slider/range-raducer.js +8 -0
  80. package/range-slider/range-raducer.mjs +90 -0
  81. package/rating/Rating.js +12 -0
  82. package/rating/Rating.mjs +323 -0
  83. package/rating/RatingItem.js +8 -0
  84. package/rating/RatingItem.mjs +144 -0
  85. package/rating/rating-reducer.js +8 -0
  86. package/rating/rating-reducer.mjs +34 -0
  87. package/rating/utils/index.js +8 -0
  88. package/rating/utils/index.mjs +28 -0
  89. package/signature/Signature.js +8 -0
  90. package/signature/Signature.mjs +335 -0
  91. package/signature/utils/index.js +8 -0
  92. package/signature/utils/index.mjs +17 -0
  93. package/slider/Slider.js +8 -0
  94. package/slider/Slider.mjs +223 -0
  95. package/slider/SliderLabel.js +8 -0
  96. package/slider/SliderLabel.mjs +39 -0
  97. package/switch/Switch.js +8 -0
  98. package/switch/Switch.mjs +228 -0
  99. package/textarea/TextArea.js +8 -0
  100. package/textarea/TextArea.mjs +196 -0
  101. package/textbox/Textbox.js +8 -0
  102. package/textbox/Textbox.mjs +125 -0
  103. package/checkbox/Checkbox.d.ts +0 -36
  104. package/checkbox/interfaces/CheckboxBlurEvent.d.ts +0 -11
  105. package/checkbox/interfaces/CheckboxChangeEvent.d.ts +0 -15
  106. package/checkbox/interfaces/CheckboxFocusEvent.d.ts +0 -11
  107. package/checkbox/interfaces/CheckboxProps.d.ts +0 -126
  108. package/colors/ColorContrastLabels.d.ts +0 -19
  109. package/colors/ColorContrastSvg.d.ts +0 -22
  110. package/colors/ColorGradient.d.ts +0 -191
  111. package/colors/ColorInput.d.ts +0 -34
  112. package/colors/ColorPalette.d.ts +0 -127
  113. package/colors/ColorPicker.d.ts +0 -34
  114. package/colors/FlatColorPicker.d.ts +0 -139
  115. package/colors/HexInput.d.ts +0 -33
  116. package/colors/Picker.d.ts +0 -10
  117. package/colors/interfaces/ColorGradientChangeEvent.d.ts +0 -15
  118. package/colors/interfaces/ColorGradientProps.d.ts +0 -101
  119. package/colors/interfaces/ColorPaletteChangeEvent.d.ts +0 -19
  120. package/colors/interfaces/ColorPaletteProps.d.ts +0 -87
  121. package/colors/interfaces/ColorPickerActiveColorClick.d.ts +0 -21
  122. package/colors/interfaces/ColorPickerBlurEvent.d.ts +0 -17
  123. package/colors/interfaces/ColorPickerChangeEvent.d.ts +0 -21
  124. package/colors/interfaces/ColorPickerFocusEvent.d.ts +0 -17
  125. package/colors/interfaces/ColorPickerGradientSettings.d.ts +0 -22
  126. package/colors/interfaces/ColorPickerPaletteSettings.d.ts +0 -36
  127. package/colors/interfaces/ColorPickerPopupSettings.d.ts +0 -18
  128. package/colors/interfaces/ColorPickerProps.d.ts +0 -165
  129. package/colors/interfaces/ColorPickerView.d.ts +0 -14
  130. package/colors/interfaces/PickerPopupSettings.d.ts +0 -22
  131. package/colors/interfaces/PickerProps.d.ts +0 -46
  132. package/colors/models/hsva.d.ts +0 -13
  133. package/colors/models/output-format.d.ts +0 -8
  134. package/colors/models/palette-presets.d.ts +0 -57
  135. package/colors/models/rgb.d.ts +0 -12
  136. package/colors/models/rgba.d.ts +0 -13
  137. package/colors/models/table-cell.d.ts +0 -11
  138. package/colors/models/tile-size.d.ts +0 -15
  139. package/colors/utils/color-cache.d.ts +0 -34
  140. package/colors/utils/color-palette.service.d.ts +0 -16
  141. package/colors/utils/color-parser.d.ts +0 -69
  142. package/colors/utils/misc.d.ts +0 -19
  143. package/colors/utils/svg-calc.d.ts +0 -66
  144. package/input/Input.d.ts +0 -171
  145. package/input/InputClearValue.d.ts +0 -19
  146. package/input/InputPrefix.d.ts +0 -29
  147. package/input/InputSeparator.d.ts +0 -29
  148. package/input/InputSuffix.d.ts +0 -29
  149. package/input/InputValidationIcon.d.ts +0 -18
  150. package/input/interfaces/InputChangeEvent.d.ts +0 -15
  151. package/interfaces/Direction.d.ts +0 -5
  152. package/interfaces/ToggleBaseProps.d.ts +0 -12
  153. package/maskedtextbox/MaskedTextBox.d.ts +0 -238
  154. package/maskedtextbox/MaskedTextBoxProps.d.ts +0 -200
  155. package/maskedtextbox/masking.service.d.ts +0 -45
  156. package/maskedtextbox/parsing/combinators.d.ts +0 -13
  157. package/maskedtextbox/parsing/parsers.d.ts +0 -51
  158. package/maskedtextbox/parsing/result.d.ts +0 -27
  159. package/maskedtextbox/parsing/stream.d.ts +0 -26
  160. package/maskedtextbox/utils.d.ts +0 -20
  161. package/messages/index.d.ts +0 -169
  162. package/numerictextbox/NumericTextBox.d.ts +0 -18
  163. package/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +0 -11
  164. package/numerictextbox/interfaces/NumericTextBoxChangeEvent.d.ts +0 -15
  165. package/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +0 -11
  166. package/numerictextbox/interfaces/NumericTextBoxHandle.d.ts +0 -43
  167. package/numerictextbox/interfaces/NumericTextBoxProps.d.ts +0 -188
  168. package/numerictextbox/interfaces/NumericTextBoxState.d.ts +0 -19
  169. package/numerictextbox/utils/index.d.ts +0 -123
  170. package/package-metadata.d.ts +0 -9
  171. package/radiobutton/RadioButton.d.ts +0 -27
  172. package/radiobutton/RadioGroup.d.ts +0 -27
  173. package/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +0 -11
  174. package/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +0 -15
  175. package/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +0 -11
  176. package/radiobutton/interfaces/RadioButtonProps.d.ts +0 -101
  177. package/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +0 -15
  178. package/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +0 -11
  179. package/radiobutton/interfaces/RadioGroupProps.d.ts +0 -90
  180. package/range-slider/RangeSlider.d.ts +0 -142
  181. package/range-slider/range-raducer.d.ts +0 -40
  182. package/rating/Rating.d.ts +0 -170
  183. package/rating/RatingItem.d.ts +0 -108
  184. package/rating/models/index.d.ts +0 -88
  185. package/rating/rating-reducer.d.ts +0 -36
  186. package/rating/utils/index.d.ts +0 -28
  187. package/signature/Signature.d.ts +0 -18
  188. package/signature/interfaces/SignatureBlurEvent.d.ts +0 -11
  189. package/signature/interfaces/SignatureChangeEvent.d.ts +0 -15
  190. package/signature/interfaces/SignatureCloseEvent.d.ts +0 -11
  191. package/signature/interfaces/SignatureFocusEvent.d.ts +0 -11
  192. package/signature/interfaces/SignatureHandle.d.ts +0 -46
  193. package/signature/interfaces/SignatureOpenEvent.d.ts +0 -11
  194. package/signature/interfaces/SignatureProps.d.ts +0 -198
  195. package/signature/interfaces/index.d.ts +0 -11
  196. package/signature/utils/index.d.ts +0 -8
  197. package/slider/Slider.d.ts +0 -197
  198. package/slider/SliderLabel.d.ts +0 -38
  199. package/switch/Switch.d.ts +0 -294
  200. package/textarea/TextArea.d.ts +0 -40
  201. package/textarea/interfaces/TextAreaBlurEvent.d.ts +0 -11
  202. package/textarea/interfaces/TextAreaChangeEvent.d.ts +0 -15
  203. package/textarea/interfaces/TextAreaFocusEvent.d.ts +0 -11
  204. package/textarea/interfaces/TextAreaProps.d.ts +0 -140
  205. package/textbox/Textbox.d.ts +0 -80
@@ -1,33 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- /**
7
- * @hidden
8
- */
9
- export interface HexInputProps {
10
- hex: string;
11
- onHexChange: any;
12
- disabled?: boolean;
13
- }
14
- /**
15
- * @hidden
16
- */
17
- export interface HexInputState {
18
- originalHex: string;
19
- hex: string;
20
- }
21
- /**
22
- * @hidden
23
- */
24
- export default class HexInput extends React.Component<HexInputProps, HexInputState> {
25
- constructor(props: HexInputProps);
26
- render(): import("react/jsx-runtime").JSX.Element;
27
- static getDerivedStateFromProps(props: HexInputProps, state: HexInputState): {
28
- hex: string;
29
- originalHex: string;
30
- } | null;
31
- private onChange;
32
- private onBlur;
33
- }
@@ -1,10 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { PickerProps } from './interfaces/PickerProps';
7
- /**
8
- * @hidden
9
- */
10
- export declare const Picker: React.FunctionComponent<PickerProps>;
@@ -1,15 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { BaseEvent } from '@progress/kendo-react-common';
6
- import { ColorGradient } from '../ColorGradient';
7
- /**
8
- * The arguments for the `onChange` ColorGradient event.
9
- */
10
- export interface ColorGradientChangeEvent extends BaseEvent<ColorGradient> {
11
- /**
12
- * The current value of the ColorGradient.
13
- */
14
- value: string;
15
- }
@@ -1,101 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { ColorGradientChangeEvent } from './ColorGradientChangeEvent';
6
- /**
7
- * Represents the props of the [KendoReact ColorGradient component]({% slug overview_colorgradient %}).
8
- */
9
- export interface ColorGradientProps {
10
- /**
11
- * The default value of the ColorGradient.
12
- */
13
- defaultValue?: string;
14
- /**
15
- * The value of the ColorGradient.
16
- */
17
- value?: string;
18
- /**
19
- * @hidden
20
- */
21
- role?: string;
22
- /**
23
- * Determines the event handler that will be fired when the user edits the value.
24
- */
25
- onChange?: (event: ColorGradientChangeEvent) => void;
26
- /**
27
- * Represents the focus event.
28
- */
29
- onFocus?: (event: any) => void;
30
- /**
31
- * Determines whether the alpha slider and the alpha input will be displayed. Defaults to `true`.
32
- */
33
- opacity?: boolean;
34
- /**
35
- * Enables the color contrast tool.
36
- * Sets the background color that will be compared to the selected value.
37
- * The tool will calculate the contrast ratio between two colors.
38
- * Currently, only the RGBA format is supported.
39
- */
40
- backgroundColor?: string;
41
- /**
42
- * Determines whether the ColorGradient is disabled
43
- * ([more information and example]({% slug disabled_colorgradient %})).
44
- *
45
- * @example
46
- * ```jsx
47
- * class App extends React.Component {
48
- * render() {
49
- * return (
50
- * <ColorGradient disabled={true} />
51
- * );
52
- * }
53
- * }
54
- * ReactDOM.render(<App />, document.querySelector('my-app'));
55
- * ```
56
- */
57
- disabled?: boolean;
58
- /**
59
- * The styles that are applied to the ColorGradient.
60
- */
61
- style?: React.CSSProperties;
62
- /**
63
- * Sets the `tabIndex` property of the ColorGradient.
64
- */
65
- tabIndex?: number;
66
- /**
67
- * Specifies the id of the component.
68
- */
69
- id?: string;
70
- /**
71
- * Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
72
- * For example these elements could contain error or hint message.
73
- */
74
- ariaDescribedBy?: string;
75
- /**
76
- * Represents the label of the `hsv` drag handle component used inside the ColorGradient.
77
- */
78
- ariaLabelHSV?: string;
79
- /**
80
- * Represent the label of the component.
81
- */
82
- ariaLabel?: string;
83
- /**
84
- * Identifies the element(s) which will label the component.
85
- */
86
- ariaLabelledBy?: string;
87
- /**
88
- * Represents the text rendered inside the `hsv` drag handle.
89
- */
90
- ariaValueText?: string;
91
- /**
92
- * Sets the default input format in the gradient input editor.
93
- *
94
- * @default 'rgb'
95
- */
96
- format?: 'rgba' | 'rgb' | 'hex';
97
- /**
98
- * Sets additional classes to the ColorGradient.
99
- */
100
- className?: string;
101
- }
@@ -1,19 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { BaseEvent } from '@progress/kendo-react-common';
6
- import { ColorPalette } from '../ColorPalette';
7
- /**
8
- * The arguments for the `onChange` ColorPalette event.
9
- */
10
- export interface ColorPaletteChangeEvent extends BaseEvent<ColorPalette> {
11
- /**
12
- * The current value of the ColorPalette.
13
- */
14
- value: string;
15
- /**
16
- * The current value of the ColorPalette in RGBA format.
17
- */
18
- rgbaValue: string;
19
- }
@@ -1,87 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { TileSize } from '../models/tile-size';
6
- import { ColorPaletteChangeEvent } from './ColorPaletteChangeEvent';
7
- /**
8
- * Represents the props of the [KendoReact ColorPalette component]({% slug overview_colorpalette %}).
9
- */
10
- export interface ColorPaletteProps {
11
- /**
12
- * The color palette that will be displayed.
13
- *
14
- * The supported values are:
15
- * * The name of the predefined palette preset (for example, `office`, `basic`, and `apex`).
16
- * * A string array.
17
- */
18
- palette?: string[] | string;
19
- /**
20
- * Specifies the number of columns that will be displayed.
21
- * Defaults to `10`.
22
- */
23
- columns?: number;
24
- /**
25
- * Specifies the size of a color cell in px.
26
- * Defaults to `24`.
27
- */
28
- tileSize?: number | TileSize;
29
- /**
30
- * The default value of the ColorPalette.
31
- */
32
- defaultValue?: string;
33
- /**
34
- * The value of the ColorPalette.
35
- */
36
- value?: string;
37
- /**
38
- * Determines whether the ColorPalette is disabled
39
- * ([more information and example]({% slug disabled_colorpalette %})).
40
- *
41
- * @example
42
- * ```jsx
43
- * class App extends React.Component {
44
- * render() {
45
- * return (
46
- * <ColorPalette disabled={true} />
47
- * );
48
- * }
49
- * }
50
- * ReactDOM.render(<App />, document.querySelector('my-app'));
51
- * ```
52
- */
53
- disabled?: boolean;
54
- /**
55
- * Sets the `tabIndex` property of the ColorPalette.
56
- */
57
- tabIndex?: number;
58
- /**
59
- * Specifies the id of the component.
60
- */
61
- id?: string;
62
- /**
63
- * Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
64
- * For example these elements could contain error or hint message.
65
- */
66
- ariaDescribedBy?: string;
67
- /**
68
- * Identifies the element(s) which will label the component.
69
- */
70
- ariaLabelledBy?: string;
71
- /**
72
- * @hidden
73
- */
74
- ariaDisabled?: boolean;
75
- /**
76
- * Determines the event handler that will be fired when the user edits the value.
77
- */
78
- onChange?: (event: ColorPaletteChangeEvent) => void;
79
- /**
80
- * Represent the focus event of the ColorPalette.
81
- */
82
- onFocus?: (event: FocusEvent) => void;
83
- /**
84
- * Sets additional classes to the ColorPalette.
85
- */
86
- className?: string;
87
- }
@@ -1,21 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * The arguments for the `onActiveColorClick` ColorPicker event.
7
- */
8
- export interface ColorPickerActiveColorClick {
9
- /**
10
- * The current value of the ColorPicker.
11
- */
12
- value: string;
13
- /**
14
- * A React Synthetic Event.
15
- */
16
- syntheticEvent: React.SyntheticEvent<any>;
17
- /**
18
- * A native DOM event.
19
- */
20
- nativeEvent: any;
21
- }
@@ -1,17 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * The arguments for the `onBlur` ColorPicker event.
7
- */
8
- export interface ColorPickerBlurEvent {
9
- /**
10
- * A React Synthetic Event.
11
- */
12
- syntheticEvent: React.SyntheticEvent<any>;
13
- /**
14
- * A native DOM event.
15
- */
16
- nativeEvent: any;
17
- }
@@ -1,21 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * The arguments for the `onChange` ColorPicker event.
7
- */
8
- export interface ColorPickerChangeEvent {
9
- /**
10
- * The current value of the ColorPicker.
11
- */
12
- value: string;
13
- /**
14
- * A React Synthetic Event.
15
- */
16
- syntheticEvent: React.SyntheticEvent<any>;
17
- /**
18
- * A native DOM event.
19
- */
20
- nativeEvent: any;
21
- }
@@ -1,17 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * The arguments for the `onFocus` ColorPicker event.
7
- */
8
- export interface ColorPickerFocusEvent {
9
- /**
10
- * A React Synthetic Event.
11
- */
12
- syntheticEvent: React.SyntheticEvent<any>;
13
- /**
14
- * A native DOM event.
15
- */
16
- nativeEvent: any;
17
- }
@@ -1,22 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * The settings of the ColorGradient that is nested inside the popup of the ColorPicker
7
- * ([see example]({% slug customizecolorpicker_colorpicker %}#toc-customizing-the-gradient-popup)).
8
- */
9
- export interface ColorPickerGradientSettings {
10
- /**
11
- * Specifies if the component will render an alpha slider.
12
- * Defaults to `true`.
13
- */
14
- opacity?: boolean;
15
- /**
16
- * Enables the color contrast tool.
17
- * Sets the background color that will be compared to the selected value.
18
- * The tool will calculate the contrast ratio between two colors.
19
- * Currently, only the RGBA format is supported.
20
- */
21
- backgroundColor?: string;
22
- }
@@ -1,36 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { TileSize } from '../models/tile-size';
6
- /**
7
- * The settings of the ColorPalette that is nested inside the popup of the ColorPicker
8
- * ([see example]({% slug customizecolorpicker_colorpicker %}#toc-customizing-the-palette-popup)).
9
- */
10
- export interface ColorPickerPaletteSettings {
11
- /**
12
- * Specifies the set of colors.
13
- * Provides a set of predefined palette presets (for example, `office`, `basic`, and `apex`)
14
- * and enables you to implement a custom color palette.
15
- * Defaults to the `office` preset.
16
- *
17
- * The supported values are:
18
- * * The name of the predefined palette preset (for example, `office`, `basic`, and `apex`).
19
- * * A string with comma-separated colors.
20
- * * A string array.
21
- */
22
- palette?: string | Array<string>;
23
- /**
24
- * Specifies the number of columns that will be displayed.
25
- * Defaults to `10`.
26
- */
27
- columns?: number;
28
- /**
29
- * Specifies the size of a color cell.
30
- *
31
- * The possible values are:
32
- * * (Default) `24`
33
- * * `{ width: number, height: number }`
34
- */
35
- tileSize?: number | TileSize;
36
- }
@@ -1,18 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PopupAnimation } from '@progress/kendo-react-popup';
6
- /**
7
- * The settings of the popup container of the ColorPicker.
8
- */
9
- export interface ColorPickerPopupSettings {
10
- /**
11
- * Controls the popup animation. By default, the open and close animations are enabled.
12
- */
13
- animate?: boolean | PopupAnimation;
14
- /**
15
- * Specifies a list of CSS classes that will be added to the Popup element.
16
- */
17
- className?: string | Array<string>;
18
- }
@@ -1,165 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { ColorPickerBlurEvent } from './ColorPickerBlurEvent';
6
- import { ColorPickerFocusEvent } from './ColorPickerFocusEvent';
7
- import { ColorPickerChangeEvent } from './ColorPickerChangeEvent';
8
- import { ColorPickerActiveColorClick } from './ColorPickerActiveColorClick';
9
- import { ColorPickerPopupSettings } from './ColorPickerPopupSettings';
10
- import { ColorPickerPaletteSettings } from './ColorPickerPaletteSettings';
11
- import { ColorPickerGradientSettings } from './ColorPickerGradientSettings';
12
- import { ColorPickerView } from './ColorPickerView';
13
- import { SVGIcon } from '@progress/kendo-react-common';
14
- /**
15
- * Represents the props of the [KendoReact ColorPicker component]({% slug overview_colorpicker %}).
16
- */
17
- export interface ColorPickerProps {
18
- /**
19
- * The default value of the ColorPicker
20
- * ([see example]({% slug default_value_colorpicker %})).
21
- */
22
- defaultValue?: string;
23
- /**
24
- * Specifies the value of the ColorPicker. Currently, only the RGBA format is supported.
25
- */
26
- value?: string;
27
- /**
28
- * Overrides the validity state of the component.
29
- * If `valid` is set, the `required` property will be ignored.
30
- *
31
- * This property is part of the [FormComponentProps]({% slug api_common_formcomponentprops %}) interface.
32
- */
33
- valid?: boolean;
34
- /**
35
- * Sets the disabled state of the ColorPicker
36
- * ([see example]({% slug disabled_colorpicker %})).
37
- */
38
- disabled?: boolean;
39
- /**
40
- * Sets the `tabIndex` property of the ColorPicker.
41
- * Defaults to `0`.
42
- */
43
- tabIndex?: number;
44
- /**
45
- * Sets the `title` property of the ColorPicker.
46
- */
47
- title?: string;
48
- /**
49
- * Sets the view which the ColorPicker will render in the popup
50
- * ([see example]({% slug combinedview_colorpicker %})).
51
- */
52
- view?: ColorPickerView;
53
- /**
54
- * Represents the `dir` HTML attribute.
55
- */
56
- dir?: string;
57
- /**
58
- * Defines the name of an [existing icon in the KendoReact theme]({% slug icons %}).
59
- * You have to provide only the name of the icon without the `k-icon` or the `k-i-` prefixes.
60
- * For example, `edit-tools` will be parsed to `k-icon k-i-edit-tools`
61
- * ([see example]({% slug customizecolorpicker_colorpicker %}#toc-displaying-kendo-ui-icons)).
62
- */
63
- icon?: string;
64
- /**
65
- * Defines the SVG icon.
66
- */
67
- svgIcon?: SVGIcon;
68
- /**
69
- * The class name which displays an icon in the ColorPicker button
70
- * ([see example]({% slug customizecolorpicker_colorpicker %}#toc-displaying-custom-icons)).
71
- */
72
- iconClassName?: string;
73
- /**
74
- * Configures the ColorGradient that is displayed in the ColorPicker popup
75
- * ([see example]({% slug customizecolorpicker_colorpicker %}#toc-customizing-the-gradient-popup)).
76
- */
77
- gradientSettings?: ColorPickerGradientSettings;
78
- /**
79
- * Configures the ColorPalette that is displayed in the ColorPicker popup
80
- * ([see example]({% slug customizecolorpicker_colorpicker %}#toc-customizing-the-palette-popup)).
81
- */
82
- paletteSettings?: ColorPickerPaletteSettings;
83
- /**
84
- * Configures the popup of the ColorPicker.
85
- */
86
- popupSettings?: ColorPickerPopupSettings;
87
- /**
88
- * Sets the open and close state of the ColorPicker.
89
- */
90
- open?: boolean;
91
- /**
92
- * Specifies the id of the component.
93
- */
94
- id?: string;
95
- /**
96
- * Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
97
- * For example these elements could contain error or hint message.
98
- */
99
- ariaDescribedBy?: string;
100
- /**
101
- * Identifies the element(s) which will label the component.
102
- */
103
- ariaLabelledBy?: string;
104
- /**
105
- * Represent the label of the component.
106
- */
107
- ariaLabel?: string;
108
- /**
109
- * The event handler that will be fired when the user edits the value.
110
- */
111
- onChange?: (event: ColorPickerChangeEvent) => void;
112
- /**
113
- * The event handler that will be fired when ColorPicker is focused.
114
- */
115
- onFocus?: (event: ColorPickerFocusEvent) => void;
116
- /**
117
- * The event handler that will be fired when ColorPicker is blurred.
118
- */
119
- onBlur?: (event: ColorPickerBlurEvent) => void;
120
- /**
121
- * The event handler that will be fired when the left side of the ColorPicker is clicked.
122
- */
123
- onActiveColorClick?: (event: ColorPickerActiveColorClick) => void;
124
- /**
125
- * Configures the `size` of the ColorPicker.
126
- *
127
- * The available options are:
128
- * - small
129
- * - medium
130
- * - large
131
- * - null&mdash;Does not set a size `className`.
132
- *
133
- * @default `medium`
134
- */
135
- size?: null | 'small' | 'medium' | 'large';
136
- /**
137
- * Configures the `roundness` of the ColorPicker.
138
- *
139
- * The available options are:
140
- * - small
141
- * - medium
142
- * - large
143
- * - full
144
- * - null&mdash;Does not set a rounded `className`.
145
- *
146
- * @default `medium`
147
- */
148
- rounded?: null | 'small' | 'medium' | 'large' | 'full';
149
- /**
150
- * Configures the `fillMode` of the ColorPicker.
151
- *
152
- * The available options are:
153
- * - solid
154
- * - outline
155
- * - flat
156
- * - null&mdash;Does not set a fillMode `className`.
157
- *
158
- * @default `solid`
159
- */
160
- fillMode?: null | 'solid' | 'flat' | 'outline';
161
- /**
162
- * Sets additional classes to the ColorPicker.
163
- */
164
- className?: string;
165
- }
@@ -1,14 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Specifies the view which the ColorPicker will render in the popup
7
- * ([see example]({% slug combinedview_colorpicker %})).
8
- *
9
- * The possible values are:
10
- * * (Default) `palette`
11
- * * `gradient`
12
- * * `combo`
13
- */
14
- export type ColorPickerView = 'gradient' | 'palette' | 'combo';
@@ -1,22 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PopupAnimation } from '@progress/kendo-react-popup';
6
- /**
7
- * @hidden
8
- */
9
- export interface PickerPopupSettings {
10
- /**
11
- * Controls the popup animation. By default, the open and close animations are enabled.
12
- */
13
- animate?: boolean | PopupAnimation;
14
- /**
15
- * Specifies a list of CSS classes that will be added to the Popup element.
16
- */
17
- className?: string | Array<string>;
18
- /**
19
- * The styles that are passed to the popup element.
20
- */
21
- style?: React.CSSProperties;
22
- }
@@ -1,46 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PickerPopupSettings } from './PickerPopupSettings';
6
- /**
7
- * @hidden
8
- */
9
- export interface PickerProps {
10
- /**
11
- * The popup settings.
12
- */
13
- popupSettings: PickerPopupSettings;
14
- /**
15
- * The rendered input element.
16
- */
17
- input?: any;
18
- /**
19
- * The rendered button element.
20
- */
21
- button?: any;
22
- /**
23
- * The content of the popup.
24
- */
25
- content?: any;
26
- /**
27
- * The `direction` CSS property of the popup content.
28
- */
29
- dir?: string;
30
- /**
31
- * The open state of the popup.
32
- */
33
- open: boolean;
34
- /**
35
- * Specifies the element which will be used as an anchor for the popup. The popup opens next to that element.
36
- */
37
- popupAnchor?: HTMLElement;
38
- /**
39
- * @hidden
40
- */
41
- onOpen?: () => void;
42
- /**
43
- * @hidden
44
- */
45
- onClose?: () => void;
46
- }