@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.
- package/checkbox/Checkbox.d.ts +49 -0
- package/checkbox/Checkbox.js +1 -1
- package/checkbox/Checkbox.mjs +35 -36
- package/checkbox/interfaces/CheckboxBlurEvent.d.ts +14 -0
- package/checkbox/interfaces/CheckboxChangeEvent.d.ts +18 -0
- package/checkbox/interfaces/CheckboxFocusEvent.d.ts +14 -0
- package/checkbox/interfaces/CheckboxProps.d.ts +148 -0
- package/colors/ColorContrastLabels.d.ts +22 -0
- package/colors/ColorContrastSvg.d.ts +25 -0
- package/colors/ColorGradient.d.ts +215 -0
- package/colors/ColorGradient.js +1 -1
- package/colors/ColorGradient.mjs +20 -19
- package/colors/ColorInput.d.ts +40 -0
- package/colors/ColorInput.js +1 -1
- package/colors/ColorInput.mjs +20 -16
- package/colors/ColorPalette.d.ts +129 -0
- package/colors/ColorPalette.js +1 -1
- package/colors/ColorPalette.mjs +7 -7
- package/colors/ColorPicker.d.ts +34 -0
- package/colors/ColorPicker.js +1 -1
- package/colors/ColorPicker.mjs +96 -94
- package/colors/FlatColorPicker.d.ts +189 -0
- package/colors/FlatColorPicker.js +1 -1
- package/colors/FlatColorPicker.mjs +41 -40
- package/colors/HexInput.d.ts +39 -0
- package/colors/HexInput.js +1 -1
- package/colors/HexInput.mjs +2 -1
- package/colors/Picker.d.ts +13 -0
- package/colors/interfaces/ColorGradientChangeEvent.d.ts +18 -0
- package/colors/interfaces/ColorGradientProps.d.ts +160 -0
- package/colors/interfaces/ColorPaletteChangeEvent.d.ts +22 -0
- package/colors/interfaces/ColorPaletteProps.d.ts +116 -0
- package/colors/interfaces/ColorPickerActiveColorClick.d.ts +29 -0
- package/colors/interfaces/ColorPickerBlurEvent.d.ts +20 -0
- package/colors/interfaces/ColorPickerChangeEvent.d.ts +29 -0
- package/colors/interfaces/ColorPickerFocusEvent.d.ts +20 -0
- package/colors/interfaces/ColorPickerGradientSettings.d.ts +29 -0
- package/colors/interfaces/ColorPickerPaletteSettings.d.ts +39 -0
- package/colors/interfaces/ColorPickerPopupSettings.d.ts +21 -0
- package/colors/interfaces/ColorPickerProps.d.ts +242 -0
- package/colors/interfaces/ColorPickerView.d.ts +17 -0
- package/colors/interfaces/PickerPopupSettings.d.ts +29 -0
- package/colors/interfaces/PickerProps.d.ts +57 -0
- package/colors/models/hsva.d.ts +16 -0
- package/colors/models/output-format.d.ts +11 -0
- package/colors/models/palette-presets.d.ts +60 -0
- package/colors/models/rgb.d.ts +15 -0
- package/colors/models/rgba.d.ts +16 -0
- package/colors/models/table-cell.d.ts +14 -0
- package/colors/models/tile-size.d.ts +18 -0
- package/colors/utils/color-cache.d.ts +37 -0
- package/colors/utils/color-palette.service.d.ts +19 -0
- package/colors/utils/color-parser.d.ts +72 -0
- package/colors/utils/color-parser.js +1 -1
- package/colors/utils/color-parser.mjs +1 -1
- package/colors/utils/misc.d.ts +23 -0
- package/colors/utils/svg-calc.d.ts +69 -0
- package/common/AdaptiveMode.d.ts +21 -0
- package/common/SliderTooltip.d.ts +25 -0
- package/common/SwitchController.d.ts +38 -0
- package/common/SwitchModel.d.ts +14 -0
- package/dist/cdn/js/kendo-react-inputs.js +1 -1
- package/index.d.mts +72 -5128
- package/index.d.ts +72 -5128
- package/input/Input.d.ts +119 -0
- package/input/Input.js +1 -1
- package/input/Input.mjs +45 -43
- package/input/InputClearValue.d.ts +28 -0
- package/input/InputPrefix.d.ts +30 -0
- package/input/InputSeparator.d.ts +30 -0
- package/input/InputSuffix.d.ts +32 -0
- package/input/InputValidationIcon.d.ts +21 -0
- package/input/interfaces/InputChangeEvent.d.ts +18 -0
- package/interfaces/Direction.d.ts +8 -0
- package/interfaces/ToggleBaseProps.d.ts +24 -0
- package/maskedtextbox/MaskedTextBox.d.ts +224 -0
- package/maskedtextbox/MaskedTextBox.js +1 -1
- package/maskedtextbox/MaskedTextBox.mjs +80 -79
- package/maskedtextbox/MaskedTextBoxProps.d.ts +273 -0
- package/maskedtextbox/masking.service.d.ts +48 -0
- package/maskedtextbox/masking.service.mjs +9 -9
- package/maskedtextbox/parsing/combinators.d.ts +16 -0
- package/maskedtextbox/parsing/parsers.d.ts +54 -0
- package/maskedtextbox/parsing/result.d.ts +30 -0
- package/maskedtextbox/parsing/stream.d.ts +29 -0
- package/maskedtextbox/utils.d.ts +23 -0
- package/messages/index.d.ts +177 -0
- package/numerictextbox/NumericTextBox.d.ts +21 -0
- package/numerictextbox/NumericTextBox.js +1 -1
- package/numerictextbox/NumericTextBox.mjs +161 -161
- package/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +14 -0
- package/numerictextbox/interfaces/NumericTextBoxChangeEvent.d.ts +18 -0
- package/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +14 -0
- package/numerictextbox/interfaces/NumericTextBoxHandle.d.ts +46 -0
- package/numerictextbox/interfaces/NumericTextBoxProps.d.ts +212 -0
- package/numerictextbox/interfaces/NumericTextBoxState.d.ts +22 -0
- package/numerictextbox/utils/index.d.ts +126 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +10 -10
- package/radiobutton/RadioButton.d.ts +36 -0
- package/radiobutton/RadioButton.js +1 -1
- package/radiobutton/RadioButton.mjs +8 -8
- package/radiobutton/RadioGroup.d.ts +36 -0
- package/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +14 -0
- package/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +18 -0
- package/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +14 -0
- package/radiobutton/interfaces/RadioButtonProps.d.ts +107 -0
- package/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +18 -0
- package/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +14 -0
- package/radiobutton/interfaces/RadioGroupProps.d.ts +178 -0
- package/range-slider/RangeSlider.d.ts +152 -0
- package/range-slider/range-raducer.d.ts +46 -0
- package/rating/Rating.d.ts +302 -0
- package/rating/Rating.mjs +3 -3
- package/rating/RatingItem.d.ts +111 -0
- package/rating/models/index.d.ts +91 -0
- package/rating/rating-reducer.d.ts +39 -0
- package/rating/utils/index.d.ts +31 -0
- package/signature/Signature.d.ts +21 -0
- package/signature/Signature.js +1 -1
- package/signature/Signature.mjs +26 -23
- package/signature/interfaces/SignatureBlurEvent.d.ts +14 -0
- package/signature/interfaces/SignatureChangeEvent.d.ts +18 -0
- package/signature/interfaces/SignatureCloseEvent.d.ts +14 -0
- package/signature/interfaces/SignatureFocusEvent.d.ts +14 -0
- package/signature/interfaces/SignatureHandle.d.ts +49 -0
- package/signature/interfaces/SignatureOpenEvent.d.ts +14 -0
- package/signature/interfaces/SignatureProps.d.ts +324 -0
- package/signature/interfaces/index.d.ts +14 -0
- package/signature/utils/index.d.ts +11 -0
- package/slider/Slider.d.ts +288 -0
- package/slider/Slider.mjs +9 -9
- package/slider/SliderLabel.d.ts +51 -0
- package/switch/Switch.d.ts +397 -0
- package/switch/Switch.js +1 -1
- package/switch/Switch.mjs +29 -22
- package/textarea/TextArea.d.ts +40 -0
- package/textarea/TextArea.js +1 -1
- package/textarea/TextArea.mjs +41 -41
- package/textarea/interfaces/TextAreaBlurEvent.d.ts +14 -0
- package/textarea/interfaces/TextAreaChangeEvent.d.ts +18 -0
- package/textarea/interfaces/TextAreaFocusEvent.d.ts +14 -0
- package/textarea/interfaces/TextAreaProps.d.ts +199 -0
- package/textbox/Textbox.d.ts +99 -0
- package/textbox/Textbox.js +1 -1
- package/textbox/Textbox.mjs +70 -66
- package/utils.d.ts +11 -0
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
* The arguments for the `onBlur` ColorPicker event.
|
|
10
|
+
*/
|
|
11
|
+
export interface ColorPickerBlurEvent {
|
|
12
|
+
/**
|
|
13
|
+
* A React Synthetic Event.
|
|
14
|
+
*/
|
|
15
|
+
syntheticEvent: React.SyntheticEvent<any>;
|
|
16
|
+
/**
|
|
17
|
+
* A native DOM event.
|
|
18
|
+
*/
|
|
19
|
+
nativeEvent: any;
|
|
20
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
import { ColorPickerHandle } from '../ColorPicker.js';
|
|
9
|
+
/**
|
|
10
|
+
* The arguments for the `onChange` ColorPicker event.
|
|
11
|
+
*/
|
|
12
|
+
export interface ColorPickerChangeEvent {
|
|
13
|
+
/**
|
|
14
|
+
* The current value of the ColorPicker.
|
|
15
|
+
*/
|
|
16
|
+
value: string;
|
|
17
|
+
/**
|
|
18
|
+
* A React Synthetic Event.
|
|
19
|
+
*/
|
|
20
|
+
syntheticEvent: React.SyntheticEvent<any>;
|
|
21
|
+
/**
|
|
22
|
+
* A native DOM event.
|
|
23
|
+
*/
|
|
24
|
+
nativeEvent: any;
|
|
25
|
+
/**
|
|
26
|
+
* The event target.
|
|
27
|
+
*/
|
|
28
|
+
target: ColorPickerHandle;
|
|
29
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
* The arguments for the `onFocus` ColorPicker event.
|
|
10
|
+
*/
|
|
11
|
+
export interface ColorPickerFocusEvent {
|
|
12
|
+
/**
|
|
13
|
+
* A React Synthetic Event.
|
|
14
|
+
*/
|
|
15
|
+
syntheticEvent: React.SyntheticEvent<any>;
|
|
16
|
+
/**
|
|
17
|
+
* A native DOM event.
|
|
18
|
+
*/
|
|
19
|
+
nativeEvent: any;
|
|
20
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
* The settings of the ColorGradient that is nested inside the popup of the ColorPicker
|
|
10
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/inputs/colorpicker/custom#toc-customizing-the-gradient-popup)).
|
|
11
|
+
*/
|
|
12
|
+
export interface ColorPickerGradientSettings {
|
|
13
|
+
/**
|
|
14
|
+
* Specifies if the component will render an alpha slider.
|
|
15
|
+
* Defaults to `true`.
|
|
16
|
+
*/
|
|
17
|
+
opacity?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Enables the color contrast tool.
|
|
20
|
+
* Sets the background color that will be compared to the selected value.
|
|
21
|
+
* The tool will calculate the contrast ratio between two colors.
|
|
22
|
+
* Currently, only the RGBA format is supported.
|
|
23
|
+
*/
|
|
24
|
+
backgroundColor?: string;
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
_adaptive?: boolean;
|
|
29
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
import { TileSize } from '../models/tile-size.js';
|
|
9
|
+
/**
|
|
10
|
+
* The settings of the ColorPalette that is nested inside the popup of the ColorPicker
|
|
11
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/inputs/colorpicker/custom#toc-customizing-the-palette-popup)).
|
|
12
|
+
*/
|
|
13
|
+
export interface ColorPickerPaletteSettings {
|
|
14
|
+
/**
|
|
15
|
+
* Specifies the set of colors.
|
|
16
|
+
* Provides a set of predefined palette presets (for example, `office`, `basic`, and `apex`)
|
|
17
|
+
* and enables you to implement a custom color palette.
|
|
18
|
+
* Defaults to the `office` preset.
|
|
19
|
+
*
|
|
20
|
+
* The supported values are:
|
|
21
|
+
* * The name of the predefined palette preset (for example, `office`, `basic`, and `apex`).
|
|
22
|
+
* * A string with comma-separated colors.
|
|
23
|
+
* * A string array.
|
|
24
|
+
*/
|
|
25
|
+
palette?: string | Array<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Specifies the number of columns that will be displayed.
|
|
28
|
+
* Defaults to `10`.
|
|
29
|
+
*/
|
|
30
|
+
columns?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Specifies the size of a color cell.
|
|
33
|
+
*
|
|
34
|
+
* The possible values are:
|
|
35
|
+
* * (Default) `24`
|
|
36
|
+
* * `{ width: number, height: number }`
|
|
37
|
+
*/
|
|
38
|
+
tileSize?: number | TileSize;
|
|
39
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
import { PopupAnimation } from '@progress/kendo-react-popup';
|
|
9
|
+
/**
|
|
10
|
+
* The settings of the popup container of the ColorPicker.
|
|
11
|
+
*/
|
|
12
|
+
export interface ColorPickerPopupSettings {
|
|
13
|
+
/**
|
|
14
|
+
* Controls the popup animation. By default, the open and close animations are enabled.
|
|
15
|
+
*/
|
|
16
|
+
animate?: boolean | PopupAnimation;
|
|
17
|
+
/**
|
|
18
|
+
* Specifies a list of CSS classes that will be added to the Popup element.
|
|
19
|
+
*/
|
|
20
|
+
className?: string | Array<string>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
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
|
+
import { ColorPickerBlurEvent } from './ColorPickerBlurEvent.js';
|
|
9
|
+
import { ColorPickerFocusEvent } from './ColorPickerFocusEvent.js';
|
|
10
|
+
import { ColorPickerChangeEvent } from './ColorPickerChangeEvent.js';
|
|
11
|
+
import { ColorPickerActiveColorClick } from './ColorPickerActiveColorClick.js';
|
|
12
|
+
import { ColorPickerPopupSettings } from './ColorPickerPopupSettings.js';
|
|
13
|
+
import { ColorPickerPaletteSettings } from './ColorPickerPaletteSettings.js';
|
|
14
|
+
import { ColorPickerGradientSettings } from './ColorPickerGradientSettings.js';
|
|
15
|
+
import { ColorPickerView } from './ColorPickerView.js';
|
|
16
|
+
import { SVGIcon } from '@progress/kendo-react-common';
|
|
17
|
+
import { FlatColorPickerProps } from '../FlatColorPicker.js';
|
|
18
|
+
/**
|
|
19
|
+
* Represents the props of the [KendoReact ColorPicker component](https://www.telerik.com/kendo-react-ui/components/inputs/colorpicker).
|
|
20
|
+
*/
|
|
21
|
+
export interface ColorPickerProps {
|
|
22
|
+
/**
|
|
23
|
+
* The default value of the ColorPicker
|
|
24
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/inputs/colorpicker/default-value)).
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```jsx
|
|
28
|
+
* <ColorPicker defaultValue="#ff0000" />
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
defaultValue?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Specifies the value of the ColorPicker. Currently, only the RGBA format is supported.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```jsx
|
|
37
|
+
* <ColorPicker value="rgba(255, 0, 0, 1)" />
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
value?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Overrides the validity state of the component.
|
|
43
|
+
* If `valid` is set, the `required` property will be ignored.
|
|
44
|
+
*
|
|
45
|
+
* This property is part of the [FormComponentProps](https://www.telerik.com/kendo-react-ui/components/common/api/formcomponentprops) interface.
|
|
46
|
+
*/
|
|
47
|
+
valid?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Sets the disabled state of the ColorPicker
|
|
50
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/inputs/colorpicker/disabled)).
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```jsx
|
|
54
|
+
* <ColorPicker disabled={true} />
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Sets the `tabIndex` property of the ColorPicker.
|
|
60
|
+
* Defaults to `0`.
|
|
61
|
+
*/
|
|
62
|
+
tabIndex?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Sets the `title` property of the ColorPicker.
|
|
65
|
+
*/
|
|
66
|
+
title?: string;
|
|
67
|
+
/**
|
|
68
|
+
* **Deprecated**. Use `views` prop instead.
|
|
69
|
+
*
|
|
70
|
+
* @deprecated
|
|
71
|
+
*/
|
|
72
|
+
view?: ColorPickerView;
|
|
73
|
+
/**
|
|
74
|
+
* Specifies the views that will be rendered in the popup. By default both the gradient and palette views will be rendered.
|
|
75
|
+
*
|
|
76
|
+
* @default ['gradient', 'palette']`
|
|
77
|
+
*/
|
|
78
|
+
views?: ColorPickerView[];
|
|
79
|
+
/**
|
|
80
|
+
* Sets the initially active view in the popup when both 'gradient' and 'palette' views are rendered.
|
|
81
|
+
* Use with the `views` property.
|
|
82
|
+
*
|
|
83
|
+
* @default 'gradient''
|
|
84
|
+
*/
|
|
85
|
+
activeView?: ColorPickerView;
|
|
86
|
+
/**
|
|
87
|
+
* Represents the `dir` HTML attribute.
|
|
88
|
+
*/
|
|
89
|
+
dir?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Defines the name of an [existing icon in the KendoReact theme](https://www.telerik.com/kendo-react-ui/components/styling/icons).
|
|
92
|
+
* You have to provide only the name of the icon without the `k-icon` or the `k-i-` prefixes.
|
|
93
|
+
* For example, `edit-tools` will be parsed to `k-icon k-i-edit-tools`
|
|
94
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/inputs/colorpicker/custom#displaying-custom-icons)).
|
|
95
|
+
*/
|
|
96
|
+
icon?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Defines the SVG icon.
|
|
99
|
+
*/
|
|
100
|
+
svgIcon?: SVGIcon;
|
|
101
|
+
/**
|
|
102
|
+
* The class name which displays an icon in the ColorPicker button
|
|
103
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/inputs/colorpicker/custom#toc-displaying-custom-icons)).
|
|
104
|
+
*/
|
|
105
|
+
iconClassName?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Configures the ColorGradient that is displayed in the ColorPicker popup
|
|
108
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/inputs/colorpicker/custom#toc-customizing-the-gradient-popup)).
|
|
109
|
+
*/
|
|
110
|
+
gradientSettings?: ColorPickerGradientSettings;
|
|
111
|
+
/**
|
|
112
|
+
* Configures the ColorPalette that is displayed in the ColorPicker popup
|
|
113
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/inputs/colorpicker/custom#toc-customizing-the-palette-popup)).
|
|
114
|
+
*/
|
|
115
|
+
paletteSettings?: ColorPickerPaletteSettings;
|
|
116
|
+
/**
|
|
117
|
+
* Configures the FlatColorPicker that is displayed in the ColorPicker popup via `views` property.
|
|
118
|
+
*/
|
|
119
|
+
flatColorPickerSettings?: FlatColorPickerProps;
|
|
120
|
+
/**
|
|
121
|
+
* Configures the popup of the ColorPicker.
|
|
122
|
+
*/
|
|
123
|
+
popupSettings?: ColorPickerPopupSettings;
|
|
124
|
+
/**
|
|
125
|
+
* Sets the open and close state of the ColorPicker.
|
|
126
|
+
*/
|
|
127
|
+
open?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Specifies the id of the component.
|
|
130
|
+
*/
|
|
131
|
+
id?: string;
|
|
132
|
+
/**
|
|
133
|
+
* 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).
|
|
134
|
+
* For example these elements could contain error or hint message.
|
|
135
|
+
*/
|
|
136
|
+
ariaDescribedBy?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Identifies the element(s) which will label the component.
|
|
139
|
+
*/
|
|
140
|
+
ariaLabelledBy?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Represent the label of the component.
|
|
143
|
+
*/
|
|
144
|
+
ariaLabel?: string;
|
|
145
|
+
/**
|
|
146
|
+
* The event handler that will be fired when the user edits the value.
|
|
147
|
+
*/
|
|
148
|
+
onChange?: (event: ColorPickerChangeEvent) => void;
|
|
149
|
+
/**
|
|
150
|
+
* The event handler that will be fired when ColorPicker is focused.
|
|
151
|
+
*/
|
|
152
|
+
onFocus?: (event: ColorPickerFocusEvent) => void;
|
|
153
|
+
/**
|
|
154
|
+
* The event handler that will be fired when ColorPicker is blurred.
|
|
155
|
+
*/
|
|
156
|
+
onBlur?: (event: ColorPickerBlurEvent) => void;
|
|
157
|
+
/**
|
|
158
|
+
* The event handler that will be fired when the left side of the ColorPicker is clicked.
|
|
159
|
+
*/
|
|
160
|
+
onActiveColorClick?: (event: ColorPickerActiveColorClick) => void;
|
|
161
|
+
/**
|
|
162
|
+
* Configures the `size` of the ColorPicker.
|
|
163
|
+
*
|
|
164
|
+
* The available options are:
|
|
165
|
+
* - `small`
|
|
166
|
+
* - `medium`
|
|
167
|
+
* - `large`
|
|
168
|
+
*
|
|
169
|
+
* @default undefined (theme-controlled)
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* ```jsx
|
|
173
|
+
* <ColorPicker size="large" />
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
176
|
+
size?: 'small' | 'medium' | 'large';
|
|
177
|
+
/**
|
|
178
|
+
* Configures the `roundness` of the ColorPicker.
|
|
179
|
+
*
|
|
180
|
+
* The available options are:
|
|
181
|
+
* - small
|
|
182
|
+
* - medium
|
|
183
|
+
* - large
|
|
184
|
+
* - full
|
|
185
|
+
*
|
|
186
|
+
* @default undefined (theme-controlled)
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* ```tsx
|
|
190
|
+
* <ColorPicker rounded="full" />
|
|
191
|
+
* ```
|
|
192
|
+
*/
|
|
193
|
+
rounded?: 'small' | 'medium' | 'large' | 'full';
|
|
194
|
+
/**
|
|
195
|
+
* Configures the `fillMode` of the ColorPicker.
|
|
196
|
+
*
|
|
197
|
+
* The available options are:
|
|
198
|
+
* - solid
|
|
199
|
+
* - outline
|
|
200
|
+
* - flat
|
|
201
|
+
* - null—Does not set a fillMode `className`.
|
|
202
|
+
*
|
|
203
|
+
* @default `solid`
|
|
204
|
+
*/
|
|
205
|
+
fillMode?: 'solid' | 'flat' | 'outline';
|
|
206
|
+
/**
|
|
207
|
+
* Sets additional classes to the ColorPicker.
|
|
208
|
+
*/
|
|
209
|
+
className?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Providing different rendering of the popup element based on the screen dimensions.
|
|
212
|
+
*
|
|
213
|
+
* @default `false`
|
|
214
|
+
*
|
|
215
|
+
* @example
|
|
216
|
+
* ```jsx
|
|
217
|
+
* <ColorPicker adaptive={true} />
|
|
218
|
+
* ```
|
|
219
|
+
*/
|
|
220
|
+
adaptive?: boolean;
|
|
221
|
+
/**
|
|
222
|
+
* Specifies the text that is rendered as title in the adaptive popup(action sheet).
|
|
223
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
224
|
+
* If not provided, the title will be the same as the label.
|
|
225
|
+
*
|
|
226
|
+
* @example
|
|
227
|
+
* ```jsx
|
|
228
|
+
* <ColorPicker adaptiveTitle="Adaptive Popup Title" />
|
|
229
|
+
* ```
|
|
230
|
+
*/
|
|
231
|
+
adaptiveTitle?: string;
|
|
232
|
+
/**
|
|
233
|
+
* Specifies the text that is rendered as subtitle in the adaptive popup(action sheet).
|
|
234
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
235
|
+
*
|
|
236
|
+
* @example
|
|
237
|
+
* ```jsx
|
|
238
|
+
* <ColorPicker adaptiveSubtitle="Adaptive Popup Subtitle" />
|
|
239
|
+
* ```
|
|
240
|
+
*/
|
|
241
|
+
adaptiveSubtitle?: string;
|
|
242
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
* Specifies the view which the ColorPicker will render in the popup
|
|
10
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/inputs/colorpicker/views)).
|
|
11
|
+
*
|
|
12
|
+
* The possible values are:
|
|
13
|
+
* * `palette`
|
|
14
|
+
* * `gradient`
|
|
15
|
+
* * **Deprecated** `combo`
|
|
16
|
+
*/
|
|
17
|
+
export type ColorPickerView = 'gradient' | 'palette' | 'combo';
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
import { PopupAnimation } from '@progress/kendo-react-popup';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface PickerPopupSettings {
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
id: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Controls the popup animation. By default, the open and close animations are enabled.
|
|
19
|
+
*/
|
|
20
|
+
animate?: boolean | PopupAnimation;
|
|
21
|
+
/**
|
|
22
|
+
* Specifies a list of CSS classes that will be added to the Popup element.
|
|
23
|
+
*/
|
|
24
|
+
className?: string | Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
* The styles that are passed to the popup element.
|
|
27
|
+
*/
|
|
28
|
+
style?: React.CSSProperties;
|
|
29
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
import { PickerPopupSettings } from './PickerPopupSettings.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface PickerProps {
|
|
13
|
+
/**
|
|
14
|
+
* The popup settings.
|
|
15
|
+
*/
|
|
16
|
+
popupSettings: PickerPopupSettings;
|
|
17
|
+
/**
|
|
18
|
+
* The rendered input element.
|
|
19
|
+
*/
|
|
20
|
+
input?: any;
|
|
21
|
+
/**
|
|
22
|
+
* The rendered button element.
|
|
23
|
+
*/
|
|
24
|
+
button?: any;
|
|
25
|
+
/**
|
|
26
|
+
* The content of the popup.
|
|
27
|
+
*/
|
|
28
|
+
content?: any;
|
|
29
|
+
/**
|
|
30
|
+
* The `direction` CSS property of the popup content.
|
|
31
|
+
*/
|
|
32
|
+
dir?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The open state of the popup.
|
|
35
|
+
*/
|
|
36
|
+
open: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Specifies the element which will be used as an anchor for the popup. The popup opens next to that element.
|
|
39
|
+
*/
|
|
40
|
+
popupAnchor?: HTMLElement;
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
onOpen?: () => void;
|
|
45
|
+
/**
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
onClose?: () => void;
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
52
|
+
_mobileMode?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
_actionSheet?: any;
|
|
57
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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 interface HSVA {
|
|
12
|
+
h?: number;
|
|
13
|
+
s?: number;
|
|
14
|
+
v?: number;
|
|
15
|
+
a?: number;
|
|
16
|
+
}
|
|
@@ -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 type OutputFormat = 'hex' | 'rgba';
|
|
@@ -0,0 +1,60 @@
|
|
|
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 const PALETTEPRESETS: {
|
|
12
|
+
basic: {
|
|
13
|
+
colors: string[];
|
|
14
|
+
columns: number;
|
|
15
|
+
};
|
|
16
|
+
office: {
|
|
17
|
+
colors: string[];
|
|
18
|
+
columns: number;
|
|
19
|
+
};
|
|
20
|
+
apex: {
|
|
21
|
+
colors: string[];
|
|
22
|
+
columns: number;
|
|
23
|
+
};
|
|
24
|
+
austin: {
|
|
25
|
+
colors: string[];
|
|
26
|
+
columns: number;
|
|
27
|
+
};
|
|
28
|
+
clarity: {
|
|
29
|
+
colors: string[];
|
|
30
|
+
columns: number;
|
|
31
|
+
};
|
|
32
|
+
slipstream: {
|
|
33
|
+
colors: string[];
|
|
34
|
+
columns: number;
|
|
35
|
+
};
|
|
36
|
+
metro: {
|
|
37
|
+
colors: string[];
|
|
38
|
+
columns: number;
|
|
39
|
+
};
|
|
40
|
+
flow: {
|
|
41
|
+
colors: string[];
|
|
42
|
+
columns: number;
|
|
43
|
+
};
|
|
44
|
+
hardcover: {
|
|
45
|
+
colors: string[];
|
|
46
|
+
columns: number;
|
|
47
|
+
};
|
|
48
|
+
trek: {
|
|
49
|
+
colors: string[];
|
|
50
|
+
columns: number;
|
|
51
|
+
};
|
|
52
|
+
verve: {
|
|
53
|
+
colors: string[];
|
|
54
|
+
columns: number;
|
|
55
|
+
};
|
|
56
|
+
monochrome: {
|
|
57
|
+
colors: string[];
|
|
58
|
+
columns: number;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
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 interface RGB {
|
|
12
|
+
r?: number;
|
|
13
|
+
g?: number;
|
|
14
|
+
b?: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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 interface RGBA {
|
|
12
|
+
r?: number;
|
|
13
|
+
g?: number;
|
|
14
|
+
b?: number;
|
|
15
|
+
a?: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 interface TableCell {
|
|
12
|
+
row: number;
|
|
13
|
+
col: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
* Specifies the size of a color cell.
|
|
10
|
+
*
|
|
11
|
+
* The possible values are:
|
|
12
|
+
* * (Default) `number = 24`
|
|
13
|
+
* * `{ width: number, height: number }`
|
|
14
|
+
*/
|
|
15
|
+
export type TileSize = {
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
};
|