@progress/kendo-react-labels 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/Error.d.ts DELETED
@@ -1,51 +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
- /**
8
- * Represents the props of the KendoReact Error component.
9
- */
10
- export interface ErrorProps {
11
- /**
12
- * Represents the id of the Error element.
13
- * The value should be also set to the editor's `ariaDescribedBy` property.
14
- */
15
- id?: string;
16
- /**
17
- * Specifies the alignment of the Error text.
18
- *
19
- * The possible values are:
20
- * * (Default) `start`
21
- * * `end`
22
- */
23
- direction?: 'start' | 'end';
24
- /**
25
- * Determines the children nodes.
26
- */
27
- children: any;
28
- /**
29
- * The styles that are applied to the Error.
30
- */
31
- style?: React.CSSProperties;
32
- /**
33
- * Sets a class of the Error DOM element.
34
- */
35
- className?: string;
36
- }
37
- /**
38
- * Represents the KendoReact Error component.
39
- * Render the error text that will be shown underneath the form editor after a validation.
40
- */
41
- export declare const Error: {
42
- (props: ErrorProps): import("react/jsx-runtime").JSX.Element;
43
- propTypes: {
44
- id: PropTypes.Requireable<string>;
45
- direction: PropTypes.Requireable<string>;
46
- children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
47
- style: PropTypes.Requireable<object>;
48
- className: PropTypes.Requireable<string>;
49
- };
50
- displayName: string;
51
- };
@@ -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 { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
8
- /**
9
- * Represents the props of the KendoReact FloatingLabel component.
10
- */
11
- export interface FloatingLabelProps extends KendoReactComponentBaseProps {
12
- /**
13
- * Represent the [`htmlFor`](https://reactjs.org/docs/dom-elements.html#htmlfor) property, which will be set to the `label` element.
14
- */
15
- editorId?: string;
16
- /**
17
- * Specifies the value of the editor. Used to define if the editor is empty.
18
- */
19
- editorValue?: any;
20
- /**
21
- * Specifies the placeholder of the editor. Used to define if the editor is empty.
22
- */
23
- editorPlaceholder?: string;
24
- /**
25
- * Specifies if the validity of the editor. Used to define the editor is invalid.
26
- */
27
- editorValid?: boolean;
28
- /**
29
- * Specifies if the editor is disabled.
30
- */
31
- editorDisabled?: boolean;
32
- /**
33
- * Adds a floating label that describes the editor.
34
- */
35
- label?: string;
36
- /**
37
- * The styles that are applied to the FloatingLabel.
38
- */
39
- style?: React.CSSProperties;
40
- /**
41
- * Sets a class of the FloatingLabel DOM element.
42
- */
43
- className?: string;
44
- /**
45
- * Sets the `className` of the label DOM element.
46
- */
47
- labelClassName?: string;
48
- /**
49
- * Specifies the direction of the label.
50
- */
51
- dir?: string;
52
- /**
53
- * Represents the id of the label element.
54
- * The value should be also set to the editor's `ariaLabelledBy` property.
55
- * Can be used when the editor is not containing native form element.
56
- */
57
- id?: string;
58
- /**
59
- * If enabled, marks the label as optional.
60
- */
61
- optional?: boolean;
62
- }
63
- /**
64
- * @hidden
65
- */
66
- export interface FloatingLabelState {
67
- focused?: boolean;
68
- }
69
- /**
70
- * Represents the KendoReact FloatingLabel component.
71
- *
72
- * @example
73
- * ```jsx
74
- * const sizes = ["X-Small", "Small", "Medium", "Large", "X-Large", "2X-Large"];
75
- * const App = () => {
76
- * const [ddlState, setDdlState] = React.useState();
77
- * const editorId = 'ddl-sizes';
78
- * return (
79
- * <FloatingLabel label={'Shirt Size:'} editorId={editorId} editorValue={ddlState}>
80
- * <DropDownList
81
- * id={editorId}
82
- * value={ddlState}
83
- * data={sizes}
84
- * onChange={(e) => setDdlState(e.target.value)}
85
- * />
86
- * </FloatingLabel>
87
- * );
88
- * };
89
- *
90
- * ReactDOM.render(<App />, document.querySelector('my-app'));
91
- * ```
92
- */
93
- export declare class FloatingLabel extends React.Component<FloatingLabelProps, FloatingLabelState> {
94
- /**
95
- * @hidden
96
- */
97
- static propTypes: {
98
- label: PropTypes.Requireable<string>;
99
- editorId: PropTypes.Requireable<string>;
100
- editorValue: PropTypes.Requireable<NonNullable<string | number | boolean | null | undefined>>;
101
- editorPlaceholder: PropTypes.Requireable<string>;
102
- editorValid: PropTypes.Requireable<boolean>;
103
- editorDisabled: PropTypes.Requireable<boolean>;
104
- id: PropTypes.Requireable<string>;
105
- style: PropTypes.Requireable<object>;
106
- className: PropTypes.Requireable<string>;
107
- labelClassName: PropTypes.Requireable<string>;
108
- optional: PropTypes.Requireable<boolean>;
109
- };
110
- /**
111
- * @hidden
112
- */
113
- readonly state: FloatingLabelState;
114
- constructor(props: FloatingLabelProps);
115
- /**
116
- * @hidden
117
- */
118
- handleFocus: (_: React.SyntheticEvent<HTMLSpanElement>) => void;
119
- /**
120
- * @hidden
121
- */
122
- handleBlur: (_: React.SyntheticEvent<HTMLSpanElement>) => void;
123
- /**
124
- * @hidden
125
- */
126
- render(): import("react/jsx-runtime").JSX.Element;
127
- }
package/Hint.d.ts DELETED
@@ -1,56 +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
- /**
8
- * Represents the props of the KendoReact Hint component.
9
- */
10
- export interface HintProps {
11
- /**
12
- * Represents the id of the Hint element.
13
- * The value should be set to the editor `ariaDescribedBy` property.
14
- */
15
- id?: string;
16
- /**
17
- * Spcifies the alignment of the Hint text.
18
- *
19
- * The possible values are:
20
- * *(Default) `start`
21
- * * `end`
22
- */
23
- direction?: 'start' | 'end';
24
- /**
25
- * @hidden
26
- */
27
- children: any;
28
- /**
29
- * The styles that are applied to the Hint.
30
- */
31
- style?: React.CSSProperties;
32
- /**
33
- * Sets a class of the Hint DOM element.
34
- */
35
- className?: string;
36
- /**
37
- * Specifies if the editor is disabled.
38
- */
39
- editorDisabled?: boolean;
40
- }
41
- /**
42
- * Represents the KendoReact Hint component.
43
- * Render the hint text that will be shown underneath the form editor.
44
- */
45
- export declare const Hint: {
46
- (props: HintProps): import("react/jsx-runtime").JSX.Element;
47
- propTypes: {
48
- id: PropTypes.Requireable<string>;
49
- direction: PropTypes.Requireable<string>;
50
- children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
51
- style: PropTypes.Requireable<object>;
52
- className: PropTypes.Requireable<string>;
53
- editorDisabled: PropTypes.Requireable<boolean>;
54
- };
55
- displayName: string;
56
- };
package/Label.d.ts DELETED
@@ -1,99 +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
- /**
8
- * Represents the props of the KendoReact Label component.
9
- */
10
- export interface LabelProps {
11
- /**
12
- * Represents the id of the label element.
13
- * The value should be set to the editor `ariaLabelledBy` property.
14
- * Can be used when the editor is not containing native form element.
15
- */
16
- id?: string;
17
- /**
18
- * The id of the editor.
19
- * Represent the [`htmlFor`](https://reactjs.org/docs/dom-elements.html#htmlfor) property, which will be set to the `label` element.
20
- */
21
- editorId?: string;
22
- /**
23
- * An optional React ref to the editor.
24
- * Used to redirect the click event to the editor when it does not contain native form element.
25
- * To be able to work, the editor should have `focus` method or `actionElement` prop on it's ref.
26
- */
27
- editorRef?: any;
28
- /**
29
- * The text that will be rendered inside the label element.
30
- * Can be omitted for editors without label to keep form layout.
31
- */
32
- children?: any;
33
- /**
34
- * Specifies the validity of the editor. Used to define the editor is invalid.
35
- */
36
- editorValid?: boolean;
37
- /**
38
- * Specifies if the editor is disabled.
39
- */
40
- editorDisabled?: boolean;
41
- /**
42
- * If enabled marks the label as optional.
43
- */
44
- optional?: boolean;
45
- /**
46
- * The styles that are applied to the Label.
47
- */
48
- style?: React.CSSProperties;
49
- /**
50
- * Sets a class of the Label DOM element.
51
- */
52
- className?: string;
53
- }
54
- /**
55
- * Represents the KendoReact Label component.
56
- *
57
- * @example
58
- * ```jsx
59
- * const sizes = ["X-Small", "Small", "Medium", "Large", "X-Large", "2X-Large"];
60
- * const App = () => {
61
- * const ddlRef = React.useRef(null);
62
- * const labelId = 'ddl-sizes-label';
63
- * const editorId = 'ddl-sizes';
64
- *
65
- * return (
66
- * <div>
67
- * <Label id={labelId} editorId={editorId} editorRef={ddlRef}>
68
- * Shirt Size:
69
- * </Label>
70
- * <DropDownList
71
- * ref={ddlRef}
72
- * id={editorId}
73
- * ariaLabelledBy={labelId}
74
- * data={sizes}
75
- * />
76
- * <br />
77
- * </div>
78
- * );
79
- * };
80
- *
81
- * ReactDOM.render(<App />, document.querySelector('my-app'));
82
- * ```
83
- */
84
- export declare const Label: {
85
- (props: LabelProps): import("react/jsx-runtime").JSX.Element;
86
- propTypes: {
87
- id: PropTypes.Requireable<string>;
88
- editorId: PropTypes.Requireable<string>;
89
- editorRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
90
- current: PropTypes.Requireable<any>;
91
- }> | null | undefined>>;
92
- editorValid: PropTypes.Requireable<boolean>;
93
- editorDisabled: PropTypes.Requireable<boolean>;
94
- style: PropTypes.Requireable<object>;
95
- className: PropTypes.Requireable<string>;
96
- optional: PropTypes.Requireable<boolean>;
97
- };
98
- displayName: string;
99
- };
@@ -1,14 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare const labelsOptional = "labels.optional";
9
- /**
10
- * @hidden
11
- */
12
- export declare const messages: {
13
- "labels.optional": string;
14
- };
@@ -1,9 +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 { PackageMetadata } from '@progress/kendo-licensing';
6
- /**
7
- * @hidden
8
- */
9
- export declare const packageMetadata: PackageMetadata;