@fluentui/react-charts 9.3.17 → 9.3.18

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 (259) hide show
  1. package/CHANGELOG.md +18 -2
  2. package/dist/index.d.ts +11 -11
  3. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js +3 -1
  4. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js.map +1 -1
  5. package/lib/components/AreaChart/AreaChart.js +3 -5
  6. package/lib/components/AreaChart/AreaChart.js.map +1 -1
  7. package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
  8. package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js.map +1 -1
  9. package/lib/components/ChartTable/ChartTable.js.map +1 -1
  10. package/lib/components/ChartTable/ChartTable.types.js +4 -1
  11. package/lib/components/ChartTable/ChartTable.types.js.map +1 -1
  12. package/lib/components/ChartTable/useChartTableStyles.styles.raw.js.map +1 -1
  13. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +1 -1
  14. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js.map +1 -1
  15. package/lib/components/CommonComponents/CartesianChart.js +6 -6
  16. package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
  17. package/lib/components/CommonComponents/CartesianChart.types.js +2 -1
  18. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  19. package/lib/components/CommonComponents/ChartPopover.js.map +1 -1
  20. package/lib/components/CommonComponents/ChartPopover.types.js.map +1 -1
  21. package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +1 -1
  22. package/lib/components/CommonComponents/useChartPopoverStyles.styles.raw.js.map +1 -1
  23. package/lib/components/DeclarativeChart/DeclarativeChart.js +0 -1
  24. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  25. package/lib/components/DeclarativeChart/PlotlyColorAdapter.js +0 -1
  26. package/lib/components/DeclarativeChart/PlotlyColorAdapter.js.map +1 -1
  27. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +0 -1
  28. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  29. package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
  30. package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -1
  31. package/lib/components/DonutChart/Arc/useArcStyles.styles.raw.js.map +1 -1
  32. package/lib/components/DonutChart/DonutChart.js +1 -2
  33. package/lib/components/DonutChart/DonutChart.js.map +1 -1
  34. package/lib/components/DonutChart/DonutChart.types.js +4 -1
  35. package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
  36. package/lib/components/DonutChart/Pie/Pie.js +2 -5
  37. package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
  38. package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -1
  39. package/lib/components/DonutChart/Pie/usePieStyles.styles.raw.js.map +1 -1
  40. package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js.map +1 -1
  41. package/lib/components/FunnelChart/FunnelChart.js.map +1 -1
  42. package/lib/components/FunnelChart/FunnelChart.types.js +4 -1
  43. package/lib/components/FunnelChart/FunnelChart.types.js.map +1 -1
  44. package/lib/components/FunnelChart/funnelGeometry.js +0 -1
  45. package/lib/components/FunnelChart/funnelGeometry.js.map +1 -1
  46. package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +1 -1
  47. package/lib/components/GanttChart/GanttChart.js.map +1 -1
  48. package/lib/components/GanttChart/GanttChart.types.js.map +1 -1
  49. package/lib/components/GanttChart/useGanttChartStyles.styles.raw.js.map +1 -1
  50. package/lib/components/GaugeChart/GaugeChart.js +1 -4
  51. package/lib/components/GaugeChart/GaugeChart.js.map +1 -1
  52. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
  53. package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +1 -1
  54. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +2 -3
  55. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  56. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  57. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +1 -1
  58. package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -1
  59. package/lib/components/HorizontalBarChart/HorizontalBarChart.js +1 -1
  60. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  61. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +0 -1
  62. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
  63. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +1 -1
  64. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +1 -2
  65. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  66. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  67. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +1 -1
  68. package/lib/components/Legends/Legends.js +1 -1
  69. package/lib/components/Legends/Legends.js.map +1 -1
  70. package/lib/components/Legends/Legends.types.js +3 -1
  71. package/lib/components/Legends/Legends.types.js.map +1 -1
  72. package/lib/components/Legends/shape.js.map +1 -1
  73. package/lib/components/Legends/useLegendsStyles.styles.raw.js.map +1 -1
  74. package/lib/components/LineChart/LineChart.js +16 -16
  75. package/lib/components/LineChart/LineChart.js.map +1 -1
  76. package/lib/components/LineChart/LineChart.types.js.map +1 -1
  77. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  78. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
  79. package/lib/components/LineChart/useLineChartStyles.styles.raw.js.map +1 -1
  80. package/lib/components/PolarChart/PolarChart.js.map +1 -1
  81. package/lib/components/PolarChart/PolarChart.types.js +4 -1
  82. package/lib/components/PolarChart/PolarChart.types.js.map +1 -1
  83. package/lib/components/PolarChart/PolarChart.utils.js.map +1 -1
  84. package/lib/components/PolarChart/usePolarChartStyles.styles.raw.js.map +1 -1
  85. package/lib/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -1
  86. package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js +4 -1
  87. package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -1
  88. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js.map +1 -1
  89. package/lib/components/ResponsiveContainer/withResponsiveContainer.js.map +1 -1
  90. package/lib/components/SankeyChart/SankeyChart.js +2 -2
  91. package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
  92. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
  93. package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +1 -1
  94. package/lib/components/ScatterChart/ScatterChart.js +3 -4
  95. package/lib/components/ScatterChart/ScatterChart.js.map +1 -1
  96. package/lib/components/ScatterChart/ScatterChart.types.js +1 -1
  97. package/lib/components/ScatterChart/ScatterChart.types.js.map +1 -1
  98. package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +1 -1
  99. package/lib/components/Sparkline/Sparkline.js +3 -4
  100. package/lib/components/Sparkline/Sparkline.js.map +1 -1
  101. package/lib/components/Sparkline/Sparkline.types.js.map +1 -1
  102. package/lib/components/Sparkline/useSparklineStyles.styles.raw.js.map +1 -1
  103. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js.map +1 -1
  104. package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js +1 -1
  105. package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js.map +1 -1
  106. package/lib/components/VerticalBarChart/VerticalBarChart.js +5 -8
  107. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  108. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  109. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +1 -1
  110. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +5 -5
  111. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  112. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +4 -1
  113. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  114. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +1 -1
  115. package/lib/types/ChartAnnotation.js +1 -1
  116. package/lib/types/ChartAnnotation.js.map +1 -1
  117. package/lib/types/DataPoint.js.map +1 -1
  118. package/lib/types/EventAnnotation.js +1 -1
  119. package/lib/types/EventAnnotation.js.map +1 -1
  120. package/lib/utilities/ChartTitle.js.map +1 -1
  121. package/lib/utilities/FocusableTooltipText.js.map +1 -1
  122. package/lib/utilities/async-utils.js +20 -20
  123. package/lib/utilities/async-utils.js.map +1 -1
  124. package/lib/utilities/hooks.js.map +1 -1
  125. package/lib/utilities/image-export-utils.js.map +1 -1
  126. package/lib/utilities/scatterpolar-utils.js.map +1 -1
  127. package/lib/utilities/test-data.js.map +1 -1
  128. package/lib/utilities/utilities.js +4 -7
  129. package/lib/utilities/utilities.js.map +1 -1
  130. package/lib/utilities/vbc-utils.js.map +1 -1
  131. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js +3 -3
  132. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js.map +1 -1
  133. package/lib-commonjs/components/AreaChart/AreaChart.js +3 -5
  134. package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -1
  135. package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -1
  136. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.js.map +1 -1
  137. package/lib-commonjs/components/ChartTable/ChartTable.js.map +1 -1
  138. package/lib-commonjs/components/ChartTable/ChartTable.types.js +4 -3
  139. package/lib-commonjs/components/ChartTable/ChartTable.types.js.map +1 -1
  140. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.js.map +1 -1
  141. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +1 -1
  142. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js.map +1 -1
  143. package/lib-commonjs/components/CommonComponents/CartesianChart.js +6 -6
  144. package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
  145. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js +1 -2
  146. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  147. package/lib-commonjs/components/CommonComponents/ChartPopover.js.map +1 -1
  148. package/lib-commonjs/components/CommonComponents/ChartPopover.types.js.map +1 -1
  149. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +1 -1
  150. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.js.map +1 -1
  151. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +0 -1
  152. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  153. package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.js +0 -2
  154. package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.js.map +1 -1
  155. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +0 -2
  156. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  157. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
  158. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -1
  159. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.raw.js.map +1 -1
  160. package/lib-commonjs/components/DonutChart/DonutChart.js +1 -2
  161. package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -1
  162. package/lib-commonjs/components/DonutChart/DonutChart.types.js +4 -3
  163. package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -1
  164. package/lib-commonjs/components/DonutChart/Pie/Pie.js +2 -5
  165. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
  166. package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -1
  167. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.raw.js.map +1 -1
  168. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.js.map +1 -1
  169. package/lib-commonjs/components/FunnelChart/FunnelChart.js.map +1 -1
  170. package/lib-commonjs/components/FunnelChart/FunnelChart.types.js +4 -3
  171. package/lib-commonjs/components/FunnelChart/FunnelChart.types.js.map +1 -1
  172. package/lib-commonjs/components/FunnelChart/funnelGeometry.js +0 -2
  173. package/lib-commonjs/components/FunnelChart/funnelGeometry.js.map +1 -1
  174. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +1 -1
  175. package/lib-commonjs/components/GanttChart/GanttChart.js.map +1 -1
  176. package/lib-commonjs/components/GanttChart/GanttChart.types.js.map +1 -1
  177. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.js.map +1 -1
  178. package/lib-commonjs/components/GaugeChart/GaugeChart.js +1 -4
  179. package/lib-commonjs/components/GaugeChart/GaugeChart.js.map +1 -1
  180. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
  181. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +1 -1
  182. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +2 -3
  183. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  184. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  185. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +1 -1
  186. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -1
  187. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +1 -1
  188. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  189. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js +3 -3
  190. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
  191. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +1 -1
  192. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +1 -2
  193. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  194. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  195. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +1 -1
  196. package/lib-commonjs/components/Legends/Legends.js +1 -1
  197. package/lib-commonjs/components/Legends/Legends.js.map +1 -1
  198. package/lib-commonjs/components/Legends/Legends.types.js +3 -3
  199. package/lib-commonjs/components/Legends/Legends.types.js.map +1 -1
  200. package/lib-commonjs/components/Legends/shape.js.map +1 -1
  201. package/lib-commonjs/components/Legends/useLegendsStyles.styles.raw.js.map +1 -1
  202. package/lib-commonjs/components/LineChart/LineChart.js +16 -16
  203. package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
  204. package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -1
  205. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  206. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
  207. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.js.map +1 -1
  208. package/lib-commonjs/components/PolarChart/PolarChart.js.map +1 -1
  209. package/lib-commonjs/components/PolarChart/PolarChart.types.js +4 -3
  210. package/lib-commonjs/components/PolarChart/PolarChart.types.js.map +1 -1
  211. package/lib-commonjs/components/PolarChart/PolarChart.utils.js.map +1 -1
  212. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.raw.js.map +1 -1
  213. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -1
  214. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js +4 -3
  215. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -1
  216. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js.map +1 -1
  217. package/lib-commonjs/components/ResponsiveContainer/withResponsiveContainer.js.map +1 -1
  218. package/lib-commonjs/components/SankeyChart/SankeyChart.js +2 -2
  219. package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -1
  220. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
  221. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +1 -1
  222. package/lib-commonjs/components/ScatterChart/ScatterChart.js +3 -4
  223. package/lib-commonjs/components/ScatterChart/ScatterChart.js.map +1 -1
  224. package/lib-commonjs/components/ScatterChart/ScatterChart.types.js +1 -1
  225. package/lib-commonjs/components/ScatterChart/ScatterChart.types.js.map +1 -1
  226. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +1 -1
  227. package/lib-commonjs/components/Sparkline/Sparkline.js +3 -4
  228. package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -1
  229. package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -1
  230. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.raw.js.map +1 -1
  231. package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js.map +1 -1
  232. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js +1 -1
  233. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js.map +1 -1
  234. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +5 -8
  235. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  236. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  237. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +1 -1
  238. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +5 -5
  239. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  240. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +4 -3
  241. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  242. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +1 -1
  243. package/lib-commonjs/types/ChartAnnotation.js +0 -2
  244. package/lib-commonjs/types/ChartAnnotation.js.map +1 -1
  245. package/lib-commonjs/types/DataPoint.js.map +1 -1
  246. package/lib-commonjs/types/EventAnnotation.js +0 -2
  247. package/lib-commonjs/types/EventAnnotation.js.map +1 -1
  248. package/lib-commonjs/utilities/ChartTitle.js.map +1 -1
  249. package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -1
  250. package/lib-commonjs/utilities/async-utils.js +20 -20
  251. package/lib-commonjs/utilities/async-utils.js.map +1 -1
  252. package/lib-commonjs/utilities/hooks.js.map +1 -1
  253. package/lib-commonjs/utilities/image-export-utils.js.map +1 -1
  254. package/lib-commonjs/utilities/scatterpolar-utils.js.map +1 -1
  255. package/lib-commonjs/utilities/test-data.js.map +1 -1
  256. package/lib-commonjs/utilities/utilities.js +2 -2
  257. package/lib-commonjs/utilities/utilities.js.map +1 -1
  258. package/lib-commonjs/utilities/vbc-utils.js.map +1 -1
  259. package/package.json +8 -8
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Legends/useLegendsStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { LegendsProps, LegendsStyles } from './Legends.types';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { HighContrastSelector } from '../../utilities/index';\n\n// Constants needed to create legends using SVG for image export\nexport const LEGEND_CONTAINER_MARGIN_TOP = 8;\nexport const LEGEND_CONTAINER_MARGIN_START = 12;\nexport const LEGEND_PADDING = 8;\nexport const LEGEND_HEIGHT = 32;\nexport const LEGEND_SHAPE_BORDER = 1;\nconst LEGEND_SHAPE_SIZE_WITHOUT_BORDER = 12;\n// SVG strokes are drawn centered around the path, with half of the stroke width extending inward\n// (overlapping the fill area) and half outward. To ensure the filled area maintains its intended size,\n// expand the shape accordingly.\nexport const LEGEND_SHAPE_SIZE = LEGEND_SHAPE_SIZE_WITHOUT_BORDER + LEGEND_SHAPE_BORDER;\nexport const LEGEND_SHAPE_MARGIN_END = 8;\nexport const INACTIVE_LEGEND_TEXT_OPACITY = 0.67;\n\n/**\n * @internal\n */\nexport const legendClassNames: SlotClassNames<LegendsStyles> = {\n root: 'fui-legend__root',\n legend: 'fui-legend__legend',\n rect: 'fui-legend__rect',\n shape: 'fui-legend__shape',\n triangle: 'fui-legend__triangle',\n text: 'fui-legend__text',\n hoverChange: 'fui-legend__hoverChange',\n resizableArea: 'fui-legend__resizableArea',\n legendContainer: 'fui-legend__legendContainer',\n annotation: 'fui-legend__annotation',\n};\n\nconst useStyles = makeStyles({\n root: {\n // FIXME: Removing this style allows the legend container in responsive donut chart to resize\n // properly (horizontally) within a flexbox or grid layout. But it causes vertical resizing issues\n // in responsive charts where legends consist of multiple words.\n whiteSpace: 'nowrap',\n width: '100%',\n alignItems: 'center',\n },\n legend: {\n // setting display to flex does not work\n // display: 'flex',\n alignItems: 'center',\n justifyContent: 'left',\n cursor: 'pointer',\n border: 'none',\n padding: `${LEGEND_PADDING}px`,\n textTransform: 'capitalize',\n // The default min-width is 64px. Setting it to 0 allows the legend container in responsive\n // cartesian charts to resize properly within a flexbox or grid layout.\n minWidth: 0,\n [HighContrastSelector]: {\n color: 'WindowText',\n forcedColorAdjust: 'none',\n '&:focus-visible': {\n outline: `${tokens.strokeWidthThick} solid canvasText`,\n outlineOffset: `calc(${tokens.strokeWidthThick} * -1)`,\n },\n },\n '&:hover': {\n [HighContrastSelector]: {\n color: 'HighlightText',\n forcedColorAdjust: 'none',\n },\n },\n },\n rect: {\n [HighContrastSelector]: {\n content: 'var(--rect-content-high-contrast)',\n opacity: 'var(--rect-opacity-high-contrast)',\n },\n width: `${LEGEND_SHAPE_SIZE_WITHOUT_BORDER}px`,\n marginRight: `${LEGEND_SHAPE_MARGIN_END}px`,\n border: `${LEGEND_SHAPE_BORDER}px solid`,\n },\n shape: {\n marginRight: `${LEGEND_SHAPE_MARGIN_END}px`,\n },\n // TO DO Add props when these styles are used in the component\n triangle: {\n width: '0',\n height: '0',\n borderLeft: '6px solid transparent',\n borderRight: '6px solid transparent',\n borderTop: '10.4px solid',\n marginRight: tokens.spacingHorizontalS,\n },\n // TO DO Add props when these styles are used in the component\n text: {\n ...typographyStyles.caption1,\n color: tokens.colorNeutralForeground1,\n forcedColorAdjust: 'auto',\n },\n // TO DO Add props when these styles are used in the component\n hoverChange: {\n width: '12px',\n height: '12px',\n marginRight: tokens.spacingHorizontalS,\n border: '1px solid',\n },\n resizableArea: {\n position: 'relative',\n textAlign: 'left',\n transform: 'translate(-50%, 0)',\n top: 'auto',\n left: '50%',\n minWidth: '200px',\n maxWidth: '800px',\n '::after': {\n padding: '1px 4px 1px',\n borderTop: '-2px',\n borderLeft: '-2px',\n },\n },\n legendContainer: {\n flex: '0 1 auto',\n margin: '4px',\n },\n annotation: {\n display: 'flex',\n alignItems: 'center',\n gap: '4px',\n },\n});\n\nexport const useLegendStyles = (props: LegendsProps): LegendsStyles => {\n const { className } = props; // ToDo - width, barHeight is non enumerable. Need to be used inline.\n const baseStyles = useStyles();\n\n return {\n root: mergeClasses(legendClassNames.root, baseStyles.root, className, props.styles?.root),\n legend: mergeClasses(legendClassNames.legend, baseStyles.legend, props.styles?.legend),\n rect: mergeClasses(legendClassNames.rect, baseStyles.rect, props.styles?.rect),\n shape: mergeClasses(legendClassNames.shape, baseStyles.shape, props.styles?.shape),\n triangle: mergeClasses(legendClassNames.triangle, baseStyles.triangle, props.styles?.triangle),\n text: mergeClasses(legendClassNames.text, baseStyles.text, props.styles?.text),\n hoverChange: mergeClasses(legendClassNames.hoverChange, baseStyles.hoverChange, props.styles?.hoverChange),\n resizableArea: mergeClasses(legendClassNames.resizableArea, baseStyles.resizableArea, props.styles?.resizableArea),\n legendContainer: mergeClasses(\n legendClassNames.legendContainer,\n baseStyles.legendContainer,\n props.styles?.legendContainer,\n ),\n annotation: mergeClasses(legendClassNames.annotation, baseStyles.annotation, props.styles?.annotation),\n };\n};\n"],"names":["makeStyles","mergeClasses","tokens","typographyStyles","HighContrastSelector","LEGEND_CONTAINER_MARGIN_TOP","LEGEND_CONTAINER_MARGIN_START","LEGEND_PADDING","LEGEND_HEIGHT","LEGEND_SHAPE_BORDER","LEGEND_SHAPE_SIZE_WITHOUT_BORDER","LEGEND_SHAPE_SIZE","LEGEND_SHAPE_MARGIN_END","INACTIVE_LEGEND_TEXT_OPACITY","legendClassNames","root","legend","rect","shape","triangle","text","hoverChange","resizableArea","legendContainer","annotation","useStyles","whiteSpace","width","alignItems","justifyContent","cursor","border","padding","textTransform","minWidth","color","forcedColorAdjust","outline","strokeWidthThick","outlineOffset","content","opacity","marginRight","height","borderLeft","borderRight","borderTop","spacingHorizontalS","caption1","colorNeutralForeground1","position","textAlign","transform","top","left","maxWidth","flex","margin","display","gap","useLegendStyles","props","className","baseStyles","styles"],"mappings":"AAAA;AAEA,SAASA,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAG1D,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,wBAAwB;AACjE,SAASC,oBAAoB,QAAQ,wBAAwB;AAE7D,gEAAgE;AAChE,OAAO,MAAMC,8BAA8B,EAAE;AAC7C,OAAO,MAAMC,gCAAgC,GAAG;AAChD,OAAO,MAAMC,iBAAiB,EAAE;AAChC,OAAO,MAAMC,gBAAgB,GAAG;AAChC,OAAO,MAAMC,sBAAsB,EAA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AAiBI,KAAK,EAAE6C,WAAW7C,KAAK,GAAE2C,iBAAAA,MAAMG,MAAM,cAAZH,qCAAAA,eAAc3C,KAAK;QACjFC,UAAUlB,aAAaa,iBAAiBK,QAAQ,EAAE4C,WAAW5C,QAAQ,GAAE0C,iBAAAA,MAAMG,MAAM,cAAZH,qCAAAA,eAAc1C,QAAQ;QAC7FC,MAAMnB,aAAaa,iBAAiBM,IAAI,EAAE2C,WAAW3C,IAAI,GAAEyC,iBAAAA,MAAMG,MAAM,cAAZH,qCAAAA,eAAczC,IAAI;QAC7EC,aAAapB,aAAaa,iBAAiBO,WAAW,EAAE0C,WAAW1C,WAAW,GAAEwC,iBAAAA,MAAMG,MAAM,cAAZH,qCAAAA,eAAcxC,WAAW;QACzGC,eAAerB,aAAaa,iBAAiBQ,aAAa,EAAEyC,WAAWzC,aAAa,GAAEuC,iBAAAA,MAAMG,MAAM,cAAZH,qCAAAA,eAAcvC,aAAa;QACjHC,iBAAiBtB,aACfa,iBAAiBS,eAAe,EAChCwC,WAAWxC,eAAe,GAC1BsC,iBAAAA,MAAMG,MAAM,cAAZH,qCAAAA,eAActC,eAAe;QAE/BC,YAAYvB,aAAaa,iBAAiBU,UAAU,EAAEuC,WAAWvC,UAAU,GAAEqC,iBAAAA,MAAMG,MAAM,cAAZH,qCAAAA,eAAcrC,UAAU;IACvG;AACF,EAAE"}
1
+ {"version":3,"sources":["../src/components/Legends/useLegendsStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { LegendsProps, LegendsStyles } from './Legends.types';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { HighContrastSelector } from '../../utilities/index';\n\n// Constants needed to create legends using SVG for image export\nexport const LEGEND_CONTAINER_MARGIN_TOP = 8;\nexport const LEGEND_CONTAINER_MARGIN_START = 12;\nexport const LEGEND_PADDING = 8;\nexport const LEGEND_HEIGHT = 32;\nexport const LEGEND_SHAPE_BORDER = 1;\nconst LEGEND_SHAPE_SIZE_WITHOUT_BORDER = 12;\n// SVG strokes are drawn centered around the path, with half of the stroke width extending inward\n// (overlapping the fill area) and half outward. To ensure the filled area maintains its intended size,\n// expand the shape accordingly.\nexport const LEGEND_SHAPE_SIZE = LEGEND_SHAPE_SIZE_WITHOUT_BORDER + LEGEND_SHAPE_BORDER;\nexport const LEGEND_SHAPE_MARGIN_END = 8;\nexport const INACTIVE_LEGEND_TEXT_OPACITY = 0.67;\n\n/**\n * @internal\n */\nexport const legendClassNames: SlotClassNames<LegendsStyles> = {\n root: 'fui-legend__root',\n legend: 'fui-legend__legend',\n rect: 'fui-legend__rect',\n shape: 'fui-legend__shape',\n triangle: 'fui-legend__triangle',\n text: 'fui-legend__text',\n hoverChange: 'fui-legend__hoverChange',\n resizableArea: 'fui-legend__resizableArea',\n legendContainer: 'fui-legend__legendContainer',\n annotation: 'fui-legend__annotation',\n};\n\nconst useStyles = makeStyles({\n root: {\n // FIXME: Removing this style allows the legend container in responsive donut chart to resize\n // properly (horizontally) within a flexbox or grid layout. But it causes vertical resizing issues\n // in responsive charts where legends consist of multiple words.\n whiteSpace: 'nowrap',\n width: '100%',\n alignItems: 'center',\n },\n legend: {\n // setting display to flex does not work\n // display: 'flex',\n alignItems: 'center',\n justifyContent: 'left',\n cursor: 'pointer',\n border: 'none',\n padding: `${LEGEND_PADDING}px`,\n textTransform: 'capitalize',\n // The default min-width is 64px. Setting it to 0 allows the legend container in responsive\n // cartesian charts to resize properly within a flexbox or grid layout.\n minWidth: 0,\n [HighContrastSelector]: {\n color: 'WindowText',\n forcedColorAdjust: 'none',\n '&:focus-visible': {\n outline: `${tokens.strokeWidthThick} solid canvasText`,\n outlineOffset: `calc(${tokens.strokeWidthThick} * -1)`,\n },\n },\n '&:hover': {\n [HighContrastSelector]: {\n color: 'HighlightText',\n forcedColorAdjust: 'none',\n },\n },\n },\n rect: {\n [HighContrastSelector]: {\n content: 'var(--rect-content-high-contrast)',\n opacity: 'var(--rect-opacity-high-contrast)',\n },\n width: `${LEGEND_SHAPE_SIZE_WITHOUT_BORDER}px`,\n marginRight: `${LEGEND_SHAPE_MARGIN_END}px`,\n border: `${LEGEND_SHAPE_BORDER}px solid`,\n },\n shape: {\n marginRight: `${LEGEND_SHAPE_MARGIN_END}px`,\n },\n // TO DO Add props when these styles are used in the component\n triangle: {\n width: '0',\n height: '0',\n borderLeft: '6px solid transparent',\n borderRight: '6px solid transparent',\n borderTop: '10.4px solid',\n marginRight: tokens.spacingHorizontalS,\n },\n // TO DO Add props when these styles are used in the component\n text: {\n ...typographyStyles.caption1,\n color: tokens.colorNeutralForeground1,\n forcedColorAdjust: 'auto',\n },\n // TO DO Add props when these styles are used in the component\n hoverChange: {\n width: '12px',\n height: '12px',\n marginRight: tokens.spacingHorizontalS,\n border: '1px solid',\n },\n resizableArea: {\n position: 'relative',\n textAlign: 'left',\n transform: 'translate(-50%, 0)',\n top: 'auto',\n left: '50%',\n minWidth: '200px',\n maxWidth: '800px',\n '::after': {\n padding: '1px 4px 1px',\n borderTop: '-2px',\n borderLeft: '-2px',\n },\n },\n legendContainer: {\n flex: '0 1 auto',\n margin: '4px',\n },\n annotation: {\n display: 'flex',\n alignItems: 'center',\n gap: '4px',\n },\n});\n\nexport const useLegendStyles = (props: LegendsProps): LegendsStyles => {\n const { className } = props; // ToDo - width, barHeight is non enumerable. Need to be used inline.\n const baseStyles = useStyles();\n\n return {\n root: mergeClasses(legendClassNames.root, baseStyles.root, className, props.styles?.root),\n legend: mergeClasses(legendClassNames.legend, baseStyles.legend, props.styles?.legend),\n rect: mergeClasses(legendClassNames.rect, baseStyles.rect, props.styles?.rect),\n shape: mergeClasses(legendClassNames.shape, baseStyles.shape, props.styles?.shape),\n triangle: mergeClasses(legendClassNames.triangle, baseStyles.triangle, props.styles?.triangle),\n text: mergeClasses(legendClassNames.text, baseStyles.text, props.styles?.text),\n hoverChange: mergeClasses(legendClassNames.hoverChange, baseStyles.hoverChange, props.styles?.hoverChange),\n resizableArea: mergeClasses(legendClassNames.resizableArea, baseStyles.resizableArea, props.styles?.resizableArea),\n legendContainer: mergeClasses(\n legendClassNames.legendContainer,\n baseStyles.legendContainer,\n props.styles?.legendContainer,\n ),\n annotation: mergeClasses(legendClassNames.annotation, baseStyles.annotation, props.styles?.annotation),\n };\n};\n"],"names":["makeStyles","mergeClasses","tokens","typographyStyles","HighContrastSelector","LEGEND_CONTAINER_MARGIN_TOP","LEGEND_CONTAINER_MARGIN_START","LEGEND_PADDING","LEGEND_HEIGHT","LEGEND_SHAPE_BORDER","LEGEND_SHAPE_SIZE_WITHOUT_BORDER","LEGEND_SHAPE_SIZE","LEGEND_SHAPE_MARGIN_END","INACTIVE_LEGEND_TEXT_OPACITY","legendClassNames","root","legend","rect","shape","triangle","text","hoverChange","resizableArea","legendContainer","annotation","useStyles","whiteSpace","width","alignItems","justifyContent","cursor","border","padding","textTransform","minWidth","color","forcedColorAdjust","outline","strokeWidthThick","outlineOffset","content","opacity","marginRight","height","borderLeft","borderRight","borderTop","spacingHorizontalS","caption1","colorNeutralForeground1","position","textAlign","transform","top","left","maxWidth","flex","margin","display","gap","useLegendStyles","props","className","baseStyles","styles"],"mappings":"AAAA;AAEA,SAASA,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAG1D,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,wBAAwB;AACjE,SAASC,oBAAoB,QAAQ,wBAAwB;AAE7D,gEAAgE;AAChE,OAAO,MAAMC,8BAA8B,EAAE;AAC7C,OAAO,MAAMC,gCAAgC,GAAG;AAChD,OAAO,MAAMC,iBAAiB,EAAE;AAChC,OAAO,MAAMC,gBAAgB,GAAG;AAChC,OAAO,MAAMC,sBAAsB,EAAE;AACrC,MAAMC,mCAAmC;AACzC,iGAAiG;AACjG,uGAAuG;AACvG,gCAAgC;AAChC,OAAO,MAAMC,oBAAoBD,mCAAmCD,oBAAoB;AACxF,OAAO,MAAMG,0BAA0B,EAAE;AACzC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QAAQ,GAAE0C,iBAAAA,MAAMG,MAAM,cAAZH,qCAAAA,eAAc1C,QAAQ;QAC7FC,MAAMnB,aAAaa,iBAAiBM,IAAI,EAAE2C,WAAW3C,IAAI,GAAEyC,iBAAAA,MAAMG,MAAM,cAAZH,qCAAAA,eAAczC,IAAI;QAC7EC,aAAapB,aAAaa,iBAAiBO,WAAW,EAAE0C,WAAW1C,WAAW,GAAEwC,iBAAAA,MAAMG,MAAM,cAAZH,qCAAAA,eAAcxC,WAAW;QACzGC,eAAerB,aAAaa,iBAAiBQ,aAAa,EAAEyC,WAAWzC,aAAa,GAAEuC,iBAAAA,MAAMG,MAAM,cAAZH,qCAAAA,eAAcvC,aAAa;QACjHC,iBAAiBtB,aACfa,iBAAiBS,eAAe,EAChCwC,WAAWxC,eAAe,GAC1BsC,iBAAAA,MAAMG,MAAM,cAAZH,qCAAAA,eAActC,eAAe;QAE/BC,YAAYvB,aAAaa,iBAAiBU,UAAU,EAAEuC,WAAWvC,UAAU,GAAEqC,iBAAAA,MAAMG,MAAM,cAAZH,qCAAAA,eAAcrC,UAAU;IACvG;AACF,EAAE"}
@@ -105,25 +105,25 @@ const PATH_MULTIPLY_SIZE = 2.5;
105
105
  let _xAxisScale = '';
106
106
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
107
107
  let _yScalePrimary = '';
108
- let _circleId = useId('circle');
109
- let _lineId = useId('lineID');
110
- let _borderId = useId('borderID');
111
- let _verticalLine = useId('verticalLine');
112
- let _colorFillBarPatternId = useId('colorFillBarPattern');
108
+ const _circleId = useId('circle');
109
+ const _lineId = useId('lineID');
110
+ const _borderId = useId('borderID');
111
+ const _verticalLine = useId('verticalLine');
112
+ const _colorFillBarPatternId = useId('colorFillBarPattern');
113
113
  let _uniqueCallOutID = '';
114
- let _refArray = [];
114
+ const _refArray = [];
115
115
  let margins;
116
116
  let eventLabelHeight = 36;
117
117
  let lines;
118
118
  let _renderedColorFillBars;
119
119
  const _colorFillBars = React.useRef([]);
120
- let _rectId = useId('containerRectLD');
121
- let _staticHighlightCircle = useId('staticHighlightCircle');
122
- let _firstRenderOptimization = true;
123
- let _emptyChartId = useId('_LineChart_empty');
120
+ const _rectId = useId('containerRectLD');
121
+ const _staticHighlightCircle = useId('staticHighlightCircle');
122
+ const _firstRenderOptimization = true;
123
+ const _emptyChartId = useId('_LineChart_empty');
124
124
  const _colorFillBarId = useId('_colorFillBarId');
125
125
  const _isRTL = useRtl();
126
- let xAxisCalloutAccessibilityData = {};
126
+ const xAxisCalloutAccessibilityData = {};
127
127
  const { cartesianChartRef, legendsRef: _legendsRef } = useImageExport(props.componentRef, props.hideLegend);
128
128
  let _yScaleSecondary;
129
129
  props.eventAnnotationProps && props.eventAnnotationProps.labelHeight && (eventLabelHeight = props.eventAnnotationProps.labelHeight);
@@ -1247,17 +1247,17 @@ const PATH_MULTIPLY_SIZE = 2.5;
1247
1247
  }
1248
1248
  const calloutProps = {
1249
1249
  YValueHover: yValueHover,
1250
- hoverXValue: hoverXValue,
1251
- YValue: YValue,
1250
+ hoverXValue,
1251
+ YValue,
1252
1252
  legend: legendVal,
1253
1253
  color: lineColor,
1254
1254
  XValue: hoverXValue,
1255
1255
  descriptionMessage: props.getCalloutDescriptionMessage && stackCalloutProps ? props.getCalloutDescriptionMessage(stackCalloutProps) : undefined,
1256
1256
  tabIndex: 0,
1257
- xAxisCalloutAccessibilityData: xAxisCalloutAccessibilityData,
1257
+ xAxisCalloutAccessibilityData,
1258
1258
  ...props.calloutProps,
1259
- isPopoverOpen: isPopoverOpen,
1260
- clickPosition: clickPosition,
1259
+ isPopoverOpen,
1260
+ clickPosition,
1261
1261
  positioning: {
1262
1262
  target: refSelected
1263
1263
  },