@progress/kendo-react-progressbars 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.
@@ -1,86 +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 interface BaseProps {
9
- /**
10
- * Sets one of the two visually distinct types of progress bar.
11
- *
12
- * @hidden
13
- */
14
- type?: 'linear' | 'circular';
15
- /**
16
- * Sets the value of the progress bar. Has to be between `min` and `max` values. Defaults to `0`.
17
- * Set `null` to enable the indeterminate state of the progress bar.
18
- * See examples ([here]({% slug overview_progressbar %})) and ([here]({% slug overview_chunkprogressbar %})).
19
- */
20
- value?: number | null;
21
- /**
22
- * The minimum value of the progress bar. Defaults to `0`.
23
- */
24
- min?: number;
25
- /**
26
- * The maximum value of the progress bar. Defaults to `100`.
27
- */
28
- max?: number;
29
- /**
30
- * Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
31
- */
32
- dir?: string;
33
- /**
34
- * The accessible label of the component.
35
- */
36
- ariaLabel?: string;
37
- /**
38
- * Sets the disabled state of the progress bar.
39
- * See examples ([here]({% slug progressbar_disabled %})) and ([here]({% slug chunkprogressbar_disabled %})).
40
- */
41
- disabled?: boolean;
42
- /**
43
- * Defines the orientation of the progress bar.
44
- * See examples ([here]({% slug progressbar_orientation %})) and ([here]({% slug chunkprogressbar_orientation %})).
45
- * Defaults to `horizontal`.
46
- */
47
- orientation?: 'horizontal' | 'vertical';
48
- /**
49
- * If set to `true`, the progress bar will be reversed.
50
- * See examples ([here]({% slug progressbar_direction %})) and ([here]({% slug chunkprogressbar_direction %})).
51
- * Defaults to `false`.
52
- */
53
- reverse?: boolean;
54
- /**
55
- * Specifies a list of CSS classes that will be added to the progress bar element.
56
- */
57
- className?: string;
58
- /**
59
- * Sets additional CSS styles to the progress bar.
60
- */
61
- style?: React.CSSProperties;
62
- /**
63
- * The styles that are applied to the inner element which represents the empty portion of the progress bar.
64
- * See examples ([here]({% slug progressbar_appearance %})) and ([here]({% slug chunkprogressbar_appearance %})).
65
- */
66
- emptyStyle?: React.CSSProperties;
67
- /**
68
- * Sets additional classes to the inner element which represents the empty portion of the progress bar.
69
- * See examples ([here]({% slug progressbar_appearance %})) and ([here]({% slug chunkprogressbar_appearance %})).
70
- */
71
- emptyClassName?: string;
72
- /**
73
- * The styles that are applied to the inner element which represents the full portion of the progress bar.
74
- * See examples ([here]({% slug progressbar_appearance %})) and ([here]({% slug chunkprogressbar_appearance %})).
75
- */
76
- progressStyle?: React.CSSProperties;
77
- /**
78
- * Sets additional classes to the inner element which represents the full portion of the progress bar.
79
- * See examples ([here]({% slug progressbar_appearance %})) and ([here]({% slug chunkprogressbar_appearance %})).
80
- */
81
- progressClassName?: string;
82
- /**
83
- * Sets the `tabIndex` property of the progress bar.
84
- */
85
- tabIndex?: number;
86
- }
@@ -1,20 +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 MIN_RATIO = 0.00001;
9
- /**
10
- * @hidden
11
- */
12
- export declare const LABEL_DECIMALS = 3;
13
- /**
14
- * @hidden
15
- */
16
- export declare const DEFAULT_ANIMATION_DURATION = 400;
17
- /**
18
- * @hidden
19
- */
20
- export declare const NO_ANIMATION = 0;
package/common/utils.d.ts DELETED
@@ -1,21 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- /**
7
- * @hidden
8
- */
9
- export declare const truncateNumber: (value: number) => string;
10
- /**
11
- * @hidden
12
- */
13
- export declare const calculatePercentage: (min: number, max: number, value: number) => number;
14
- /**
15
- * @hidden
16
- */
17
- export declare const updateProgress: (progressRef: React.RefObject<HTMLDivElement>, progressWrapRef: React.RefObject<HTMLSpanElement>, percentage: number, isVertical: boolean) => void;
18
- /**
19
- * @hidden
20
- */
21
- export declare const calculateRatio: (min: number, max: number, value: number) => number;
@@ -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;
@@ -1,21 +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 { ProgressBarProps } from './interfaces/ProgressBarProps';
7
- import { ProgressBarHandle } from './interfaces/ProgressBarHandle';
8
- /**
9
- * Represents the [KendoReact ProgressBar component]({% slug overview_progressbar %}).
10
- *
11
- * @example
12
- * ```jsx
13
- * const App = () => {
14
- * return (
15
- * <ProgressBar value={75}/>
16
- * );
17
- * };
18
- * ReactDOM.render(<App />, document.querySelector('my-app'));
19
- * ```
20
- */
21
- export declare const ProgressBar: React.ForwardRefExoticComponent<ProgressBarProps & React.RefAttributes<ProgressBarHandle | null>>;
@@ -1,6 +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
- /** @hidden */
6
- export declare const usePrevious: (value: any) => any;
@@ -1,13 +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
- * An interface for the ProgressBar label.
7
- */
8
- export interface LabelProps {
9
- /**
10
- * Represents the current value of the ProgressBar.
11
- */
12
- value?: number | null;
13
- }
@@ -1,13 +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
- * Specifies the animation settings of the ProgressBar.
7
- */
8
- export interface ProgressBarAnimation {
9
- /**
10
- * Specifies the duration of the ProgressBar animation. Defaults to `400`.
11
- */
12
- duration: number;
13
- }
@@ -1,25 +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
- * The ProgressBar ref.
7
- */
8
- export interface ProgressBarHandle {
9
- /**
10
- * The ProgressBar element.
11
- */
12
- element: HTMLDivElement | null;
13
- /**
14
- * The progress status element.
15
- */
16
- progressStatusElement: HTMLDivElement | null;
17
- /**
18
- * The progress status wrap element.
19
- */
20
- progressStatusWrapElement: HTMLSpanElement | null;
21
- /**
22
- * Focus the ProgressBar.
23
- */
24
- focus: () => void;
25
- }
@@ -1,30 +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 { BaseProps } from '../../common/BaseProps';
6
- import { ProgressBarAnimation } from './ProgressBarAnimation';
7
- import { LabelProps } from './LabelProps';
8
- /**
9
- * Represents the props of the [KendoReact ProgressBar component]({% slug overview_progressbar %}).
10
- */
11
- export interface ProgressBarProps extends BaseProps {
12
- /**
13
- * Specifies the animation settings of the ProgressBar. Defaults to `false`.
14
- * If boolean, enables or disables the default animation.
15
- * Use ProgressBarAnimation to set slide animation with customizable duration option. Accepts a number in milliseconds.
16
- */
17
- animation?: boolean | ProgressBarAnimation;
18
- /**
19
- * Overrides the default label ([see example]({% slug progressbar_label %})).
20
- */
21
- label?: React.ComponentType<LabelProps>;
22
- /**
23
- * Sets the visibility of the progress status label. Defaults to `true`.
24
- */
25
- labelVisible?: boolean;
26
- /**
27
- * Sets the position of the progress status label. Defaults to `end` ([see example]({% slug progressbar_label %})).
28
- */
29
- labelPlacement?: 'start' | 'center' | 'end';
30
- }