@progress/kendo-react-inputs 13.3.0-develop.9 → 13.4.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.
- 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,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
|
+
import { BaseEvent } from '@progress/kendo-react-common';
|
|
9
|
+
import { RadioButtonHandle } from '../RadioButton.js';
|
|
10
|
+
/**
|
|
11
|
+
* The arguments for the `onChange` RadioButton event.
|
|
12
|
+
*/
|
|
13
|
+
export interface RadioButtonChangeEvent extends BaseEvent<RadioButtonHandle> {
|
|
14
|
+
/**
|
|
15
|
+
* The value of the selected RadioButton.
|
|
16
|
+
*/
|
|
17
|
+
value: any;
|
|
18
|
+
}
|
|
@@ -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
|
+
import { RadioButtonHandle } from './../RadioButton.js';
|
|
9
|
+
import { BaseEvent } from '@progress/kendo-react-common';
|
|
10
|
+
/**
|
|
11
|
+
* The arguments for the `onFocus` RadioButton event.
|
|
12
|
+
*/
|
|
13
|
+
export interface RadioButtonFocusEvent extends BaseEvent<RadioButtonHandle> {
|
|
14
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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 { RadioButtonBlurEvent } from './RadioButtonBlurEvent.js';
|
|
9
|
+
import { RadioButtonChangeEvent } from './RadioButtonChangeEvent.js';
|
|
10
|
+
import { RadioButtonFocusEvent } from './RadioButtonFocusEvent.js';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
15
|
+
/**
|
|
16
|
+
* Represents the props of the [KendoReact RadioButton component](https://www.telerik.com/kendo-react-ui/components/inputs/radiobutton).
|
|
17
|
+
* Extends the [native input props](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement).
|
|
18
|
+
*/
|
|
19
|
+
export interface RadioButtonProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange' | 'onFocus' | 'onBlur'> {
|
|
20
|
+
/**
|
|
21
|
+
* 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).
|
|
22
|
+
* For example these elements could contain error or hint message.
|
|
23
|
+
*/
|
|
24
|
+
ariaDescribedBy?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The content of the RadioButton component.
|
|
27
|
+
*/
|
|
28
|
+
children?: any;
|
|
29
|
+
/**
|
|
30
|
+
* Specifies if the Radio button is checked.
|
|
31
|
+
*/
|
|
32
|
+
checked?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Specifies a list of CSS classes that will be added to the Radio button.
|
|
35
|
+
*/
|
|
36
|
+
className?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Specifies if the Radio button is disabled.
|
|
39
|
+
*/
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Specifies the current index of the Radio button.
|
|
43
|
+
*/
|
|
44
|
+
index?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Sets the `id` of the Radio button.
|
|
47
|
+
*/
|
|
48
|
+
id?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Configures the `size` of the RadioButton.
|
|
51
|
+
*
|
|
52
|
+
* The available options are:
|
|
53
|
+
* - small
|
|
54
|
+
* - medium
|
|
55
|
+
* - large
|
|
56
|
+
* - null—Does not set a size `className`.
|
|
57
|
+
*
|
|
58
|
+
* @default `medium`
|
|
59
|
+
*/
|
|
60
|
+
size?: 'small' | 'medium' | 'large';
|
|
61
|
+
/**
|
|
62
|
+
* Sets the label of the Radio button ([see example](https://www.telerik.com/kendo-react-ui/components/inputs/radiobutton/labels)).
|
|
63
|
+
*/
|
|
64
|
+
label?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Sets the label position of the Radio button ([see example](https://www.telerik.com/kendo-react-ui/components/inputs/radiobutton/labels)).
|
|
67
|
+
* Accepts two options: `before` or `after`. Defaults to `after`.
|
|
68
|
+
*/
|
|
69
|
+
labelPlacement?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Sets the `name` property of the Radio button.
|
|
72
|
+
*/
|
|
73
|
+
name?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Sets additional CSS styles to the Radio button.
|
|
76
|
+
*/
|
|
77
|
+
style?: React.CSSProperties;
|
|
78
|
+
/**
|
|
79
|
+
* Sets the `tabIndex` property of the Radio button.
|
|
80
|
+
* Defaults to `0`.
|
|
81
|
+
*/
|
|
82
|
+
tabIndex?: number;
|
|
83
|
+
/**
|
|
84
|
+
* Overrides the validity state of the component.
|
|
85
|
+
* If `valid` is set, the `required` property will be ignored.
|
|
86
|
+
*
|
|
87
|
+
* This property is part of the [FormComponentProps](https://www.telerik.com/kendo-react-ui/components/common/api/formcomponentprops) interface.
|
|
88
|
+
*/
|
|
89
|
+
valid?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Sets the value to be submitted.
|
|
92
|
+
*/
|
|
93
|
+
value?: any;
|
|
94
|
+
/**
|
|
95
|
+
* The event handler that will be fired when the changes the selected value.
|
|
96
|
+
*/
|
|
97
|
+
onChange?: (event: RadioButtonChangeEvent) => void;
|
|
98
|
+
/**
|
|
99
|
+
* The event handler that will be fired when RadioButton is focused.
|
|
100
|
+
*/
|
|
101
|
+
onFocus?: (event: RadioButtonFocusEvent) => void;
|
|
102
|
+
/**
|
|
103
|
+
* The event handler that will be fired when RadioButton is blurred.
|
|
104
|
+
*/
|
|
105
|
+
onBlur?: (event: RadioButtonBlurEvent) => void;
|
|
106
|
+
}
|
|
107
|
+
export {};
|
|
@@ -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
|
+
import { BaseEvent } from '@progress/kendo-react-common';
|
|
9
|
+
import { RadioGroupHandle } from '../RadioGroup.js';
|
|
10
|
+
/**
|
|
11
|
+
* The arguments for the `onChange` RadioGroup event.
|
|
12
|
+
*/
|
|
13
|
+
export interface RadioGroupChangeEvent extends BaseEvent<RadioGroupHandle> {
|
|
14
|
+
/**
|
|
15
|
+
* The value of the selected RadioButton.
|
|
16
|
+
*/
|
|
17
|
+
value: any;
|
|
18
|
+
}
|
|
@@ -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
|
+
import { RadioGroupHandle } from '../RadioGroup.js';
|
|
9
|
+
import { BaseEvent } from '@progress/kendo-react-common';
|
|
10
|
+
/**
|
|
11
|
+
* The arguments for the `onFocus` RadioGroup event.
|
|
12
|
+
*/
|
|
13
|
+
export interface RadioGroupFocusEvent extends BaseEvent<RadioGroupHandle> {
|
|
14
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
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 { RadioButtonProps } from './RadioButtonProps.js';
|
|
9
|
+
import { RadioGroupFocusEvent } from './RadioGroupFocusEvent.js';
|
|
10
|
+
import { RadioGroupChangeEvent } from './RadioGroupChangeEvent.js';
|
|
11
|
+
import { HTMLAttributes } from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* Represents the props of the [KendoReact RadioGroup component](https://www.telerik.com/kendo-react-ui/components/inputs/radiobutton).
|
|
14
|
+
*/
|
|
15
|
+
export interface RadioGroupProps {
|
|
16
|
+
/**
|
|
17
|
+
* 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).
|
|
18
|
+
* For example these elements could contain error or hint message.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```jsx
|
|
22
|
+
* <RadioGroup ariaDescribedBy="error-message" />
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
ariaDescribedBy?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Identifies the element(s) which will label the component.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```jsx
|
|
31
|
+
* <RadioGroup ariaLabelledBy="group-label" />
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
ariaLabelledBy?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Specifies a list of CSS classes that will be added to the RadioGroup element.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```jsx
|
|
40
|
+
* <RadioGroup className="custom-class" />
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
className?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Specifies the value of the `id` attribute that will be added to the RadioGroup element.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```jsx
|
|
49
|
+
* <RadioGroup id="radio-group" />
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
id?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The collection of radio buttons that will be rendered in the RadioGroup ([see example](https://www.telerik.com/kendo-react-ui/components/inputs/radiobutton)).
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```jsx
|
|
58
|
+
* <RadioGroup data={[{ label: 'Option 1', value: 1 }, { label: 'Option 2', value: 2 }]} />
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
data?: Array<RadioButtonProps>;
|
|
62
|
+
/**
|
|
63
|
+
* Sets the default checked state of a radio button when used in uncontrolled mode ([see example](https://www.telerik.com/kendo-react-ui/components/inputs/radiobutton)).
|
|
64
|
+
* The `checked` property is passed to the underlying `input` element.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```jsx
|
|
68
|
+
* <RadioGroup defaultValue={1} />
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
defaultValue?: any;
|
|
72
|
+
/**
|
|
73
|
+
* Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```jsx
|
|
77
|
+
* <RadioGroup dir="rtl" />
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
dir?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Disable all radio buttons ([see example](https://www.telerik.com/kendo-react-ui/components/inputs/radiobutton/disabled)).
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```jsx
|
|
86
|
+
* <RadioGroup disabled={true} />
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
disabled?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Overrides the default component responsible for visualizing a single item.
|
|
92
|
+
*
|
|
93
|
+
* The default element is `li` with a [RadioButton](https://www.telerik.com/kendo-react-ui/components/inputs/api/radiobutton) as `children`.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```jsx
|
|
97
|
+
* <RadioGroup item={(props) => <li>{props.children}</li>} />
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
item?: React.ComponentType<HTMLAttributes<HTMLLIElement>>;
|
|
101
|
+
/**
|
|
102
|
+
* Sets the label position of the radio buttons.
|
|
103
|
+
* Accepts two options: `before` or `after`. Defaults to `after`.
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```jsx
|
|
107
|
+
* <RadioGroup labelPlacement="before" />
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
labelPlacement?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Specifies the radio group layout.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```jsx
|
|
116
|
+
* <RadioGroup layout="horizontal" />
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
layout?: 'horizontal' | 'vertical';
|
|
120
|
+
/**
|
|
121
|
+
* Specifies the `name` property of the `input` DOM elements.
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* ```jsx
|
|
125
|
+
* <RadioGroup name="options" />
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
name?: string;
|
|
129
|
+
/**
|
|
130
|
+
* The event handler that will be fired when the changes the selected value.
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* ```jsx
|
|
134
|
+
* <RadioGroup onChange={(event) => console.log(event.value)} />
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
137
|
+
onChange?: (event: RadioGroupChangeEvent) => void;
|
|
138
|
+
/**
|
|
139
|
+
* The event handler that will be fired when Radio button is focused.
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* ```jsx
|
|
143
|
+
* <RadioGroup onFocus={(event) => console.log('Focused')} />
|
|
144
|
+
* ```
|
|
145
|
+
*/
|
|
146
|
+
onFocus?: (event: RadioGroupFocusEvent) => void;
|
|
147
|
+
/**
|
|
148
|
+
* Sets additional CSS styles to the radio group.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* ```jsx
|
|
152
|
+
* <RadioGroup style={{ margin: '10px' }} />
|
|
153
|
+
* ```
|
|
154
|
+
*/
|
|
155
|
+
style?: React.CSSProperties;
|
|
156
|
+
/**
|
|
157
|
+
* Sets the default checked state of a radio button when used in controlled mode ([see example](https://www.telerik.com/kendo-react-ui/components/inputs/radiogroup/controlled_mode)).
|
|
158
|
+
* The `checked` property is passed to the underlying `input` element.
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* ```jsx
|
|
162
|
+
* <RadioGroup value={1} />
|
|
163
|
+
* ```
|
|
164
|
+
*/
|
|
165
|
+
value?: string | number | null;
|
|
166
|
+
/**
|
|
167
|
+
* Overrides the validity state of the component.
|
|
168
|
+
* If `valid` is set, the `required` property will be ignored.
|
|
169
|
+
*
|
|
170
|
+
* This property is part of the [FormComponentProps](https://www.telerik.com/kendo-react-ui/components/common/api/formcomponentprops) interface.
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* ```jsx
|
|
174
|
+
* <RadioGroup valid={false} />
|
|
175
|
+
* ```
|
|
176
|
+
*/
|
|
177
|
+
valid?: boolean;
|
|
178
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
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 { FormComponentProps, DraggableDragEvent } from '@progress/kendo-react-common';
|
|
9
|
+
import { Direction } from '../interfaces/Direction.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* The range object representing the value of the RangeSlider.
|
|
13
|
+
*/
|
|
14
|
+
export type Range = {
|
|
15
|
+
/**
|
|
16
|
+
* The start of the range.
|
|
17
|
+
*/
|
|
18
|
+
start: number;
|
|
19
|
+
/**
|
|
20
|
+
* The end of the range.
|
|
21
|
+
*/
|
|
22
|
+
end: number;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Represents the properties of [RangeSlider](https://www.telerik.com/kendo-react-ui/components/inputs/api/rangeslider) component.
|
|
26
|
+
*/
|
|
27
|
+
export interface RangeSliderProps extends FormComponentProps {
|
|
28
|
+
/**
|
|
29
|
+
* Sets the `id` property of the top div element of the RangeSlider.
|
|
30
|
+
*/
|
|
31
|
+
id?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Sets additional CSS styles to the RangeSlider.
|
|
34
|
+
*/
|
|
35
|
+
style?: React.CSSProperties;
|
|
36
|
+
/**
|
|
37
|
+
* Sets additional classes to the RangeSlider.
|
|
38
|
+
*/
|
|
39
|
+
className?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The flexible values of type Range - `start and `end`.
|
|
42
|
+
*/
|
|
43
|
+
value?: Range;
|
|
44
|
+
/**
|
|
45
|
+
* The default set values of type Range - `start` and `end`.
|
|
46
|
+
*/
|
|
47
|
+
defaultValue?: Range;
|
|
48
|
+
/**
|
|
49
|
+
* Triggered after value change - gets outside access to the element, new values and the event type.
|
|
50
|
+
*/
|
|
51
|
+
onChange?: (event: RangeSliderChangeEvent) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Determines the children nodes.
|
|
54
|
+
*/
|
|
55
|
+
children?: React.ReactNode;
|
|
56
|
+
/**
|
|
57
|
+
* Specifies the step by which the RangeSlider's value will be increased or decreased using the keyboard arrows. Defaults to `1`.
|
|
58
|
+
*/
|
|
59
|
+
step?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Specifies the step by which the RangeSlider's value will be increased or decreased using `pageUp` or `pageDown` keyboard buttons. Defaults to `10`.
|
|
62
|
+
*/
|
|
63
|
+
largeStep?: number;
|
|
64
|
+
/**
|
|
65
|
+
* The minimum possible value of the RangeSlider.
|
|
66
|
+
*/
|
|
67
|
+
min: number;
|
|
68
|
+
/**
|
|
69
|
+
* The maximum possible value of the RangeSlider.
|
|
70
|
+
*/
|
|
71
|
+
max: number;
|
|
72
|
+
/**
|
|
73
|
+
* The RangeSlider orientation if true - vertical, else - horizontal.
|
|
74
|
+
*/
|
|
75
|
+
vertical?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Determines the disabled mode of the RangeSlider, if true - disabled.
|
|
78
|
+
*/
|
|
79
|
+
disabled?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* The RangeSlider direction `ltr` or `rtl`.
|
|
82
|
+
*/
|
|
83
|
+
dir?: Direction;
|
|
84
|
+
/**
|
|
85
|
+
* Sets the `tabIndex` attribute to the `start` drag handle.
|
|
86
|
+
*/
|
|
87
|
+
startTabIndex?: number;
|
|
88
|
+
/**
|
|
89
|
+
* Sets the `tabIndex` attribute to the `end` drag handle.
|
|
90
|
+
*/
|
|
91
|
+
endTabIndex?: number;
|
|
92
|
+
/**
|
|
93
|
+
* 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).
|
|
94
|
+
* For example these elements could contain error or hint message.
|
|
95
|
+
*/
|
|
96
|
+
ariaDescribedBy?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Identifies the element(s) which will label the component.
|
|
99
|
+
*/
|
|
100
|
+
ariaLabelledBy?: string;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Represents the target(element and props) of the RangeSliderChangeEvent.
|
|
104
|
+
*/
|
|
105
|
+
export interface RangeSliderHandle {
|
|
106
|
+
/**
|
|
107
|
+
* The current element or `null` if there is no one.
|
|
108
|
+
*/
|
|
109
|
+
element: HTMLDivElement | null;
|
|
110
|
+
/**
|
|
111
|
+
* The props values of the RangeSlider.
|
|
112
|
+
*/
|
|
113
|
+
props: RangeSliderProps;
|
|
114
|
+
/**
|
|
115
|
+
* The focus event callback.
|
|
116
|
+
*/
|
|
117
|
+
focus: () => void;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Represent the return type of RangeSliderChangeEvent.
|
|
121
|
+
*/
|
|
122
|
+
export interface RangeSliderChangeEvent {
|
|
123
|
+
/**
|
|
124
|
+
* The value from type Range - `start` and `end`.
|
|
125
|
+
*/
|
|
126
|
+
value: Range;
|
|
127
|
+
/**
|
|
128
|
+
* The target of the RangeSliderChangeEvent from RangeSliderHandle.
|
|
129
|
+
*/
|
|
130
|
+
target: RangeSliderHandle;
|
|
131
|
+
/**
|
|
132
|
+
* The event of the RangeSliderChangeEvent.
|
|
133
|
+
*/
|
|
134
|
+
syntheticEvent: React.SyntheticEvent<any> | DraggableDragEvent;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Represents the PropsContext of the `RangeSlider` component.
|
|
138
|
+
* Used for global configuration of all `RangeSlider` instances.
|
|
139
|
+
*
|
|
140
|
+
* For more information, refer to the [Inputs Props Context](https://www.telerik.com/kendo-react-ui/components/inputs/props-context) article.
|
|
141
|
+
*/
|
|
142
|
+
export declare const RangeSliderPropsContext: React.Context<(p: RangeSliderProps) => RangeSliderProps>;
|
|
143
|
+
/**
|
|
144
|
+
* Represents the [KendoReact RangeSlider component](https://www.telerik.com/kendo-react-ui/components/inputs/rangeslider).
|
|
145
|
+
*
|
|
146
|
+
* Accepts properties of type [RangeSliderProps](https://www.telerik.com/kendo-react-ui/components/inputs/api/rangesliderprops).
|
|
147
|
+
* Obtaining the `ref` returns an object of type [RangeSliderHandle](https://www.telerik.com/kendo-react-ui/components/inputs/api/rangesliderhandle).
|
|
148
|
+
*
|
|
149
|
+
* @remarks
|
|
150
|
+
* Supported children components are: {@link SliderLabel}.
|
|
151
|
+
*/
|
|
152
|
+
export declare const RangeSlider: React.ForwardRefExoticComponent<RangeSliderProps & React.RefAttributes<RangeSliderHandle | null>>;
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { Range } from './RangeSlider.js';
|
|
9
|
+
import { DraggableDragEvent } from '@progress/kendo-react-common';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare enum RANGE_ACTION {
|
|
15
|
+
start = "start",
|
|
16
|
+
end = "end",
|
|
17
|
+
min = "min",
|
|
18
|
+
max = "max",
|
|
19
|
+
increase = "increase",
|
|
20
|
+
decrease = "decrease",
|
|
21
|
+
increaseLarge = "increaseLarge",
|
|
22
|
+
decreaseLarge = "decreaseLarge"
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export type RangeActionDispatch = {
|
|
28
|
+
type: RANGE_ACTION;
|
|
29
|
+
payload?: number;
|
|
30
|
+
key?: string;
|
|
31
|
+
event?: React.SyntheticEvent<any> | DraggableDragEvent;
|
|
32
|
+
state?: Range;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
export interface RangeAction extends RangeActionDispatch {
|
|
38
|
+
step: number;
|
|
39
|
+
largeStep: number;
|
|
40
|
+
min: number;
|
|
41
|
+
max: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*/
|
|
46
|
+
export declare const rangeReducer: (state: any, action: RangeAction) => any;
|