@react-types/progress 3.5.18 → 3.6.0
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/package.json +7 -4
- package/src/index.d.ts +2 -92
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/progress",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -9,13 +9,16 @@
|
|
|
9
9
|
"url": "https://github.com/adobe/react-spectrum"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@react-
|
|
12
|
+
"@react-aria/progress": "^3.5.0",
|
|
13
|
+
"@react-spectrum/progress": "^3.8.0"
|
|
13
14
|
},
|
|
14
15
|
"peerDependencies": {
|
|
15
|
-
"react": "^
|
|
16
|
+
"@react-spectrum/provider": "^3.0.0",
|
|
17
|
+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
|
|
18
|
+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
|
|
16
19
|
},
|
|
17
20
|
"publishConfig": {
|
|
18
21
|
"access": "public"
|
|
19
22
|
},
|
|
20
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
|
|
21
24
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -10,95 +10,5 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
interface ProgressBaseProps {
|
|
17
|
-
/**
|
|
18
|
-
* The current value (controlled).
|
|
19
|
-
* @default 0
|
|
20
|
-
*/
|
|
21
|
-
value?: number,
|
|
22
|
-
/**
|
|
23
|
-
* The smallest value allowed for the input.
|
|
24
|
-
* @default 0
|
|
25
|
-
*/
|
|
26
|
-
minValue?: number,
|
|
27
|
-
/**
|
|
28
|
-
* The largest value allowed for the input.
|
|
29
|
-
* @default 100
|
|
30
|
-
*/
|
|
31
|
-
maxValue?: number
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface ProgressBarBaseProps extends ProgressBaseProps {
|
|
35
|
-
/** The content to display as the label. */
|
|
36
|
-
label?: ReactNode,
|
|
37
|
-
/**
|
|
38
|
-
* The display format of the value label.
|
|
39
|
-
* @default {style: 'percent'}
|
|
40
|
-
*/
|
|
41
|
-
formatOptions?: Intl.NumberFormatOptions,
|
|
42
|
-
/** The content to display as the value's label (e.g. 1 of 4). */
|
|
43
|
-
valueLabel?: ReactNode
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface AriaProgressBarBaseProps extends ProgressBarBaseProps, DOMProps, AriaLabelingProps {}
|
|
47
|
-
|
|
48
|
-
export interface ProgressBarProps extends ProgressBarBaseProps {
|
|
49
|
-
/**
|
|
50
|
-
* Whether presentation is indeterminate when progress isn't known.
|
|
51
|
-
*/
|
|
52
|
-
isIndeterminate?: boolean
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface AriaProgressBarProps extends ProgressBarProps, DOMProps, AriaLabelingProps {}
|
|
56
|
-
|
|
57
|
-
export interface ProgressCircleProps extends ProgressBaseProps {
|
|
58
|
-
/**
|
|
59
|
-
* Whether presentation is indeterminate when progress isn't known.
|
|
60
|
-
*/
|
|
61
|
-
isIndeterminate?: boolean
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface AriaProgressCircleProps extends ProgressCircleProps, DOMProps, AriaLabelingProps {}
|
|
65
|
-
export interface SpectrumProgressCircleProps extends AriaProgressCircleProps, StyleProps {
|
|
66
|
-
/**
|
|
67
|
-
* What the ProgressCircle's diameter should be.
|
|
68
|
-
* @default 'M'
|
|
69
|
-
*/
|
|
70
|
-
size?: 'S' | 'M' | 'L',
|
|
71
|
-
/** The static color style to apply. Useful when the button appears over a color background. */
|
|
72
|
-
staticColor?: 'white' | 'black',
|
|
73
|
-
/**
|
|
74
|
-
* The [visual style](https://spectrum.adobe.com/page/progress-circle/#Over-background-variant) of the ProgressCircle.
|
|
75
|
-
*
|
|
76
|
-
* @deprecated - use staticColor instead.
|
|
77
|
-
*/
|
|
78
|
-
variant?: 'overBackground'
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface SpectrumProgressBarBaseProps extends AriaProgressBarBaseProps, StyleProps {
|
|
82
|
-
/**
|
|
83
|
-
* How thick the bar should be.
|
|
84
|
-
* @default 'L'
|
|
85
|
-
*/
|
|
86
|
-
size?: 'S' | 'L',
|
|
87
|
-
/**
|
|
88
|
-
* The label's overall position relative to the element it is labeling.
|
|
89
|
-
* @default 'top'
|
|
90
|
-
*/
|
|
91
|
-
labelPosition?: LabelPosition,
|
|
92
|
-
/** Whether the value's label is displayed. True by default if there's a label, false by default if not. */
|
|
93
|
-
showValueLabel?: boolean
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export interface SpectrumProgressBarProps extends SpectrumProgressBarBaseProps, ProgressBarProps {
|
|
97
|
-
/** The static color style to apply. Useful when the button appears over a color background. */
|
|
98
|
-
staticColor?: 'white' | 'black',
|
|
99
|
-
/**
|
|
100
|
-
* The [visual style](https://spectrum.adobe.com/page/progress-bar/#Over-background-variant) of the ProgressBar.
|
|
101
|
-
* @deprecated - use staticColor instead.
|
|
102
|
-
*/
|
|
103
|
-
variant?: 'overBackground'
|
|
104
|
-
}
|
|
13
|
+
export {ProgressBarBaseProps, AriaProgressBarBaseProps, AriaProgressBarProps} from '@react-aria/progress';
|
|
14
|
+
export {ProgressCircleProps, AriaProgressCircleProps, SpectrumProgressCircleProps, SpectrumProgressBarBaseProps, SpectrumProgressBarProps} from '@react-spectrum/progress';
|