@fluentui/react-progress 9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 → 9.75.2-experimental.css-modules.20261113-ba13c87438.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/CHANGELOG.md CHANGED
@@ -1,22 +1,22 @@
1
1
  # Change Log - @fluentui/react-progress
2
2
 
3
- <!-- This log was last generated on Tue, 03 Nov 2026 14:18:06 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Fri, 13 Nov 2026 20:36:55 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [9.75.1-experimental.positioning-engine.20261103-19efe125d1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-progress_v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0)
7
+ ## [9.75.2-experimental.css-modules.20261113-ba13c87438.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-progress_v9.75.2-experimental.css-modules.20261113-ba13c87438.0)
8
8
 
9
- Tue, 03 Nov 2026 14:18:06 GMT
9
+ Fri, 13 Nov 2026 20:36:55 GMT
10
10
 
11
11
  ### Changes
12
12
 
13
- - Release 9.75.1-experimental.positioning-engine.20261103-19efe125d1 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
14
- - Bump @fluentui/react-field to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
15
- - Bump @fluentui/react-jsx-runtime to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
16
- - Bump @fluentui/react-motion to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
17
- - Bump @fluentui/react-shared-contexts to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
18
- - Bump @fluentui/react-theme to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
19
- - Bump @fluentui/react-utilities to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
13
+ - Release 9.75.2-experimental.css-modules.20261113-ba13c87438 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
14
+ - Bump @fluentui/react-field to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
15
+ - Bump @fluentui/react-jsx-runtime to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
16
+ - Bump @fluentui/react-motion to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
17
+ - Bump @fluentui/react-shared-contexts to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
18
+ - Bump @fluentui/react-theme to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
19
+ - Bump @fluentui/react-utilities to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
20
20
 
21
21
  ## [9.5.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-progress_v9.5.7)
22
22
 
package/README.md CHANGED
@@ -42,3 +42,9 @@ const FieldExample = () => {
42
42
  );
43
43
  };
44
44
  ```
45
+
46
+ ## Opt-in CSS Modules styles
47
+
48
+ CSS Modules alternatives are available for `ProgressBar`. The default exports and component imports continue to use Griffel.
49
+
50
+ To opt in, configure your bundler to replace each `use<Component>Styles.styles.js` module with its adjacent `use<Component>Styles.styles.css.js` alternative (or `.styles.ts` with `.styles.css.ts` for source builds). Apply the replacement consistently to client and server bundles. The CSS loader must provide a default class-name map and retain the adjacent `.module.css` asset, including CSS from dependencies. Component rules are unlayered, like Griffel's, and use the theme custom properties supplied by `FluentProvider`.
@@ -0,0 +1,87 @@
1
+ .root {
2
+ display: block;
3
+ background-color: var(--colorNeutralBackground6);
4
+ width: 100%;
5
+ overflow: hidden;
6
+ }
7
+
8
+ .rounded {
9
+ border-radius: var(--borderRadiusMedium);
10
+ }
11
+
12
+ .square {
13
+ border-radius: var(--borderRadiusNone);
14
+ }
15
+
16
+ .medium {
17
+ height: var(--strokeWidthThick);
18
+ }
19
+
20
+ .large {
21
+ height: var(--spacingHorizontalXS);
22
+ }
23
+
24
+ .bar {
25
+ border-radius: inherit;
26
+ height: 100%;
27
+ }
28
+
29
+ .bar {
30
+ background-color: var(--colorCompoundBrandBackground);
31
+ }
32
+
33
+ .indeterminate {
34
+ max-width: 33%;
35
+ position: relative;
36
+ background-image: linear-gradient(
37
+ to right,
38
+ var(--colorNeutralBackground6) 0%,
39
+ var(--colorTransparentBackground) 50%,
40
+ var(--colorNeutralBackground6) 100%
41
+ );
42
+ }
43
+
44
+ .indeterminate:where(:dir(rtl)) {
45
+ background-image: linear-gradient(
46
+ to left,
47
+ var(--colorNeutralBackground6) 0%,
48
+ var(--colorTransparentBackground) 50%,
49
+ var(--colorNeutralBackground6) 100%
50
+ );
51
+ }
52
+
53
+ .nonZeroDeterminate {
54
+ transition-property: width;
55
+ transition-duration: 0.3s;
56
+ transition-timing-function: ease;
57
+ }
58
+
59
+ .error {
60
+ background-color: var(--colorPaletteRedBackground3);
61
+ }
62
+
63
+ .warning {
64
+ background-color: var(--colorPaletteDarkOrangeBackground3);
65
+ }
66
+
67
+ .success {
68
+ background-color: var(--colorPaletteGreenBackground3);
69
+ }
70
+
71
+ @media screen and (forced-colors: active) {
72
+ .root {
73
+ background-color: CanvasText;
74
+ }
75
+ }
76
+
77
+ @media screen and (forced-colors: active) {
78
+ .bar {
79
+ background-color: Highlight;
80
+ }
81
+ }
82
+
83
+ @media screen and (prefers-reduced-motion: reduce) {
84
+ .indeterminate {
85
+ max-width: 100%;
86
+ }
87
+ }
@@ -0,0 +1,20 @@
1
+ import { clsx } from "clsx";
2
+ import styles from "./ProgressBar.module.css";
3
+ export const progressBarClassNames = {
4
+ root: 'fui-ProgressBar',
5
+ bar: 'fui-ProgressBar__bar'
6
+ };
7
+ export const useProgressBarStyles_unstable = (state)=>{
8
+ const { color, max, shape, thickness, value } = state;
9
+ state.root.className = clsx(progressBarClassNames.root, styles.root, styles[shape], styles[thickness], state.root.className);
10
+ if (state.bar) {
11
+ state.bar.className = clsx(progressBarClassNames.bar, styles.bar, value === undefined && styles.indeterminate, value !== undefined && value > 0.01 && styles.nonZeroDeterminate, value !== undefined && color && styles[color], state.bar.className);
12
+ if (value !== undefined) {
13
+ state.bar.style = {
14
+ width: Math.min(100, Math.max(0, value / max * 100)) + '%',
15
+ ...state.bar.style
16
+ };
17
+ }
18
+ }
19
+ return state;
20
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ProgressBar/useProgressBarStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { ProgressBarState, ProgressBarSlots } from './ProgressBar.types';\nimport styles from './ProgressBar.module.css';\n\nexport const progressBarClassNames: SlotClassNames<Omit<ProgressBarSlots, 'indeterminateMotion'>> = {\n root: 'fui-ProgressBar',\n bar: 'fui-ProgressBar__bar',\n};\n\nexport const useProgressBarStyles_unstable = (state: ProgressBarState): ProgressBarState => {\n const { color, max, shape, thickness, value } = state;\n state.root.className = clsx(\n progressBarClassNames.root,\n styles.root,\n styles[shape],\n styles[thickness],\n state.root.className,\n );\n if (state.bar) {\n state.bar.className = clsx(\n progressBarClassNames.bar,\n styles.bar,\n value === undefined && styles.indeterminate,\n value !== undefined && value > 0.01 && styles.nonZeroDeterminate,\n value !== undefined && color && styles[color],\n state.bar.className,\n );\n if (value !== undefined) {\n state.bar.style = { width: Math.min(100, Math.max(0, (value / max) * 100)) + '%', ...state.bar.style };\n }\n }\n return state;\n};\n"],"names":["clsx","styles","progressBarClassNames","root","bar","useProgressBarStyles_unstable","state","color","max","shape","thickness","value","className","undefined","indeterminate","nonZeroDeterminate","style","width","Math","min"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,2BAA2B;AAE9C,OAAO,MAAMC,wBAAuF;IAClGC,MAAM;IACNC,KAAK;AACP,EAAE;AAEF,OAAO,MAAMC,gCAAgC,CAACC;IAC5C,MAAM,EAAEC,KAAK,EAAEC,GAAG,EAAEC,KAAK,EAAEC,SAAS,EAAEC,KAAK,EAAE,GAAGL;IAChDA,MAAMH,IAAI,CAACS,SAAS,GAAGZ,KACrBE,sBAAsBC,IAAI,EAC1BF,OAAOE,IAAI,EACXF,MAAM,CAACQ,MAAM,EACbR,MAAM,CAACS,UAAU,EACjBJ,MAAMH,IAAI,CAACS,SAAS;IAEtB,IAAIN,MAAMF,GAAG,EAAE;QACbE,MAAMF,GAAG,CAACQ,SAAS,GAAGZ,KACpBE,sBAAsBE,GAAG,EACzBH,OAAOG,GAAG,EACVO,UAAUE,aAAaZ,OAAOa,aAAa,EAC3CH,UAAUE,aAAaF,QAAQ,QAAQV,OAAOc,kBAAkB,EAChEJ,UAAUE,aAAaN,SAASN,MAAM,CAACM,MAAM,EAC7CD,MAAMF,GAAG,CAACQ,SAAS;QAErB,IAAID,UAAUE,WAAW;YACvBP,MAAMF,GAAG,CAACY,KAAK,GAAG;gBAAEC,OAAOC,KAAKC,GAAG,CAAC,KAAKD,KAAKV,GAAG,CAAC,GAAG,AAACG,QAAQH,MAAO,QAAQ;gBAAK,GAAGF,MAAMF,GAAG,CAACY,KAAK;YAAC;QACvG;IACF;IACA,OAAOV;AACT,EAAE"}
@@ -0,0 +1,20 @@
1
+ import { clsx } from "clsx";
2
+ import styles from "./ProgressBar.module.css";
3
+ export const progressBarClassNames = {
4
+ root: 'fui-ProgressBar',
5
+ bar: 'fui-ProgressBar__bar'
6
+ };
7
+ export const useProgressBarStyles_unstable = (state)=>{
8
+ const { color, max, shape, thickness, value } = state;
9
+ state.root.className = clsx(progressBarClassNames.root, styles.root, styles[shape], styles[thickness], state.root.className);
10
+ if (state.bar) {
11
+ state.bar.className = clsx(progressBarClassNames.bar, styles.bar, value === undefined && styles.indeterminate, value !== undefined && value > 0.01 && styles.nonZeroDeterminate, value !== undefined && color && styles[color], state.bar.className);
12
+ if (value !== undefined) {
13
+ state.bar.style = {
14
+ width: Math.min(100, Math.max(0, value / max * 100)) + '%',
15
+ ...state.bar.style
16
+ };
17
+ }
18
+ }
19
+ return state;
20
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ProgressBar/useProgressBarStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { ProgressBarState, ProgressBarSlots } from './ProgressBar.types';\nimport styles from './ProgressBar.module.css';\n\nexport const progressBarClassNames: SlotClassNames<Omit<ProgressBarSlots, 'indeterminateMotion'>> = {\n root: 'fui-ProgressBar',\n bar: 'fui-ProgressBar__bar',\n};\n\nexport const useProgressBarStyles_unstable = (state: ProgressBarState): ProgressBarState => {\n const { color, max, shape, thickness, value } = state;\n state.root.className = clsx(\n progressBarClassNames.root,\n styles.root,\n styles[shape],\n styles[thickness],\n state.root.className,\n );\n if (state.bar) {\n state.bar.className = clsx(\n progressBarClassNames.bar,\n styles.bar,\n value === undefined && styles.indeterminate,\n value !== undefined && value > 0.01 && styles.nonZeroDeterminate,\n value !== undefined && color && styles[color],\n state.bar.className,\n );\n if (value !== undefined) {\n state.bar.style = { width: Math.min(100, Math.max(0, (value / max) * 100)) + '%', ...state.bar.style };\n }\n }\n return state;\n};\n"],"names":["clsx","styles","progressBarClassNames","root","bar","useProgressBarStyles_unstable","state","color","max","shape","thickness","value","className","undefined","indeterminate","nonZeroDeterminate","style","width","Math","min"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,2BAA2B;AAE9C,OAAO,MAAMC,wBAAuF;IAClGC,MAAM;IACNC,KAAK;AACP,EAAE;AAEF,OAAO,MAAMC,gCAAgC,CAACC;IAC5C,MAAM,EAAEC,KAAK,EAAEC,GAAG,EAAEC,KAAK,EAAEC,SAAS,EAAEC,KAAK,EAAE,GAAGL;IAChDA,MAAMH,IAAI,CAACS,SAAS,GAAGZ,KACrBE,sBAAsBC,IAAI,EAC1BF,OAAOE,IAAI,EACXF,MAAM,CAACQ,MAAM,EACbR,MAAM,CAACS,UAAU,EACjBJ,MAAMH,IAAI,CAACS,SAAS;IAEtB,IAAIN,MAAMF,GAAG,EAAE;QACbE,MAAMF,GAAG,CAACQ,SAAS,GAAGZ,KACpBE,sBAAsBE,GAAG,EACzBH,OAAOG,GAAG,EACVO,UAAUE,aAAaZ,OAAOa,aAAa,EAC3CH,UAAUE,aAAaF,QAAQ,QAAQV,OAAOc,kBAAkB,EAChEJ,UAAUE,aAAaN,SAASN,MAAM,CAACM,MAAM,EAC7CD,MAAMF,GAAG,CAACQ,SAAS;QAErB,IAAID,UAAUE,WAAW;YACvBP,MAAMF,GAAG,CAACY,KAAK,GAAG;gBAAEC,OAAOC,KAAKC,GAAG,CAAC,KAAKD,KAAKV,GAAG,CAAC,GAAG,AAACG,QAAQH,MAAO,QAAQ;gBAAK,GAAGF,MAAMF,GAAG,CAACY,KAAK;YAAC;QACvG;IACF;IACA,OAAOV;AACT,EAAE"}
@@ -0,0 +1,87 @@
1
+ .root {
2
+ display: block;
3
+ background-color: var(--colorNeutralBackground6);
4
+ width: 100%;
5
+ overflow: hidden;
6
+ }
7
+
8
+ .rounded {
9
+ border-radius: var(--borderRadiusMedium);
10
+ }
11
+
12
+ .square {
13
+ border-radius: var(--borderRadiusNone);
14
+ }
15
+
16
+ .medium {
17
+ height: var(--strokeWidthThick);
18
+ }
19
+
20
+ .large {
21
+ height: var(--spacingHorizontalXS);
22
+ }
23
+
24
+ .bar {
25
+ border-radius: inherit;
26
+ height: 100%;
27
+ }
28
+
29
+ .bar {
30
+ background-color: var(--colorCompoundBrandBackground);
31
+ }
32
+
33
+ .indeterminate {
34
+ max-width: 33%;
35
+ position: relative;
36
+ background-image: linear-gradient(
37
+ to right,
38
+ var(--colorNeutralBackground6) 0%,
39
+ var(--colorTransparentBackground) 50%,
40
+ var(--colorNeutralBackground6) 100%
41
+ );
42
+ }
43
+
44
+ .indeterminate:where(:dir(rtl)) {
45
+ background-image: linear-gradient(
46
+ to left,
47
+ var(--colorNeutralBackground6) 0%,
48
+ var(--colorTransparentBackground) 50%,
49
+ var(--colorNeutralBackground6) 100%
50
+ );
51
+ }
52
+
53
+ .nonZeroDeterminate {
54
+ transition-property: width;
55
+ transition-duration: 0.3s;
56
+ transition-timing-function: ease;
57
+ }
58
+
59
+ .error {
60
+ background-color: var(--colorPaletteRedBackground3);
61
+ }
62
+
63
+ .warning {
64
+ background-color: var(--colorPaletteDarkOrangeBackground3);
65
+ }
66
+
67
+ .success {
68
+ background-color: var(--colorPaletteGreenBackground3);
69
+ }
70
+
71
+ @media screen and (forced-colors: active) {
72
+ .root {
73
+ background-color: CanvasText;
74
+ }
75
+ }
76
+
77
+ @media screen and (forced-colors: active) {
78
+ .bar {
79
+ background-color: Highlight;
80
+ }
81
+ }
82
+
83
+ @media screen and (prefers-reduced-motion: reduce) {
84
+ .indeterminate {
85
+ max-width: 100%;
86
+ }
87
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get progressBarClassNames () {
13
+ return progressBarClassNames;
14
+ },
15
+ get useProgressBarStyles_unstable () {
16
+ return useProgressBarStyles_unstable;
17
+ }
18
+ });
19
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
+ const _clsx = require("clsx");
21
+ const _ProgressBarmodulecss = /*#__PURE__*/ _interop_require_default._(require("./ProgressBar.module.css"));
22
+ const progressBarClassNames = {
23
+ root: 'fui-ProgressBar',
24
+ bar: 'fui-ProgressBar__bar'
25
+ };
26
+ const useProgressBarStyles_unstable = (state)=>{
27
+ const { color, max, shape, thickness, value } = state;
28
+ state.root.className = (0, _clsx.clsx)(progressBarClassNames.root, _ProgressBarmodulecss.default.root, _ProgressBarmodulecss.default[shape], _ProgressBarmodulecss.default[thickness], state.root.className);
29
+ if (state.bar) {
30
+ state.bar.className = (0, _clsx.clsx)(progressBarClassNames.bar, _ProgressBarmodulecss.default.bar, value === undefined && _ProgressBarmodulecss.default.indeterminate, value !== undefined && value > 0.01 && _ProgressBarmodulecss.default.nonZeroDeterminate, value !== undefined && color && _ProgressBarmodulecss.default[color], state.bar.className);
31
+ if (value !== undefined) {
32
+ state.bar.style = {
33
+ width: Math.min(100, Math.max(0, value / max * 100)) + '%',
34
+ ...state.bar.style
35
+ };
36
+ }
37
+ }
38
+ return state;
39
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ProgressBar/useProgressBarStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { ProgressBarState, ProgressBarSlots } from './ProgressBar.types';\nimport styles from './ProgressBar.module.css';\n\nexport const progressBarClassNames: SlotClassNames<Omit<ProgressBarSlots, 'indeterminateMotion'>> = {\n root: 'fui-ProgressBar',\n bar: 'fui-ProgressBar__bar',\n};\n\nexport const useProgressBarStyles_unstable = (state: ProgressBarState): ProgressBarState => {\n const { color, max, shape, thickness, value } = state;\n state.root.className = clsx(\n progressBarClassNames.root,\n styles.root,\n styles[shape],\n styles[thickness],\n state.root.className,\n );\n if (state.bar) {\n state.bar.className = clsx(\n progressBarClassNames.bar,\n styles.bar,\n value === undefined && styles.indeterminate,\n value !== undefined && value > 0.01 && styles.nonZeroDeterminate,\n value !== undefined && color && styles[color],\n state.bar.className,\n );\n if (value !== undefined) {\n state.bar.style = { width: Math.min(100, Math.max(0, (value / max) * 100)) + '%', ...state.bar.style };\n }\n }\n return state;\n};\n"],"names":["clsx","styles","progressBarClassNames","root","bar","useProgressBarStyles_unstable","state","color","max","shape","thickness","value","className","undefined","indeterminate","nonZeroDeterminate","style","width","Math","min"],"mappings":";;;;;;;;;;;QAKaE;;;QAKAG;;;;;sBAVQ,OAAO;+EAGT,2BAA2B;AAEvC,8BAA6F;IAClGF,MAAM;IACNC,KAAK;AACP,EAAE;AAEK,sCAAsC,CAACE;IAC5C,MAAM,EAAEC,KAAK,EAAEC,GAAG,EAAEC,KAAK,EAAEC,SAAS,EAAEC,KAAK,EAAE,GAAGL;IAChDA,MAAMH,IAAI,CAACS,SAAS,OAAGZ,UAAAA,EACrBE,sBAAsBC,IAAI,EAC1BF,6BAAAA,CAAOE,IAAI,EACXF,6BAAM,CAACQ,MAAM,EACbR,6BAAM,CAACS,UAAU,EACjBJ,MAAMH,IAAI,CAACS,SAAS;IAEtB,IAAIN,MAAMF,GAAG,EAAE;QACbE,MAAMF,GAAG,CAACQ,SAAS,OAAGZ,UAAAA,EACpBE,sBAAsBE,GAAG,EACzBH,6BAAAA,CAAOG,GAAG,EACVO,UAAUE,aAAaZ,6BAAAA,CAAOa,aAAa,EAC3CH,UAAUE,aAAaF,QAAQ,QAAQV,6BAAAA,CAAOc,kBAAkB,EAChEJ,UAAUE,aAAaN,SAASN,6BAAM,CAACM,MAAM,EAC7CD,MAAMF,GAAG,CAACQ,SAAS;QAErB,IAAID,UAAUE,WAAW;YACvBP,MAAMF,GAAG,CAACY,KAAK,GAAG;gBAAEC,OAAOC,KAAKC,GAAG,CAAC,KAAKD,KAAKV,GAAG,CAAC,GAAIG,QAAQH,MAAO,QAAQ;gBAAK,GAAGF,MAAMF,GAAG,CAACY,KAAK;YAAC;QACvG;IACF;IACA,OAAOV;AACT,EAAE"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get progressBarClassNames () {
13
+ return progressBarClassNames;
14
+ },
15
+ get useProgressBarStyles_unstable () {
16
+ return useProgressBarStyles_unstable;
17
+ }
18
+ });
19
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
+ const _clsx = require("clsx");
21
+ const _ProgressBarmodulecss = /*#__PURE__*/ _interop_require_default._(require("./ProgressBar.module.css"));
22
+ const progressBarClassNames = {
23
+ root: 'fui-ProgressBar',
24
+ bar: 'fui-ProgressBar__bar'
25
+ };
26
+ const useProgressBarStyles_unstable = (state)=>{
27
+ const { color, max, shape, thickness, value } = state;
28
+ state.root.className = (0, _clsx.clsx)(progressBarClassNames.root, _ProgressBarmodulecss.default.root, _ProgressBarmodulecss.default[shape], _ProgressBarmodulecss.default[thickness], state.root.className);
29
+ if (state.bar) {
30
+ state.bar.className = (0, _clsx.clsx)(progressBarClassNames.bar, _ProgressBarmodulecss.default.bar, value === undefined && _ProgressBarmodulecss.default.indeterminate, value !== undefined && value > 0.01 && _ProgressBarmodulecss.default.nonZeroDeterminate, value !== undefined && color && _ProgressBarmodulecss.default[color], state.bar.className);
31
+ if (value !== undefined) {
32
+ state.bar.style = {
33
+ width: Math.min(100, Math.max(0, value / max * 100)) + '%',
34
+ ...state.bar.style
35
+ };
36
+ }
37
+ }
38
+ return state;
39
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ProgressBar/useProgressBarStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { ProgressBarState, ProgressBarSlots } from './ProgressBar.types';\nimport styles from './ProgressBar.module.css';\n\nexport const progressBarClassNames: SlotClassNames<Omit<ProgressBarSlots, 'indeterminateMotion'>> = {\n root: 'fui-ProgressBar',\n bar: 'fui-ProgressBar__bar',\n};\n\nexport const useProgressBarStyles_unstable = (state: ProgressBarState): ProgressBarState => {\n const { color, max, shape, thickness, value } = state;\n state.root.className = clsx(\n progressBarClassNames.root,\n styles.root,\n styles[shape],\n styles[thickness],\n state.root.className,\n );\n if (state.bar) {\n state.bar.className = clsx(\n progressBarClassNames.bar,\n styles.bar,\n value === undefined && styles.indeterminate,\n value !== undefined && value > 0.01 && styles.nonZeroDeterminate,\n value !== undefined && color && styles[color],\n state.bar.className,\n );\n if (value !== undefined) {\n state.bar.style = { width: Math.min(100, Math.max(0, (value / max) * 100)) + '%', ...state.bar.style };\n }\n }\n return state;\n};\n"],"names":["clsx","styles","progressBarClassNames","root","bar","useProgressBarStyles_unstable","state","color","max","shape","thickness","value","className","undefined","indeterminate","nonZeroDeterminate","style","width","Math","min"],"mappings":";;;;;;;;;;;QAKaE;;;QAKAG;;;;;sBAVQ,OAAO;+EAGT,2BAA2B;AAEvC,8BAA6F;IAClGF,MAAM;IACNC,KAAK;AACP,EAAE;AAEK,sCAAsC,CAACE;IAC5C,MAAM,EAAEC,KAAK,EAAEC,GAAG,EAAEC,KAAK,EAAEC,SAAS,EAAEC,KAAK,EAAE,GAAGL;IAChDA,MAAMH,IAAI,CAACS,SAAS,OAAGZ,UAAAA,EACrBE,sBAAsBC,IAAI,EAC1BF,6BAAAA,CAAOE,IAAI,EACXF,6BAAM,CAACQ,MAAM,EACbR,6BAAM,CAACS,UAAU,EACjBJ,MAAMH,IAAI,CAACS,SAAS;IAEtB,IAAIN,MAAMF,GAAG,EAAE;QACbE,MAAMF,GAAG,CAACQ,SAAS,OAAGZ,UAAAA,EACpBE,sBAAsBE,GAAG,EACzBH,6BAAAA,CAAOG,GAAG,EACVO,UAAUE,aAAaZ,6BAAAA,CAAOa,aAAa,EAC3CH,UAAUE,aAAaF,QAAQ,QAAQV,6BAAAA,CAAOc,kBAAkB,EAChEJ,UAAUE,aAAaN,SAASN,6BAAM,CAACM,MAAM,EAC7CD,MAAMF,GAAG,CAACQ,SAAS;QAErB,IAAID,UAAUE,WAAW;YACvBP,MAAMF,GAAG,CAACY,KAAK,GAAG;gBAAEC,OAAOC,KAAKC,GAAG,CAAC,KAAKD,KAAKV,GAAG,CAAC,GAAIG,QAAQH,MAAO,QAAQ;gBAAK,GAAGF,MAAMF,GAAG,CAACY,KAAK;YAAC;QACvG;IACF;IACA,OAAOV;AACT,EAAE"}
package/package.json CHANGED
@@ -1,25 +1,28 @@
1
1
  {
2
2
  "name": "@fluentui/react-progress",
3
- "version": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
3
+ "version": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
4
4
  "description": "Progress component for FluentUI v9",
5
5
  "main": "lib-commonjs/index.cjs",
6
6
  "module": "lib/index.js",
7
7
  "typings": "./dist/index.d.ts",
8
- "sideEffects": false,
8
+ "sideEffects": [
9
+ "**/*.css"
10
+ ],
9
11
  "repository": {
10
12
  "type": "git",
11
13
  "url": "https://github.com/microsoft/fluentui"
12
14
  },
13
15
  "license": "MIT",
14
16
  "dependencies": {
15
- "@fluentui/react-field": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
16
- "@fluentui/react-jsx-runtime": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
17
- "@fluentui/react-motion": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
18
- "@fluentui/react-shared-contexts": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
19
- "@fluentui/react-theme": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
20
- "@fluentui/react-utilities": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
17
+ "@fluentui/react-field": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
18
+ "@fluentui/react-jsx-runtime": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
19
+ "@fluentui/react-motion": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
20
+ "@fluentui/react-shared-contexts": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
21
+ "@fluentui/react-theme": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
22
+ "@fluentui/react-utilities": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
21
23
  "@griffel/react": "^1.5.32",
22
- "@swc/helpers": "^0.5.1"
24
+ "@swc/helpers": "^0.5.1",
25
+ "clsx": "^2.1.1"
23
26
  },
24
27
  "peerDependencies": {
25
28
  "@types/react": ">=16.14.0 <20.0.0",