@fluentui/react-charts 0.0.0-nightly-20250728-0406.1 → 0.0.0-nightly-20250730-0406.1

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 (420) hide show
  1. package/CHANGELOG.md +34 -15
  2. package/dist/index.d.ts +198 -10
  3. package/lib/AreaChart.js.map +1 -1
  4. package/lib/CartesianChart.js.map +1 -1
  5. package/lib/DeclarativeChart.js.map +1 -1
  6. package/lib/DonutChart.js.map +1 -1
  7. package/lib/FunnelChart.js.map +1 -1
  8. package/lib/GanttChart.js +1 -0
  9. package/lib/GanttChart.js.map +1 -0
  10. package/lib/GaugeChart.js.map +1 -1
  11. package/lib/GroupedVerticalBarChart.js.map +1 -1
  12. package/lib/HeatMapChart.js.map +1 -1
  13. package/lib/HorizontalBarChart.js.map +1 -1
  14. package/lib/HorizontalBarChartWithAxis.js.map +1 -1
  15. package/lib/Legends.js.map +1 -1
  16. package/lib/LineChart.js.map +1 -1
  17. package/lib/Popover.js.map +1 -1
  18. package/lib/ResponsiveContainer.js.map +1 -1
  19. package/lib/SankeyChart.js.map +1 -1
  20. package/lib/ScatterChart.js.map +1 -1
  21. package/lib/Sparkline.js.map +1 -1
  22. package/lib/VerticalBarChart.js.map +1 -1
  23. package/lib/VerticalStackedBarChart.js.map +1 -1
  24. package/lib/components/AreaChart/AreaChart.js +3 -3
  25. package/lib/components/AreaChart/AreaChart.js.map +1 -1
  26. package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
  27. package/lib/components/AreaChart/index.js.map +1 -1
  28. package/lib/components/AreaChart/useAreaChartStyles.styles.js +1 -2
  29. package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js +41 -0
  30. package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js.map +1 -0
  31. package/lib/components/CommonComponents/CartesianChart.js +12 -8
  32. package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
  33. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  34. package/lib/components/CommonComponents/ChartPopover.js.map +1 -1
  35. package/lib/components/CommonComponents/ChartPopover.types.js.map +1 -1
  36. package/lib/components/CommonComponents/index.js.map +1 -1
  37. package/lib/components/CommonComponents/useCartesianChartStyles.styles.js +1 -2
  38. package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js +128 -0
  39. package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +1 -0
  40. package/lib/components/CommonComponents/useChartPopoverStyles.styles.js +1 -2
  41. package/lib/components/CommonComponents/useChartPopoverStyles.styles.raw.js +126 -0
  42. package/lib/components/CommonComponents/useChartPopoverStyles.styles.raw.js.map +1 -0
  43. package/lib/components/DeclarativeChart/DeclarativeChart.js +6 -1
  44. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  45. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +44 -13
  46. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  47. package/lib/components/DeclarativeChart/imageExporter.js +1 -0
  48. package/lib/components/DeclarativeChart/imageExporter.js.map +1 -1
  49. package/lib/components/DeclarativeChart/index.js.map +1 -1
  50. package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
  51. package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -1
  52. package/lib/components/DonutChart/Arc/index.js.map +1 -1
  53. package/lib/components/DonutChart/Arc/useArcStyles.styles.js +1 -2
  54. package/lib/components/DonutChart/Arc/useArcStyles.styles.raw.js +44 -0
  55. package/lib/components/DonutChart/Arc/useArcStyles.styles.raw.js.map +1 -0
  56. package/lib/components/DonutChart/DonutChart.js.map +1 -1
  57. package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
  58. package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
  59. package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -1
  60. package/lib/components/DonutChart/Pie/index.js.map +1 -1
  61. package/lib/components/DonutChart/Pie/usePieStyles.styles.js +1 -2
  62. package/lib/components/DonutChart/Pie/usePieStyles.styles.raw.js +29 -0
  63. package/lib/components/DonutChart/Pie/usePieStyles.styles.raw.js.map +1 -0
  64. package/lib/components/DonutChart/index.js.map +1 -1
  65. package/lib/components/DonutChart/useDonutChartStyles.styles.js +1 -2
  66. package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js +45 -0
  67. package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js.map +1 -0
  68. package/lib/components/FunnelChart/FunnelChart.js.map +1 -1
  69. package/lib/components/FunnelChart/FunnelChart.types.js.map +1 -1
  70. package/lib/components/FunnelChart/funnelGeometry.js.map +1 -1
  71. package/lib/components/FunnelChart/index.js.map +1 -1
  72. package/lib/components/FunnelChart/useFunnelChartStyles.styles.js +1 -2
  73. package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js +51 -0
  74. package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +1 -0
  75. package/lib/components/GanttChart/GanttChart.js +530 -0
  76. package/lib/components/GanttChart/GanttChart.js.map +1 -0
  77. package/lib/components/GanttChart/GanttChart.types.js +4 -0
  78. package/lib/components/GanttChart/GanttChart.types.js.map +1 -0
  79. package/lib/components/GanttChart/index.js +2 -0
  80. package/lib/components/GanttChart/index.js.map +1 -0
  81. package/lib/components/GanttChart/useGanttChartStyles.styles.js +24 -0
  82. package/lib/components/GanttChart/useGanttChartStyles.styles.js.map +1 -0
  83. package/lib/components/GanttChart/useGanttChartStyles.styles.raw.js +23 -0
  84. package/lib/components/GanttChart/useGanttChartStyles.styles.raw.js.map +1 -0
  85. package/lib/components/GaugeChart/GaugeChart.js.map +1 -1
  86. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
  87. package/lib/components/GaugeChart/index.js.map +1 -1
  88. package/lib/components/GaugeChart/useGaugeChartStyles.styles.js +1 -2
  89. package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js +142 -0
  90. package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +1 -0
  91. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +61 -56
  92. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  93. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  94. package/lib/components/GroupedVerticalBarChart/index.js.map +1 -1
  95. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +1 -2
  96. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js +53 -0
  97. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +1 -0
  98. package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -1
  99. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  100. package/lib/components/HeatMapChart/index.js.map +1 -1
  101. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js +1 -2
  102. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js +38 -0
  103. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js.map +1 -0
  104. package/lib/components/HorizontalBarChart/HorizontalBarChart.js +23 -26
  105. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  106. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +5 -3
  107. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
  108. package/lib/components/HorizontalBarChart/index.js.map +1 -1
  109. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +1 -2
  110. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js +120 -0
  111. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +1 -0
  112. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  113. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  114. package/lib/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  115. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +1 -2
  116. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js +39 -0
  117. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +1 -0
  118. package/lib/components/Legends/Legends.js +7 -8
  119. package/lib/components/Legends/Legends.js.map +1 -1
  120. package/lib/components/Legends/Legends.types.js.map +1 -1
  121. package/lib/components/Legends/OverflowMenu.js.map +1 -1
  122. package/lib/components/Legends/index.js.map +1 -1
  123. package/lib/components/Legends/shape.js +3 -3
  124. package/lib/components/Legends/shape.js.map +1 -1
  125. package/lib/components/Legends/useLegendsStyles.styles.js +33 -6
  126. package/lib/components/Legends/useLegendsStyles.styles.js.map +1 -1
  127. package/lib/components/Legends/useLegendsStyles.styles.raw.js +125 -0
  128. package/lib/components/Legends/useLegendsStyles.styles.raw.js.map +1 -0
  129. package/lib/components/LineChart/LineChart.js +3 -3
  130. package/lib/components/LineChart/LineChart.js.map +1 -1
  131. package/lib/components/LineChart/LineChart.types.js.map +1 -1
  132. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  133. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
  134. package/lib/components/LineChart/eventAnnotation/Textbox.js +2 -1
  135. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  136. package/lib/components/LineChart/index.js.map +1 -1
  137. package/lib/components/LineChart/useLineChartStyles.styles.js +1 -2
  138. package/lib/components/LineChart/useLineChartStyles.styles.raw.js +52 -0
  139. package/lib/components/LineChart/useLineChartStyles.styles.raw.js.map +1 -0
  140. package/lib/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -1
  141. package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -1
  142. package/lib/components/ResponsiveContainer/index.js.map +1 -1
  143. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.js +1 -2
  144. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js +28 -0
  145. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js.map +1 -0
  146. package/lib/components/ResponsiveContainer/withResponsiveContainer.js.map +1 -1
  147. package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
  148. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
  149. package/lib/components/SankeyChart/index.js.map +1 -1
  150. package/lib/components/SankeyChart/useSankeyChartStyles.styles.js +1 -2
  151. package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js +77 -0
  152. package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +1 -0
  153. package/lib/components/ScatterChart/ScatterChart.js.map +1 -1
  154. package/lib/components/ScatterChart/ScatterChart.types.js.map +1 -1
  155. package/lib/components/ScatterChart/index.js.map +1 -1
  156. package/lib/components/ScatterChart/useScatterChartStyles.styles.js +1 -2
  157. package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js +43 -0
  158. package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +1 -0
  159. package/lib/components/Sparkline/Sparkline.js.map +1 -1
  160. package/lib/components/Sparkline/Sparkline.types.js.map +1 -1
  161. package/lib/components/Sparkline/index.js.map +1 -1
  162. package/lib/components/Sparkline/useSparklineStyles.styles.js +1 -2
  163. package/lib/components/Sparkline/useSparklineStyles.styles.raw.js +30 -0
  164. package/lib/components/Sparkline/useSparklineStyles.styles.raw.js.map +1 -0
  165. package/lib/components/VerticalBarChart/VerticalBarChart.js +56 -29
  166. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  167. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  168. package/lib/components/VerticalBarChart/index.js.map +1 -1
  169. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +1 -2
  170. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js +58 -0
  171. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +1 -0
  172. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +17 -10
  173. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  174. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  175. package/lib/components/VerticalStackedBarChart/index.js.map +1 -1
  176. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +1 -2
  177. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js +49 -0
  178. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +1 -0
  179. package/lib/index.js +1 -0
  180. package/lib/index.js.map +1 -1
  181. package/lib/types/DataPoint.js +3 -1
  182. package/lib/types/DataPoint.js.map +1 -1
  183. package/lib/types/EventAnnotation.js.map +1 -1
  184. package/lib/types/LegendDataItem.js.map +1 -1
  185. package/lib/types/index.js.map +1 -1
  186. package/lib/utilities/FocusableTooltipText.js.map +1 -1
  187. package/lib/utilities/KeyCodes.js.map +1 -1
  188. package/lib/utilities/SVGTooltipText.js +2 -0
  189. package/lib/utilities/SVGTooltipText.js.map +1 -1
  190. package/lib/utilities/async-utils.js.map +1 -1
  191. package/lib/utilities/colors.js.map +1 -1
  192. package/lib/utilities/getWindow.js.map +1 -1
  193. package/lib/utilities/index.js.map +1 -1
  194. package/lib/utilities/overflow-utils.js.map +1 -1
  195. package/lib/utilities/string.js.map +1 -1
  196. package/lib/utilities/test-data.js +236 -0
  197. package/lib/utilities/test-data.js.map +1 -1
  198. package/lib/utilities/utilities.js +95 -27
  199. package/lib/utilities/utilities.js.map +1 -1
  200. package/lib/utilities/vbc-utils.js +2 -2
  201. package/lib/utilities/vbc-utils.js.map +1 -1
  202. package/lib-commonjs/AreaChart.js.map +1 -1
  203. package/lib-commonjs/CartesianChart.js.map +1 -1
  204. package/lib-commonjs/DeclarativeChart.js.map +1 -1
  205. package/lib-commonjs/DonutChart.js.map +1 -1
  206. package/lib-commonjs/FunnelChart.js.map +1 -1
  207. package/lib-commonjs/GanttChart.js +6 -0
  208. package/lib-commonjs/GanttChart.js.map +1 -0
  209. package/lib-commonjs/GaugeChart.js.map +1 -1
  210. package/lib-commonjs/GroupedVerticalBarChart.js.map +1 -1
  211. package/lib-commonjs/HeatMapChart.js.map +1 -1
  212. package/lib-commonjs/HorizontalBarChart.js.map +1 -1
  213. package/lib-commonjs/HorizontalBarChartWithAxis.js.map +1 -1
  214. package/lib-commonjs/Legends.js.map +1 -1
  215. package/lib-commonjs/LineChart.js.map +1 -1
  216. package/lib-commonjs/Popover.js.map +1 -1
  217. package/lib-commonjs/ResponsiveContainer.js.map +1 -1
  218. package/lib-commonjs/SankeyChart.js.map +1 -1
  219. package/lib-commonjs/ScatterChart.js.map +1 -1
  220. package/lib-commonjs/Sparkline.js.map +1 -1
  221. package/lib-commonjs/VerticalBarChart.js.map +1 -1
  222. package/lib-commonjs/VerticalStackedBarChart.js.map +1 -1
  223. package/lib-commonjs/components/AreaChart/AreaChart.js +3 -3
  224. package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -1
  225. package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -1
  226. package/lib-commonjs/components/AreaChart/index.js.map +1 -1
  227. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js +1 -1
  228. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js.map +1 -1
  229. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.js +57 -0
  230. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.js.map +1 -0
  231. package/lib-commonjs/components/CommonComponents/CartesianChart.js +11 -7
  232. package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
  233. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  234. package/lib-commonjs/components/CommonComponents/ChartPopover.js.map +1 -1
  235. package/lib-commonjs/components/CommonComponents/ChartPopover.types.js.map +1 -1
  236. package/lib-commonjs/components/CommonComponents/index.js.map +1 -1
  237. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js +1 -1
  238. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -1
  239. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.js +142 -0
  240. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +1 -0
  241. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js +1 -1
  242. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -1
  243. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.js +140 -0
  244. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.js.map +1 -0
  245. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +5 -0
  246. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  247. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +47 -13
  248. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  249. package/lib-commonjs/components/DeclarativeChart/imageExporter.js +1 -0
  250. package/lib-commonjs/components/DeclarativeChart/imageExporter.js.map +1 -1
  251. package/lib-commonjs/components/DeclarativeChart/index.js.map +1 -1
  252. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
  253. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -1
  254. package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -1
  255. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js +1 -1
  256. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js.map +1 -1
  257. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.raw.js +58 -0
  258. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.raw.js.map +1 -0
  259. package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -1
  260. package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -1
  261. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
  262. package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -1
  263. package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -1
  264. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js +1 -1
  265. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js.map +1 -1
  266. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.raw.js +43 -0
  267. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.raw.js.map +1 -0
  268. package/lib-commonjs/components/DonutChart/index.js.map +1 -1
  269. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js +1 -1
  270. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js.map +1 -1
  271. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.js +59 -0
  272. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.js.map +1 -0
  273. package/lib-commonjs/components/FunnelChart/FunnelChart.js.map +1 -1
  274. package/lib-commonjs/components/FunnelChart/FunnelChart.types.js.map +1 -1
  275. package/lib-commonjs/components/FunnelChart/funnelGeometry.js.map +1 -1
  276. package/lib-commonjs/components/FunnelChart/index.js.map +1 -1
  277. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.js +1 -1
  278. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.js.map +1 -1
  279. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.js +65 -0
  280. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +1 -0
  281. package/lib-commonjs/components/GanttChart/GanttChart.js +541 -0
  282. package/lib-commonjs/components/GanttChart/GanttChart.js.map +1 -0
  283. package/lib-commonjs/components/GanttChart/GanttChart.types.js +7 -0
  284. package/lib-commonjs/components/GanttChart/GanttChart.types.js.map +1 -0
  285. package/lib-commonjs/components/GanttChart/index.js +7 -0
  286. package/lib-commonjs/components/GanttChart/index.js.map +1 -0
  287. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.js +39 -0
  288. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.js.map +1 -0
  289. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.js +39 -0
  290. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.js.map +1 -0
  291. package/lib-commonjs/components/GaugeChart/GaugeChart.js.map +1 -1
  292. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
  293. package/lib-commonjs/components/GaugeChart/index.js.map +1 -1
  294. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js +1 -1
  295. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js.map +1 -1
  296. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.js +160 -0
  297. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +1 -0
  298. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +61 -56
  299. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  300. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  301. package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +1 -1
  302. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +1 -1
  303. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +1 -1
  304. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js +69 -0
  305. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +1 -0
  306. package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -1
  307. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  308. package/lib-commonjs/components/HeatMapChart/index.js.map +1 -1
  309. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js +1 -1
  310. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +1 -1
  311. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js +56 -0
  312. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js.map +1 -0
  313. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +23 -26
  314. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  315. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js +3 -3
  316. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
  317. package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -1
  318. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +1 -1
  319. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -1
  320. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js +134 -0
  321. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +1 -0
  322. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  323. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  324. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  325. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +1 -1
  326. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +1 -1
  327. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js +55 -0
  328. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +1 -0
  329. package/lib-commonjs/components/Legends/Legends.js +7 -8
  330. package/lib-commonjs/components/Legends/Legends.js.map +1 -1
  331. package/lib-commonjs/components/Legends/Legends.types.js.map +1 -1
  332. package/lib-commonjs/components/Legends/OverflowMenu.js.map +1 -1
  333. package/lib-commonjs/components/Legends/index.js.map +1 -1
  334. package/lib-commonjs/components/Legends/shape.js +2 -2
  335. package/lib-commonjs/components/Legends/shape.js.map +1 -1
  336. package/lib-commonjs/components/Legends/useLegendsStyles.styles.js +46 -5
  337. package/lib-commonjs/components/Legends/useLegendsStyles.styles.js.map +1 -1
  338. package/lib-commonjs/components/Legends/useLegendsStyles.styles.raw.js +141 -0
  339. package/lib-commonjs/components/Legends/useLegendsStyles.styles.raw.js.map +1 -0
  340. package/lib-commonjs/components/LineChart/LineChart.js +3 -3
  341. package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
  342. package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -1
  343. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  344. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
  345. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +2 -1
  346. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  347. package/lib-commonjs/components/LineChart/index.js.map +1 -1
  348. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js +1 -1
  349. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js.map +1 -1
  350. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.js +66 -0
  351. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.js.map +1 -0
  352. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -1
  353. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -1
  354. package/lib-commonjs/components/ResponsiveContainer/index.js.map +1 -1
  355. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.js +1 -1
  356. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.js.map +1 -1
  357. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js +46 -0
  358. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js.map +1 -0
  359. package/lib-commonjs/components/ResponsiveContainer/withResponsiveContainer.js.map +1 -1
  360. package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -1
  361. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
  362. package/lib-commonjs/components/SankeyChart/index.js.map +1 -1
  363. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js +1 -1
  364. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js.map +1 -1
  365. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.js +95 -0
  366. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +1 -0
  367. package/lib-commonjs/components/ScatterChart/ScatterChart.js.map +1 -1
  368. package/lib-commonjs/components/ScatterChart/ScatterChart.types.js.map +1 -1
  369. package/lib-commonjs/components/ScatterChart/index.js.map +1 -1
  370. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js +1 -1
  371. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js.map +1 -1
  372. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.js +57 -0
  373. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +1 -0
  374. package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -1
  375. package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -1
  376. package/lib-commonjs/components/Sparkline/index.js.map +1 -1
  377. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js +1 -1
  378. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js.map +1 -1
  379. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.raw.js +44 -0
  380. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.raw.js.map +1 -0
  381. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +56 -29
  382. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  383. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  384. package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -1
  385. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +1 -1
  386. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -1
  387. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js +74 -0
  388. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +1 -0
  389. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +17 -10
  390. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  391. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  392. package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +1 -1
  393. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +1 -1
  394. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +1 -1
  395. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js +67 -0
  396. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +1 -0
  397. package/lib-commonjs/index.js +1 -0
  398. package/lib-commonjs/index.js.map +1 -1
  399. package/lib-commonjs/types/DataPoint.js +3 -1
  400. package/lib-commonjs/types/DataPoint.js.map +1 -1
  401. package/lib-commonjs/types/EventAnnotation.js.map +1 -1
  402. package/lib-commonjs/types/LegendDataItem.js.map +1 -1
  403. package/lib-commonjs/types/index.js.map +1 -1
  404. package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -1
  405. package/lib-commonjs/utilities/KeyCodes.js.map +1 -1
  406. package/lib-commonjs/utilities/SVGTooltipText.js +2 -0
  407. package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -1
  408. package/lib-commonjs/utilities/async-utils.js.map +1 -1
  409. package/lib-commonjs/utilities/colors.js.map +1 -1
  410. package/lib-commonjs/utilities/getWindow.js.map +1 -1
  411. package/lib-commonjs/utilities/index.js.map +1 -1
  412. package/lib-commonjs/utilities/overflow-utils.js.map +1 -1
  413. package/lib-commonjs/utilities/string.js.map +1 -1
  414. package/lib-commonjs/utilities/test-data.js +245 -0
  415. package/lib-commonjs/utilities/test-data.js.map +1 -1
  416. package/lib-commonjs/utilities/utilities.js +91 -22
  417. package/lib-commonjs/utilities/utilities.js.map +1 -1
  418. package/lib-commonjs/utilities/vbc-utils.js +2 -2
  419. package/lib-commonjs/utilities/vbc-utils.js.map +1 -1
  420. package/package.json +14 -24
@@ -1 +1 @@
1
- {"version":3,"sources":["Legends.types.ts"],"sourcesContent":["import * as React from 'react';\nimport { CustomPoints, Points } from '../../utilities/utilities';\n\n/**\n * @public\n * Legends styles\n * {@docCategory Legends}\n */\nexport interface LegendsStyles {\n /**\n * Style set for the root of the legend component\n */\n root?: string;\n\n /**\n * Style set for Legend. This is a wrapping class for text of legend and the rectange box that represents a legend\n */\n legend?: string;\n\n /**\n * Style set for the rectangle that represents a legend\n */\n rect?: string;\n\n /**\n * styles set for the shape that represents a legend\n */\n shape?: string;\n\n /**\n * Style set for the triangle that represents a legend\n */\n triangle?: string;\n\n /**\n * Style for the legend text\n */\n text?: string;\n\n /**\n * Style for the legend text\n */\n hoverChange?: string;\n\n /**\n * Style for the area that is resizable\n */\n resizableArea?: string;\n}\n\n/**\n * @public\n * ILegend interface\n * {@docCategory Legends}\n */\nexport interface Legend {\n /**\n * Defines the title of the legend\n */\n title: string;\n\n /**\n * Defines the function that is executed on clicking this legend\n */\n action?: VoidFunction;\n\n /**\n * Defines the function that is executed upon hovering over the legend\n */\n hoverAction?: VoidFunction;\n\n /**\n * Defines the function that is executed upon moving the mouse away from the legend\n */\n onMouseOutAction?: (isLegendFocused?: boolean) => void;\n\n /**\n * The color for the legend\n */\n color: string;\n\n /**\n * The opacity of the legend color\n */\n opacity?: number;\n\n /**\n * The shape for the legend\n */\n shape?: LegendShape;\n\n /**\n * Indicated whether or not to apply stripe pattern\n */\n stripePattern?: boolean;\n\n /**\n * Indicates if the legend belongs to a line in the Bar Chart\n */\n isLineLegendInBarChart?: boolean;\n\n /*\n * native button props for the legend button\n */\n nativeButtonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;\n}\n\n/**\n * @public\n * Legend style properties\n * {@docCategory Legends}\n */\nexport interface LegendStyleProps {\n className?: string;\n colorOnSelectedState?: string;\n borderColor?: string;\n opacity?: number;\n overflow?: boolean;\n stripePattern?: boolean;\n isLineLegendInBarChart?: boolean;\n}\n\n/**\n * @public\n * Legend properties\n * {@docCategory Legends}\n */\nexport interface LegendsProps {\n /**\n * Prop that takes list of legends\n */\n legends: Legend[];\n\n /**\n * Additional CSS class(es) to apply to the legneds component.\n */\n className?: string;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: LegendsStyles;\n\n /**\n * This prop makes the legends component align itself to the center in the container it is sitting in\n */\n centerLegends?: boolean;\n\n /**\n * Enable the legends to wrap lines if there is not enough space to show all legends on a single line\n */\n enabledWrapLines?: boolean;\n\n /**\n * style for the overflow component\n */\n overflowStyles?: React.CSSProperties;\n\n /**\n * text for overflow legends string\n */\n overflowText?: string;\n\n /**\n * prop that decides if legends are focusable\n * @default true\n */\n allowFocusOnLegends?: boolean;\n\n /**\n * prop that decide if we can select multiple legends or single legend at a time\n * @default false\n */\n canSelectMultipleLegends?: boolean;\n\n /**\n * Callback issued when the selected option changes.\n */\n onChange?: (selectedLegends: string[], event: React.MouseEvent<HTMLButtonElement>, currentLegend?: Legend) => void;\n\n /**\n * Keys (title) that will be initially used to set selected items. This prop is used for multi-select scenarios when\n * canSelectMultipleLegends is true; for single-select, use defaultSelectedLegend.\n *\n * Updating this prop does not change the selection after the component has been initialized. For controlled\n * selections, use selectedLegends instead.\n *\n * @see selectedLegends for setting the selected legends in controlled mode.\n * @see defaultSelectedLegend for setting the initially selected legend when canSelectMultipleLegends is false.\n */\n defaultSelectedLegends?: string[];\n\n /**\n * Key that will be initially used to set selected item. This prop is used for single-select scenarios when\n * canSelectMultipleLegends is false or unspecified; for multi-select, use defaultSelectedLegends.\n *\n * Updating this prop does not change the selection after the component has been initialized. For controlled\n * selections, use selectedLegend instead.\n *\n * @see selectedLegend for setting the selected legend in controlled mode.\n * @see defaultSelectedLegends for setting the initially selected legends when canSelectMultipleLegends is true.\n */\n defaultSelectedLegend?: string;\n\n /**\n * Keys (title) that will be used to set selected items in multi-select scenarios when canSelectMultipleLegends is\n * true. For single-select, use selectedLegend.\n *\n * When this prop is provided, the component is controlled and does not automatically update the selection based on\n * user interactions; the parent component must update the value passed to this property by handling the onChange\n * event.\n *\n * @see defaultSelectedLegends for setting the initially-selected legends in uncontrolled mode.\n * @see selectedLegends for setting the selected legends when `canSelectMultipleLegends` is `true`.\n */\n selectedLegends?: string[];\n\n /**\n * Key (title) that will be used to set the selected item in single-select scenarios when canSelectMultipleLegends is\n * false or unspecified. For multi-select, use selectedLegends.\n *\n * When this prop is provided, the component is controlled and does not automatically update the selection based on\n * user interactions; the parent component must update the value passed to this property by handling the onChange\n * event.\n *\n * @see defaultSelectedLegend for setting the initially-selected legend in uncontrolled mode.\n * @see selectedLegend for setting the selected legend when `canSelectMultipleLegends` is `false`.\n */\n selectedLegend?: string;\n\n /**\n * The shape for the legend.\n */\n shape?: LegendShape;\n}\n\n/**\n * @public\n * The shape for the legend\n * default: show the rect legend\n * triangle: show the triangle legend\n * {@docCategory Legends}\n */\nexport type LegendShape = 'default' | 'triangle' | keyof typeof Points | keyof typeof CustomPoints;\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;iEAAuB"}
1
+ {"version":3,"sources":["../src/components/Legends/Legends.types.ts"],"sourcesContent":["import * as React from 'react';\nimport { CustomPoints, Points } from '../../utilities/utilities';\n\n/**\n * @public\n * Legends styles\n * {@docCategory Legends}\n */\nexport interface LegendsStyles {\n /**\n * Style set for the root of the legend component\n */\n root?: string;\n\n /**\n * Style set for Legend. This is a wrapping class for text of legend and the rectange box that represents a legend\n */\n legend?: string;\n\n /**\n * Style set for the rectangle that represents a legend\n */\n rect?: string;\n\n /**\n * styles set for the shape that represents a legend\n */\n shape?: string;\n\n /**\n * Style set for the triangle that represents a legend\n */\n triangle?: string;\n\n /**\n * Style for the legend text\n */\n text?: string;\n\n /**\n * Style for the legend text\n */\n hoverChange?: string;\n\n /**\n * Style for the area that is resizable\n */\n resizableArea?: string;\n\n /*\n * Style for the container that holds the legend and any optional JSX annotation from client is used\n */\n legendContainer?: string;\n\n /**\n * Style for the annotation that is used in the legend\n */\n annotation?: string;\n}\n\n/**\n * @public\n * ILegend interface\n * {@docCategory Legends}\n */\nexport interface Legend {\n /**\n * Defines the title of the legend\n */\n title: string;\n\n /**\n * Defines the function that is executed on clicking this legend\n */\n action?: VoidFunction;\n\n /**\n * Defines the function that is executed upon hovering over the legend\n */\n hoverAction?: VoidFunction;\n\n /**\n * Defines the function that is executed upon moving the mouse away from the legend\n */\n onMouseOutAction?: (isLegendFocused?: boolean) => void;\n\n /**\n * The color for the legend\n */\n color: string;\n\n /**\n * The opacity of the legend color\n */\n opacity?: number;\n\n /**\n * The shape for the legend\n */\n shape?: LegendShape;\n\n /**\n * Indicated whether or not to apply stripe pattern\n */\n stripePattern?: boolean;\n\n /**\n * Indicates if the legend belongs to a line in the Bar Chart\n */\n isLineLegendInBarChart?: boolean;\n\n /*\n * native button props for the legend button\n */\n nativeButtonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;\n\n /**\n * The annotation for the legend, function returning a React node\n */\n legendAnnotation?: () => React.ReactNode;\n}\n\n/**\n * @public\n * Legend style properties\n * {@docCategory Legends}\n */\nexport interface LegendStyleProps {\n className?: string;\n colorOnSelectedState?: string;\n borderColor?: string;\n opacity?: number;\n overflow?: boolean;\n stripePattern?: boolean;\n isLineLegendInBarChart?: boolean;\n}\n\n/**\n * @public\n * Legend properties\n * {@docCategory Legends}\n */\nexport interface LegendsProps {\n /**\n * Prop that takes list of legends\n */\n legends: Legend[];\n\n /**\n * Additional CSS class(es) to apply to the legneds component.\n */\n className?: string;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: LegendsStyles;\n\n /**\n * This prop makes the legends component align itself to the center in the container it is sitting in\n */\n centerLegends?: boolean;\n\n /**\n * Enable the legends to wrap lines if there is not enough space to show all legends on a single line\n */\n enabledWrapLines?: boolean;\n\n /**\n * style for the overflow component\n */\n overflowStyles?: React.CSSProperties;\n\n /**\n * text for overflow legends string\n */\n overflowText?: string;\n\n /**\n * prop that decides if legends are focusable\n * @default true\n */\n allowFocusOnLegends?: boolean;\n\n /**\n * prop that decide if we can select multiple legends or single legend at a time\n * @default false\n */\n canSelectMultipleLegends?: boolean;\n\n /**\n * Callback issued when the selected option changes.\n */\n onChange?: (selectedLegends: string[], event: React.MouseEvent<HTMLButtonElement>, currentLegend?: Legend) => void;\n\n /**\n * Keys (title) that will be initially used to set selected items. This prop is used for multi-select scenarios when\n * canSelectMultipleLegends is true; for single-select, use defaultSelectedLegend.\n *\n * Updating this prop does not change the selection after the component has been initialized. For controlled\n * selections, use selectedLegends instead.\n *\n * @see selectedLegends for setting the selected legends in controlled mode.\n * @see defaultSelectedLegend for setting the initially selected legend when canSelectMultipleLegends is false.\n */\n defaultSelectedLegends?: string[];\n\n /**\n * Key that will be initially used to set selected item. This prop is used for single-select scenarios when\n * canSelectMultipleLegends is false or unspecified; for multi-select, use defaultSelectedLegends.\n *\n * Updating this prop does not change the selection after the component has been initialized. For controlled\n * selections, use selectedLegend instead.\n *\n * @see selectedLegend for setting the selected legend in controlled mode.\n * @see defaultSelectedLegends for setting the initially selected legends when canSelectMultipleLegends is true.\n */\n defaultSelectedLegend?: string;\n\n /**\n * Keys (title) that will be used to set selected items in multi-select scenarios when canSelectMultipleLegends is\n * true. For single-select, use selectedLegend.\n *\n * When this prop is provided, the component is controlled and does not automatically update the selection based on\n * user interactions; the parent component must update the value passed to this property by handling the onChange\n * event.\n *\n * @see defaultSelectedLegends for setting the initially-selected legends in uncontrolled mode.\n * @see selectedLegends for setting the selected legends when `canSelectMultipleLegends` is `true`.\n */\n selectedLegends?: string[];\n\n /**\n * Key (title) that will be used to set the selected item in single-select scenarios when canSelectMultipleLegends is\n * false or unspecified. For multi-select, use selectedLegends.\n *\n * When this prop is provided, the component is controlled and does not automatically update the selection based on\n * user interactions; the parent component must update the value passed to this property by handling the onChange\n * event.\n *\n * @see defaultSelectedLegend for setting the initially-selected legend in uncontrolled mode.\n * @see selectedLegend for setting the selected legend when `canSelectMultipleLegends` is `false`.\n */\n selectedLegend?: string;\n\n /**\n * The shape for the legend.\n */\n shape?: LegendShape;\n}\n\n/**\n * @public\n * The shape for the legend\n * default: show the rect legend\n * triangle: show the triangle legend\n * {@docCategory Legends}\n */\nexport type LegendShape = 'default' | 'triangle' | keyof typeof Points | keyof typeof CustomPoints;\n"],"names":["React"],"mappings":";;;;;iEAAuB,QAAQ"}
@@ -1 +1 @@
1
- {"version":3,"sources":["OverflowMenu.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Menu, MenuTrigger, MenuPopover, MenuList, MenuItem } from '@fluentui/react-menu';\nimport { MenuButton } from '@fluentui/react-button';\nimport { useOverflowMenu } from '@fluentui/react-overflow';\n\nexport const OverflowMenu: React.FC<{ itemIds: string[]; title: string; items: JSX.Element[] }> = ({\n itemIds,\n title,\n items,\n}) => {\n const { ref, overflowCount, isOverflowing } = useOverflowMenu<HTMLButtonElement>();\n let displayLabel = title;\n displayLabel = title === '' ? `+${overflowCount} items` : `+${overflowCount} ${title}`;\n\n if (!isOverflowing) {\n return null;\n }\n const remainingItemsCount = itemIds.length - overflowCount;\n const menuList = [];\n for (let i = remainingItemsCount; i < itemIds.length; i++) {\n menuList.push(\n <MenuItem tabIndex={-1} key={i}>\n {items[i]}\n </MenuItem>,\n );\n }\n return (\n <Menu>\n <MenuTrigger disableButtonEnhancement>\n <MenuButton ref={ref}>{displayLabel}</MenuButton>\n </MenuTrigger>\n\n <MenuPopover>\n <MenuList>{menuList}</MenuList>\n </MenuPopover>\n </Menu>\n );\n};\n"],"names":["OverflowMenu","itemIds","title","items","ref","overflowCount","isOverflowing","useOverflowMenu","displayLabel","remainingItemsCount","length","menuList","i","push","React","createElement","MenuItem","tabIndex","key","Menu","MenuTrigger","disableButtonEnhancement","MenuButton","MenuPopover","MenuList"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAKaA;;;eAAAA;;;;iEALU;2BAC4C;6BACxC;+BACK;AAEzB,MAAMA,eAAqF,CAAC,EACjGC,OAAO,EACPC,KAAK,EACLC,KAAK,EACN;IACC,MAAM,EAAEC,GAAG,EAAEC,aAAa,EAAEC,aAAa,EAAE,GAAGC,IAAAA,8BAAAA;IAC9C,IAAIC,eAAeN;IACnBM,eAAeN,UAAU,KAAK,CAAC,CAAC,EAAEG,cAAc,MAAM,CAAC,GAAG,CAAC,CAAC,EAAEA,cAAc,CAAC,EAAEH,MAAM,CAAC;IAEtF,IAAI,CAACI,eAAe;QAClB,OAAO;IACT;IACA,MAAMG,sBAAsBR,QAAQS,MAAM,GAAGL;IAC7C,MAAMM,WAAW,EAAE;IACnB,IAAK,IAAIC,IAAIH,qBAAqBG,IAAIX,QAAQS,MAAM,EAAEE,IAAK;QACzDD,SAASE,IAAI,CAAA,WAAA,GACXC,OAAAC,aAAA,CAACC,mBAAAA,EAAAA;YAASC,UAAU,CAAC;YAAGC,KAAKN;WAC1BT,KAAK,CAACS,EAAE;IAGf;IACA,OAAA,WAAA,GACEE,OAAAC,aAAA,CAACI,eAAAA,EAAAA,MAAAA,WAAAA,GACCL,OAAAC,aAAA,CAACK,sBAAAA,EAAAA;QAAYC,0BAAAA;qBACXP,OAAAC,aAAA,CAACO,uBAAAA,EAAAA;QAAWlB,KAAKA;OAAMI,gBAAAA,WAAAA,GAGzBM,OAAAC,aAAA,CAACQ,sBAAAA,EAAAA,MAAAA,WAAAA,GACCT,OAAAC,aAAA,CAACS,mBAAAA,EAAAA,MAAUb;AAInB"}
1
+ {"version":3,"sources":["../src/components/Legends/OverflowMenu.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Menu, MenuTrigger, MenuPopover, MenuList, MenuItem } from '@fluentui/react-menu';\nimport { MenuButton } from '@fluentui/react-button';\nimport { useOverflowMenu } from '@fluentui/react-overflow';\n\nexport const OverflowMenu: React.FC<{\n itemIds: string[];\n title: string;\n items: // eslint-disable-next-line @typescript-eslint/no-deprecated\n JSX.Element[];\n}> = ({ itemIds, title, items }) => {\n const { ref, overflowCount, isOverflowing } = useOverflowMenu<HTMLButtonElement>();\n let displayLabel = title;\n displayLabel = title === '' ? `+${overflowCount} items` : `+${overflowCount} ${title}`;\n\n if (!isOverflowing) {\n return null;\n }\n const remainingItemsCount = itemIds.length - overflowCount;\n const menuList = [];\n for (let i = remainingItemsCount; i < itemIds.length; i++) {\n menuList.push(\n <MenuItem tabIndex={-1} key={i}>\n {items[i]}\n </MenuItem>,\n );\n }\n return (\n <Menu>\n <MenuTrigger disableButtonEnhancement>\n <MenuButton ref={ref}>{displayLabel}</MenuButton>\n </MenuTrigger>\n\n <MenuPopover>\n <MenuList>{menuList}</MenuList>\n </MenuPopover>\n </Menu>\n );\n};\n"],"names":["React","Menu","MenuTrigger","MenuPopover","MenuList","MenuItem","MenuButton","useOverflowMenu","OverflowMenu","itemIds","title","items","ref","overflowCount","isOverflowing","displayLabel","remainingItemsCount","length","menuList","i","push","tabIndex","key","disableButtonEnhancement"],"mappings":";;;;+BAKaQ;;;;;;;iEALU,QAAQ;2BACoC,uBAAuB;6BAC/D,yBAAyB;+BACpB,2BAA2B;AAEpD,qBAKF,CAAC,EAAEC,OAAO,EAAEC,KAAK,EAAEC,KAAK,EAAE;IAC7B,MAAM,EAAEC,GAAG,EAAEC,aAAa,EAAEC,aAAa,EAAE,OAAGP,8BAAAA;IAC9C,IAAIQ,eAAeL;IACnBK,eAAeL,UAAU,KAAK,CAAC,CAAC,EAAEG,cAAc,MAAM,CAAC,GAAG,CAAC,CAAC,EAAEA,cAAc,CAAC,EAAEH,OAAO;IAEtF,IAAI,CAACI,eAAe;QAClB,OAAO;IACT;IACA,MAAME,sBAAsBP,QAAQQ,MAAM,GAAGJ;IAC7C,MAAMK,WAAW,EAAE;IACnB,IAAK,IAAIC,IAAIH,qBAAqBG,IAAIV,QAAQQ,MAAM,EAAEE,IAAK;QACzDD,SAASE,IAAI,CAAA,WAAA,GACX,OAAA,aAAA,CAACf,mBAAAA,EAAAA;YAASgB,UAAU,CAAC;YAAGC,KAAKH;WAC1BR,KAAK,CAACQ,EAAE;IAGf;IACA,OAAA,WAAA,GACE,OAAA,aAAA,CAAClB,eAAAA,EAAAA,MAAAA,WAAAA,GACC,OAAA,aAAA,CAACC,sBAAAA,EAAAA;QAAYqB,0BAAAA;qBACX,OAAA,aAAA,CAACjB,uBAAAA,EAAAA;QAAWM,KAAKA;OAAMG,gBAAAA,WAAAA,GAGzB,OAAA,aAAA,CAACZ,sBAAAA,EAAAA,MAAAA,WAAAA,GACC,OAAA,aAAA,CAACC,mBAAAA,EAAAA,MAAUc;AAInB,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"sourcesContent":["export * from './Legends';\nexport * from './Legends.types';\nexport * from './shape';\n"],"names":[],"rangeMappings":";;;;;;;","mappings":";;;;;uBAAc;uBACA;uBACA"}
1
+ {"version":3,"sources":["../src/components/Legends/index.ts"],"sourcesContent":["export * from './Legends';\nexport * from './Legends.types';\nexport * from './shape';\n"],"names":[],"mappings":";;;;;uBAAc,YAAY;uBACZ,kBAAkB;uBAClB,UAAU"}
@@ -33,7 +33,7 @@ const Shape = /*#__PURE__*/ _react.forwardRef(({ svgProps, pathProps, shape, cla
33
33
  width: 14,
34
34
  height: 14,
35
35
  viewBox: '-1 -1 14 14',
36
- ...svgProps,
36
+ ...(0, _utilities.getSecureProps)(svgProps),
37
37
  transform: `rotate(${shape === _utilities.Points[_utilities.Points.diamond] ? 45 : shape === _utilities.Points[_utilities.Points.pyramid] ? 180 : 0}, 0, 0)`,
38
38
  style: {
39
39
  width: '14px',
@@ -41,6 +41,6 @@ const Shape = /*#__PURE__*/ _react.forwardRef(({ svgProps, pathProps, shape, cla
41
41
  }
42
42
  }, /*#__PURE__*/ _react.createElement("path", {
43
43
  d: pointPath[shape],
44
- ...pathProps
44
+ ...(0, _utilities.getSecureProps)(pathProps)
45
45
  }));
46
46
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["shape.tsx"],"sourcesContent":["import * as React from 'react';\nimport { LegendShape } from './Legends.types';\nimport { CustomPoints, Points } from '../../utilities/utilities';\n\nexport interface ShapeProps {\n svgProps: React.SVGAttributes<SVGElement>;\n pathProps: React.SVGAttributes<SVGPathElement>;\n shape: LegendShape;\n classNameForNonSvg?: string;\n style?: React.CSSProperties | undefined;\n}\n\ntype PointPathType = {\n [key: string]: string;\n};\n\nconst pointPath: PointPathType = {\n [`${Points[Points.circle]}`]: 'M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6',\n [`${Points[Points.square]}`]: 'M1 1 L12 1 L12 12 L1 12 L1 1 Z',\n [`${Points[Points.triangle]}`]: 'M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z',\n [`${Points[Points.pyramid]}`]: 'M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z',\n [`${Points[Points.diamond]}`]: 'M2 2 L10 2 L10 10 L2 10 L2 2 Z',\n [`${Points[Points.hexagon]}`]: 'M9 0H3L0 5L3 10H9L12 5L9 0Z',\n [`${Points[Points.pentagon]}`]: 'M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z',\n [`${Points[Points.octagon]}`]:\n 'M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z',\n [`${CustomPoints[CustomPoints.dottedLine]}`]: 'M0 6 H3 M5 6 H8 M10 6 H13',\n};\n\nexport const Shape: React.FunctionComponent<ShapeProps> = React.forwardRef<HTMLDivElement, ShapeProps>(\n ({ svgProps, pathProps, shape, classNameForNonSvg, style }, forwardedRef) => {\n if (Object.keys(pointPath).indexOf(shape) === -1) {\n return <div className={classNameForNonSvg} style={style} />;\n }\n return (\n <svg\n width={14}\n height={14}\n viewBox={'-1 -1 14 14'}\n {...svgProps}\n transform={`rotate(${\n shape === Points[Points.diamond] ? 45 : shape === Points[Points.pyramid] ? 180 : 0\n }, 0, 0)`}\n style={{\n width: '14px',\n height: '14px',\n }}\n >\n <path d={pointPath[shape]} {...pathProps} />\n </svg>\n );\n },\n);\n"],"names":["Shape","pointPath","Points","circle","square","triangle","pyramid","diamond","hexagon","pentagon","octagon","CustomPoints","dottedLine","React","forwardRef","svgProps","pathProps","shape","classNameForNonSvg","style","forwardedRef","Object","keys","indexOf","createElement","div","className","svg","width","height","viewBox","transform","path","d"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BA6BaA;;;eAAAA;;;;iEA7BU;2BAEc;AAcrC,MAAMC,YAA2B;IAC/B,CAAC,CAAC,EAAEC,iBAAM,CAACA,iBAAAA,CAAOC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE;IAC9B,CAAC,CAAC,EAAED,iBAAM,CAACA,iBAAAA,CAAOE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE;IAC9B,CAAC,CAAC,EAAEF,iBAAM,CAACA,iBAAAA,CAAOG,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE;IAChC,CAAC,CAAC,EAAEH,iBAAM,CAACA,iBAAAA,CAAOI,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;IAC/B,CAAC,CAAC,EAAEJ,iBAAM,CAACA,iBAAAA,CAAOK,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;IAC/B,CAAC,CAAC,EAAEL,iBAAM,CAACA,iBAAAA,CAAOM,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;IAC/B,CAAC,CAAC,EAAEN,iBAAM,CAACA,iBAAAA,CAAOO,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE;IAChC,CAAC,CAAC,EAAEP,iBAAM,CAACA,iBAAAA,CAAOQ,OAAO,CAAC,CAAC,CAAC,CAAC,EAC3B;IACF,CAAC,CAAC,EAAEC,uBAAY,CAACA,uBAAAA,CAAaC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE;AAChD;AAEO,MAAMZ,QAAAA,WAAAA,GAA6Ca,OAAMC,UAAU,CACxE,CAAC,EAAEC,QAAQ,EAAEC,SAAS,EAAEC,KAAK,EAAEC,kBAAkB,EAAEC,KAAK,EAAE,EAAEC;IAC1D,IAAIC,OAAOC,IAAI,CAACrB,WAAWsB,OAAO,CAACN,WAAW,CAAC,GAAG;QAChD,OAAA,WAAA,GAAOJ,OAAAW,aAAA,CAACC,OAAAA;YAAIC,WAAWR;YAAoBC,OAAOA;;IACpD;IACA,OAAA,WAAA,GACEN,OAAAW,aAAA,CAACG,OAAAA;QACCC,OAAO;QACPC,QAAQ;QACRC,SAAS;QACR,GAAGf,QAAQ;QACZgB,WAAW,CAAC,OAAO,EACjBd,UAAUf,iBAAM,CAACA,iBAAAA,CAAOK,OAAO,CAAC,GAAG,KAAKU,UAAUf,iBAAM,CAACA,iBAAAA,CAAOI,OAAO,CAAC,GAAG,MAAM,EAClF,OAAO,CAAC;QACTa,OAAO;YACLS,OAAO;YACPC,QAAQ;QACV;qBAEAhB,OAAAW,aAAA,CAACQ,QAAAA;QAAKC,GAAGhC,SAAS,CAACgB,MAAM;QAAG,GAAGD,SAAS;;AAG9C"}
1
+ {"version":3,"sources":["../src/components/Legends/shape.tsx"],"sourcesContent":["import * as React from 'react';\nimport { LegendShape } from './Legends.types';\nimport { CustomPoints, Points, getSecureProps } from '../../utilities/utilities';\n\nexport interface ShapeProps {\n svgProps: React.SVGAttributes<SVGElement>;\n pathProps: React.SVGAttributes<SVGPathElement>;\n shape: LegendShape;\n classNameForNonSvg?: string;\n style?: React.CSSProperties | undefined;\n}\n\ntype PointPathType = {\n [key: string]: string;\n};\n\nconst pointPath: PointPathType = {\n [`${Points[Points.circle]}`]: 'M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6',\n [`${Points[Points.square]}`]: 'M1 1 L12 1 L12 12 L1 12 L1 1 Z',\n [`${Points[Points.triangle]}`]: 'M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z',\n [`${Points[Points.pyramid]}`]: 'M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z',\n [`${Points[Points.diamond]}`]: 'M2 2 L10 2 L10 10 L2 10 L2 2 Z',\n [`${Points[Points.hexagon]}`]: 'M9 0H3L0 5L3 10H9L12 5L9 0Z',\n [`${Points[Points.pentagon]}`]: 'M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z',\n [`${Points[Points.octagon]}`]:\n 'M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z',\n [`${CustomPoints[CustomPoints.dottedLine]}`]: 'M0 6 H3 M5 6 H8 M10 6 H13',\n};\n\nexport const Shape: React.FunctionComponent<ShapeProps> = React.forwardRef<HTMLDivElement, ShapeProps>(\n ({ svgProps, pathProps, shape, classNameForNonSvg, style }, forwardedRef) => {\n if (Object.keys(pointPath).indexOf(shape) === -1) {\n return <div className={classNameForNonSvg} style={style} />;\n }\n return (\n <svg\n width={14}\n height={14}\n viewBox={'-1 -1 14 14'}\n {...getSecureProps(svgProps)}\n transform={`rotate(${\n shape === Points[Points.diamond] ? 45 : shape === Points[Points.pyramid] ? 180 : 0\n }, 0, 0)`}\n style={{\n width: '14px',\n height: '14px',\n }}\n >\n <path d={pointPath[shape]} {...getSecureProps(pathProps)} />\n </svg>\n );\n },\n);\n"],"names":["React","CustomPoints","Points","getSecureProps","pointPath","circle","square","triangle","pyramid","diamond","hexagon","pentagon","octagon","dottedLine","Shape","forwardRef","svgProps","pathProps","shape","classNameForNonSvg","style","forwardedRef","Object","keys","indexOf","div","className","svg","width","height","viewBox","transform","path","d"],"mappings":";;;;+BA6Bac;;;;;;;iEA7BU,QAAQ;2BAEsB,4BAA4B;AAcjF,MAAMV,YAA2B;IAC/B,CAAC,GAAGF,iBAAM,CAACA,iBAAAA,CAAOG,MAAM,CAAC,EAAE,CAAC,EAAE;IAC9B,CAAC,GAAGH,iBAAM,CAACA,iBAAAA,CAAOI,MAAM,CAAC,EAAE,CAAC,EAAE;IAC9B,CAAC,GAAGJ,iBAAM,CAACA,iBAAAA,CAAOK,QAAQ,CAAC,EAAE,CAAC,EAAE;IAChC,CAAC,GAAGL,iBAAM,CAACA,iBAAAA,CAAOM,OAAO,CAAC,EAAE,CAAC,EAAE;IAC/B,CAAC,GAAGN,iBAAM,CAACA,iBAAAA,CAAOO,OAAO,CAAC,EAAE,CAAC,EAAE;IAC/B,CAAC,GAAGP,iBAAM,CAACA,iBAAAA,CAAOQ,OAAO,CAAC,EAAE,CAAC,EAAE;IAC/B,CAAC,GAAGR,iBAAM,CAACA,iBAAAA,CAAOS,QAAQ,CAAC,EAAE,CAAC,EAAE;IAChC,CAAC,GAAGT,iBAAM,CAACA,iBAAAA,CAAOU,OAAO,CAAC,EAAE,CAAC,EAC3B;IACF,CAAC,GAAGX,uBAAY,CAACA,uBAAAA,CAAaY,UAAU,CAAC,EAAE,CAAC,EAAE;AAChD;AAEO,cAAMC,WAAAA,GAA6Cd,OAAMe,UAAU,CACxE,CAAC,EAAEC,QAAQ,EAAEC,SAAS,EAAEC,KAAK,EAAEC,kBAAkB,EAAEC,KAAK,EAAE,EAAEC;IAC1D,IAAIC,OAAOC,IAAI,CAACnB,WAAWoB,OAAO,CAACN,WAAW,CAAC,GAAG;QAChD,OAAA,WAAA,GAAO,OAAA,aAAA,CAACO,OAAAA;YAAIC,WAAWP;YAAoBC,OAAOA;;IACpD;IACA,OAAA,WAAA,GACE,OAAA,aAAA,CAACO,OAAAA;QACCC,OAAO;QACPC,QAAQ;QACRC,SAAS;QACR,OAAG3B,yBAAAA,EAAea,SAAS;QAC5Be,WAAW,CAAC,OAAO,EACjBb,UAAUhB,iBAAM,CAACA,iBAAAA,CAAOO,OAAO,CAAC,GAAG,KAAKS,UAAUhB,iBAAM,CAACA,iBAAAA,CAAOM,OAAO,CAAC,GAAG,MAAM,EAClF,OAAO,CAAC;QACTY,OAAO;YACLQ,OAAO;YACPC,QAAQ;QACV;qBAEA,OAAA,aAAA,CAACG,QAAAA;QAAKC,GAAG7B,SAAS,CAACc,MAAM;QAAG,OAAGf,yBAAAA,EAAec,UAAU;;AAG9D,GACA"}
@@ -25,7 +25,9 @@ const legendClassNames = {
25
25
  triangle: 'fui-legend__triangle',
26
26
  text: 'fui-legend__text',
27
27
  hoverChange: 'fui-legend__hoverChange',
28
- resizableArea: 'fui-legend__resizableArea'
28
+ resizableArea: 'fui-legend__resizableArea',
29
+ legendContainer: 'fui-legend__legendContainer',
30
+ annotation: 'fui-legend__annotation'
29
31
  };
30
32
  const useStyles = /*#__PURE__*/ (0, _react.__styles)({
31
33
  root: {
@@ -184,6 +186,24 @@ const useStyles = /*#__PURE__*/ (0, _react.__styles)({
184
186
  "frlu5y9",
185
187
  "f109kcev"
186
188
  ]
189
+ },
190
+ legendContainer: {
191
+ xawz: 0,
192
+ Bh6795r: 0,
193
+ Bnnss6s: 0,
194
+ fkmc3a: "fd43uyw",
195
+ jrapky: 0,
196
+ Frg6f3: 0,
197
+ t21cq0: 0,
198
+ B6of3ja: 0,
199
+ B74szlk: "fduql59"
200
+ },
201
+ annotation: {
202
+ mc9l5x: "f22iagw",
203
+ Bt984gj: "f122n59",
204
+ i8kkvl: 0,
205
+ Belr9w4: 0,
206
+ rmohyg: "f4xv25i"
187
207
  }
188
208
  }, {
189
209
  d: [
@@ -248,7 +268,26 @@ const useStyles = /*#__PURE__*/ (0, _react.__styles)({
248
268
  ".f1gw7v5p::after{padding-bottom:1px 4px 1px;}",
249
269
  ".f196ehyi::after{border-top-width:-2px;}",
250
270
  ".frlu5y9::after{border-left-width:-2px;}",
251
- ".f109kcev::after{border-right-width:-2px;}"
271
+ ".f109kcev::after{border-right-width:-2px;}",
272
+ [
273
+ ".fd43uyw{flex:0 1 auto;}",
274
+ {
275
+ p: -1
276
+ }
277
+ ],
278
+ [
279
+ ".fduql59{margin:4px;}",
280
+ {
281
+ p: -1
282
+ }
283
+ ],
284
+ ".f22iagw{display:flex;}",
285
+ [
286
+ ".f4xv25i{gap:4px;}",
287
+ {
288
+ p: -1
289
+ }
290
+ ]
252
291
  ],
253
292
  m: [
254
293
  [
@@ -290,7 +329,7 @@ const useStyles = /*#__PURE__*/ (0, _react.__styles)({
290
329
  ]
291
330
  });
292
331
  const useLegendStyles = (props)=>{
293
- var _props_styles, _props_styles1, _props_styles2, _props_styles3, _props_styles4, _props_styles5, _props_styles6, _props_styles7;
332
+ var _props_styles, _props_styles1, _props_styles2, _props_styles3, _props_styles4, _props_styles5, _props_styles6, _props_styles7, _props_styles8, _props_styles9;
294
333
  const { className } = props; // ToDo - width, barHeight is non enumerable. Need to be used inline.
295
334
  const baseStyles = useStyles();
296
335
  return {
@@ -301,6 +340,8 @@ const useLegendStyles = (props)=>{
301
340
  triangle: (0, _react.mergeClasses)(legendClassNames.triangle, baseStyles.triangle, (_props_styles4 = props.styles) === null || _props_styles4 === void 0 ? void 0 : _props_styles4.triangle),
302
341
  text: (0, _react.mergeClasses)(legendClassNames.text, baseStyles.text, (_props_styles5 = props.styles) === null || _props_styles5 === void 0 ? void 0 : _props_styles5.text),
303
342
  hoverChange: (0, _react.mergeClasses)(legendClassNames.hoverChange, baseStyles.hoverChange, (_props_styles6 = props.styles) === null || _props_styles6 === void 0 ? void 0 : _props_styles6.hoverChange),
304
- resizableArea: (0, _react.mergeClasses)(legendClassNames.resizableArea, baseStyles.resizableArea, (_props_styles7 = props.styles) === null || _props_styles7 === void 0 ? void 0 : _props_styles7.resizableArea)
343
+ resizableArea: (0, _react.mergeClasses)(legendClassNames.resizableArea, baseStyles.resizableArea, (_props_styles7 = props.styles) === null || _props_styles7 === void 0 ? void 0 : _props_styles7.resizableArea),
344
+ legendContainer: (0, _react.mergeClasses)(legendClassNames.legendContainer, baseStyles.legendContainer, (_props_styles8 = props.styles) === null || _props_styles8 === void 0 ? void 0 : _props_styles8.legendContainer),
345
+ annotation: (0, _react.mergeClasses)(legendClassNames.annotation, baseStyles.annotation, (_props_styles9 = props.styles) === null || _props_styles9 === void 0 ? void 0 : _props_styles9.annotation)
305
346
  };
306
- }; //# sourceMappingURL=useLegendsStyles.styles.js.map
347
+ };
@@ -1 +1 @@
1
- {"version":3,"sources":["useLegendsStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { HighContrastSelector } from '../../utilities/index';\n/**\n * @internal\n */ export const legendClassNames = {\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};\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 ...shorthands.margin('-8px 0 0 -8px')\n },\n legend: {\n // setting display to flex does not work\n // display: 'flex',\n alignItems: 'center',\n justifyContent: 'left',\n cursor: 'pointer',\n ...shorthands.border('none'),\n ...shorthands.padding(tokens.spacingHorizontalS),\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 },\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: '12px',\n border: '1px solid',\n marginRight: tokens.spacingHorizontalS\n },\n shape: {\n marginRight: tokens.spacingHorizontalS\n },\n // TO DO Add props when these styles are used in the component\n triangle: {\n width: '0',\n height: '0',\n ...shorthands.borderLeft('6px solid transparent'),\n ...shorthands.borderRight('6px solid transparent'),\n ...shorthands.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 ...shorthands.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 ...shorthands.padding('1px 4px 1px'),\n ...shorthands.borderTop('-2px'),\n ...shorthands.borderLeft('-2px')\n }\n }\n});\nexport const useLegendStyles = (props)=>{\n var _props_styles, _props_styles1, _props_styles2, _props_styles3, _props_styles4, _props_styles5, _props_styles6, _props_styles7;\n const { className } = props; // ToDo - width, barHeight is non enumerable. Need to be used inline.\n const baseStyles = useStyles();\n return {\n root: mergeClasses(legendClassNames.root, baseStyles.root, className, (_props_styles = props.styles) === null || _props_styles === void 0 ? void 0 : _props_styles.root),\n legend: mergeClasses(legendClassNames.legend, baseStyles.legend, (_props_styles1 = props.styles) === null || _props_styles1 === void 0 ? void 0 : _props_styles1.legend),\n rect: mergeClasses(legendClassNames.rect, baseStyles.rect, (_props_styles2 = props.styles) === null || _props_styles2 === void 0 ? void 0 : _props_styles2.rect),\n shape: mergeClasses(legendClassNames.shape, baseStyles.shape, (_props_styles3 = props.styles) === null || _props_styles3 === void 0 ? void 0 : _props_styles3.shape),\n triangle: mergeClasses(legendClassNames.triangle, baseStyles.triangle, (_props_styles4 = props.styles) === null || _props_styles4 === void 0 ? void 0 : _props_styles4.triangle),\n text: mergeClasses(legendClassNames.text, baseStyles.text, (_props_styles5 = props.styles) === null || _props_styles5 === void 0 ? void 0 : _props_styles5.text),\n hoverChange: mergeClasses(legendClassNames.hoverChange, baseStyles.hoverChange, (_props_styles6 = props.styles) === null || _props_styles6 === void 0 ? void 0 : _props_styles6.hoverChange),\n resizableArea: mergeClasses(legendClassNames.resizableArea, baseStyles.resizableArea, (_props_styles7 = props.styles) === null || _props_styles7 === void 0 ? void 0 : _props_styles7.resizableArea)\n };\n};\n"],"names":["legendClassNames","useLegendStyles","root","legend","rect","shape","triangle","text","hoverChange","resizableArea","useStyles","__styles","Huce71","a9b677","Bt984gj","B6of3ja","t21cq0","jrapky","Frg6f3","Brf1p80","Bceei9c","icvyot","vrafjx","oivjwe","wvpqe5","z8tnut","z189sj","Byoj8tv","uwmqm3","B9bfxx9","Bf4jedk","Bs92zhm","B93v9kj","Ck9m1r","mkjk8h","zpeayv","Bcwlslt","Bgfg5da","B9xav0g","Bn0qgzm","B4g9neb","zhjwy3","ibv6hh","u1mtju","h3c5rm","Bekrc4i","i8vvqc","g2u3we","B4j52fo","irswps","Bqenvij","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","sj55zd","Bvjb7m6","qhf8xq","fsow6f","Bz10aip","Bhzewxz","oyh7mz","B2u0y6b","smv486","u6pn5x","B4uzyy","Be2s5ez","xrcqlc","Bhxzhr1","d","p","m","props","_props_styles","_props_styles1","_props_styles2","_props_styles3","_props_styles4","_props_styles5","_props_styles6","_props_styles7","className","baseStyles","mergeClasses","sty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evE,IAAI;QAC/JC,OAAO8E,IAAAA,mBAAY,EAACnF,iBAAiBK,KAAK,EAAE6E,WAAW7E,KAAK,EAAE,AAACuE,CAAAA,iBAAiBJ,MAAMY,MAAM,AAANA,MAAY,QAAQR,mBAAmB,KAAK,IAAI,KAAK,IAAIA,eAAevE,KAAK;QACnKC,UAAU6E,IAAAA,mBAAY,EAACnF,iBAAiBM,QAAQ,EAAE4E,WAAW5E,QAAQ,EAAE,AAACuE,CAAAA,iBAAiBL,MAAMY,MAAM,AAANA,MAAY,QAAQP,mBAAmB,KAAK,IAAI,KAAK,IAAIA,eAAevE,QAAQ;QAC/KC,MAAM4E,IAAAA,mBAAY,EAACnF,iBAAiBO,IAAI,EAAE2E,WAAW3E,IAAI,EAAE,AAACuE,CAAAA,iBAAiBN,MAAMY,MAAM,AAANA,MAAY,QAAQN,mBAAmB,KAAK,IAAI,KAAK,IAAIA,eAAevE,IAAI;QAC/JC,aAAa2E,IAAAA,mBAAY,EAACnF,iBAAiBQ,WAAW,EAAE0E,WAAW1E,WAAW,EAAE,AAACuE,CAAAA,iBAAiBP,MAAMY,MAAM,AAANA,MAAY,QAAQL,mBAAmB,KAAK,IAAI,KAAK,IAAIA,eAAevE,WAAW;QAC3LC,eAAe0E,IAAAA,mBAAY,EAACnF,iBAAiBS,aAAa,EAAEyE,WAAWzE,aAAa,EAAE,AAACuE,CAAAA,iBAAiBR,MAAMY,MAAM,AAANA,MAAY,QAAQJ,mBAAmB,KAAK,IAAI,KAAK,IAAIA,eAAevE,aAAa;IACvM;AACJ"}
1
+ {"version":3,"sources":["useLegendsStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { HighContrastSelector } from '../../utilities/index';\n/**\n * @internal\n */ export const legendClassNames = {\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};\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 ...shorthands.margin('-8px 0 0 -8px')\n },\n legend: {\n // setting display to flex does not work\n // display: 'flex',\n alignItems: 'center',\n justifyContent: 'left',\n cursor: 'pointer',\n ...shorthands.border('none'),\n ...shorthands.padding(tokens.spacingHorizontalS),\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 },\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: '12px',\n border: '1px solid',\n marginRight: tokens.spacingHorizontalS\n },\n shape: {\n marginRight: tokens.spacingHorizontalS\n },\n // TO DO Add props when these styles are used in the component\n triangle: {\n width: '0',\n height: '0',\n ...shorthands.borderLeft('6px solid transparent'),\n ...shorthands.borderRight('6px solid transparent'),\n ...shorthands.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 ...shorthands.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 ...shorthands.padding('1px 4px 1px'),\n ...shorthands.borderTop('-2px'),\n ...shorthands.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});\nexport const useLegendStyles = (props)=>{\n var _props_styles, _props_styles1, _props_styles2, _props_styles3, _props_styles4, _props_styles5, _props_styles6, _props_styles7, _props_styles8, _props_styles9;\n const { className } = props; // ToDo - width, barHeight is non enumerable. Need to be used inline.\n const baseStyles = useStyles();\n return {\n root: mergeClasses(legendClassNames.root, baseStyles.root, className, (_props_styles = props.styles) === null || _props_styles === void 0 ? void 0 : _props_styles.root),\n legend: mergeClasses(legendClassNames.legend, baseStyles.legend, (_props_styles1 = props.styles) === null || _props_styles1 === void 0 ? void 0 : _props_styles1.legend),\n rect: mergeClasses(legendClassNames.rect, baseStyles.rect, (_props_styles2 = props.styles) === null || _props_styles2 === void 0 ? void 0 : _props_styles2.rect),\n shape: mergeClasses(legendClassNames.shape, baseStyles.shape, (_props_styles3 = props.styles) === null || _props_styles3 === void 0 ? void 0 : _props_styles3.shape),\n triangle: mergeClasses(legendClassNames.triangle, baseStyles.triangle, (_props_styles4 = props.styles) === null || _props_styles4 === void 0 ? void 0 : _props_styles4.triangle),\n text: mergeClasses(legendClassNames.text, baseStyles.text, (_props_styles5 = props.styles) === null || _props_styles5 === void 0 ? void 0 : _props_styles5.text),\n hoverChange: mergeClasses(legendClassNames.hoverChange, baseStyles.hoverChange, (_props_styles6 = props.styles) === null || _props_styles6 === void 0 ? void 0 : _props_styles6.hoverChange),\n resizableArea: mergeClasses(legendClassNames.resizableArea, baseStyles.resizableArea, (_props_styles7 = props.styles) === null || _props_styles7 === void 0 ? void 0 : _props_styles7.resizableArea),\n legendContainer: mergeClasses(legendClassNames.legendContainer, baseStyles.legendContainer, (_props_styles8 = props.styles) === null || _props_styles8 === void 0 ? void 0 : _props_styles8.legendContainer),\n annotation: mergeClasses(legendClassNames.annotation, baseStyles.annotation, (_props_styles9 = props.styles) === null || _props_styles9 === void 0 ? void 0 : _props_styles9.annotation)\n };\n};\n"],"names":["__styles","mergeClasses","shorthands","tokens","typographyStyles","HighContrastSelector","legendClassNames","root","legend","rect","shape","triangle","text","hoverChange","resizableArea","legendContainer","annotation","useStyles","Huce71","a9b677","Bt984gj","B6of3ja","t21cq0","jrapky","Frg6f3","Brf1p80","Bceei9c","icvyot","vrafjx","oivjwe","wvpqe5","z8tnut","z189sj","Byoj8tv","uwmqm3","B9bfxx9","Bf4jedk","Bs92zhm","B93v9kj","Ck9m1r","mkjk8h","zpeayv","Bcwlslt","Bgfg5da","B9xav0g","Bn0qgzm","B4g9neb","zhjwy3","ibv6hh","u1mtju","h3c5rm","Bekrc4i","i8vvqc","g2u3we","B4j52fo","irswps","Bqenvij","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","sj55zd","Bvjb7m6","qhf8xq","fsow6f","Bz10aip","Bhzewxz","oyh7mz","B2u0y6b","smv486","u6pn5x","B4uzyy","Be2s5ez","xrcqlc","Bhxzhr1","xawz","Bh6795r","Bnnss6s","fkmc3a","B74szlk","mc9l5x","i8kkvl","Belr9w4","rmohyg","d","p","m","useLegendStyles","props","_props_styles","_props_styles1","_props_styles2","_props_styles3","_props_styles4","_props_styles5","_props_styles6","_props_styles7","_props_styles8","_props_styles9","className","baseStyles","styles"],"mappings":";;;;;;;;;;;IAKiBM,gBAAgB;;;mBAuGL;eAAfiF;;;uBA5GwC,gBAAgB;AAK1D,yBAAyB;IAChChF,IAAI,EAAE,kBAAkB;IACxBC,MAAM,EAAE,oBAAoB;IAC5BC,IAAI,EAAE,kBAAkB;IACxBC,KAAK,EAAE,mBAAmB;IAC1BC,QAAQ,EAAE,sBAAsB;IAChCC,IAAI,EAAE,kBAAkB;IACxBC,WAAW,EAAE,yBAAyB;IACtCC,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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: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ legendClassNames: function() {
13
+ return legendClassNames;
14
+ },
15
+ useLegendStyles: function() {
16
+ return useLegendStyles;
17
+ }
18
+ });
19
+ const _react = require("@griffel/react");
20
+ const _reacttheme = require("@fluentui/react-theme");
21
+ const _index = require("../../utilities/index");
22
+ const legendClassNames = {
23
+ root: 'fui-legend__root',
24
+ legend: 'fui-legend__legend',
25
+ rect: 'fui-legend__rect',
26
+ shape: 'fui-legend__shape',
27
+ triangle: 'fui-legend__triangle',
28
+ text: 'fui-legend__text',
29
+ hoverChange: 'fui-legend__hoverChange',
30
+ resizableArea: 'fui-legend__resizableArea',
31
+ legendContainer: 'fui-legend__legendContainer',
32
+ annotation: 'fui-legend__annotation'
33
+ };
34
+ const useStyles = (0, _react.makeStyles)({
35
+ root: {
36
+ // FIXME: Removing this style allows the legend container in responsive donut chart to resize
37
+ // properly (horizontally) within a flexbox or grid layout. But it causes vertical resizing issues
38
+ // in responsive charts where legends consist of multiple words.
39
+ whiteSpace: 'nowrap',
40
+ width: '100%',
41
+ alignItems: 'center',
42
+ ..._react.shorthands.margin('-8px 0 0 -8px')
43
+ },
44
+ legend: {
45
+ // setting display to flex does not work
46
+ // display: 'flex',
47
+ alignItems: 'center',
48
+ justifyContent: 'left',
49
+ cursor: 'pointer',
50
+ ..._react.shorthands.border('none'),
51
+ ..._react.shorthands.padding(_reacttheme.tokens.spacingHorizontalS),
52
+ textTransform: 'capitalize',
53
+ // The default min-width is 64px. Setting it to 0 allows the legend container in responsive
54
+ // cartesian charts to resize properly within a flexbox or grid layout.
55
+ minWidth: 0,
56
+ [_index.HighContrastSelector]: {
57
+ color: 'WindowText',
58
+ forcedColorAdjust: 'none'
59
+ },
60
+ '&:hover': {
61
+ [_index.HighContrastSelector]: {
62
+ color: 'HighlightText',
63
+ forcedColorAdjust: 'none'
64
+ }
65
+ }
66
+ },
67
+ rect: {
68
+ [_index.HighContrastSelector]: {
69
+ content: 'var(--rect-content-high-contrast)',
70
+ opacity: 'var(--rect-opacity-high-contrast)'
71
+ },
72
+ width: '12px',
73
+ border: '1px solid',
74
+ marginRight: _reacttheme.tokens.spacingHorizontalS
75
+ },
76
+ shape: {
77
+ marginRight: _reacttheme.tokens.spacingHorizontalS
78
+ },
79
+ // TO DO Add props when these styles are used in the component
80
+ triangle: {
81
+ width: '0',
82
+ height: '0',
83
+ ..._react.shorthands.borderLeft('6px solid transparent'),
84
+ ..._react.shorthands.borderRight('6px solid transparent'),
85
+ ..._react.shorthands.borderTop('10.4px solid'),
86
+ marginRight: _reacttheme.tokens.spacingHorizontalS
87
+ },
88
+ // TO DO Add props when these styles are used in the component
89
+ text: {
90
+ ..._reacttheme.typographyStyles.caption1,
91
+ color: _reacttheme.tokens.colorNeutralForeground1,
92
+ forcedColorAdjust: 'auto'
93
+ },
94
+ // TO DO Add props when these styles are used in the component
95
+ hoverChange: {
96
+ width: '12px',
97
+ height: '12px',
98
+ marginRight: _reacttheme.tokens.spacingHorizontalS,
99
+ ..._react.shorthands.border('1px solid')
100
+ },
101
+ resizableArea: {
102
+ position: 'relative',
103
+ textAlign: 'left',
104
+ transform: 'translate(-50%, 0)',
105
+ top: 'auto',
106
+ left: '50%',
107
+ minWidth: '200px',
108
+ maxWidth: '800px',
109
+ '::after': {
110
+ ..._react.shorthands.padding('1px 4px 1px'),
111
+ ..._react.shorthands.borderTop('-2px'),
112
+ ..._react.shorthands.borderLeft('-2px')
113
+ }
114
+ },
115
+ legendContainer: {
116
+ flex: '0 1 auto',
117
+ margin: '4px'
118
+ },
119
+ annotation: {
120
+ display: 'flex',
121
+ alignItems: 'center',
122
+ gap: '4px'
123
+ }
124
+ });
125
+ const useLegendStyles = (props)=>{
126
+ var _props_styles, _props_styles1, _props_styles2, _props_styles3, _props_styles4, _props_styles5, _props_styles6, _props_styles7, _props_styles8, _props_styles9;
127
+ const { className } = props; // ToDo - width, barHeight is non enumerable. Need to be used inline.
128
+ const baseStyles = useStyles();
129
+ return {
130
+ root: (0, _react.mergeClasses)(legendClassNames.root, baseStyles.root, className, (_props_styles = props.styles) === null || _props_styles === void 0 ? void 0 : _props_styles.root),
131
+ legend: (0, _react.mergeClasses)(legendClassNames.legend, baseStyles.legend, (_props_styles1 = props.styles) === null || _props_styles1 === void 0 ? void 0 : _props_styles1.legend),
132
+ rect: (0, _react.mergeClasses)(legendClassNames.rect, baseStyles.rect, (_props_styles2 = props.styles) === null || _props_styles2 === void 0 ? void 0 : _props_styles2.rect),
133
+ shape: (0, _react.mergeClasses)(legendClassNames.shape, baseStyles.shape, (_props_styles3 = props.styles) === null || _props_styles3 === void 0 ? void 0 : _props_styles3.shape),
134
+ triangle: (0, _react.mergeClasses)(legendClassNames.triangle, baseStyles.triangle, (_props_styles4 = props.styles) === null || _props_styles4 === void 0 ? void 0 : _props_styles4.triangle),
135
+ text: (0, _react.mergeClasses)(legendClassNames.text, baseStyles.text, (_props_styles5 = props.styles) === null || _props_styles5 === void 0 ? void 0 : _props_styles5.text),
136
+ hoverChange: (0, _react.mergeClasses)(legendClassNames.hoverChange, baseStyles.hoverChange, (_props_styles6 = props.styles) === null || _props_styles6 === void 0 ? void 0 : _props_styles6.hoverChange),
137
+ resizableArea: (0, _react.mergeClasses)(legendClassNames.resizableArea, baseStyles.resizableArea, (_props_styles7 = props.styles) === null || _props_styles7 === void 0 ? void 0 : _props_styles7.resizableArea),
138
+ legendContainer: (0, _react.mergeClasses)(legendClassNames.legendContainer, baseStyles.legendContainer, (_props_styles8 = props.styles) === null || _props_styles8 === void 0 ? void 0 : _props_styles8.legendContainer),
139
+ annotation: (0, _react.mergeClasses)(legendClassNames.annotation, baseStyles.annotation, (_props_styles9 = props.styles) === null || _props_styles9 === void 0 ? void 0 : _props_styles9.annotation)
140
+ };
141
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Legends/useLegendsStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } 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/**\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 ...shorthands.margin('-8px 0 0 -8px'),\n },\n legend: {\n // setting display to flex does not work\n // display: 'flex',\n alignItems: 'center',\n justifyContent: 'left',\n cursor: 'pointer',\n ...shorthands.border('none'),\n ...shorthands.padding(tokens.spacingHorizontalS),\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 },\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: '12px',\n border: '1px solid',\n marginRight: tokens.spacingHorizontalS,\n },\n shape: {\n marginRight: tokens.spacingHorizontalS,\n },\n // TO DO Add props when these styles are used in the component\n triangle: {\n width: '0',\n height: '0',\n ...shorthands.borderLeft('6px solid transparent'),\n ...shorthands.borderRight('6px solid transparent'),\n ...shorthands.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 ...shorthands.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 ...shorthands.padding('1px 4px 1px'),\n ...shorthands.borderTop('-2px'),\n ...shorthands.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","shorthands","tokens","typographyStyles","HighContrastSelector","legendClassNames","root","legend","rect","shape","triangle","text","hoverChange","resizableArea","legendContainer","annotation","useStyles","whiteSpace","width","alignItems","margin","justifyContent","cursor","border","padding","spacingHorizontalS","textTransform","minWidth","color","forcedColorAdjust","content","opacity","marginRight","height","borderLeft","borderRight","borderTop","caption1","colorNeutralForeground1","position","textAlign","transform","top","left","maxWidth","flex","display","gap","useLegendStyles","props","className","baseStyles","styles"],"mappings":";;;;;;;;;;;IASaM,gBAAAA;;;mBAyGA2C;eAAAA;;;uBAlHwC,iBAAiB;4BAG7B,wBAAwB;uBAC5B,wBAAwB;AAKtD,yBAAwD;IAC7D1C,MAAM;IACNC,QAAQ;IACRC,MAAM;IACNC,OAAO;IACPC,UAAU;IACVC,MAAM;IACNC,aAAa;IACbC,eAAe;IACfC,iBAAiB;IACjBC,YAAY;AACd,EAAE;AAEF,MAAMC,YAAYjB,qBAAAA,EAAW;IAC3BO,MAAM;QACJ,6FAA6F;QAC7F,kGAAkG;QAClG,gEAAgE;QAChEW,YAAY;QACZC,OAAO;QACPC,YAAY;QACZ,GAAGlB,iBAAAA,CAAWmB,MAAM,CAAC,gBAAgB;IACvC;IACAb,QAAQ;QACN,wCAAwC;QACxC,mBAAmB;QACnBY,YAAY;QACZE,gBAAgB;QAChBC,QAAQ;QACR,GAAGrB,iBAAAA,CAAWsB,MAAM,CAAC,OAAO;QAC5B,GAAGtB,iBAAAA,CAAWuB,OAAO,CAACtB,kBAAAA,CAAOuB,kBAAkB,CAAC;QAChDC,eAAe;QACf,2FAA2F;QAC3F,uEAAuE;QACvEC,UAAU;QACV,CAACvB,2BAAAA,CAAqB,EAAE;YACtBwB,OAAO;YACPC,mBAAmB;QACrB;QACA,WAAW;YACT,CAACzB,2BAAAA,CAAqB,EAAE;gBACtBwB,OAAO;gBACPC,mBAAmB;YACrB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AA,CAAEqC,iBAAAA,MAAMG,MAAAA,AAAM,MAAA,QAAZH,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAcrC,WAAW;QACzGC,mBAAeb,mBAAAA,EAAaK,iBAAiBQ,aAAa,EAAEsC,WAAWtC,aAAa,EAAA,CAAEoC,iBAAAA,MAAMG,MAAAA,AAAM,MAAA,QAAZH,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAcpC,aAAa;QACjHC,qBAAiBd,mBAAAA,EACfK,iBAAiBS,eAAe,EAChCqC,WAAWrC,eAAe,EAAA,CAC1BmC,iBAAAA,MAAMG,MAAAA,AAAM,MAAA,QAAZH,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAcnC,eAAe;QAE/BC,gBAAYf,mBAAAA,EAAaK,iBAAiBU,UAAU,EAAEoC,WAAWpC,UAAU,EAAA,CAAEkC,iBAAAA,MAAMG,MAAAA,AAAM,MAAA,QAAZH,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAclC,UAAU;IACvG;AACF,EAAE"}
@@ -20,11 +20,11 @@ const _index1 = require("../../utilities/index");
20
20
  const _index2 = require("../../index");
21
21
  const _EventAnnotation = require("./eventAnnotation/EventAnnotation");
22
22
  const _reacttheme = require("@fluentui/react-theme");
23
- var PointSize;
24
- (function(PointSize) {
23
+ var PointSize = /*#__PURE__*/ function(PointSize) {
25
24
  PointSize[PointSize["hoverSize"] = 11] = "hoverSize";
26
25
  PointSize[PointSize["invisibleSize"] = 1] = "invisibleSize";
27
- })(PointSize || (PointSize = {}));
26
+ return PointSize;
27
+ }(PointSize || {});
28
28
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
29
29
  const bisect = (0, _d3array.bisector)((d)=>d.x).left;
30
30
  const DEFAULT_LINE_STROKE_SIZE = 4;