@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.
Files changed (78) hide show
  1. package/.swcrc +30 -0
  2. package/CHANGELOG.json +73 -1
  3. package/CHANGELOG.md +27 -2
  4. package/lib/ProgressBar.js.map +1 -1
  5. package/lib/ProgressField.js.map +1 -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/index.js.map +1 -1
  9. package/lib/components/ProgressBar/renderProgressBar.js +1 -5
  10. package/lib/components/ProgressBar/renderProgressBar.js.map +1 -1
  11. package/lib/components/ProgressBar/useProgressBar.js +3 -2
  12. package/lib/components/ProgressBar/useProgressBar.js.map +1 -1
  13. package/lib/components/ProgressBar/useProgressBarStyles.js +1 -2
  14. package/lib/components/ProgressBar/useProgressBarStyles.js.map +1 -1
  15. package/lib/components/ProgressField/ProgressField.js +1 -2
  16. package/lib/components/ProgressField/ProgressField.js.map +1 -1
  17. package/lib/components/ProgressField/index.js.map +1 -1
  18. package/lib/index.js.map +1 -1
  19. package/lib/utils/clampMax.js.map +1 -1
  20. package/lib/utils/clampValue.js.map +1 -1
  21. package/lib/utils/index.js.map +1 -1
  22. package/lib-commonjs/ProgressBar.js +5 -4
  23. package/lib-commonjs/ProgressBar.js.map +1 -1
  24. package/lib-commonjs/ProgressField.js +5 -4
  25. package/lib-commonjs/ProgressField.js.map +1 -1
  26. package/lib-commonjs/components/ProgressBar/ProgressBar.js +19 -20
  27. package/lib-commonjs/components/ProgressBar/ProgressBar.js.map +1 -1
  28. package/lib-commonjs/components/ProgressBar/ProgressBar.types.js +3 -2
  29. package/lib-commonjs/components/ProgressBar/ProgressBar.types.js.map +1 -1
  30. package/lib-commonjs/components/ProgressBar/index.js +9 -8
  31. package/lib-commonjs/components/ProgressBar/index.js.map +1 -1
  32. package/lib-commonjs/components/ProgressBar/renderProgressBar.js +13 -20
  33. package/lib-commonjs/components/ProgressBar/renderProgressBar.js.map +1 -1
  34. package/lib-commonjs/components/ProgressBar/useProgressBar.js +42 -51
  35. package/lib-commonjs/components/ProgressBar/useProgressBar.js.map +1 -1
  36. package/lib-commonjs/components/ProgressBar/useProgressBarStyles.js +220 -122
  37. package/lib-commonjs/components/ProgressBar/useProgressBarStyles.js.map +1 -1
  38. package/lib-commonjs/components/ProgressField/ProgressField.js +25 -19
  39. package/lib-commonjs/components/ProgressField/ProgressField.js.map +1 -1
  40. package/lib-commonjs/components/ProgressField/index.js +5 -4
  41. package/lib-commonjs/components/ProgressField/index.js.map +1 -1
  42. package/lib-commonjs/index.js +21 -49
  43. package/lib-commonjs/index.js.map +1 -1
  44. package/lib-commonjs/utils/clampMax.js +15 -13
  45. package/lib-commonjs/utils/clampMax.js.map +1 -1
  46. package/lib-commonjs/utils/clampValue.js +21 -19
  47. package/lib-commonjs/utils/clampValue.js.map +1 -1
  48. package/lib-commonjs/utils/index.js +6 -5
  49. package/lib-commonjs/utils/index.js.map +1 -1
  50. package/package.json +9 -8
  51. package/lib-amd/ProgressBar.js +0 -6
  52. package/lib-amd/ProgressBar.js.map +0 -1
  53. package/lib-amd/ProgressField.js +0 -6
  54. package/lib-amd/ProgressField.js.map +0 -1
  55. package/lib-amd/components/ProgressBar/ProgressBar.js +0 -17
  56. package/lib-amd/components/ProgressBar/ProgressBar.js.map +0 -1
  57. package/lib-amd/components/ProgressBar/ProgressBar.types.js +0 -5
  58. package/lib-amd/components/ProgressBar/ProgressBar.types.js.map +0 -1
  59. package/lib-amd/components/ProgressBar/index.js +0 -10
  60. package/lib-amd/components/ProgressBar/index.js.map +0 -1
  61. package/lib-amd/components/ProgressBar/renderProgressBar.js +0 -14
  62. package/lib-amd/components/ProgressBar/renderProgressBar.js.map +0 -1
  63. package/lib-amd/components/ProgressBar/useProgressBar.js +0 -41
  64. package/lib-amd/components/ProgressBar/useProgressBar.js.map +0 -1
  65. package/lib-amd/components/ProgressBar/useProgressBarStyles.js +0 -96
  66. package/lib-amd/components/ProgressBar/useProgressBarStyles.js.map +0 -1
  67. package/lib-amd/components/ProgressField/ProgressField.js +0 -13
  68. package/lib-amd/components/ProgressField/ProgressField.js.map +0 -1
  69. package/lib-amd/components/ProgressField/index.js +0 -6
  70. package/lib-amd/components/ProgressField/index.js.map +0 -1
  71. package/lib-amd/index.js +0 -13
  72. package/lib-amd/index.js.map +0 -1
  73. package/lib-amd/utils/clampMax.js +0 -17
  74. package/lib-amd/utils/clampMax.js.map +0 -1
  75. package/lib-amd/utils/clampValue.js +0 -24
  76. package/lib-amd/utils/clampValue.js.map +0 -1
  77. package/lib-amd/utils/index.js +0 -7
  78. 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"]}
@@ -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"]}