@progress/kendo-react-inputs 7.2.4-develop.3 → 7.3.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/checkbox/Checkbox.js +8 -0
- package/checkbox/Checkbox.mjs +214 -0
- package/colors/ColorContrastLabels.js +8 -0
- package/colors/ColorContrastLabels.mjs +24 -0
- package/colors/ColorContrastSvg.js +8 -0
- package/colors/ColorContrastSvg.mjs +52 -0
- package/colors/ColorGradient.js +8 -0
- package/colors/ColorGradient.mjs +293 -0
- package/colors/ColorInput.js +8 -0
- package/colors/ColorInput.mjs +122 -0
- package/colors/ColorPalette.js +8 -0
- package/colors/ColorPalette.mjs +191 -0
- package/colors/ColorPicker.js +8 -0
- package/colors/ColorPicker.mjs +253 -0
- package/colors/FlatColorPicker.js +8 -0
- package/colors/FlatColorPicker.mjs +216 -0
- package/colors/HexInput.js +8 -0
- package/colors/HexInput.mjs +39 -0
- package/colors/Picker.js +8 -0
- package/colors/Picker.mjs +42 -0
- package/colors/models/palette-presets.js +8 -0
- package/colors/models/palette-presets.mjs +61 -0
- package/colors/utils/color-cache.js +8 -0
- package/colors/utils/color-cache.mjs +51 -0
- package/colors/utils/color-palette.service.js +8 -0
- package/colors/utils/color-palette.service.mjs +50 -0
- package/colors/utils/color-parser.js +8 -0
- package/colors/utils/color-parser.mjs +61 -0
- package/colors/utils/misc.js +8 -0
- package/colors/utils/misc.mjs +13 -0
- package/colors/utils/svg-calc.js +8 -0
- package/colors/utils/svg-calc.mjs +36 -0
- package/dist/cdn/js/kendo-react-inputs.js +8 -21
- package/index.d.mts +4275 -5
- package/index.d.ts +4275 -75
- package/index.js +8 -21
- package/index.mjs +97 -5042
- package/input/Input.js +8 -0
- package/input/Input.mjs +185 -0
- package/input/InputClearValue.js +8 -0
- package/input/InputClearValue.mjs +24 -0
- package/input/InputPrefix.js +8 -0
- package/input/InputPrefix.mjs +24 -0
- package/input/InputSeparator.js +8 -0
- package/input/InputSeparator.mjs +24 -0
- package/input/InputSuffix.js +8 -0
- package/input/InputSuffix.mjs +24 -0
- package/input/InputValidationIcon.js +8 -0
- package/input/InputValidationIcon.mjs +15 -0
- package/maskedtextbox/MaskedTextBox.js +8 -0
- package/maskedtextbox/MaskedTextBox.mjs +322 -0
- package/maskedtextbox/masking.service.js +8 -0
- package/maskedtextbox/masking.service.mjs +121 -0
- package/maskedtextbox/parsing/combinators.js +8 -0
- package/maskedtextbox/parsing/combinators.mjs +20 -0
- package/maskedtextbox/parsing/parsers.js +8 -0
- package/maskedtextbox/parsing/parsers.mjs +80 -0
- package/maskedtextbox/parsing/result.js +8 -0
- package/maskedtextbox/parsing/result.mjs +35 -0
- package/maskedtextbox/parsing/stream.js +8 -0
- package/maskedtextbox/parsing/stream.mjs +41 -0
- package/maskedtextbox/utils.js +8 -0
- package/maskedtextbox/utils.mjs +43 -0
- package/messages/index.js +8 -0
- package/messages/index.mjs +77 -0
- package/numerictextbox/NumericTextBox.js +8 -0
- package/numerictextbox/NumericTextBox.mjs +415 -0
- package/numerictextbox/utils/index.js +8 -0
- package/numerictextbox/utils/index.mjs +218 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +8 -8
- package/radiobutton/RadioButton.js +8 -0
- package/radiobutton/RadioButton.mjs +138 -0
- package/radiobutton/RadioGroup.js +8 -0
- package/radiobutton/RadioGroup.mjs +135 -0
- package/range-slider/RangeSlider.js +20 -0
- package/range-slider/RangeSlider.mjs +337 -0
- package/range-slider/range-raducer.js +8 -0
- package/range-slider/range-raducer.mjs +90 -0
- package/rating/Rating.js +12 -0
- package/rating/Rating.mjs +323 -0
- package/rating/RatingItem.js +8 -0
- package/rating/RatingItem.mjs +144 -0
- package/rating/rating-reducer.js +8 -0
- package/rating/rating-reducer.mjs +34 -0
- package/rating/utils/index.js +8 -0
- package/rating/utils/index.mjs +28 -0
- package/signature/Signature.js +8 -0
- package/signature/Signature.mjs +335 -0
- package/signature/utils/index.js +8 -0
- package/signature/utils/index.mjs +17 -0
- package/slider/Slider.js +8 -0
- package/slider/Slider.mjs +223 -0
- package/slider/SliderLabel.js +8 -0
- package/slider/SliderLabel.mjs +39 -0
- package/switch/Switch.js +8 -0
- package/switch/Switch.mjs +228 -0
- package/textarea/TextArea.js +8 -0
- package/textarea/TextArea.mjs +196 -0
- package/textbox/Textbox.js +8 -0
- package/textbox/Textbox.mjs +125 -0
- package/checkbox/Checkbox.d.ts +0 -36
- package/checkbox/interfaces/CheckboxBlurEvent.d.ts +0 -11
- package/checkbox/interfaces/CheckboxChangeEvent.d.ts +0 -15
- package/checkbox/interfaces/CheckboxFocusEvent.d.ts +0 -11
- package/checkbox/interfaces/CheckboxProps.d.ts +0 -126
- package/colors/ColorContrastLabels.d.ts +0 -19
- package/colors/ColorContrastSvg.d.ts +0 -22
- package/colors/ColorGradient.d.ts +0 -191
- package/colors/ColorInput.d.ts +0 -34
- package/colors/ColorPalette.d.ts +0 -127
- package/colors/ColorPicker.d.ts +0 -34
- package/colors/FlatColorPicker.d.ts +0 -139
- package/colors/HexInput.d.ts +0 -33
- package/colors/Picker.d.ts +0 -10
- package/colors/interfaces/ColorGradientChangeEvent.d.ts +0 -15
- package/colors/interfaces/ColorGradientProps.d.ts +0 -101
- package/colors/interfaces/ColorPaletteChangeEvent.d.ts +0 -19
- package/colors/interfaces/ColorPaletteProps.d.ts +0 -87
- package/colors/interfaces/ColorPickerActiveColorClick.d.ts +0 -21
- package/colors/interfaces/ColorPickerBlurEvent.d.ts +0 -17
- package/colors/interfaces/ColorPickerChangeEvent.d.ts +0 -21
- package/colors/interfaces/ColorPickerFocusEvent.d.ts +0 -17
- package/colors/interfaces/ColorPickerGradientSettings.d.ts +0 -22
- package/colors/interfaces/ColorPickerPaletteSettings.d.ts +0 -36
- package/colors/interfaces/ColorPickerPopupSettings.d.ts +0 -18
- package/colors/interfaces/ColorPickerProps.d.ts +0 -165
- package/colors/interfaces/ColorPickerView.d.ts +0 -14
- package/colors/interfaces/PickerPopupSettings.d.ts +0 -22
- package/colors/interfaces/PickerProps.d.ts +0 -46
- package/colors/models/hsva.d.ts +0 -13
- package/colors/models/output-format.d.ts +0 -8
- package/colors/models/palette-presets.d.ts +0 -57
- package/colors/models/rgb.d.ts +0 -12
- package/colors/models/rgba.d.ts +0 -13
- package/colors/models/table-cell.d.ts +0 -11
- package/colors/models/tile-size.d.ts +0 -15
- package/colors/utils/color-cache.d.ts +0 -34
- package/colors/utils/color-palette.service.d.ts +0 -16
- package/colors/utils/color-parser.d.ts +0 -69
- package/colors/utils/misc.d.ts +0 -19
- package/colors/utils/svg-calc.d.ts +0 -66
- package/input/Input.d.ts +0 -171
- package/input/InputClearValue.d.ts +0 -19
- package/input/InputPrefix.d.ts +0 -29
- package/input/InputSeparator.d.ts +0 -29
- package/input/InputSuffix.d.ts +0 -29
- package/input/InputValidationIcon.d.ts +0 -18
- package/input/interfaces/InputChangeEvent.d.ts +0 -15
- package/interfaces/Direction.d.ts +0 -5
- package/interfaces/ToggleBaseProps.d.ts +0 -12
- package/maskedtextbox/MaskedTextBox.d.ts +0 -238
- package/maskedtextbox/MaskedTextBoxProps.d.ts +0 -200
- package/maskedtextbox/masking.service.d.ts +0 -45
- package/maskedtextbox/parsing/combinators.d.ts +0 -13
- package/maskedtextbox/parsing/parsers.d.ts +0 -51
- package/maskedtextbox/parsing/result.d.ts +0 -27
- package/maskedtextbox/parsing/stream.d.ts +0 -26
- package/maskedtextbox/utils.d.ts +0 -20
- package/messages/index.d.ts +0 -169
- package/numerictextbox/NumericTextBox.d.ts +0 -18
- package/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +0 -11
- package/numerictextbox/interfaces/NumericTextBoxChangeEvent.d.ts +0 -15
- package/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +0 -11
- package/numerictextbox/interfaces/NumericTextBoxHandle.d.ts +0 -43
- package/numerictextbox/interfaces/NumericTextBoxProps.d.ts +0 -188
- package/numerictextbox/interfaces/NumericTextBoxState.d.ts +0 -19
- package/numerictextbox/utils/index.d.ts +0 -123
- package/package-metadata.d.ts +0 -9
- package/radiobutton/RadioButton.d.ts +0 -27
- package/radiobutton/RadioGroup.d.ts +0 -27
- package/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +0 -11
- package/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +0 -15
- package/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +0 -11
- package/radiobutton/interfaces/RadioButtonProps.d.ts +0 -101
- package/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +0 -15
- package/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +0 -11
- package/radiobutton/interfaces/RadioGroupProps.d.ts +0 -90
- package/range-slider/RangeSlider.d.ts +0 -142
- package/range-slider/range-raducer.d.ts +0 -40
- package/rating/Rating.d.ts +0 -170
- package/rating/RatingItem.d.ts +0 -108
- package/rating/models/index.d.ts +0 -88
- package/rating/rating-reducer.d.ts +0 -36
- package/rating/utils/index.d.ts +0 -28
- package/signature/Signature.d.ts +0 -18
- package/signature/interfaces/SignatureBlurEvent.d.ts +0 -11
- package/signature/interfaces/SignatureChangeEvent.d.ts +0 -15
- package/signature/interfaces/SignatureCloseEvent.d.ts +0 -11
- package/signature/interfaces/SignatureFocusEvent.d.ts +0 -11
- package/signature/interfaces/SignatureHandle.d.ts +0 -46
- package/signature/interfaces/SignatureOpenEvent.d.ts +0 -11
- package/signature/interfaces/SignatureProps.d.ts +0 -198
- package/signature/interfaces/index.d.ts +0 -11
- package/signature/utils/index.d.ts +0 -8
- package/slider/Slider.d.ts +0 -197
- package/slider/SliderLabel.d.ts +0 -38
- package/switch/Switch.d.ts +0 -294
- package/textarea/TextArea.d.ts +0 -40
- package/textarea/interfaces/TextAreaBlurEvent.d.ts +0 -11
- package/textarea/interfaces/TextAreaChangeEvent.d.ts +0 -15
- package/textarea/interfaces/TextAreaFocusEvent.d.ts +0 -11
- package/textarea/interfaces/TextAreaProps.d.ts +0 -140
- package/textbox/Textbox.d.ts +0 -80
|
@@ -1,140 +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 { CustomComponent, FormComponentProps } from '@progress/kendo-react-common';
|
|
6
|
-
import { TextAreaBlurEvent } from './TextAreaBlurEvent';
|
|
7
|
-
import { TextAreaChangeEvent } from './TextAreaChangeEvent';
|
|
8
|
-
import { TextAreaFocusEvent } from './TextAreaFocusEvent';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
13
|
-
/**
|
|
14
|
-
* Represents the props of the [KendoReact TextArea component]({% slug overview_textarea %}).
|
|
15
|
-
*/
|
|
16
|
-
export interface TextAreaProps extends FormComponentProps, Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'defaultValue' | 'onChange' | 'onFocus' | 'onBlur' | 'prefix'> {
|
|
17
|
-
/**
|
|
18
|
-
* 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).
|
|
19
|
-
* For example these elements could contain error or hint message.
|
|
20
|
-
*/
|
|
21
|
-
ariaDescribedBy?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Identifies the element(s) which will label the component.
|
|
24
|
-
*/
|
|
25
|
-
ariaLabelledBy?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Specifies if the textarea element will resize its height automatically ([see example]({% slug sizing_textarea %})).
|
|
28
|
-
* Defaults to `false`.
|
|
29
|
-
*/
|
|
30
|
-
autoSize?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Specifies a list of CSS classes that will be added to the TextArea.
|
|
33
|
-
*/
|
|
34
|
-
className?: string;
|
|
35
|
-
/**
|
|
36
|
-
* The default value of the TextArea ([see example]({% slug default_textarea %})).
|
|
37
|
-
*/
|
|
38
|
-
defaultValue?: string | string[] | number;
|
|
39
|
-
/**
|
|
40
|
-
* Represents the `dir` HTML attribute.
|
|
41
|
-
*/
|
|
42
|
-
dir?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Specifies if the TextArea is disabled ([see example]({% slug disabled_textarea %})).
|
|
45
|
-
*/
|
|
46
|
-
disabled?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Sets the read-only state of the TextArea.
|
|
49
|
-
*/
|
|
50
|
-
readOnly?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Specifies an exact height size for the TextArea to take ([see example]({% slug sizing_textarea %})).
|
|
53
|
-
*/
|
|
54
|
-
rows?: number;
|
|
55
|
-
/**
|
|
56
|
-
* Sets the `id` of the TextArea.
|
|
57
|
-
*/
|
|
58
|
-
id?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Specifies the `name` property of the `textarea` DOM element.
|
|
61
|
-
*
|
|
62
|
-
* This property is part of the [FormComponentProps]({% slug api_common_formcomponentprops %}) interface.
|
|
63
|
-
*/
|
|
64
|
-
name?: string;
|
|
65
|
-
/**
|
|
66
|
-
* The hint that is displayed when the TextArea is empty.
|
|
67
|
-
*/
|
|
68
|
-
placeholder?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Sets additional CSS styles to the TextArea.
|
|
71
|
-
*/
|
|
72
|
-
style?: React.CSSProperties;
|
|
73
|
-
/**
|
|
74
|
-
* Sets the `tabIndex` property of the TextArea.
|
|
75
|
-
* Defaults to `0`.
|
|
76
|
-
*/
|
|
77
|
-
tabIndex?: number;
|
|
78
|
-
/**
|
|
79
|
-
* Sets the value to be submitted ([see example]({% slug controlled_textarea %})).
|
|
80
|
-
*/
|
|
81
|
-
value?: string | string[] | number;
|
|
82
|
-
/**
|
|
83
|
-
* The event handler that will be fired when the changes the selected value.
|
|
84
|
-
*/
|
|
85
|
-
onChange?: (event: TextAreaChangeEvent) => void;
|
|
86
|
-
/**
|
|
87
|
-
* The event handler that will be fired when TextArea is focused.
|
|
88
|
-
*/
|
|
89
|
-
onFocus?: (event: TextAreaFocusEvent) => void;
|
|
90
|
-
/**
|
|
91
|
-
* The event handler that will be fired when TextArea is blurred.
|
|
92
|
-
*/
|
|
93
|
-
onBlur?: (event: TextAreaBlurEvent) => void;
|
|
94
|
-
/**
|
|
95
|
-
* Configures the `size` of the TextArea.
|
|
96
|
-
*
|
|
97
|
-
* The available options are:
|
|
98
|
-
* - small
|
|
99
|
-
* - medium
|
|
100
|
-
* - large
|
|
101
|
-
* - null—Does not set a size `className`.
|
|
102
|
-
*
|
|
103
|
-
* @default `medium`
|
|
104
|
-
*/
|
|
105
|
-
size?: null | 'small' | 'medium' | 'large';
|
|
106
|
-
/**
|
|
107
|
-
* Configures the `roundness` of the TextArea.
|
|
108
|
-
*
|
|
109
|
-
* The available options are:
|
|
110
|
-
* - small
|
|
111
|
-
* - medium
|
|
112
|
-
* - large
|
|
113
|
-
* - full
|
|
114
|
-
* - null—Does not set a rounded `className`.
|
|
115
|
-
*
|
|
116
|
-
* @default `medium`
|
|
117
|
-
*/
|
|
118
|
-
rounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
119
|
-
/**
|
|
120
|
-
* Configures the `fillMode` of the TextArea.
|
|
121
|
-
*
|
|
122
|
-
* The available options are:
|
|
123
|
-
* - solid
|
|
124
|
-
* - outline
|
|
125
|
-
* - flat
|
|
126
|
-
* - null—Does not set a fillMode `className`.
|
|
127
|
-
*
|
|
128
|
-
* @default `solid`
|
|
129
|
-
*/
|
|
130
|
-
fillMode?: null | 'solid' | 'flat' | 'outline';
|
|
131
|
-
/**
|
|
132
|
-
* Sets a custom prefix to the TextArea component.
|
|
133
|
-
*/
|
|
134
|
-
prefix?: CustomComponent<any>;
|
|
135
|
-
/**
|
|
136
|
-
* Sets a custom suffix to the TextArea component.
|
|
137
|
-
*/
|
|
138
|
-
suffix?: CustomComponent<any>;
|
|
139
|
-
}
|
|
140
|
-
export {};
|
package/textbox/Textbox.d.ts
DELETED
|
@@ -1,80 +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 { BaseEvent, CustomComponent } from '@progress/kendo-react-common';
|
|
7
|
-
export interface TextBoxChangeEvent extends BaseEvent<TextBoxHandle> {
|
|
8
|
-
syntheticEvent: React.ChangeEvent<HTMLInputElement>;
|
|
9
|
-
value: React.InputHTMLAttributes<HTMLInputElement>['value'];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Represents the properties of the KendoReact [TextBox]({% slug api_inputs_textbox %}) component
|
|
13
|
-
*/
|
|
14
|
-
export interface TextBoxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'onChange'> {
|
|
15
|
-
/**
|
|
16
|
-
* Configures the `size` of the TextBox.
|
|
17
|
-
*
|
|
18
|
-
* The available options are:
|
|
19
|
-
* - small
|
|
20
|
-
* - medium
|
|
21
|
-
* - large
|
|
22
|
-
* - null—Does not set a size `className`.
|
|
23
|
-
*
|
|
24
|
-
* @default `medium`
|
|
25
|
-
*/
|
|
26
|
-
size?: null | 'small' | 'medium' | 'large';
|
|
27
|
-
/**
|
|
28
|
-
* Configures the `roundness` of the TextBox.
|
|
29
|
-
*
|
|
30
|
-
* The available options are:
|
|
31
|
-
* - small
|
|
32
|
-
* - medium
|
|
33
|
-
* - large
|
|
34
|
-
* - full
|
|
35
|
-
* - null—Does not set a rounded `className`.
|
|
36
|
-
*
|
|
37
|
-
* @default `medium`
|
|
38
|
-
*/
|
|
39
|
-
rounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
40
|
-
/**
|
|
41
|
-
* Configures the `fillMode` of the TextBox.
|
|
42
|
-
*
|
|
43
|
-
* The available options are:
|
|
44
|
-
* - solid
|
|
45
|
-
* - outline
|
|
46
|
-
* - flat
|
|
47
|
-
* - null—Does not set a fillMode `className`.
|
|
48
|
-
*
|
|
49
|
-
* @default `solid`
|
|
50
|
-
*/
|
|
51
|
-
fillMode?: null | 'solid' | 'flat' | 'outline';
|
|
52
|
-
/**
|
|
53
|
-
* The `onChange` callback of the `input` element inside the TextBox.
|
|
54
|
-
*/
|
|
55
|
-
onChange?: (event: TextBoxChangeEvent) => void;
|
|
56
|
-
/**
|
|
57
|
-
* Indicates if the component is in `valid` state
|
|
58
|
-
*/
|
|
59
|
-
valid?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Sets a custom prefix to the TextBox component.
|
|
62
|
-
*/
|
|
63
|
-
prefix?: CustomComponent<any>;
|
|
64
|
-
/**
|
|
65
|
-
* Sets a custom suffix to the TextBox component.
|
|
66
|
-
*/
|
|
67
|
-
suffix?: CustomComponent<any>;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Represent the `ref` of the TextBox component.
|
|
71
|
-
*/
|
|
72
|
-
export type TextBoxHandle = {
|
|
73
|
-
element: HTMLInputElement | null;
|
|
74
|
-
value: TextBoxProps['value'];
|
|
75
|
-
name?: string | null;
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* Represents the [KendoReact TextBox component]({% slug overview_textbox %}).
|
|
79
|
-
*/
|
|
80
|
-
export declare const TextBox: React.ForwardRefExoticComponent<TextBoxProps & React.RefAttributes<TextBoxHandle | null>>;
|