@react-types/progress 3.0.2 → 3.1.3

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/index.d.ts +9 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/progress",
3
- "version": "3.0.2",
3
+ "version": "3.1.3",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,13 +9,13 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/shared": "^3.0.2"
12
+ "@react-types/shared": "^3.11.0"
13
13
  },
14
14
  "peerDependencies": {
15
- "react": "^16.8.0"
15
+ "react": "^16.8.0 || ^17.0.0-rc.1"
16
16
  },
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
- "gitHead": "05003506f02a0ec173f3448f1801cbdf12b47bc7"
20
+ "gitHead": "54c2366c4f31bd4bf619126131cd583c12972acc"
21
21
  }
package/src/index.d.ts CHANGED
@@ -34,12 +34,15 @@ interface ProgressBaseProps {
34
34
  export interface ProgressBarBaseProps extends ProgressBaseProps {
35
35
  /** The content to display as the label. */
36
36
  label?: ReactNode,
37
- /** Whether the value's label is displayed. */
38
- showValueLabel?: boolean, // true by default if label, false by default if not
39
- /** The display format of the value label. */
40
- formatOptions?: Intl.NumberFormatOptions, // defaults to formatting as a percentage.
41
- /** The content to display as the value's label. */
42
- valueLabel?: ReactNode // custom value label (e.g. 1 of 4)
37
+ /** Whether the value's label is displayed. True by default if there's a label, false by default if not. */
38
+ showValueLabel?: boolean,
39
+ /**
40
+ * The display format of the value label.
41
+ * @default {style: 'percent'}
42
+ */
43
+ formatOptions?: Intl.NumberFormatOptions,
44
+ /** The content to display as the value's label (e.g. 1 of 4). */
45
+ valueLabel?: ReactNode
43
46
  }
44
47
 
45
48
  export interface AriaProgressBarBaseProps extends ProgressBarBaseProps, DOMProps, AriaLabelingProps {}