@fluentui/react-progress 9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0 → 9.75.1-experimental.positioning-engine.20261103-19efe125d1.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 +10 -10
- package/README.md +0 -6
- package/package.json +9 -12
- package/lib/components/ProgressBar/ProgressBar.module.css +0 -89
- package/lib/components/ProgressBar/useProgressBarStyles.styles.css.js +0 -20
- package/lib/components/ProgressBar/useProgressBarStyles.styles.css.js.map +0 -1
- package/lib/components/ProgressBar/useProgressBarStyles.styles.raw.css.js +0 -20
- package/lib/components/ProgressBar/useProgressBarStyles.styles.raw.css.js.map +0 -1
- package/lib-commonjs/components/ProgressBar/ProgressBar.module.css +0 -89
- package/lib-commonjs/components/ProgressBar/useProgressBarStyles.styles.css.cjs +0 -39
- package/lib-commonjs/components/ProgressBar/useProgressBarStyles.styles.css.cjs.map +0 -1
- package/lib-commonjs/components/ProgressBar/useProgressBarStyles.styles.raw.css.cjs +0 -39
- package/lib-commonjs/components/ProgressBar/useProgressBarStyles.styles.raw.css.cjs.map +0 -1
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:
|
|
3
|
+
<!-- This log was last generated on Tue, 03 Nov 2026 14:18:06 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [9.75.1-experimental.
|
|
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)
|
|
8
8
|
|
|
9
|
-
Tue, 03 Nov 2026 14:
|
|
9
|
+
Tue, 03 Nov 2026 14:18:06 GMT
|
|
10
10
|
|
|
11
11
|
### Changes
|
|
12
12
|
|
|
13
|
-
- Release 9.75.1-experimental.
|
|
14
|
-
- Bump @fluentui/react-field to v9.75.1-experimental.
|
|
15
|
-
- Bump @fluentui/react-jsx-runtime to v9.75.1-experimental.
|
|
16
|
-
- Bump @fluentui/react-motion to v9.75.1-experimental.
|
|
17
|
-
- Bump @fluentui/react-shared-contexts to v9.75.1-experimental.
|
|
18
|
-
- Bump @fluentui/react-theme to v9.75.1-experimental.
|
|
19
|
-
- Bump @fluentui/react-utilities to v9.75.1-experimental.
|
|
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)
|
|
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,9 +42,3 @@ 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. All component rules are in `@layer fluent` and use the theme custom properties supplied by `FluentProvider`.
|
package/package.json
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-progress",
|
|
3
|
-
"version": "9.75.1-experimental.
|
|
3
|
+
"version": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.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":
|
|
9
|
-
"**/*.css"
|
|
10
|
-
],
|
|
8
|
+
"sideEffects": false,
|
|
11
9
|
"repository": {
|
|
12
10
|
"type": "git",
|
|
13
11
|
"url": "https://github.com/microsoft/fluentui"
|
|
14
12
|
},
|
|
15
13
|
"license": "MIT",
|
|
16
14
|
"dependencies": {
|
|
17
|
-
"@fluentui/react-field": "9.75.1-experimental.
|
|
18
|
-
"@fluentui/react-jsx-runtime": "9.75.1-experimental.
|
|
19
|
-
"@fluentui/react-motion": "9.75.1-experimental.
|
|
20
|
-
"@fluentui/react-shared-contexts": "9.75.1-experimental.
|
|
21
|
-
"@fluentui/react-theme": "9.75.1-experimental.
|
|
22
|
-
"@fluentui/react-utilities": "9.75.1-experimental.
|
|
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",
|
|
23
21
|
"@griffel/react": "^1.5.32",
|
|
24
|
-
"@swc/helpers": "^0.5.1"
|
|
25
|
-
"clsx": "^2.1.1"
|
|
22
|
+
"@swc/helpers": "^0.5.1"
|
|
26
23
|
},
|
|
27
24
|
"peerDependencies": {
|
|
28
25
|
"@types/react": ">=16.14.0 <20.0.0",
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
@layer fluent {
|
|
2
|
-
.root {
|
|
3
|
-
display: block;
|
|
4
|
-
background-color: var(--colorNeutralBackground6);
|
|
5
|
-
width: 100%;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.rounded {
|
|
10
|
-
border-radius: var(--borderRadiusMedium);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.square {
|
|
14
|
-
border-radius: var(--borderRadiusNone);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.medium {
|
|
18
|
-
height: var(--strokeWidthThick);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.large {
|
|
22
|
-
height: var(--spacingHorizontalXS);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.bar {
|
|
26
|
-
border-radius: inherit;
|
|
27
|
-
height: 100%;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.bar {
|
|
31
|
-
background-color: var(--colorCompoundBrandBackground);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.indeterminate {
|
|
35
|
-
max-width: 33%;
|
|
36
|
-
position: relative;
|
|
37
|
-
background-image: linear-gradient(
|
|
38
|
-
to right,
|
|
39
|
-
var(--colorNeutralBackground6) 0%,
|
|
40
|
-
var(--colorTransparentBackground) 50%,
|
|
41
|
-
var(--colorNeutralBackground6) 100%
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.indeterminate:where(:dir(rtl)) {
|
|
46
|
-
background-image: linear-gradient(
|
|
47
|
-
to left,
|
|
48
|
-
var(--colorNeutralBackground6) 0%,
|
|
49
|
-
var(--colorTransparentBackground) 50%,
|
|
50
|
-
var(--colorNeutralBackground6) 100%
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.nonZeroDeterminate {
|
|
55
|
-
transition-property: width;
|
|
56
|
-
transition-duration: 0.3s;
|
|
57
|
-
transition-timing-function: ease;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.error {
|
|
61
|
-
background-color: var(--colorPaletteRedBackground3);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.warning {
|
|
65
|
-
background-color: var(--colorPaletteDarkOrangeBackground3);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.success {
|
|
69
|
-
background-color: var(--colorPaletteGreenBackground3);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@media screen and (forced-colors: active) {
|
|
73
|
-
.root {
|
|
74
|
-
background-color: CanvasText;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@media screen and (forced-colors: active) {
|
|
79
|
-
.bar {
|
|
80
|
-
background-color: Highlight;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
@media screen and (prefers-reduced-motion: reduce) {
|
|
85
|
-
.indeterminate {
|
|
86
|
-
max-width: 100%;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
@layer fluent {
|
|
2
|
-
.root {
|
|
3
|
-
display: block;
|
|
4
|
-
background-color: var(--colorNeutralBackground6);
|
|
5
|
-
width: 100%;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.rounded {
|
|
10
|
-
border-radius: var(--borderRadiusMedium);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.square {
|
|
14
|
-
border-radius: var(--borderRadiusNone);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.medium {
|
|
18
|
-
height: var(--strokeWidthThick);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.large {
|
|
22
|
-
height: var(--spacingHorizontalXS);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.bar {
|
|
26
|
-
border-radius: inherit;
|
|
27
|
-
height: 100%;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.bar {
|
|
31
|
-
background-color: var(--colorCompoundBrandBackground);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.indeterminate {
|
|
35
|
-
max-width: 33%;
|
|
36
|
-
position: relative;
|
|
37
|
-
background-image: linear-gradient(
|
|
38
|
-
to right,
|
|
39
|
-
var(--colorNeutralBackground6) 0%,
|
|
40
|
-
var(--colorTransparentBackground) 50%,
|
|
41
|
-
var(--colorNeutralBackground6) 100%
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.indeterminate:where(:dir(rtl)) {
|
|
46
|
-
background-image: linear-gradient(
|
|
47
|
-
to left,
|
|
48
|
-
var(--colorNeutralBackground6) 0%,
|
|
49
|
-
var(--colorTransparentBackground) 50%,
|
|
50
|
-
var(--colorNeutralBackground6) 100%
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.nonZeroDeterminate {
|
|
55
|
-
transition-property: width;
|
|
56
|
-
transition-duration: 0.3s;
|
|
57
|
-
transition-timing-function: ease;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.error {
|
|
61
|
-
background-color: var(--colorPaletteRedBackground3);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.warning {
|
|
65
|
-
background-color: var(--colorPaletteDarkOrangeBackground3);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.success {
|
|
69
|
-
background-color: var(--colorPaletteGreenBackground3);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@media screen and (forced-colors: active) {
|
|
73
|
-
.root {
|
|
74
|
-
background-color: CanvasText;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@media screen and (forced-colors: active) {
|
|
79
|
-
.bar {
|
|
80
|
-
background-color: Highlight;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
@media screen and (prefers-reduced-motion: reduce) {
|
|
85
|
-
.indeterminate {
|
|
86
|
-
max-width: 100%;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|