@fluentui/react-progress 9.1.3 → 9.1.5
Sign up to get free protection for your applications and to get access to all the features.
- package/.swcrc +30 -0
- package/CHANGELOG.json +73 -1
- package/CHANGELOG.md +27 -2
- package/lib/ProgressBar.js.map +1 -1
- package/lib/ProgressField.js.map +1 -1
- package/lib/components/ProgressBar/ProgressBar.js.map +1 -1
- package/lib/components/ProgressBar/ProgressBar.types.js.map +1 -1
- package/lib/components/ProgressBar/index.js.map +1 -1
- package/lib/components/ProgressBar/renderProgressBar.js +1 -5
- package/lib/components/ProgressBar/renderProgressBar.js.map +1 -1
- package/lib/components/ProgressBar/useProgressBar.js +3 -2
- package/lib/components/ProgressBar/useProgressBar.js.map +1 -1
- package/lib/components/ProgressBar/useProgressBarStyles.js +1 -2
- package/lib/components/ProgressBar/useProgressBarStyles.js.map +1 -1
- package/lib/components/ProgressField/ProgressField.js +1 -2
- package/lib/components/ProgressField/ProgressField.js.map +1 -1
- package/lib/components/ProgressField/index.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/utils/clampMax.js.map +1 -1
- package/lib/utils/clampValue.js.map +1 -1
- package/lib/utils/index.js.map +1 -1
- package/lib-commonjs/ProgressBar.js +5 -4
- package/lib-commonjs/ProgressBar.js.map +1 -1
- package/lib-commonjs/ProgressField.js +5 -4
- package/lib-commonjs/ProgressField.js.map +1 -1
- package/lib-commonjs/components/ProgressBar/ProgressBar.js +19 -20
- package/lib-commonjs/components/ProgressBar/ProgressBar.js.map +1 -1
- package/lib-commonjs/components/ProgressBar/ProgressBar.types.js +3 -2
- package/lib-commonjs/components/ProgressBar/ProgressBar.types.js.map +1 -1
- package/lib-commonjs/components/ProgressBar/index.js +9 -8
- package/lib-commonjs/components/ProgressBar/index.js.map +1 -1
- package/lib-commonjs/components/ProgressBar/renderProgressBar.js +13 -20
- package/lib-commonjs/components/ProgressBar/renderProgressBar.js.map +1 -1
- package/lib-commonjs/components/ProgressBar/useProgressBar.js +42 -51
- package/lib-commonjs/components/ProgressBar/useProgressBar.js.map +1 -1
- package/lib-commonjs/components/ProgressBar/useProgressBarStyles.js +220 -122
- package/lib-commonjs/components/ProgressBar/useProgressBarStyles.js.map +1 -1
- package/lib-commonjs/components/ProgressField/ProgressField.js +25 -19
- package/lib-commonjs/components/ProgressField/ProgressField.js.map +1 -1
- package/lib-commonjs/components/ProgressField/index.js +5 -4
- package/lib-commonjs/components/ProgressField/index.js.map +1 -1
- package/lib-commonjs/index.js +21 -49
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/utils/clampMax.js +15 -13
- package/lib-commonjs/utils/clampMax.js.map +1 -1
- package/lib-commonjs/utils/clampValue.js +21 -19
- package/lib-commonjs/utils/clampValue.js.map +1 -1
- package/lib-commonjs/utils/index.js +6 -5
- package/lib-commonjs/utils/index.js.map +1 -1
- package/package.json +9 -8
- package/lib-amd/ProgressBar.js +0 -6
- package/lib-amd/ProgressBar.js.map +0 -1
- package/lib-amd/ProgressField.js +0 -6
- package/lib-amd/ProgressField.js.map +0 -1
- package/lib-amd/components/ProgressBar/ProgressBar.js +0 -17
- package/lib-amd/components/ProgressBar/ProgressBar.js.map +0 -1
- package/lib-amd/components/ProgressBar/ProgressBar.types.js +0 -5
- package/lib-amd/components/ProgressBar/ProgressBar.types.js.map +0 -1
- package/lib-amd/components/ProgressBar/index.js +0 -10
- package/lib-amd/components/ProgressBar/index.js.map +0 -1
- package/lib-amd/components/ProgressBar/renderProgressBar.js +0 -14
- package/lib-amd/components/ProgressBar/renderProgressBar.js.map +0 -1
- package/lib-amd/components/ProgressBar/useProgressBar.js +0 -41
- package/lib-amd/components/ProgressBar/useProgressBar.js.map +0 -1
- package/lib-amd/components/ProgressBar/useProgressBarStyles.js +0 -96
- package/lib-amd/components/ProgressBar/useProgressBarStyles.js.map +0 -1
- package/lib-amd/components/ProgressField/ProgressField.js +0 -13
- package/lib-amd/components/ProgressField/ProgressField.js.map +0 -1
- package/lib-amd/components/ProgressField/index.js +0 -6
- package/lib-amd/components/ProgressField/index.js.map +0 -1
- package/lib-amd/index.js +0 -13
- package/lib-amd/index.js.map +0 -1
- package/lib-amd/utils/clampMax.js +0 -17
- package/lib-amd/utils/clampMax.js.map +0 -1
- package/lib-amd/utils/clampValue.js +0 -24
- package/lib-amd/utils/clampValue.js.map +0 -1
- package/lib-amd/utils/index.js +0 -7
- package/lib-amd/utils/index.js.map +0 -1
@@ -1,17 +0,0 @@
|
|
1
|
-
define(["require", "exports"], function (require, exports) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.clampMax = void 0;
|
5
|
-
var clampMax = function (max) {
|
6
|
-
var internalMax = max <= 0 ? 1 : max;
|
7
|
-
if (process.env.NODE_ENV !== 'production') {
|
8
|
-
if (max <= 0) {
|
9
|
-
// eslint-disable-next-line no-console
|
10
|
-
console.error("The prop 'max' must be greater than 0. Received max: " + max);
|
11
|
-
}
|
12
|
-
}
|
13
|
-
return internalMax;
|
14
|
-
};
|
15
|
-
exports.clampMax = clampMax;
|
16
|
-
});
|
17
|
-
//# sourceMappingURL=clampMax.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"clampMax.js","sourceRoot":"","sources":["../../../../../../../../packages/react-components/react-progress/src/utils/clampMax.ts"],"names":[],"mappings":";;;;IAAO,IAAM,QAAQ,GAAG,UAAC,GAAW;QAClC,IAAM,WAAW,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;QAEvC,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;YACzC,IAAI,GAAG,IAAI,CAAC,EAAE;gBACZ,sCAAsC;gBACtC,OAAO,CAAC,KAAK,CAAC,0DAAwD,GAAK,CAAC,CAAC;aAC9E;SACF;QACD,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC;IAVW,QAAA,QAAQ,YAUnB","sourcesContent":["export const clampMax = (max: number): number => {\n const internalMax = max <= 0 ? 1 : max;\n\n if (process.env.NODE_ENV !== 'production') {\n if (max <= 0) {\n // eslint-disable-next-line no-console\n console.error(`The prop 'max' must be greater than 0. Received max: ${max}`);\n }\n }\n return internalMax;\n};\n"]}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
define(["require", "exports"], function (require, exports) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.clampValue = void 0;
|
5
|
-
var clampValue = function (value, max) {
|
6
|
-
if (value === undefined) {
|
7
|
-
return value;
|
8
|
-
}
|
9
|
-
var internalValue = value < 0 ? 0 : value > max ? max : value;
|
10
|
-
if (process.env.NODE_ENV !== 'production') {
|
11
|
-
if (value < 0) {
|
12
|
-
// eslint-disable-next-line no-console
|
13
|
-
console.error("The prop 'value' must be greater than or equal to zero. Received value: " + value);
|
14
|
-
}
|
15
|
-
if (value > max) {
|
16
|
-
// eslint-disable-next-line no-console
|
17
|
-
console.error("The prop 'value' must be less than or equal to 'max'. Received value: " + value + ", max: " + max);
|
18
|
-
}
|
19
|
-
}
|
20
|
-
return internalValue;
|
21
|
-
};
|
22
|
-
exports.clampValue = clampValue;
|
23
|
-
});
|
24
|
-
//# sourceMappingURL=clampValue.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"clampValue.js","sourceRoot":"","sources":["../../../../../../../../packages/react-components/react-progress/src/utils/clampValue.ts"],"names":[],"mappings":";;;;IAAO,IAAM,UAAU,GAAG,UAAC,KAAyB,EAAE,GAAW;QAC/D,IAAI,KAAK,KAAK,SAAS,EAAE;YACvB,OAAO,KAAK,CAAC;SACd;QACD,IAAM,aAAa,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;QAEhE,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;YACzC,IAAI,KAAK,GAAG,CAAC,EAAE;gBACb,sCAAsC;gBACtC,OAAO,CAAC,KAAK,CAAC,6EAA2E,KAAO,CAAC,CAAC;aACnG;YACD,IAAI,KAAK,GAAG,GAAG,EAAE;gBACf,sCAAsC;gBACtC,OAAO,CAAC,KAAK,CAAC,2EAAyE,KAAK,eAAU,GAAK,CAAC,CAAC;aAC9G;SACF;QACD,OAAO,aAAa,CAAC;IACvB,CAAC,CAAC;IAjBW,QAAA,UAAU,cAiBrB","sourcesContent":["export const clampValue = (value: number | undefined, max: number): number | undefined => {\n if (value === undefined) {\n return value;\n }\n const internalValue = value < 0 ? 0 : value > max ? max : value;\n\n if (process.env.NODE_ENV !== 'production') {\n if (value < 0) {\n // eslint-disable-next-line no-console\n console.error(`The prop 'value' must be greater than or equal to zero. Received value: ${value}`);\n }\n if (value > max) {\n // eslint-disable-next-line no-console\n console.error(`The prop 'value' must be less than or equal to 'max'. Received value: ${value}, max: ${max}`);\n }\n }\n return internalValue;\n};\n"]}
|
package/lib-amd/utils/index.js
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
define(["require", "exports", "tslib", "./clampMax", "./clampValue"], function (require, exports, tslib_1, clampMax_1, clampValue_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
tslib_1.__exportStar(clampMax_1, exports);
|
5
|
-
tslib_1.__exportStar(clampValue_1, exports);
|
6
|
-
});
|
7
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/react-components/react-progress/src/utils/index.ts"],"names":[],"mappings":";;;IAAA,0CAA2B;IAC3B,4CAA6B","sourcesContent":["export * from './clampMax';\nexport * from './clampValue';\n"]}
|