@progress/kendo-react-inputs 7.2.4-develop.2 → 7.2.4-develop.4

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,126 +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 { ToggleBaseProps } from '../../interfaces/ToggleBaseProps';
6
- import { FormComponentProps } from '@progress/kendo-react-common';
7
- import { CheckboxChangeEvent } from './CheckboxChangeEvent';
8
- import { CheckboxFocusEvent } from './CheckboxFocusEvent';
9
- import { CheckboxBlurEvent } from './CheckboxBlurEvent';
10
- /**
11
- * @hidden
12
- */
13
- type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
14
- /**
15
- * Represents the props of the [KendoReact Checkbox component]({% slug overview_checkbox %}).
16
- * Extends the [native input props](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement).
17
- */
18
- export interface CheckboxProps extends ToggleBaseProps, FormComponentProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'checked' | 'value' | 'size' | 'onChange' | 'onFocus' | 'onBlur'> {
19
- /**
20
- * Sets the checked state of the Checkbox.
21
- * Set to null to enable the indeterminate state of the Checkbox ([see example]({% slug overview_checkbox %})).
22
- */
23
- checked?: boolean | null;
24
- /**
25
- * If the type is different than boolean and the `checked` property is provided it's passed to the underlying `input` element.
26
- * If set to boolean and the `checked` property is omitted sets the checked state of the Checkbox.
27
- * Set null to enable the indeterminate state of the Checkbox ([see example]({% slug overview_checkbox %})).
28
- */
29
- value?: string | number | string[] | boolean | null;
30
- /**
31
- * Sets the `className` of the wrapping element of the Checkbox.
32
- */
33
- className?: string;
34
- /**
35
- * Sets the `className` of the label element of the Checkbox.
36
- */
37
- labelClassName?: string;
38
- /**
39
- * The React elements that are passed as children to the rendered component.
40
- */
41
- children?: any;
42
- /**
43
- * Sets the default value of checked attribute when used in uncontrolled mode ([see example]({% slug default_state %})).
44
- */
45
- defaultChecked?: boolean;
46
- /**
47
- * The default value of the Checkbox.
48
- */
49
- defaultValue?: any;
50
- /**
51
- * Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
52
- */
53
- dir?: string;
54
- /**
55
- * Sets the disabled state of the Checkbox
56
- * ([see example]({% slug disabled_checkbox %})).
57
- */
58
- disabled?: boolean;
59
- /**
60
- * Sets the `id` of the Checkbox.
61
- */
62
- id?: string;
63
- /**
64
- * Configures the `size` of the Checkbox.
65
- *
66
- * The available options are:
67
- * - small
68
- * - medium
69
- * - large
70
- * - null&mdash;Does not set a size `className`.
71
- *
72
- * @default `medium`
73
- */
74
- size?: null | 'small' | 'medium' | 'large';
75
- /**
76
- * Configures the `rounded` style of the Checkbox.
77
- *
78
- * The available options are:
79
- * - small
80
- * - medium
81
- * - large
82
- * - null&mdash;Does not set a rounded `className`.
83
- *
84
- * @default `medium`
85
- */
86
- rounded?: null | 'small' | 'medium' | 'large';
87
- /**
88
- * 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).
89
- * For example these elements could contain error or hint message.
90
- */
91
- ariaDescribedBy?: string;
92
- /**
93
- * Identifies the element(s) which will label the component.
94
- */
95
- ariaLabelledBy?: string;
96
- /**
97
- * Sets the label of the Checkbox component ([see example]({% slug labels_checkbox %})).
98
- */
99
- label?: string | HTMLElement;
100
- /**
101
- * Sets the label position of the Checkbox component ([see example]({% slug labels_checkbox %})).
102
- */
103
- labelPlacement?: 'before' | 'after';
104
- /**
105
- * Sets the optional text after the label of the Checkbox component.
106
- */
107
- labelOptional?: boolean;
108
- /**
109
- * Sets the `tabIndex` property of the Checkbox.
110
- * Defaults to `0`.
111
- */
112
- tabIndex?: number;
113
- /**
114
- * The event handler that will be fired when the user edits the value.
115
- */
116
- onChange?: (event: CheckboxChangeEvent) => void;
117
- /**
118
- * The event handler that will be fired when Checkbox is focused.
119
- */
120
- onFocus?: (event: CheckboxFocusEvent) => void;
121
- /**
122
- * The event handler that will be fired when Checkbox is blurred.
123
- */
124
- onBlur?: (event: CheckboxBlurEvent) => void;
125
- }
126
- export {};
@@ -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 * as React from 'react';
6
- import { RGBA } from './models/rgba';
7
- /**
8
- * @hidden
9
- */
10
- export interface ColorContrastLabelProps {
11
- bgColor: RGBA;
12
- rgba: RGBA;
13
- }
14
- /**
15
- * @hidden
16
- */
17
- export declare class ColorContrastLabels extends React.Component<ColorContrastLabelProps, {}> {
18
- render(): import("react/jsx-runtime").JSX.Element;
19
- }
@@ -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 * as React from 'react';
6
- import { HSVA } from './models/hsva';
7
- /**
8
- * @hidden
9
- */
10
- export interface ColorContrastSvgProps {
11
- metrics: ClientRect | undefined;
12
- backgroundColor: string;
13
- hsva: HSVA;
14
- }
15
- /**
16
- * @hidden
17
- */
18
- export declare class ColorContrastSvg extends React.Component<ColorContrastSvgProps> {
19
- renderSvgCurveLine(): string;
20
- shouldComponentUpdate(nextProps: ColorContrastSvgProps): boolean;
21
- render(): import("react/jsx-runtime").JSX.Element;
22
- }
@@ -1,191 +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 PropTypes from 'prop-types';
7
- import { DraggableDragEvent } from '@progress/kendo-react-common';
8
- import { SliderChangeEvent } from './../slider/Slider';
9
- import { NumericTextBoxChangeEvent } from './../numerictextbox/interfaces/NumericTextBoxChangeEvent';
10
- import { HSVA } from './models/hsva';
11
- import { RGBA } from './models/rgba';
12
- import { ColorGradientProps } from './interfaces/ColorGradientProps';
13
- /**
14
- * @hidden
15
- */
16
- export interface ColorGradientState {
17
- hsva: HSVA;
18
- backgroundColor: string;
19
- rgba: RGBA;
20
- hex: string;
21
- isFirstRender: boolean;
22
- guid: string;
23
- }
24
- /** @hidden */
25
- export declare class ColorGradientWithoutContext extends React.Component<ColorGradientProps, ColorGradientState> {
26
- static displayName: string;
27
- /**
28
- * @hidden
29
- */
30
- static propTypes: {
31
- defaultValue: PropTypes.Requireable<string>;
32
- value: PropTypes.Requireable<string>;
33
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
34
- onFocus: PropTypes.Requireable<(...args: any[]) => any>;
35
- opacity: PropTypes.Requireable<boolean>;
36
- backgroundColor: PropTypes.Requireable<string>;
37
- format: PropTypes.Requireable<any>;
38
- disabled: PropTypes.Requireable<boolean>;
39
- style: PropTypes.Requireable<any>;
40
- id: PropTypes.Requireable<string>;
41
- role: PropTypes.Requireable<string>;
42
- ariaLabel: PropTypes.Requireable<string>;
43
- ariaLabelledBy: PropTypes.Requireable<string>;
44
- ariaDescribedBy: PropTypes.Requireable<string>;
45
- className: PropTypes.Requireable<string>;
46
- };
47
- /**
48
- * @hidden
49
- */
50
- static defaultProps: {
51
- opacity: boolean;
52
- role: string;
53
- format: "hex" | "rgba" | "rgb";
54
- };
55
- /**
56
- * @hidden
57
- */
58
- wrapper: HTMLDivElement | null;
59
- private gradientWrapper;
60
- private alphaSlider;
61
- constructor(props: ColorGradientProps);
62
- /**
63
- * @hidden
64
- */
65
- static getDerivedStateFromProps(props: ColorGradientProps, state: ColorGradientState): {
66
- hsva: any;
67
- backgroundColor: string;
68
- rgba: any;
69
- hex: any;
70
- } | null;
71
- /**
72
- * @hidden
73
- */
74
- componentDidMount(): void;
75
- /**
76
- * @hidden
77
- */
78
- componentWillUnmount(): void;
79
- /**
80
- * @hidden
81
- */
82
- componentDidUpdate(_: ColorGradientProps, prevState: ColorGradientState): void;
83
- /**
84
- * @hidden
85
- */
86
- onHexChange: (hex: string, value: string, event: any) => void;
87
- /**
88
- * @hidden
89
- */
90
- onRgbaChange: (rgba: RGBA, event: NumericTextBoxChangeEvent) => void;
91
- /**
92
- * @hidden
93
- */
94
- onAlphaSliderChange: (event: SliderChangeEvent) => void;
95
- /**
96
- * @hidden
97
- */
98
- onHueSliderChange: (event: SliderChangeEvent) => void;
99
- /**
100
- * @hidden
101
- */
102
- onDrag: (e: DraggableDragEvent) => void;
103
- /**
104
- * @hidden
105
- */
106
- onRelease: () => void;
107
- /**
108
- * @hidden
109
- */
110
- onGradientWrapperClick: (event: React.MouseEvent<HTMLDivElement>) => void;
111
- /**
112
- * @hidden
113
- */
114
- renderRectangleDragHandle(): import("react/jsx-runtime").JSX.Element;
115
- /**
116
- * @hidden
117
- */
118
- changePosition: (event: any) => void;
119
- /**
120
- * @hidden
121
- */
122
- handleHsvaChange(hsva: HSVA, syntheticEvent: React.SyntheticEvent<any>, nativeEvent: any): void;
123
- /**
124
- * @hidden
125
- */
126
- dispatchChangeEvent(value: string, syntheticEvent: React.SyntheticEvent<any>, nativeEvent: any): void;
127
- /**
128
- * @hidden
129
- */
130
- onFocus: (nativeEvent: any) => void;
131
- /**
132
- * @hidden
133
- */
134
- static getStateFromValue(value: string, componentGuid?: string): {
135
- hsva: any;
136
- backgroundColor: string;
137
- rgba: any;
138
- hex: any;
139
- };
140
- /**
141
- * @hidden
142
- */
143
- setAlphaSliderBackground(backgroundColor: string): void;
144
- /**
145
- * @hidden
146
- */
147
- get isUncontrolled(): boolean;
148
- /**
149
- * @hidden
150
- */
151
- getGradientRectMetrics(): ClientRect;
152
- /**
153
- * @hidden
154
- */
155
- focus: () => void;
156
- /**
157
- * @hidden
158
- */
159
- render(): import("react/jsx-runtime").JSX.Element;
160
- }
161
- /**
162
- * Represents the PropsContext of the `ColorGradient` component.
163
- * Used for global configuration of all `ColorGradient` instances.
164
- *
165
- * For more information, refer to the [Inputs Props Context]({% slug props-context_inputs %}) article.
166
- */
167
- export declare const ColorGradientPropsContext: React.Context<(p: ColorGradientProps) => ColorGradientProps>;
168
- /**
169
- * Represent the `ref` of the ColorGradient component.
170
- */
171
- export interface ColorGradientHandle extends Pick<ColorGradientWithoutContext, keyof ColorGradientWithoutContext> {
172
- }
173
- /** @hidden */
174
- export type ColorGradient = ColorGradientHandle;
175
- /**
176
- * Represents the [KendoReact ColorGradient component]({% slug overview_colorgradient %}).
177
- *
178
- * Accepts properties of type [ColorGradientProps]({% slug api_inputs_colorgradientprops %}).
179
- * Obtaining the `ref` returns an object of type [ColorGradientHandle]({% slug api_inputs_colorgradienthandle %}).
180
- *
181
- * @example
182
- * ```jsx
183
- * class App extends React.Component {
184
- * render() {
185
- * return <ColorGradient />;
186
- * }
187
- * }
188
- * ReactDOM.render(<App />, document.querySelector('my-app'));
189
- * ```
190
- */
191
- export declare const ColorGradient: React.ForwardRefExoticComponent<ColorGradientProps & React.RefAttributes<any>>;
@@ -1,34 +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 { NumericTextBoxChangeEvent } from '../numerictextbox/interfaces/NumericTextBoxChangeEvent';
7
- import { RGBA } from './models/rgba';
8
- /**
9
- * @hidden
10
- */
11
- export interface ColorInputProps {
12
- rgba: RGBA;
13
- onRgbaChange: (rgba: RGBA, event: NumericTextBoxChangeEvent) => void;
14
- hex: string;
15
- onHexChange: any;
16
- opacity: boolean;
17
- disabled?: boolean;
18
- defaultInputMode?: 'rgba' | 'rgb' | 'hex';
19
- }
20
- /**
21
- * @hidden
22
- */
23
- export default class ColorInput extends React.Component<ColorInputProps, {
24
- inputMode: string;
25
- }> {
26
- constructor(props: ColorInputProps);
27
- render(): import("react/jsx-runtime").JSX.Element;
28
- private onRgbaRChange;
29
- private onRgbaGChange;
30
- private onRgbaBChange;
31
- private onRgbaAChange;
32
- private dispatchRgbaChange;
33
- private onToggleModeChange;
34
- }
@@ -1,127 +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 PropTypes from 'prop-types';
7
- import { ColorPaletteProps } from './interfaces/ColorPaletteProps';
8
- /**
9
- * @hidden
10
- */
11
- export declare const DEFAULT_TILE_SIZE = 24;
12
- /**
13
- * @hidden
14
- */
15
- export declare const DEFAULT_COLUMNS_COUNT = 10;
16
- /**
17
- * @hidden
18
- */
19
- export declare const DEFAULT_PRESET = "office";
20
- /**
21
- * @hidden
22
- */
23
- export interface ColorPaletteState {
24
- selectedColor?: string;
25
- focusedColor?: string;
26
- isFirstRender: boolean;
27
- }
28
- /** @hidden */
29
- export declare class ColorPaletteWithoutContext extends React.Component<ColorPaletteProps, ColorPaletteState> {
30
- static displayName: string;
31
- /**
32
- * @hidden
33
- */
34
- static propTypes: {
35
- palette: PropTypes.Requireable<NonNullable<string | string[] | null | undefined>>;
36
- columns: PropTypes.Requireable<number>;
37
- tileSize: PropTypes.Requireable<any>;
38
- defaultValue: PropTypes.Requireable<string>;
39
- value: PropTypes.Requireable<string>;
40
- disabled: PropTypes.Requireable<boolean>;
41
- tabIndex: PropTypes.Requireable<number>;
42
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
43
- onFocus: PropTypes.Requireable<(...args: any[]) => any>;
44
- id: PropTypes.Requireable<string>;
45
- ariaLabelledBy: PropTypes.Requireable<string>;
46
- ariaDescribedBy: PropTypes.Requireable<string>;
47
- className: PropTypes.Requireable<string>;
48
- };
49
- /**
50
- * @hidden
51
- */
52
- static defaultProps: {
53
- palette: string;
54
- tileSize: number;
55
- };
56
- /**
57
- * @hidden
58
- */
59
- wrapper: HTMLDivElement | null;
60
- private paletteService;
61
- private get guid();
62
- constructor(props: ColorPaletteProps);
63
- /**
64
- * @hidden
65
- */
66
- focus: () => void;
67
- /**
68
- * @hidden
69
- */
70
- render(): "" | import("react/jsx-runtime").JSX.Element;
71
- /**
72
- * @hidden
73
- */
74
- static getDerivedStateFromProps(props: ColorPaletteProps, state: ColorPaletteState): {
75
- selectedColor: undefined;
76
- isFirstRender?: undefined;
77
- } | {
78
- selectedColor: string;
79
- isFirstRender?: undefined;
80
- } | {
81
- isFirstRender: boolean;
82
- selectedColor?: undefined;
83
- } | null;
84
- private onKeyDown;
85
- private onColorClick;
86
- private onFocus;
87
- private onBlur;
88
- private handleCellNavigation;
89
- private handleEnter;
90
- private dispatchChangeEvent;
91
- private get focusedColorCooridanates();
92
- private get isUncontrolled();
93
- private getPaletteInfo;
94
- private renderRows;
95
- private renderColumns;
96
- private createCellId;
97
- }
98
- /**
99
- * Represents the PropsContext of the `ColorPalette` component.
100
- * Used for global configuration of all `ColorPalette` instances.
101
- *
102
- * For more information, refer to the [Inputs Props Context]({% slug props-context_inputs %}) article.
103
- */
104
- export declare const ColorPalettePropsContext: React.Context<(p: ColorPaletteProps) => ColorPaletteProps>;
105
- /**
106
- * Represent the `ref` of the ColorPalette component.
107
- */
108
- export interface ColorPaletteHandle extends Pick<ColorPaletteWithoutContext, keyof ColorPaletteWithoutContext> {
109
- }
110
- /** @hidden */
111
- export type ColorPalette = ColorPaletteHandle;
112
- /**
113
- * Represents the [KendoReact ColorPalette component]({% slug overview_colorpalette %}).
114
- *
115
- * Accepts properties of type [ColorPaletteProps]({% slug api_inputs_colorpaletteprops %}).
116
- * Obtaining the `ref` returns an object of type [ColorPaletteHandle]({% slug api_inputs_colorpalettehandle %}).
117
- *
118
- * ```jsx
119
- * class App extends React.Component {
120
- * render() {
121
- * return <ColorPalette palette='basic' />;
122
- * }
123
- * }
124
- * ReactDOM.render(<App />, document.querySelector('my-app'));
125
- * ```
126
- */
127
- export declare const ColorPalette: React.ForwardRefExoticComponent<ColorPaletteProps & React.RefAttributes<any>>;
@@ -1,34 +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 { ColorPickerProps } from './interfaces/ColorPickerProps';
7
- /**
8
- * @hidden
9
- */
10
- export interface ColorPickerHandle {
11
- element: HTMLSpanElement | null;
12
- value?: string;
13
- }
14
- /**
15
- * Represents the PropsContext of the `ColorPicker` component.
16
- * Used for global configuration of all `ColorPicker` instances.
17
- *
18
- * For more information, refer to the [Inputs Props Context]({% slug props-context_inputs %}) article.
19
- */
20
- export declare const ColorPickerPropsContext: React.Context<(p: ColorPickerProps) => ColorPickerProps>;
21
- /**
22
- * Represents the [KendoReact ColorPicker component]({% slug overview_colorpicker %}).
23
- *
24
- * @example
25
- * ```jsx
26
- * class App extends React.Component {
27
- * render() {
28
- * return <ColorPicker />;
29
- * }
30
- * }
31
- * ReactDOM.render(<App />, document.querySelector('my-app'));
32
- * ```
33
- */
34
- export declare const ColorPicker: React.ForwardRefExoticComponent<ColorPickerProps & React.RefAttributes<ColorPickerHandle | null>>;
@@ -1,139 +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
- * The arguments for the `onChange` FlatColorPicker event.
8
- */
9
- export interface FlatColorPickerChangeEvent {
10
- /**
11
- * The current value of the FlatColorPicker.
12
- */
13
- value: string;
14
- /**
15
- * A React Synthetic Event.
16
- */
17
- syntheticEvent: React.SyntheticEvent<any>;
18
- /**
19
- * A native DOM event.
20
- */
21
- nativeEvent: any;
22
- }
23
- /**
24
- * Represents the properties of [FlatColorPicker]({% slug api_inputs_flatcolorpicker %}) component.
25
- */
26
- export interface FlatColorPickerProps {
27
- /**
28
- * Sets the `id` property of the top `div` element of the FlatColorPicker.
29
- */
30
- id?: string;
31
- /**
32
- * Sets additional CSS styles to the FlatColorPicker.
33
- */
34
- style?: React.CSSProperties;
35
- /**
36
- * Sets additional classes to the FlatColorPicker.
37
- */
38
- className?: string;
39
- /**
40
- * Sets the color value.
41
- */
42
- value?: string;
43
- /**
44
- * Sets the default color value.
45
- */
46
- defaultValue?: string;
47
- /**
48
- * The event handler that will be fired when the user changes the preview color.
49
- */
50
- onPreviewChange?: (event: FlatColorPickerChangeEvent) => void;
51
- /**
52
- * The event handler that will be fired when the user click the "Apply" button or on blur when the "Apply" button is not present.
53
- */
54
- onChange?: (event: FlatColorPickerChangeEvent) => void;
55
- /**
56
- * Specifies whether we should display the opacity slider to allow selection of transparency.
57
- *
58
- * @default true
59
- */
60
- opacity?: boolean;
61
- /**
62
- * Sets the default input format in the gradient input editor.
63
- *
64
- * @default 'rgb'
65
- */
66
- format?: 'hex' | 'rgba' | 'rgb';
67
- /**
68
- * Sets the `tabIndex` property of the FlatColorPicker.
69
- */
70
- tabIndex?: number;
71
- /**
72
- * Represents the label of the FlatColorPicker component.
73
- */
74
- ariaLabel?: string;
75
- /**
76
- * Identifies the element(s) which will label the component.
77
- */
78
- ariaLabelledBy?: string;
79
- /**
80
- * Determines whether the FlatColorPicker is disabled.
81
- */
82
- disabled?: boolean;
83
- /**
84
- * Sets the FlatColorPicker view. The default is `ColorGradient`.
85
- */
86
- view?: 'ColorGradient' | 'ColorPalette' | undefined;
87
- /**
88
- * Sets custom header component.
89
- */
90
- header?: React.ComponentType;
91
- /**
92
- * Specifies whether clear button will be rendered in the header.
93
- */
94
- showClearButton?: boolean;
95
- /**
96
- * Specifies whether preview and revert color boxes will be rendered in the header.
97
- */
98
- showPreview?: boolean;
99
- /**
100
- * Specifies whether action buttons will be rendered in the footer.
101
- */
102
- showButtons?: boolean;
103
- }
104
- /**
105
- * Represents the target (element and props) of the FlatColorPicker.
106
- */
107
- export interface FlatColorPickerHandle {
108
- /**
109
- * The current element or `null` if there is none.
110
- */
111
- element: HTMLDivElement | null;
112
- /**
113
- * The props values of the FlatColorPicker.
114
- */
115
- props: FlatColorPickerProps;
116
- /**
117
- * The focus event callback.
118
- */
119
- focus: () => void;
120
- /**
121
- * The current value of the FlatColorPicker.
122
- */
123
- value: string;
124
- }
125
- /**
126
- * Represents the [KendoReact FlatColorPicker component]({% slug overview_flatcolorpicker %}).
127
- * Accepts properties of type [FlatColorPickerProps]({% slug api_inputs_flatcolorpickerprops %}). Obtaining the [FlatColorPickerHandle]({% slug api_inputs_flatcolorpickerhandle %}).
128
- *
129
- * @example
130
- * ```jsx
131
- * class App extends React.Component {
132
- * render() {
133
- * return <FlatColorPicker />;
134
- * }
135
- * }
136
- * ReactDOM.render(<App />, document.querySelector('my-app'));
137
- * ```
138
- */
139
- export declare const FlatColorPicker: React.ForwardRefExoticComponent<FlatColorPickerProps & React.RefAttributes<FlatColorPickerHandle | null>>;