@fluentui/react-progress 9.0.0-alpha.9 → 9.1.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.
Files changed (79) hide show
  1. package/CHANGELOG.json +319 -1
  2. package/CHANGELOG.md +132 -2
  3. package/README.md +9 -17
  4. package/dist/index.d.ts +20 -11
  5. package/lib/components/ProgressBar/ProgressBar.js +5 -1
  6. package/lib/components/ProgressBar/ProgressBar.js.map +1 -1
  7. package/lib/components/ProgressBar/ProgressBar.types.js.map +1 -1
  8. package/lib/components/ProgressBar/renderProgressBar.js +4 -3
  9. package/lib/components/ProgressBar/renderProgressBar.js.map +1 -1
  10. package/lib/components/ProgressBar/useProgressBar.js +7 -6
  11. package/lib/components/ProgressBar/useProgressBar.js.map +1 -1
  12. package/lib/components/ProgressBar/useProgressBarStyles.js +65 -82
  13. package/lib/components/ProgressBar/useProgressBarStyles.js.map +1 -1
  14. package/lib/components/ProgressField/ProgressField.js +15 -15
  15. package/lib/components/ProgressField/ProgressField.js.map +1 -1
  16. package/lib/index.js +1 -0
  17. package/lib/index.js.map +1 -1
  18. package/lib/utils/clampMax.js +11 -0
  19. package/lib/utils/clampMax.js.map +1 -0
  20. package/lib/utils/clampValue.js +18 -0
  21. package/lib/utils/clampValue.js.map +1 -0
  22. package/lib/utils/index.js +3 -0
  23. package/lib/utils/index.js.map +1 -0
  24. package/lib-amd/ProgressBar.js +6 -0
  25. package/lib-amd/ProgressBar.js.map +1 -0
  26. package/lib-amd/ProgressField.js +6 -0
  27. package/lib-amd/ProgressField.js.map +1 -0
  28. package/lib-amd/components/ProgressBar/ProgressBar.js +17 -0
  29. package/lib-amd/components/ProgressBar/ProgressBar.js.map +1 -0
  30. package/lib-amd/components/ProgressBar/ProgressBar.types.js +5 -0
  31. package/lib-amd/components/ProgressBar/ProgressBar.types.js.map +1 -0
  32. package/lib-amd/components/ProgressBar/index.js +10 -0
  33. package/lib-amd/components/ProgressBar/index.js.map +1 -0
  34. package/lib-amd/components/ProgressBar/renderProgressBar.js +14 -0
  35. package/lib-amd/components/ProgressBar/renderProgressBar.js.map +1 -0
  36. package/lib-amd/components/ProgressBar/useProgressBar.js +41 -0
  37. package/lib-amd/components/ProgressBar/useProgressBar.js.map +1 -0
  38. package/lib-amd/components/ProgressBar/useProgressBarStyles.js +107 -0
  39. package/lib-amd/components/ProgressBar/useProgressBarStyles.js.map +1 -0
  40. package/lib-amd/components/ProgressField/ProgressField.js +13 -0
  41. package/lib-amd/components/ProgressField/ProgressField.js.map +1 -0
  42. package/lib-amd/components/ProgressField/index.js +6 -0
  43. package/lib-amd/components/ProgressField/index.js.map +1 -0
  44. package/lib-amd/index.js +13 -0
  45. package/lib-amd/index.js.map +1 -0
  46. package/lib-amd/utils/clampMax.js +17 -0
  47. package/lib-amd/utils/clampMax.js.map +1 -0
  48. package/lib-amd/utils/clampValue.js +24 -0
  49. package/lib-amd/utils/clampValue.js.map +1 -0
  50. package/lib-amd/utils/index.js +7 -0
  51. package/lib-amd/utils/index.js.map +1 -0
  52. package/lib-commonjs/ProgressBar.js +0 -2
  53. package/lib-commonjs/ProgressBar.js.map +1 -1
  54. package/lib-commonjs/ProgressField.js +0 -2
  55. package/lib-commonjs/ProgressField.js.map +1 -1
  56. package/lib-commonjs/components/ProgressBar/ProgressBar.js +5 -6
  57. package/lib-commonjs/components/ProgressBar/ProgressBar.js.map +1 -1
  58. package/lib-commonjs/components/ProgressBar/ProgressBar.types.js.map +1 -1
  59. package/lib-commonjs/components/ProgressBar/index.js +0 -6
  60. package/lib-commonjs/components/ProgressBar/index.js.map +1 -1
  61. package/lib-commonjs/components/ProgressBar/renderProgressBar.js +4 -7
  62. package/lib-commonjs/components/ProgressBar/renderProgressBar.js.map +1 -1
  63. package/lib-commonjs/components/ProgressBar/useProgressBar.js +7 -9
  64. package/lib-commonjs/components/ProgressBar/useProgressBar.js.map +1 -1
  65. package/lib-commonjs/components/ProgressBar/useProgressBarStyles.js +65 -87
  66. package/lib-commonjs/components/ProgressBar/useProgressBarStyles.js.map +1 -1
  67. package/lib-commonjs/components/ProgressField/ProgressField.js +13 -17
  68. package/lib-commonjs/components/ProgressField/ProgressField.js.map +1 -1
  69. package/lib-commonjs/components/ProgressField/index.js +0 -2
  70. package/lib-commonjs/components/ProgressField/index.js.map +1 -1
  71. package/lib-commonjs/index.js +1 -4
  72. package/lib-commonjs/index.js.map +1 -1
  73. package/lib-commonjs/utils/clampMax.js +18 -0
  74. package/lib-commonjs/utils/clampMax.js.map +1 -0
  75. package/lib-commonjs/utils/clampValue.js +25 -0
  76. package/lib-commonjs/utils/clampValue.js.map +1 -0
  77. package/lib-commonjs/utils/index.js +9 -0
  78. package/lib-commonjs/utils/index.js.map +1 -0
  79. package/package.json +9 -9
package/CHANGELOG.json CHANGED
@@ -2,7 +2,325 @@
2
2
  "name": "@fluentui/react-progress",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 21 Dec 2022 10:17:12 GMT",
5
+ "date": "Wed, 08 Mar 2023 17:39:07 GMT",
6
+ "tag": "@fluentui/react-progress_v9.1.0",
7
+ "version": "9.1.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "gcox@microsoft.com",
12
+ "package": "@fluentui/react-progress",
13
+ "commit": "34cb9409ea7ac1bb0d88c80312b15b09325e96b3",
14
+ "comment": "feat: custom styles"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-progress",
19
+ "comment": "Bump @fluentui/react-field to v9.0.0-alpha.22",
20
+ "commit": "e0d11faf97f6466f4cd23ed18266cf1e80094f56"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-progress",
25
+ "comment": "Bump @fluentui/react-shared-contexts to v9.3.0",
26
+ "commit": "e0d11faf97f6466f4cd23ed18266cf1e80094f56"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-progress",
31
+ "comment": "Bump @fluentui/react-utilities to v9.6.1",
32
+ "commit": "e0d11faf97f6466f4cd23ed18266cf1e80094f56"
33
+ }
34
+ ],
35
+ "patch": [
36
+ {
37
+ "author": "ololubek@microsoft.com",
38
+ "package": "@fluentui/react-progress",
39
+ "commit": "72b29a2530140bdb11e097d7d7b36f06c66f10fb",
40
+ "comment": "fix: Align WHCM styles with figma and fix documentation typo."
41
+ },
42
+ {
43
+ "author": "ololubek@microsoft.com",
44
+ "package": "@fluentui/react-progress",
45
+ "commit": "efb2274e37c0237f3a10a4630b2696a9880f6398",
46
+ "comment": "fix: Add error checking for incorrect values of max and value props"
47
+ },
48
+ {
49
+ "author": "ololubek@microsoft.com",
50
+ "package": "@fluentui/react-progress",
51
+ "commit": "f2c7257775bf2d17c3f9dc6eae0b834a988f8793",
52
+ "comment": "fix: Update ProgressBar styling to have width when display is set to flex"
53
+ }
54
+ ]
55
+ }
56
+ },
57
+ {
58
+ "date": "Wed, 22 Feb 2023 23:06:06 GMT",
59
+ "tag": "@fluentui/react-progress_v9.0.0",
60
+ "version": "9.0.0",
61
+ "comments": {
62
+ "minor": [
63
+ {
64
+ "author": "ololubek@microsoft.com",
65
+ "package": "@fluentui/react-progress",
66
+ "commit": "ba7aaecf417043f343933edc159bb5c7e745c8c6",
67
+ "comment": "feat: Move ProgressBar to stable"
68
+ }
69
+ ]
70
+ }
71
+ },
72
+ {
73
+ "date": "Wed, 15 Feb 2023 11:44:52 GMT",
74
+ "tag": "@fluentui/react-progress_v9.0.0-alpha.19",
75
+ "version": "9.0.0-alpha.19",
76
+ "comments": {
77
+ "prerelease": [
78
+ {
79
+ "author": "beachball",
80
+ "package": "@fluentui/react-progress",
81
+ "comment": "Bump @fluentui/react-field to v9.0.0-alpha.21",
82
+ "commit": "087d981aab96bef2e332a373069a19bc702a7ca2"
83
+ },
84
+ {
85
+ "author": "beachball",
86
+ "package": "@fluentui/react-progress",
87
+ "comment": "Bump @fluentui/react-utilities to v9.6.0",
88
+ "commit": "087d981aab96bef2e332a373069a19bc702a7ca2"
89
+ }
90
+ ]
91
+ }
92
+ },
93
+ {
94
+ "date": "Mon, 13 Feb 2023 23:43:14 GMT",
95
+ "tag": "@fluentui/react-progress_v9.0.0-alpha.18",
96
+ "version": "9.0.0-alpha.18",
97
+ "comments": {
98
+ "prerelease": [
99
+ {
100
+ "author": "beachball",
101
+ "package": "@fluentui/react-progress",
102
+ "comment": "Bump @fluentui/react-field to v9.0.0-alpha.20",
103
+ "commit": "29e62b13706c2845b21d665d43cdacf1ef1b1513"
104
+ },
105
+ {
106
+ "author": "beachball",
107
+ "package": "@fluentui/react-progress",
108
+ "comment": "Bump @fluentui/react-utilities to v9.5.3",
109
+ "commit": "29e62b13706c2845b21d665d43cdacf1ef1b1513"
110
+ }
111
+ ]
112
+ }
113
+ },
114
+ {
115
+ "date": "Mon, 13 Feb 2023 09:35:47 GMT",
116
+ "tag": "@fluentui/react-progress_v9.0.0-alpha.17",
117
+ "version": "9.0.0-alpha.17",
118
+ "comments": {
119
+ "prerelease": [
120
+ {
121
+ "author": "ololubek@microsoft.com",
122
+ "package": "@fluentui/react-progress",
123
+ "commit": "48b466e0ba8a55ad6f216127e538076c1e65fd37",
124
+ "comment": "chore: Update docs and styling to fix visual bugs and clarify usage of ProgressBar"
125
+ }
126
+ ]
127
+ }
128
+ },
129
+ {
130
+ "date": "Fri, 10 Feb 2023 08:50:02 GMT",
131
+ "tag": "@fluentui/react-progress_v9.0.0-alpha.16",
132
+ "version": "9.0.0-alpha.16",
133
+ "comments": {
134
+ "prerelease": [
135
+ {
136
+ "author": "beachball",
137
+ "package": "@fluentui/react-progress",
138
+ "comment": "Bump @fluentui/react-field to v9.0.0-alpha.19",
139
+ "commit": "cc62f050f8231e8f21a2cf7dddf33003e0ba3931"
140
+ },
141
+ {
142
+ "author": "beachball",
143
+ "package": "@fluentui/react-progress",
144
+ "comment": "Bump @fluentui/react-utilities to v9.5.2",
145
+ "commit": "cc62f050f8231e8f21a2cf7dddf33003e0ba3931"
146
+ }
147
+ ]
148
+ }
149
+ },
150
+ {
151
+ "date": "Tue, 31 Jan 2023 19:53:58 GMT",
152
+ "tag": "@fluentui/react-progress_v9.0.0-alpha.15",
153
+ "version": "9.0.0-alpha.15",
154
+ "comments": {
155
+ "prerelease": [
156
+ {
157
+ "author": "beachball",
158
+ "package": "@fluentui/react-progress",
159
+ "comment": "Bump @fluentui/react-field to v9.0.0-alpha.18",
160
+ "commit": "794d9e845cb952f597ba786e70cd8d248be62746"
161
+ },
162
+ {
163
+ "author": "beachball",
164
+ "package": "@fluentui/react-progress",
165
+ "comment": "Bump @fluentui/react-utilities to v9.5.1",
166
+ "commit": "794d9e845cb952f597ba786e70cd8d248be62746"
167
+ }
168
+ ]
169
+ }
170
+ },
171
+ {
172
+ "date": "Thu, 26 Jan 2023 13:30:58 GMT",
173
+ "tag": "@fluentui/react-progress_v9.0.0-alpha.14",
174
+ "version": "9.0.0-alpha.14",
175
+ "comments": {
176
+ "prerelease": [
177
+ {
178
+ "author": "behowell@microsoft.com",
179
+ "package": "@fluentui/react-progress",
180
+ "commit": "d6e98c0b5390c5c7e03601537b2026307e01a8d4",
181
+ "comment": "Deprecate ProgressField_unstable in favor of Field with Progress as its child."
182
+ },
183
+ {
184
+ "author": "beachball",
185
+ "package": "@fluentui/react-progress",
186
+ "comment": "Bump @fluentui/react-field to v9.0.0-alpha.17",
187
+ "commit": "403e1370f1effca7d3db131eda381abf31cf66b1"
188
+ },
189
+ {
190
+ "author": "beachball",
191
+ "package": "@fluentui/react-progress",
192
+ "comment": "Bump @fluentui/react-shared-contexts to v9.2.0",
193
+ "commit": "403e1370f1effca7d3db131eda381abf31cf66b1"
194
+ },
195
+ {
196
+ "author": "beachball",
197
+ "package": "@fluentui/react-progress",
198
+ "comment": "Bump @fluentui/react-utilities to v9.5.0",
199
+ "commit": "403e1370f1effca7d3db131eda381abf31cf66b1"
200
+ }
201
+ ]
202
+ }
203
+ },
204
+ {
205
+ "date": "Mon, 23 Jan 2023 16:43:11 GMT",
206
+ "tag": "@fluentui/react-progress_v9.0.0-alpha.13",
207
+ "version": "9.0.0-alpha.13",
208
+ "comments": {
209
+ "prerelease": [
210
+ {
211
+ "author": "miroslav.stastny@microsoft.com",
212
+ "package": "@fluentui/react-progress",
213
+ "commit": "22b51ad9694bdaa9dbf0bd1283421d65f77dbf8c",
214
+ "comment": "Rename rectangular shape to square"
215
+ },
216
+ {
217
+ "author": "beachball",
218
+ "package": "@fluentui/react-progress",
219
+ "comment": "Bump @fluentui/react-field to v9.0.0-alpha.16",
220
+ "commit": "828c4260edc4fba07c9ccc8e94f15051c7fd25d3"
221
+ }
222
+ ]
223
+ }
224
+ },
225
+ {
226
+ "date": "Mon, 16 Jan 2023 08:39:07 GMT",
227
+ "tag": "@fluentui/react-progress_v9.0.0-alpha.12",
228
+ "version": "9.0.0-alpha.12",
229
+ "comments": {
230
+ "none": [
231
+ {
232
+ "author": "martinhochel@microsoft.com",
233
+ "package": "@fluentui/react-progress",
234
+ "commit": "64bb45980d68de1219c6b36a7db5363f0a9cff9f",
235
+ "comment": "chore: migrate to packaged scripts"
236
+ }
237
+ ],
238
+ "prerelease": [
239
+ {
240
+ "author": "beachball",
241
+ "package": "@fluentui/react-progress",
242
+ "comment": "Bump @fluentui/react-field to v9.0.0-alpha.15",
243
+ "commit": "a870d8360e47f3ea03358c4e75e89e08a74845d7"
244
+ },
245
+ {
246
+ "author": "beachball",
247
+ "package": "@fluentui/react-progress",
248
+ "comment": "Bump @fluentui/react-shared-contexts to v9.1.5",
249
+ "commit": "a870d8360e47f3ea03358c4e75e89e08a74845d7"
250
+ }
251
+ ]
252
+ }
253
+ },
254
+ {
255
+ "date": "Mon, 09 Jan 2023 14:35:02 GMT",
256
+ "tag": "@fluentui/react-progress_v9.0.0-alpha.11",
257
+ "version": "9.0.0-alpha.11",
258
+ "comments": {
259
+ "prerelease": [
260
+ {
261
+ "author": "beachball",
262
+ "package": "@fluentui/react-progress",
263
+ "comment": "Bump @fluentui/react-field to v9.0.0-alpha.14",
264
+ "commit": "d246e70eba59a37ec311dbf933b0745d34cb700d"
265
+ },
266
+ {
267
+ "author": "beachball",
268
+ "package": "@fluentui/react-progress",
269
+ "comment": "Bump @fluentui/react-utilities to v9.4.0",
270
+ "commit": "d246e70eba59a37ec311dbf933b0745d34cb700d"
271
+ }
272
+ ]
273
+ }
274
+ },
275
+ {
276
+ "date": "Wed, 04 Jan 2023 01:40:22 GMT",
277
+ "tag": "@fluentui/react-progress_v9.0.0-alpha.10",
278
+ "version": "9.0.0-alpha.10",
279
+ "comments": {
280
+ "none": [
281
+ {
282
+ "author": "martinhochel@microsoft.com",
283
+ "package": "@fluentui/react-progress",
284
+ "commit": "4ec2b998b294d6d9c3196d3d82893bdd97d0c105",
285
+ "comment": "chore(scripts): move index.ts to to follow sub-folder domain packaging"
286
+ },
287
+ {
288
+ "author": "martinhochel@microsoft.com",
289
+ "package": "@fluentui/react-progress",
290
+ "commit": "194b0cf0cc27c1c1233aa945f09b3ad29778d8ca",
291
+ "comment": "chore(scripts): use for @fluentui/scripts version within all package.json"
292
+ }
293
+ ],
294
+ "prerelease": [
295
+ {
296
+ "author": "olfedias@microsoft.com",
297
+ "package": "@fluentui/react-progress",
298
+ "commit": "2c38f1e4ae07b2b60df596efe11015a68f166dbf",
299
+ "comment": "chore: Update Griffel to latest version"
300
+ },
301
+ {
302
+ "author": "beachball",
303
+ "package": "@fluentui/react-progress",
304
+ "comment": "Bump @fluentui/react-field to v9.0.0-alpha.13",
305
+ "commit": "3e322d15529451be153e97298873253e21af4082"
306
+ },
307
+ {
308
+ "author": "beachball",
309
+ "package": "@fluentui/react-progress",
310
+ "comment": "Bump @fluentui/react-utilities to v9.3.1",
311
+ "commit": "3e322d15529451be153e97298873253e21af4082"
312
+ },
313
+ {
314
+ "author": "beachball",
315
+ "package": "@fluentui/react-progress",
316
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.19",
317
+ "commit": "3e322d15529451be153e97298873253e21af4082"
318
+ }
319
+ ]
320
+ }
321
+ },
322
+ {
323
+ "date": "Wed, 21 Dec 2022 10:20:29 GMT",
6
324
  "tag": "@fluentui/react-progress_v9.0.0-alpha.9",
7
325
  "version": "9.0.0-alpha.9",
8
326
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,142 @@
1
1
  # Change Log - @fluentui/react-progress
2
2
 
3
- This log was last generated on Wed, 21 Dec 2022 10:17:12 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 08 Mar 2023 17:39:07 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-progress_v9.1.0)
8
+
9
+ Wed, 08 Mar 2023 17:39:07 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-progress_v9.0.0..@fluentui/react-progress_v9.1.0)
11
+
12
+ ### Minor changes
13
+
14
+ - feat: custom styles ([PR #27082](https://github.com/microsoft/fluentui/pull/27082) by gcox@microsoft.com)
15
+ - Bump @fluentui/react-field to v9.0.0-alpha.22 ([PR #27127](https://github.com/microsoft/fluentui/pull/27127) by beachball)
16
+ - Bump @fluentui/react-shared-contexts to v9.3.0 ([PR #27127](https://github.com/microsoft/fluentui/pull/27127) by beachball)
17
+ - Bump @fluentui/react-utilities to v9.6.1 ([PR #27127](https://github.com/microsoft/fluentui/pull/27127) by beachball)
18
+
19
+ ### Patches
20
+
21
+ - fix: Align WHCM styles with figma and fix documentation typo. ([PR #27038](https://github.com/microsoft/fluentui/pull/27038) by ololubek@microsoft.com)
22
+ - fix: Add error checking for incorrect values of max and value props ([PR #27029](https://github.com/microsoft/fluentui/pull/27029) by ololubek@microsoft.com)
23
+ - fix: Update ProgressBar styling to have width when display is set to flex ([PR #27101](https://github.com/microsoft/fluentui/pull/27101) by ololubek@microsoft.com)
24
+
25
+ ## [9.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-progress_v9.0.0)
26
+
27
+ Wed, 22 Feb 2023 23:06:06 GMT
28
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-progress_v9.0.0-alpha.19..@fluentui/react-progress_v9.0.0)
29
+
30
+ ### Minor changes
31
+
32
+ - feat: Move ProgressBar to stable ([PR #26008](https://github.com/microsoft/fluentui/pull/26008) by ololubek@microsoft.com)
33
+
34
+ ## [9.0.0-alpha.19](https://github.com/microsoft/fluentui/tree/@fluentui/react-progress_v9.0.0-alpha.19)
35
+
36
+ Wed, 15 Feb 2023 11:44:52 GMT
37
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-progress_v9.0.0-alpha.18..@fluentui/react-progress_v9.0.0-alpha.19)
38
+
39
+ ### Changes
40
+
41
+ - Bump @fluentui/react-field to v9.0.0-alpha.21 ([PR #26845](https://github.com/microsoft/fluentui/pull/26845) by beachball)
42
+ - Bump @fluentui/react-utilities to v9.6.0 ([PR #26845](https://github.com/microsoft/fluentui/pull/26845) by beachball)
43
+
44
+ ## [9.0.0-alpha.18](https://github.com/microsoft/fluentui/tree/@fluentui/react-progress_v9.0.0-alpha.18)
45
+
46
+ Mon, 13 Feb 2023 23:43:14 GMT
47
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-progress_v9.0.0-alpha.17..@fluentui/react-progress_v9.0.0-alpha.18)
48
+
49
+ ### Changes
50
+
51
+ - Bump @fluentui/react-field to v9.0.0-alpha.20 ([PR #26814](https://github.com/microsoft/fluentui/pull/26814) by beachball)
52
+ - Bump @fluentui/react-utilities to v9.5.3 ([PR #26814](https://github.com/microsoft/fluentui/pull/26814) by beachball)
53
+
54
+ ## [9.0.0-alpha.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-progress_v9.0.0-alpha.17)
55
+
56
+ Mon, 13 Feb 2023 09:35:47 GMT
57
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-progress_v9.0.0-alpha.16..@fluentui/react-progress_v9.0.0-alpha.17)
58
+
59
+ ### Changes
60
+
61
+ - chore: Update docs and styling to fix visual bugs and clarify usage of ProgressBar ([PR #26768](https://github.com/microsoft/fluentui/pull/26768) by ololubek@microsoft.com)
62
+
63
+ ## [9.0.0-alpha.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-progress_v9.0.0-alpha.16)
64
+
65
+ Fri, 10 Feb 2023 08:50:02 GMT
66
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-progress_v9.0.0-alpha.15..@fluentui/react-progress_v9.0.0-alpha.16)
67
+
68
+ ### Changes
69
+
70
+ - Bump @fluentui/react-field to v9.0.0-alpha.19 ([commit](https://github.com/microsoft/fluentui/commit/cc62f050f8231e8f21a2cf7dddf33003e0ba3931) by beachball)
71
+ - Bump @fluentui/react-utilities to v9.5.2 ([commit](https://github.com/microsoft/fluentui/commit/cc62f050f8231e8f21a2cf7dddf33003e0ba3931) by beachball)
72
+
73
+ ## [9.0.0-alpha.15](https://github.com/microsoft/fluentui/tree/@fluentui/react-progress_v9.0.0-alpha.15)
74
+
75
+ Tue, 31 Jan 2023 19:53:58 GMT
76
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-progress_v9.0.0-alpha.14..@fluentui/react-progress_v9.0.0-alpha.15)
77
+
78
+ ### Changes
79
+
80
+ - Bump @fluentui/react-field to v9.0.0-alpha.18 ([PR #26557](https://github.com/microsoft/fluentui/pull/26557) by beachball)
81
+ - Bump @fluentui/react-utilities to v9.5.1 ([PR #26557](https://github.com/microsoft/fluentui/pull/26557) by beachball)
82
+
83
+ ## [9.0.0-alpha.14](https://github.com/microsoft/fluentui/tree/@fluentui/react-progress_v9.0.0-alpha.14)
84
+
85
+ Thu, 26 Jan 2023 13:30:58 GMT
86
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-progress_v9.0.0-alpha.13..@fluentui/react-progress_v9.0.0-alpha.14)
87
+
88
+ ### Changes
89
+
90
+ - Deprecate ProgressField_unstable in favor of Field with Progress as its child. ([PR #26430](https://github.com/microsoft/fluentui/pull/26430) by behowell@microsoft.com)
91
+ - Bump @fluentui/react-field to v9.0.0-alpha.17 ([PR #26496](https://github.com/microsoft/fluentui/pull/26496) by beachball)
92
+ - Bump @fluentui/react-shared-contexts to v9.2.0 ([PR #26496](https://github.com/microsoft/fluentui/pull/26496) by beachball)
93
+ - Bump @fluentui/react-utilities to v9.5.0 ([PR #26496](https://github.com/microsoft/fluentui/pull/26496) by beachball)
94
+
95
+ ## [9.0.0-alpha.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-progress_v9.0.0-alpha.13)
96
+
97
+ Mon, 23 Jan 2023 16:43:11 GMT
98
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-progress_v9.0.0-alpha.12..@fluentui/react-progress_v9.0.0-alpha.13)
99
+
100
+ ### Changes
101
+
102
+ - Rename rectangular shape to square ([PR #26419](https://github.com/microsoft/fluentui/pull/26419) by miroslav.stastny@microsoft.com)
103
+ - Bump @fluentui/react-field to v9.0.0-alpha.16 ([PR #26434](https://github.com/microsoft/fluentui/pull/26434) by beachball)
104
+
105
+ ## [9.0.0-alpha.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-progress_v9.0.0-alpha.12)
106
+
107
+ Mon, 16 Jan 2023 08:39:07 GMT
108
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-progress_v9.0.0-alpha.11..@fluentui/react-progress_v9.0.0-alpha.12)
109
+
110
+ ### Changes
111
+
112
+ - Bump @fluentui/react-field to v9.0.0-alpha.15 ([commit](https://github.com/microsoft/fluentui/commit/a870d8360e47f3ea03358c4e75e89e08a74845d7) by beachball)
113
+ - Bump @fluentui/react-shared-contexts to v9.1.5 ([commit](https://github.com/microsoft/fluentui/commit/a870d8360e47f3ea03358c4e75e89e08a74845d7) by beachball)
114
+
115
+ ## [9.0.0-alpha.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-progress_v9.0.0-alpha.11)
116
+
117
+ Mon, 09 Jan 2023 14:35:02 GMT
118
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-progress_v9.0.0-alpha.10..@fluentui/react-progress_v9.0.0-alpha.11)
119
+
120
+ ### Changes
121
+
122
+ - Bump @fluentui/react-field to v9.0.0-alpha.14 ([PR #26255](https://github.com/microsoft/fluentui/pull/26255) by beachball)
123
+ - Bump @fluentui/react-utilities to v9.4.0 ([PR #26255](https://github.com/microsoft/fluentui/pull/26255) by beachball)
124
+
125
+ ## [9.0.0-alpha.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-progress_v9.0.0-alpha.10)
126
+
127
+ Wed, 04 Jan 2023 01:40:22 GMT
128
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-progress_v9.0.0-alpha.9..@fluentui/react-progress_v9.0.0-alpha.10)
129
+
130
+ ### Changes
131
+
132
+ - chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
133
+ - Bump @fluentui/react-field to v9.0.0-alpha.13 ([PR #26114](https://github.com/microsoft/fluentui/pull/26114) by beachball)
134
+ - Bump @fluentui/react-utilities to v9.3.1 ([PR #26114](https://github.com/microsoft/fluentui/pull/26114) by beachball)
135
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.19 ([PR #26114](https://github.com/microsoft/fluentui/pull/26114) by beachball)
136
+
7
137
  ## [9.0.0-alpha.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-progress_v9.0.0-alpha.9)
8
138
 
9
- Wed, 21 Dec 2022 10:17:12 GMT
139
+ Wed, 21 Dec 2022 10:20:29 GMT
10
140
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-progress_v9.0.0-alpha.8..@fluentui/react-progress_v9.0.0-alpha.9)
11
141
 
12
142
  ### Changes
package/README.md CHANGED
@@ -2,20 +2,10 @@
2
2
 
3
3
  **React Progress components for [Fluent UI React](https://react.fluentui.dev/)**
4
4
 
5
- ## STATUS: Alpha
6
-
7
- These are not production-ready components and **should never be used in product**. This space is useful for testing new components whose APIs might change before final release.
8
-
9
5
  ## Usage
10
6
 
11
7
  To import `ProgressBar`:
12
8
 
13
- ```js
14
- import { ProgressBar } from '@fluentui/react-progress';
15
- ```
16
-
17
- Once the Progress component graduates to a production release, the component will be available at:
18
-
19
9
  ```js
20
10
  import { ProgressBar } from '@fluentui/react-components';
21
11
  ```
@@ -28,25 +18,27 @@ const ProgressBarExample = () => {
28
18
  };
29
19
  ```
30
20
 
31
- #### Using ProgressField
21
+ #### Using Field
32
22
 
33
- The `ProgressField` component is a wrapper around the `ProgressBar` component that allows the user to add a `label`, `hint`, `validationMessage`, and `validationState` to the `ProgressBar` component. You can pass these props, as well as the regular `ProgressBar` props to a `ProgressField` component.
23
+ The `Field` component is a wrapper around the `ProgressBar` component that allows the user to add a `label`, `hint`, `validationMessage`, and `validationState` to the `ProgressBar` component. You can pass these props, as well as the regular `ProgressBar` props to a `Field` component.
34
24
 
35
- To import `ProgressField`:
25
+ To import `Field`:
36
26
 
37
27
  ```js
38
- import { ProgressField } from '@fluentui/react-field';
28
+ import { Field } from '@fluentui/react-field';
39
29
  ```
40
30
 
41
31
  ```jsx
42
- const ProgressFieldExample = () => {
32
+ const FieldExample = () => {
43
33
  return (
44
- <ProgressField
34
+ <Field
45
35
  label="Determinate ProgressBar"
46
36
  hint="This is a determinate Progress with description"
47
37
  value={0.5}
48
38
  validationState="warning"
49
- />
39
+ >
40
+ <ProgressBar />
41
+ </Field>
50
42
  );
51
43
  };
52
44
  ```
package/dist/index.d.ts CHANGED
@@ -2,13 +2,11 @@
2
2
 
3
3
  import type { ComponentProps } from '@fluentui/react-utilities';
4
4
  import type { ComponentState } from '@fluentui/react-utilities';
5
- import { FieldControl } from '@fluentui/react-field';
6
- import type { FieldProps } from '@fluentui/react-field';
7
- import { FieldSlots } from '@fluentui/react-field';
5
+ import { DeprecatedFieldProps } from '@fluentui/react-field';
8
6
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
9
7
  import * as React_2 from 'react';
10
8
  import type { Slot } from '@fluentui/react-utilities';
11
- import { SlotClassNames } from '@fluentui/react-utilities';
9
+ import type { SlotClassNames } from '@fluentui/react-utilities';
12
10
 
13
11
  /**
14
12
  * A ProgressBar bar shows the progression of a task.
@@ -23,9 +21,9 @@ export declare const progressBarClassNames: SlotClassNames<ProgressBarSlots>;
23
21
  export declare type ProgressBarProps = Omit<ComponentProps<ProgressBarSlots>, 'size'> & {
24
22
  /**
25
23
  * The shape of the bar and track.
26
- * @default 'rounded'
24
+ * @default rounded
27
25
  */
28
- shape?: 'rounded' | 'rectangular';
26
+ shape?: 'rounded' | 'square';
29
27
  /**
30
28
  * A decimal number between `0` and `1` (or between `0` and `max` if given),
31
29
  * which specifies how much of the task has been completed.
@@ -41,13 +39,14 @@ export declare type ProgressBarProps = Omit<ComponentProps<ProgressBarSlots>, 's
41
39
  max?: number;
42
40
  /**
43
41
  * The thickness of the ProgressBar bar
44
- * @default 'medium'
42
+ * @default medium
45
43
  */
46
44
  thickness?: 'medium' | 'large';
47
45
  /**
48
46
  * The status of the ProgressBar bar. Changes the color of the bar.
47
+ * @default brand
49
48
  */
50
- validationState?: 'success' | 'warning' | 'error';
49
+ color?: 'brand' | 'success' | 'warning' | 'error';
51
50
  };
52
51
 
53
52
  export declare type ProgressBarSlots = {
@@ -64,13 +63,23 @@ export declare type ProgressBarSlots = {
64
63
  /**
65
64
  * State used in rendering ProgressBar
66
65
  */
67
- export declare type ProgressBarState = ComponentState<ProgressBarSlots> & Required<Pick<ProgressBarProps, 'max' | 'shape' | 'thickness'>> & Pick<ProgressBarProps, 'value' | 'validationState'>;
66
+ export declare type ProgressBarState = ComponentState<ProgressBarSlots> & Required<Pick<ProgressBarProps, 'max' | 'shape' | 'thickness'>> & Pick<ProgressBarProps, 'value' | 'color'>;
68
67
 
68
+ /** @deprecated Use Field with ProgressBar: `<Field><ProgressBar /></Field>` */
69
69
  export declare const ProgressField_unstable: ForwardRefComponent<ProgressFieldProps_unstable>;
70
70
 
71
- export declare const progressFieldClassNames: SlotClassNames<FieldSlots<FieldControl>>;
71
+ /** @deprecated Use Field with ProgressBar: `<Field><ProgressBar /></Field>` */
72
+ export declare const progressFieldClassNames: {
73
+ control: string;
74
+ root: string;
75
+ label: string;
76
+ validationMessage: string;
77
+ validationMessageIcon: string;
78
+ hint: string;
79
+ };
72
80
 
73
- export declare type ProgressFieldProps_unstable = FieldProps<typeof ProgressBar>;
81
+ /** @deprecated Use Field with ProgressBar: `<Field><ProgressBar /></Field>` */
82
+ export declare type ProgressFieldProps_unstable = DeprecatedFieldProps<ProgressBarProps>;
74
83
 
75
84
  /**
76
85
  * Render the final JSX of ProgressBar
@@ -2,13 +2,17 @@ import * as React from 'react';
2
2
  import { useProgressBar_unstable } from './useProgressBar';
3
3
  import { renderProgressBar_unstable } from './renderProgressBar';
4
4
  import { useProgressBarStyles_unstable } from './useProgressBarStyles';
5
+ import { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';
5
6
  /**
6
7
  * A ProgressBar bar shows the progression of a task.
7
8
  */
8
-
9
9
  export const ProgressBar = /*#__PURE__*/React.forwardRef((props, ref) => {
10
10
  const state = useProgressBar_unstable(props, ref);
11
11
  useProgressBarStyles_unstable(state);
12
+ const {
13
+ useProgressBarStyles_unstable: useCustomStyles
14
+ } = useCustomStyleHooks_unstable();
15
+ useCustomStyles(state);
12
16
  return renderProgressBar_unstable(state);
13
17
  });
14
18
  ProgressBar.displayName = 'ProgressBar';
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-progress/src/components/ProgressBar/ProgressBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,uBAAT,QAAwC,kBAAxC;AACA,SAAS,0BAAT,QAA2C,qBAA3C;AACA,SAAS,6BAAT,QAA8C,wBAA9C;AAIA;;AAEG;;AACH,OAAO,MAAM,WAAW,gBAA0C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAChG,MAAM,KAAK,GAAG,uBAAuB,CAAC,KAAD,EAAQ,GAAR,CAArC;EAEA,6BAA6B,CAAC,KAAD,CAA7B;EACA,OAAO,0BAA0B,CAAC,KAAD,CAAjC;AACD,CALiE,CAA3D;AAOP,WAAW,CAAC,WAAZ,GAA0B,aAA1B","sourcesContent":["import * as React from 'react';\nimport { useProgressBar_unstable } from './useProgressBar';\nimport { renderProgressBar_unstable } from './renderProgressBar';\nimport { useProgressBarStyles_unstable } from './useProgressBarStyles';\nimport type { ProgressBarProps } from './ProgressBar.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * A ProgressBar bar shows the progression of a task.\n */\nexport const ProgressBar: ForwardRefComponent<ProgressBarProps> = React.forwardRef((props, ref) => {\n const state = useProgressBar_unstable(props, ref);\n\n useProgressBarStyles_unstable(state);\n return renderProgressBar_unstable(state);\n});\n\nProgressBar.displayName = 'ProgressBar';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"names":["React","useProgressBar_unstable","renderProgressBar_unstable","useProgressBarStyles_unstable","useCustomStyleHooks_unstable","ProgressBar","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../src/packages/react-components/react-progress/src/components/ProgressBar/ProgressBar.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useProgressBar_unstable } from './useProgressBar';\nimport { renderProgressBar_unstable } from './renderProgressBar';\nimport { useProgressBarStyles_unstable } from './useProgressBarStyles';\nimport type { ProgressBarProps } from './ProgressBar.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * A ProgressBar bar shows the progression of a task.\n */\nexport const ProgressBar: ForwardRefComponent<ProgressBarProps> = React.forwardRef((props, ref) => {\n const state = useProgressBar_unstable(props, ref);\n\n useProgressBarStyles_unstable(state);\n\n const { useProgressBarStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderProgressBar_unstable(state);\n});\n\nProgressBar.displayName = 'ProgressBar';\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,uBAAuB,QAAQ,kBAAkB;AAC1D,SAASC,0BAA0B,QAAQ,qBAAqB;AAChE,SAASC,6BAA6B,QAAQ,wBAAwB;AAGtE,SAASC,4BAA4B,QAAQ,iCAAiC;AAE9E;;;AAGA,OAAO,MAAMC,WAAW,gBAA0CL,KAAK,CAACM,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EAChG,MAAMC,KAAK,GAAGR,uBAAuB,CAACM,KAAK,EAAEC,GAAG,CAAC;EAEjDL,6BAA6B,CAACM,KAAK,CAAC;EAEpC,MAAM;IAAEN,6BAA6B,EAAEO;EAAe,CAAE,GAAGN,4BAA4B,EAAE;EACzFM,eAAe,CAACD,KAAK,CAAC;EAEtB,OAAOP,0BAA0B,CAACO,KAAK,CAAC;AAC1C,CAAC,CAAC;AAEFJ,WAAW,CAACM,WAAW,GAAG,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-progress/src/components/ProgressBar/ProgressBar.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type ProgressBarSlots = {\n /**\n * The track behind the ProgressBar bar\n */\n root: NonNullable<Slot<'div'>>;\n /**\n * The filled portion of the ProgressBar bar. Animated in the indeterminate state, when no value is provided.\n */\n bar?: NonNullable<Slot<'div'>>;\n};\n\n/**\n * ProgressBar Props\n */\nexport type ProgressBarProps = Omit<ComponentProps<ProgressBarSlots>, 'size'> & {\n /**\n * The shape of the bar and track.\n * @default 'rounded'\n */\n shape?: 'rounded' | 'rectangular';\n /**\n * A decimal number between `0` and `1` (or between `0` and `max` if given),\n * which specifies how much of the task has been completed.\n *\n * If `undefined` (default), the ProgressBar will display an **indeterminate** state.\n */\n value?: number;\n /**\n * The maximum value, which indicates the task is complete.\n * The ProgressBar bar will be full when `value` equals `max`.\n * @default 1\n */\n max?: number;\n /**\n * The thickness of the ProgressBar bar\n * @default 'medium'\n */\n thickness?: 'medium' | 'large';\n\n /**\n * The status of the ProgressBar bar. Changes the color of the bar.\n */\n validationState?: 'success' | 'warning' | 'error';\n};\n\n/**\n * State used in rendering ProgressBar\n */\nexport type ProgressBarState = ComponentState<ProgressBarSlots> &\n Required<Pick<ProgressBarProps, 'max' | 'shape' | 'thickness'>> &\n Pick<ProgressBarProps, 'value' | 'validationState'>;\n"]}
1
+ {"version":3,"file":"ProgressBar.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-progress/src/components/ProgressBar/ProgressBar.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type ProgressBarSlots = {\n /**\n * The track behind the ProgressBar bar\n */\n root: NonNullable<Slot<'div'>>;\n /**\n * The filled portion of the ProgressBar bar. Animated in the indeterminate state, when no value is provided.\n */\n bar?: NonNullable<Slot<'div'>>;\n};\n\n/**\n * ProgressBar Props\n */\nexport type ProgressBarProps = Omit<ComponentProps<ProgressBarSlots>, 'size'> & {\n /**\n * The shape of the bar and track.\n * @default rounded\n */\n shape?: 'rounded' | 'square';\n /**\n * A decimal number between `0` and `1` (or between `0` and `max` if given),\n * which specifies how much of the task has been completed.\n *\n * If `undefined` (default), the ProgressBar will display an **indeterminate** state.\n */\n value?: number;\n /**\n * The maximum value, which indicates the task is complete.\n * The ProgressBar bar will be full when `value` equals `max`.\n * @default 1\n */\n max?: number;\n /**\n * The thickness of the ProgressBar bar\n * @default medium\n */\n thickness?: 'medium' | 'large';\n\n /**\n * The status of the ProgressBar bar. Changes the color of the bar.\n * @default brand\n */\n color?: 'brand' | 'success' | 'warning' | 'error';\n};\n\n/**\n * State used in rendering ProgressBar\n */\nexport type ProgressBarState = ComponentState<ProgressBarSlots> &\n Required<Pick<ProgressBarProps, 'max' | 'shape' | 'thickness'>> &\n Pick<ProgressBarProps, 'value' | 'color'>;\n"]}
@@ -3,14 +3,15 @@ import { getSlots } from '@fluentui/react-utilities';
3
3
  /**
4
4
  * Render the final JSX of ProgressBar
5
5
  */
6
-
7
6
  export const renderProgressBar_unstable = state => {
8
7
  const {
9
8
  slots,
10
9
  slotProps
11
10
  } = getSlots(state);
12
- return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
13
- }, slots.bar && /*#__PURE__*/React.createElement(slots.bar, { ...slotProps.bar
11
+ return /*#__PURE__*/React.createElement(slots.root, {
12
+ ...slotProps.root
13
+ }, slots.bar && /*#__PURE__*/React.createElement(slots.bar, {
14
+ ...slotProps.bar
14
15
  }));
15
16
  };
16
17
  //# sourceMappingURL=renderProgressBar.js.map