@fluentui/react-charting 5.22.1 → 5.22.3

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 (60) hide show
  1. package/CHANGELOG.json +43 -1
  2. package/CHANGELOG.md +22 -2
  3. package/dist/react-charting.d.ts +16 -0
  4. package/dist/react-charting.js +1 -1
  5. package/dist/react-charting.min.js +1 -1
  6. package/etc/react-charting.api.md +4 -0
  7. package/lib/components/DonutChart/Arc/Arc.js +9 -15
  8. package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
  9. package/lib/components/DonutChart/Arc/Arc.styles.d.ts +2 -2
  10. package/lib/components/DonutChart/Arc/Arc.styles.js +9 -2
  11. package/lib/components/DonutChart/Arc/Arc.styles.js.map +1 -1
  12. package/lib/components/DonutChart/Arc/Arc.types.d.ts +26 -0
  13. package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -1
  14. package/lib/components/GaugeChart/GaugeChart.base.js +9 -9
  15. package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
  16. package/lib/components/GaugeChart/GaugeChart.styles.js +9 -1
  17. package/lib/components/GaugeChart/GaugeChart.styles.js.map +1 -1
  18. package/lib/components/GaugeChart/GaugeChart.types.d.ts +16 -0
  19. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
  20. package/lib/utilities/gradients.js +2 -2
  21. package/lib/utilities/gradients.js.map +1 -1
  22. package/lib/version.js +1 -1
  23. package/lib/version.js.map +1 -1
  24. package/lib-amd/components/DonutChart/Arc/Arc.js +9 -15
  25. package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -1
  26. package/lib-amd/components/DonutChart/Arc/Arc.styles.d.ts +2 -2
  27. package/lib-amd/components/DonutChart/Arc/Arc.styles.js +9 -2
  28. package/lib-amd/components/DonutChart/Arc/Arc.styles.js.map +1 -1
  29. package/lib-amd/components/DonutChart/Arc/Arc.types.d.ts +26 -0
  30. package/lib-amd/components/DonutChart/Arc/Arc.types.js.map +1 -1
  31. package/lib-amd/components/GaugeChart/GaugeChart.base.js +9 -9
  32. package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -1
  33. package/lib-amd/components/GaugeChart/GaugeChart.styles.js +9 -1
  34. package/lib-amd/components/GaugeChart/GaugeChart.styles.js.map +1 -1
  35. package/lib-amd/components/GaugeChart/GaugeChart.types.d.ts +16 -0
  36. package/lib-amd/components/GaugeChart/GaugeChart.types.js.map +1 -1
  37. package/lib-amd/utilities/gradients.js +2 -2
  38. package/lib-amd/utilities/gradients.js.map +1 -1
  39. package/lib-amd/version.js +1 -1
  40. package/lib-amd/version.js.map +1 -1
  41. package/lib-commonjs/components/DonutChart/Arc/Arc.js +9 -15
  42. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
  43. package/lib-commonjs/components/DonutChart/Arc/Arc.styles.d.ts +2 -2
  44. package/lib-commonjs/components/DonutChart/Arc/Arc.styles.js +9 -2
  45. package/lib-commonjs/components/DonutChart/Arc/Arc.styles.js.map +1 -1
  46. package/lib-commonjs/components/DonutChart/Arc/Arc.types.d.ts +26 -0
  47. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -1
  48. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js +9 -9
  49. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
  50. package/lib-commonjs/components/GaugeChart/GaugeChart.styles.js +9 -1
  51. package/lib-commonjs/components/GaugeChart/GaugeChart.styles.js.map +1 -1
  52. package/lib-commonjs/components/GaugeChart/GaugeChart.types.d.ts +16 -0
  53. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
  54. package/lib-commonjs/utilities/gradients.js +2 -2
  55. package/lib-commonjs/utilities/gradients.js.map +1 -1
  56. package/lib-commonjs/version.js +1 -1
  57. package/lib-commonjs/version.js.map +1 -1
  58. package/package.json +3 -3
  59. package/src/components/DonutChart/Arc/Arc.types.ts +32 -0
  60. package/src/components/GaugeChart/GaugeChart.types.ts +20 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-charting",
3
- "version": "5.22.1",
3
+ "version": "5.22.3",
4
4
  "description": "React web charting controls for Microsoft fluentui system.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@fluentui/react-focus": "^8.9.13",
43
- "@fluentui/theme-samples": "^8.7.170",
43
+ "@fluentui/theme-samples": "^8.7.171",
44
44
  "@microsoft/load-themed-styles": "^1.10.26",
45
45
  "@types/d3-array": "^2.0.0",
46
46
  "@types/d3-axis": "^2.0.0",
@@ -66,7 +66,7 @@
66
66
  "tslib": "^2.1.0"
67
67
  },
68
68
  "peerDependencies": {
69
- "@fluentui/react": "^8.120.6",
69
+ "@fluentui/react": "^8.120.7",
70
70
  "@types/react": ">=16.8.0 <19.0.0",
71
71
  "@types/react-dom": ">=16.8.0 <19.0.0",
72
72
  "react": ">=16.8.0 <19.0.0",
@@ -146,12 +146,44 @@ export interface IArcData {
146
146
  value: number;
147
147
  }
148
148
 
149
+ export interface IArcStyleProps {
150
+ /**
151
+ * Theme
152
+ */
153
+ theme: ITheme;
154
+
155
+ /**
156
+ * internal prop for href
157
+ */
158
+ href: string;
159
+
160
+ /**
161
+ * solid color for the arc (when enableGradient is false)
162
+ */
163
+ solidFill: string;
164
+
165
+ /**
166
+ * gradient for the arc (when enableGradient is true)
167
+ */
168
+ gradientFill: string;
169
+
170
+ /**
171
+ * wether gradients are enabled for the arc
172
+ */
173
+ opacity: number;
174
+ }
175
+
149
176
  export interface IArcStyles {
150
177
  /**
151
178
  * Style set for the card header component root
152
179
  */
153
180
  root: IStyle;
154
181
 
182
+ /**
183
+ * Style set for the gradient arc
184
+ */
185
+ gradientArc: IStyle;
186
+
155
187
  /**
156
188
  * styles for the focus
157
189
  */
@@ -209,6 +209,21 @@ export interface IGaugeChartStyleProps {
209
209
  * Boolean flag which determines if shape is drawn in callout
210
210
  */
211
211
  toDrawShape?: boolean;
212
+
213
+ /**
214
+ * solid color for the arc (when enableGradient is false)
215
+ */
216
+ solidFill?: string;
217
+
218
+ /**
219
+ * gradient for the arc (when enableGradient is true)
220
+ */
221
+ gradientFill?: string;
222
+
223
+ /**
224
+ * opacity of the arc
225
+ */
226
+ opacity?: number;
212
227
  }
213
228
 
214
229
  /**
@@ -256,6 +271,11 @@ export interface IGaugeChartStyles {
256
271
  */
257
272
  segment?: IStyle;
258
273
 
274
+ /**
275
+ * Styles for gradient segments
276
+ */
277
+ gradientSegment?: IStyle;
278
+
259
279
  /**
260
280
  * Styles for the legends container
261
281
  */