@fluentui/react-charting 5.24.5 → 5.24.6

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 (89) hide show
  1. package/CHANGELOG.json +16 -1
  2. package/CHANGELOG.md +11 -2
  3. package/dist/react-charting.js +1 -1
  4. package/dist/react-charting.min.js +1 -1
  5. package/lib/components/AreaChart/AreaChart.styles.js +2 -2
  6. package/lib/components/AreaChart/AreaChart.styles.js.map +1 -1
  7. package/lib/components/CommonComponents/CartesianChart.base.js +16 -10
  8. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  9. package/lib/components/CommonComponents/CartesianChart.styles.js +35 -62
  10. package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  11. package/lib/components/DonutChart/DonutChart.styles.js +2 -18
  12. package/lib/components/DonutChart/DonutChart.styles.js.map +1 -1
  13. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +3 -14
  14. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
  15. package/lib/components/LineChart/LineChart.styles.js +3 -11
  16. package/lib/components/LineChart/LineChart.styles.js.map +1 -1
  17. package/lib/components/SankeyChart/SankeyChart.styles.js +2 -1
  18. package/lib/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  19. package/lib/components/ScatterChart/ScatterChart.styles.js +3 -14
  20. package/lib/components/ScatterChart/ScatterChart.styles.js.map +1 -1
  21. package/lib/components/VerticalBarChart/VerticalBarChart.styles.js +3 -14
  22. package/lib/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
  23. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +3 -14
  24. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
  25. package/lib/utilities/Common.styles.d.ts +6 -0
  26. package/lib/utilities/Common.styles.js +51 -0
  27. package/lib/utilities/Common.styles.js.map +1 -0
  28. package/lib/utilities/SVGTooltipText.d.ts +1 -1
  29. package/lib/utilities/SVGTooltipText.js.map +1 -1
  30. package/lib/utilities/index.d.ts +1 -0
  31. package/lib/utilities/index.js +1 -0
  32. package/lib/utilities/index.js.map +1 -1
  33. package/lib-amd/components/AreaChart/AreaChart.styles.js +2 -2
  34. package/lib-amd/components/AreaChart/AreaChart.styles.js.map +1 -1
  35. package/lib-amd/components/CommonComponents/CartesianChart.base.js +16 -10
  36. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
  37. package/lib-amd/components/CommonComponents/CartesianChart.styles.js +33 -61
  38. package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  39. package/lib-amd/components/DonutChart/DonutChart.styles.js +2 -17
  40. package/lib-amd/components/DonutChart/DonutChart.styles.js.map +1 -1
  41. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +3 -13
  42. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
  43. package/lib-amd/components/LineChart/LineChart.styles.js +3 -10
  44. package/lib-amd/components/LineChart/LineChart.styles.js.map +1 -1
  45. package/lib-amd/components/SankeyChart/SankeyChart.styles.js +2 -2
  46. package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  47. package/lib-amd/components/ScatterChart/ScatterChart.styles.js +3 -13
  48. package/lib-amd/components/ScatterChart/ScatterChart.styles.js.map +1 -1
  49. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +3 -13
  50. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
  51. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +3 -13
  52. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
  53. package/lib-amd/utilities/Common.styles.d.ts +6 -0
  54. package/lib-amd/utilities/Common.styles.js +57 -0
  55. package/lib-amd/utilities/Common.styles.js.map +1 -0
  56. package/lib-amd/utilities/SVGTooltipText.d.ts +1 -1
  57. package/lib-amd/utilities/SVGTooltipText.js.map +1 -1
  58. package/lib-amd/utilities/index.d.ts +1 -0
  59. package/lib-amd/utilities/index.js +2 -1
  60. package/lib-amd/utilities/index.js.map +1 -1
  61. package/lib-commonjs/components/AreaChart/AreaChart.styles.js +2 -2
  62. package/lib-commonjs/components/AreaChart/AreaChart.styles.js.map +1 -1
  63. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +16 -10
  64. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  65. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js +33 -60
  66. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  67. package/lib-commonjs/components/DonutChart/DonutChart.styles.js +2 -18
  68. package/lib-commonjs/components/DonutChart/DonutChart.styles.js.map +1 -1
  69. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +3 -14
  70. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
  71. package/lib-commonjs/components/LineChart/LineChart.styles.js +3 -11
  72. package/lib-commonjs/components/LineChart/LineChart.styles.js.map +1 -1
  73. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js +2 -1
  74. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  75. package/lib-commonjs/components/ScatterChart/ScatterChart.styles.js +3 -14
  76. package/lib-commonjs/components/ScatterChart/ScatterChart.styles.js.map +1 -1
  77. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js +3 -14
  78. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
  79. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +3 -14
  80. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
  81. package/lib-commonjs/utilities/Common.styles.d.ts +6 -0
  82. package/lib-commonjs/utilities/Common.styles.js +58 -0
  83. package/lib-commonjs/utilities/Common.styles.js.map +1 -0
  84. package/lib-commonjs/utilities/SVGTooltipText.d.ts +1 -1
  85. package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -1
  86. package/lib-commonjs/utilities/index.d.ts +1 -0
  87. package/lib-commonjs/utilities/index.js +1 -0
  88. package/lib-commonjs/utilities/index.js.map +1 -1
  89. package/package.json +1 -1
@@ -1,10 +1,11 @@
1
1
  import { __assign } from "tslib";
2
- import { FontSizes, FontWeights, HighContrastSelector } from '@fluentui/react/lib/Styling';
3
- import { NeutralColors, isIE11 } from '@fluentui/react';
2
+ import { HighContrastSelector } from '@fluentui/react/lib/Styling';
3
+ import { isIE11 } from '@fluentui/react';
4
+ import { getAxisTitleStyle, getTooltipStyle } from '../../utilities/index';
4
5
  var isIE11Var = isIE11();
5
6
  export var getStyles = function (props) {
6
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
7
- var className = props.className, theme = props.theme, isRtl = props.isRtl, shouldHighlight = props.shouldHighlight, href = props.href, _m = props.lineColor, lineColor = _m === void 0 ? 'transparent' : _m, toDrawShape = props.toDrawShape, enableReflow = props.enableReflow;
7
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
8
+ var className = props.className, theme = props.theme, isRtl = props.isRtl, shouldHighlight = props.shouldHighlight, href = props.href, _k = props.lineColor, lineColor = _k === void 0 ? 'transparent' : _k, toDrawShape = props.toDrawShape, enableReflow = props.enableReflow;
8
9
  var fonts = theme.fonts;
9
10
  return {
10
11
  root: [
@@ -19,36 +20,8 @@ export var getStyles = function (props) {
19
20
  className,
20
21
  ],
21
22
  chartWrapper: __assign({}, (enableReflow ? { overflow: 'auto' } : {})),
22
- axisTitle: [
23
- theme.fonts.xSmall,
24
- (_a = {
25
- textAlign: 'center',
26
- fontWeight: FontWeights.semibold,
27
- fontStyle: 'normal',
28
- lineHeight: FontSizes.medium,
29
- color: NeutralColors.gray160,
30
- fill: theme.semanticColors.bodyText
31
- },
32
- _a[HighContrastSelector] = {
33
- fill: 'CanvasText',
34
- },
35
- _a),
36
- ],
37
- axisAnnotation: [
38
- theme.fonts.small,
39
- (_b = {
40
- textAlign: 'center',
41
- fontWeight: FontWeights.semibold,
42
- fontStyle: 'normal',
43
- lineHeight: FontSizes.medium,
44
- color: NeutralColors.gray160,
45
- fill: theme.semanticColors.bodyText
46
- },
47
- _b[HighContrastSelector] = {
48
- fill: 'CanvasText',
49
- },
50
- _b),
51
- ],
23
+ axisTitle: getAxisTitleStyle(theme, theme.fonts.xSmall),
24
+ axisAnnotation: getAxisTitleStyle(theme, theme.fonts.small),
52
25
  xAxis: {
53
26
  selectors: {
54
27
  text: [
@@ -56,23 +29,23 @@ export var getStyles = function (props) {
56
29
  {
57
30
  fill: theme.semanticColors.bodyText,
58
31
  fontWeight: '600',
59
- selectors: (_c = {},
60
- _c[HighContrastSelector] = {
32
+ selectors: (_a = {},
33
+ _a[HighContrastSelector] = {
61
34
  fill: 'CanvasText',
62
35
  },
63
- _c),
36
+ _a),
64
37
  },
65
38
  ],
66
39
  line: {
67
40
  opacity: 0.2,
68
41
  stroke: theme.semanticColors.bodyText,
69
42
  width: '1px',
70
- selectors: (_d = {},
71
- _d[HighContrastSelector] = {
43
+ selectors: (_b = {},
44
+ _b[HighContrastSelector] = {
72
45
  opacity: 0.1,
73
46
  stroke: 'CanvasText',
74
47
  },
75
- _d),
48
+ _b),
76
49
  },
77
50
  path: {
78
51
  display: 'none',
@@ -86,11 +59,11 @@ export var getStyles = function (props) {
86
59
  {
87
60
  fill: theme.semanticColors.bodyText,
88
61
  fontWeight: '600',
89
- selectors: (_e = {},
90
- _e[HighContrastSelector] = {
62
+ selectors: (_c = {},
63
+ _c[HighContrastSelector] = {
91
64
  fill: 'CanvasText',
92
65
  },
93
- _e),
66
+ _c),
94
67
  },
95
68
  ],
96
69
  path: {
@@ -99,12 +72,12 @@ export var getStyles = function (props) {
99
72
  line: {
100
73
  opacity: 0.2,
101
74
  stroke: theme.semanticColors.bodyText,
102
- selectors: (_f = {},
103
- _f[HighContrastSelector] = {
75
+ selectors: (_d = {},
76
+ _d[HighContrastSelector] = {
104
77
  opacity: 0.1,
105
78
  stroke: 'CanvasText',
106
79
  },
107
- _f),
80
+ _d),
108
81
  },
109
82
  g: [
110
83
  isRtl &&
@@ -148,11 +121,11 @@ export var getStyles = function (props) {
148
121
  color: theme.semanticColors.bodyText,
149
122
  },
150
123
  !toDrawShape && {
151
- selectors: (_g = {},
152
- _g[HighContrastSelector] = {
124
+ selectors: (_e = {},
125
+ _e[HighContrastSelector] = {
153
126
  forcedColorAdjust: 'none',
154
127
  },
155
- _g),
128
+ _e),
156
129
  borderLeft: "4px solid ".concat(lineColor),
157
130
  paddingLeft: '8px',
158
131
  },
@@ -163,40 +136,40 @@ export var getStyles = function (props) {
163
136
  shapeStyles: {
164
137
  marginRight: '8px',
165
138
  },
166
- calloutlegendText: __assign(__assign({}, fonts.small), { lineHeight: '16px', selectors: (_h = {},
167
- _h[HighContrastSelector] = {
139
+ calloutlegendText: __assign(__assign({}, fonts.small), { lineHeight: '16px', selectors: (_f = {},
140
+ _f[HighContrastSelector] = {
168
141
  color: 'CanvasText',
169
142
  },
170
- _h), color: theme.semanticColors.bodySubtext }),
143
+ _f), color: theme.semanticColors.bodySubtext }),
171
144
  calloutContentY: [
172
- __assign(__assign({}, fonts.mediumPlus), { fontWeight: 'bold', lineHeight: '22px', selectors: (_j = {},
173
- _j[HighContrastSelector] = {
145
+ __assign(__assign({}, fonts.mediumPlus), { fontWeight: 'bold', lineHeight: '22px', selectors: (_g = {},
146
+ _g[HighContrastSelector] = {
174
147
  color: 'CanvasText',
175
148
  },
176
- _j) }),
149
+ _g) }),
177
150
  ],
178
151
  descriptionMessage: [
179
152
  theme.fonts.small,
180
153
  {
181
- selectors: (_k = {},
182
- _k[HighContrastSelector] = {
154
+ selectors: (_h = {},
155
+ _h[HighContrastSelector] = {
183
156
  color: 'CanvasText',
184
157
  },
185
- _k),
158
+ _h),
186
159
  color: theme.semanticColors.bodyText,
187
160
  marginTop: '10px',
188
161
  paddingTop: '10px',
189
162
  borderTop: "1px solid ".concat(theme.semanticColors.menuDivider),
190
163
  },
191
164
  ],
192
- tooltip: __assign(__assign({}, theme.fonts.medium), { display: 'flex', flexDirection: 'column', padding: '8px', position: 'absolute', textAlign: 'center', top: '0px', background: theme.semanticColors.bodyBackground, borderRadius: '2px', pointerEvents: 'none' }),
193
- svgTooltip: (_l = {
165
+ tooltip: getTooltipStyle(theme),
166
+ svgTooltip: (_j = {
194
167
  fill: theme.semanticColors.bodyBackground
195
168
  },
196
- _l[HighContrastSelector] = {
169
+ _j[HighContrastSelector] = {
197
170
  fill: 'Canvas',
198
171
  },
199
- _l),
172
+ _j),
200
173
  };
201
174
  };
202
175
  //# sourceMappingURL=CartesianChart.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CartesianChart.styles.js","sourceRoot":"../src/","sources":["components/CommonComponents/CartesianChart.styles.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAExD,IAAM,SAAS,GAAY,MAAM,EAAE,CAAC;AAEpC,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAAgC;;IAEtD,IAAA,SAAS,GAQP,KAAK,UARE,EACT,KAAK,GAOH,KAAK,MAPF,EACL,KAAK,GAMH,KAAK,MANF,EACL,eAAe,GAKb,KAAK,gBALQ,EACf,IAAI,GAIF,KAAK,KAJH,EACJ,KAGE,KAAK,UAHkB,EAAzB,SAAS,mBAAG,aAAa,KAAA,EACzB,WAAW,GAET,KAAK,YAFI,EACX,YAAY,GACV,KAAK,aADK,CACJ;IACF,IAAA,KAAK,GAAK,KAAM,MAAX,CAAY;IACzB,OAAO;QACL,IAAI,EAAE;YACJ,KAAK,CAAC,KAAK,CAAC,MAAM;YAClB;gBACE,OAAO,EAAE,MAAM;gBACf,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AAK,CAAC,cAAc,CAAC,QAAQ;gBACpC,SAAS,EAAE,MAAM;gBACjB,UAAU,EAAE,MAAM;gBAClB,SAAS,EAAE,oBAAa,KAAK,CAAC,cAAc,CAAC,WAAW,CAAE;aAC3D;SACF;QACD,OAAO,wBACF,KAAK,CAAC,KAAK,CAAC,MAAM,KACrB,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,QAAQ,EACvB,OAAO,EAAE,KAAK,EACd,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,QAAQ,EACnB,GAAG,EAAE,KAAK,EACV,UAAU,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,EAC/C,YAAY,EAAE,KAAK,EACnB,aAAa,EAAE,MAAM,GACtB;QACD,UAAU;gBACR,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc;;YACzC,GAAC,oBAAoB,IAAG;gBACtB,IAAI,EAAE,QAAQ;aACf;eACF;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { ICartesianChartStyleProps, ICartesianChartStyles } from './CartesianChart.types';\nimport { FontSizes, FontWeights, HighContrastSelector } from '@fluentui/react/lib/Styling';\nimport { NeutralColors, isIE11 } from '@fluentui/react';\n\nconst isIE11Var: boolean = isIE11();\n\nexport const getStyles = (props: ICartesianChartStyleProps): ICartesianChartStyles => {\n const {\n className,\n theme,\n isRtl,\n shouldHighlight,\n href,\n lineColor = 'transparent',\n toDrawShape,\n enableReflow,\n } = props;\n const { fonts } = theme!;\n return {\n root: [\n theme.fonts.medium,\n {\n display: 'flex',\n width: '100%',\n height: '100%',\n flexDirection: 'column',\n overflow: 'hidden',\n },\n className,\n ],\n chartWrapper: {\n ...(enableReflow ? { overflow: 'auto' } : {}),\n },\n axisTitle: [\n theme.fonts.xSmall,\n {\n textAlign: 'center',\n fontWeight: FontWeights.semibold,\n fontStyle: 'normal',\n lineHeight: FontSizes.medium,\n color: NeutralColors.gray160,\n fill: theme.semanticColors.bodyText,\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n ],\n axisAnnotation: [\n theme.fonts.small,\n {\n textAlign: 'center',\n fontWeight: FontWeights.semibold,\n fontStyle: 'normal',\n lineHeight: FontSizes.medium,\n color: NeutralColors.gray160,\n fill: theme.semanticColors.bodyText,\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n ],\n xAxis: {\n selectors: {\n text: [\n theme.fonts.tiny,\n {\n fill: theme.semanticColors.bodyText,\n fontWeight: '600',\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n },\n ],\n line: {\n opacity: 0.2,\n stroke: theme.semanticColors.bodyText,\n width: '1px',\n selectors: {\n [HighContrastSelector]: {\n opacity: 0.1,\n stroke: 'CanvasText',\n },\n },\n },\n path: {\n display: 'none',\n },\n },\n },\n yAxis: {\n selectors: {\n text: [\n theme.fonts.tiny,\n {\n fill: theme.semanticColors.bodyText,\n fontWeight: '600',\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n },\n ],\n path: {\n display: 'none',\n },\n line: {\n opacity: 0.2,\n stroke: theme.semanticColors.bodyText,\n selectors: {\n [HighContrastSelector]: {\n opacity: 0.1,\n stroke: 'CanvasText',\n },\n },\n },\n g: [\n isRtl &&\n !isIE11Var && {\n textAnchor: 'end',\n },\n ],\n },\n },\n\n opacityChangeOnHover: {\n opacity: shouldHighlight ? '' : '0.1',\n cursor: href ? 'pointer' : 'default',\n },\n\n legendContainer: [\n {\n marginTop: '8px',\n marginLeft: '20px',\n },\n ],\n calloutContentRoot: [\n {\n display: 'grid',\n overflow: 'hidden',\n padding: '11px 16px 10px 16px',\n backgroundColor: theme.semanticColors.bodyBackground,\n backgroundBlendMode: 'normal, luminosity',\n },\n ],\n calloutDateTimeContainer: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n },\n calloutContentX: [\n {\n ...fonts.small,\n lineHeight: '16px',\n opacity: '0.85',\n color: theme.semanticColors.bodySubtext,\n },\n ],\n calloutBlockContainer: [\n theme.fonts.mediumPlus,\n {\n marginTop: '13px',\n color: theme.semanticColors.bodyText,\n },\n !toDrawShape && {\n selectors: {\n [HighContrastSelector]: {\n forcedColorAdjust: 'none',\n },\n },\n borderLeft: `4px solid ${lineColor}`,\n paddingLeft: '8px',\n },\n toDrawShape && {\n display: 'flex',\n },\n ],\n shapeStyles: {\n marginRight: '8px',\n },\n calloutlegendText: {\n ...fonts.small,\n lineHeight: '16px',\n selectors: {\n [HighContrastSelector]: {\n color: 'CanvasText',\n },\n },\n color: theme.semanticColors.bodySubtext,\n },\n calloutContentY: [\n {\n ...fonts.mediumPlus,\n fontWeight: 'bold',\n lineHeight: '22px',\n selectors: {\n [HighContrastSelector]: {\n color: 'CanvasText',\n },\n },\n },\n ],\n descriptionMessage: [\n theme.fonts.small,\n {\n selectors: {\n [HighContrastSelector]: {\n color: 'CanvasText',\n },\n },\n color: theme.semanticColors.bodyText,\n marginTop: '10px',\n paddingTop: '10px',\n borderTop: `1px solid ${theme.semanticColors.menuDivider}`,\n },\n ],\n tooltip: {\n ...theme.fonts.medium,\n display: 'flex',\n flexDirection: 'column',\n padding: '8px',\n position: 'absolute',\n textAlign: 'center',\n top: '0px',\n background: theme.semanticColors.bodyBackground,\n borderRadius: '2px',\n pointerEvents: 'none',\n },\n svgTooltip: {\n fill: theme.semanticColors.bodyBackground,\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n };\n};\n"]}
1
+ {"version":3,"file":"CartesianChart.styles.js","sourceRoot":"../src/","sources":["components/CommonComponents/CartesianChart.styles.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE3E,IAAM,SAAS,GAAY,MAAM,EAAE,CAAC;AAEpC,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC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oBAAa,KAAK,CAAC,cAAc,CAAC,WAAW,CAAE;aAC3D;SACF;QACD,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC;QAC/B,UAAU;gBACR,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc;;YACzC,GAAC,oBAAoB,IAAG;gBACtB,IAAI,EAAE,QAAQ;aACf;eACF;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { ICartesianChartStyleProps, ICartesianChartStyles } from './CartesianChart.types';\nimport { HighContrastSelector } from '@fluentui/react/lib/Styling';\nimport { isIE11 } from '@fluentui/react';\nimport { getAxisTitleStyle, getTooltipStyle } from '../../utilities/index';\n\nconst isIE11Var: boolean = isIE11();\n\nexport const getStyles = (props: ICartesianChartStyleProps): ICartesianChartStyles => {\n const {\n className,\n theme,\n isRtl,\n shouldHighlight,\n href,\n lineColor = 'transparent',\n toDrawShape,\n enableReflow,\n } = props;\n const { fonts } = theme!;\n return {\n root: [\n theme.fonts.medium,\n {\n display: 'flex',\n width: '100%',\n height: '100%',\n flexDirection: 'column',\n overflow: 'hidden',\n },\n className,\n ],\n chartWrapper: {\n ...(enableReflow ? { overflow: 'auto' } : {}),\n },\n axisTitle: getAxisTitleStyle(theme!, theme.fonts.xSmall),\n axisAnnotation: getAxisTitleStyle(theme!, theme.fonts.small),\n xAxis: {\n selectors: {\n text: [\n theme.fonts.tiny,\n {\n fill: theme.semanticColors.bodyText,\n fontWeight: '600',\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n },\n ],\n line: {\n opacity: 0.2,\n stroke: theme.semanticColors.bodyText,\n width: '1px',\n selectors: {\n [HighContrastSelector]: {\n opacity: 0.1,\n stroke: 'CanvasText',\n },\n },\n },\n path: {\n display: 'none',\n },\n },\n },\n yAxis: {\n selectors: {\n text: [\n theme.fonts.tiny,\n {\n fill: theme.semanticColors.bodyText,\n fontWeight: '600',\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n },\n ],\n path: {\n display: 'none',\n },\n line: {\n opacity: 0.2,\n stroke: theme.semanticColors.bodyText,\n selectors: {\n [HighContrastSelector]: {\n opacity: 0.1,\n stroke: 'CanvasText',\n },\n },\n },\n g: [\n isRtl &&\n !isIE11Var && {\n textAnchor: 'end',\n },\n ],\n },\n },\n\n opacityChangeOnHover: {\n opacity: shouldHighlight ? '' : '0.1',\n cursor: href ? 'pointer' : 'default',\n },\n\n legendContainer: [\n {\n marginTop: '8px',\n marginLeft: '20px',\n },\n ],\n calloutContentRoot: [\n {\n display: 'grid',\n overflow: 'hidden',\n padding: '11px 16px 10px 16px',\n backgroundColor: theme.semanticColors.bodyBackground,\n backgroundBlendMode: 'normal, luminosity',\n },\n ],\n calloutDateTimeContainer: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n },\n calloutContentX: [\n {\n ...fonts.small,\n lineHeight: '16px',\n opacity: '0.85',\n color: theme.semanticColors.bodySubtext,\n },\n ],\n calloutBlockContainer: [\n theme.fonts.mediumPlus,\n {\n marginTop: '13px',\n color: theme.semanticColors.bodyText,\n },\n !toDrawShape && {\n selectors: {\n [HighContrastSelector]: {\n forcedColorAdjust: 'none',\n },\n },\n borderLeft: `4px solid ${lineColor}`,\n paddingLeft: '8px',\n },\n toDrawShape && {\n display: 'flex',\n },\n ],\n shapeStyles: {\n marginRight: '8px',\n },\n calloutlegendText: {\n ...fonts.small,\n lineHeight: '16px',\n selectors: {\n [HighContrastSelector]: {\n color: 'CanvasText',\n },\n },\n color: theme.semanticColors.bodySubtext,\n },\n calloutContentY: [\n {\n ...fonts.mediumPlus,\n fontWeight: 'bold',\n lineHeight: '22px',\n selectors: {\n [HighContrastSelector]: {\n color: 'CanvasText',\n },\n },\n },\n ],\n descriptionMessage: [\n theme.fonts.small,\n {\n selectors: {\n [HighContrastSelector]: {\n color: 'CanvasText',\n },\n },\n color: theme.semanticColors.bodyText,\n marginTop: '10px',\n paddingTop: '10px',\n borderTop: `1px solid ${theme.semanticColors.menuDivider}`,\n },\n ],\n tooltip: getTooltipStyle(theme),\n svgTooltip: {\n fill: theme.semanticColors.bodyBackground,\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n };\n};\n"]}
@@ -1,7 +1,5 @@
1
- import { FontSizes, FontWeights, HighContrastSelector } from '@fluentui/react/lib/Styling';
2
- import { NeutralColors } from '@fluentui/react';
1
+ import { getAxisTitleStyle } from '../../utilities/index';
3
2
  export var getStyles = function (props) {
4
- var _a;
5
3
  var className = props.className, width = props.width, height = props.height, theme = props.theme;
6
4
  return {
7
5
  root: [
@@ -28,21 +26,7 @@ export var getStyles = function (props) {
28
26
  paddingTop: '16px',
29
27
  width: "".concat(width, "px"),
30
28
  },
31
- axisAnnotation: [
32
- theme.fonts.small,
33
- (_a = {
34
- textAlign: 'center',
35
- fontWeight: FontWeights.semibold,
36
- fontStyle: 'normal',
37
- lineHeight: FontSizes.medium,
38
- color: NeutralColors.gray160,
39
- fill: theme.semanticColors.bodyText
40
- },
41
- _a[HighContrastSelector] = {
42
- fill: 'CanvasText',
43
- },
44
- _a),
45
- ],
29
+ axisAnnotation: getAxisTitleStyle(theme, theme.fonts.small),
46
30
  };
47
31
  };
48
32
  //# sourceMappingURL=DonutChart.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DonutChart.styles.js","sourceRoot":"../src/","sources":["components/DonutChart/DonutChart.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAA4B;;IAC5C,IAAA,SAAS,GAA2B,KAAK,UAAhC,EAAE,KAAK,GAAoB,KAAK,MAAzB,EAAE,MAAM,GAAY,KAAK,OAAjB,EAAE,KAAK,GAAK,KAAK,MAAV,CAAW;IAClD,OAAO;QACL,IAAI,EAAE;YACJ,KAAK,CAAC,KAAK,CAAC,MAAM;YAClB,eAAe;YACf;gBACE,UAAU,EAAE,QAAQ;gBACpB,OAAO,EAAE,MAAM;gBACf,aAAa,EAAE,QAAQ;gBACvB,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;aACf;YACD,SAAS;SACV;QACD,KAAK,EAAE;YACL,KAAK,OAAA;YACL,MAAM,QAAA;YACN,SAAS,EAAE,aAAa;YACxB,QAAQ,EAAE,SAAS;YACnB,eAAe,EAAE,QAAQ;YACzB,OAAO,EAAE,OAAO;SACjB;QACD,eAAe,EAAE;YACf,UAAU,EAAE,MAAM;YAClB,KAAK,EAAE,UAAG,KAAK,OAAI;SACpB;QACD,cAAc,EAAE;YACd,KAAK,CAAC,KAAK,CAAC,KAAK;;oBAEf,SAAS,EAAE,QAAQ;oBACnB,UAAU,EAAE,WAAW,CAAC,QAAQ;oBAChC,SAAS,EAAE,QAAQ;oBACnB,UAAU,EAAE,SAAS,CAAC,MAAM;oBAC5B,KAAK,EAAE,aAAa,CAAC,OAAO;oBAC5B,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ;;gBACnC,GAAC,oBAAoB,IAAG;oBACtB,IAAI,EAAE,YAAY;iBACnB;;SAEJ;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IDonutChartStyleProps, IDonutChartStyles } from './DonutChart.types';\nimport { FontSizes, FontWeights, HighContrastSelector } from '@fluentui/react/lib/Styling';\nimport { NeutralColors } from '@fluentui/react';\n\nexport const getStyles = (props: IDonutChartStyleProps): IDonutChartStyles => {\n const { className, width, height, theme } = props;\n return {\n root: [\n theme.fonts.medium,\n 'ms-DonutChart',\n {\n alignItems: 'center',\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n height: '100%',\n },\n className,\n ],\n chart: {\n width,\n height,\n boxSizing: 'content-box',\n overflow: 'visible',\n alignmentAdjust: 'center',\n display: 'block',\n },\n legendContainer: {\n paddingTop: '16px',\n width: `${width}px`,\n },\n axisAnnotation: [\n theme.fonts.small,\n {\n textAlign: 'center',\n fontWeight: FontWeights.semibold,\n fontStyle: 'normal',\n lineHeight: FontSizes.medium,\n color: NeutralColors.gray160,\n fill: theme.semanticColors.bodyText,\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n ],\n };\n};\n"]}
1
+ {"version":3,"file":"DonutChart.styles.js","sourceRoot":"../src/","sources":["components/DonutChart/DonutChart.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAA4B;IAC5C,IAAA,SAAS,GAA2B,KAAK,UAAhC,EAAE,KAAK,GAAoB,KAAK,MAAzB,EAAE,MAAM,GAAY,KAAK,OAAjB,EAAE,KAAK,GAAK,KAAK,MAAV,CAAW;IAClD,OAAO;QACL,IAAI,EAAE;YACJ,KAAK,CAAC,KAAK,CAAC,MAAM;YAClB,eAAe;YACf;gBACE,UAAU,EAAE,QAAQ;gBACpB,OAAO,EAAE,MAAM;gBACf,aAAa,EAAE,QAAQ;gBACvB,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;aACf;YACD,SAAS;SACV;QACD,KAAK,EAAE;YACL,KAAK,OAAA;YACL,MAAM,QAAA;YACN,SAAS,EAAE,aAAa;YACxB,QAAQ,EAAE,SAAS;YACnB,eAAe,EAAE,QAAQ;YACzB,OAAO,EAAE,OAAO;SACjB;QACD,eAAe,EAAE;YACf,UAAU,EAAE,MAAM;YAClB,KAAK,EAAE,UAAG,KAAK,OAAI;SACpB;QACD,cAAc,EAAE,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC;KAC5D,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IDonutChartStyleProps, IDonutChartStyles } from './DonutChart.types';\nimport { getAxisTitleStyle } from '../../utilities/index';\n\nexport const getStyles = (props: IDonutChartStyleProps): IDonutChartStyles => {\n const { className, width, height, theme } = props;\n return {\n root: [\n theme.fonts.medium,\n 'ms-DonutChart',\n {\n alignItems: 'center',\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n height: '100%',\n },\n className,\n ],\n chart: {\n width,\n height,\n boxSizing: 'content-box',\n overflow: 'visible',\n alignmentAdjust: 'center',\n display: 'block',\n },\n legendContainer: {\n paddingTop: '16px',\n width: `${width}px`,\n },\n axisAnnotation: getAxisTitleStyle(theme, theme.fonts.small),\n };\n};\n"]}
@@ -1,23 +1,12 @@
1
- import { __assign } from "tslib";
2
- import { FontSizes, FontWeights, HighContrastSelector } from '@fluentui/react/lib/Styling';
1
+ import { getBarLabelStyle, getTooltipStyle } from '../../utilities/index';
3
2
  export var getStyles = function (props) {
4
- var _a;
5
3
  var theme = props.theme, href = props.href;
6
4
  return {
7
5
  opacityChangeOnHover: {
8
6
  cursor: href ? 'pointer' : 'default',
9
7
  },
10
- tooltip: __assign(__assign({}, theme.fonts.medium), { display: 'flex', flexDirection: 'column', padding: '8px', position: 'absolute', textAlign: 'center', top: '0px', background: theme.semanticColors.bodyBackground, borderRadius: '2px', pointerEvents: 'none', color: theme.semanticColors.bodyText }),
11
- barLabel: {
12
- fontSize: FontSizes.small,
13
- fontWeight: FontWeights.semibold,
14
- fill: theme.palette.neutralPrimary,
15
- selectors: (_a = {},
16
- _a[HighContrastSelector] = {
17
- fill: 'CanvasText',
18
- },
19
- _a),
20
- },
8
+ tooltip: getTooltipStyle(theme),
9
+ barLabel: getBarLabelStyle(theme),
21
10
  };
22
11
  };
23
12
  //# sourceMappingURL=GroupedVerticalBarChart.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GroupedVerticalBarChart.styles.js","sourceRoot":"../src/","sources":["components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAG3F,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAAyC;;IACzD,IAAA,KAAK,GAAW,KAAK,MAAhB,EAAE,IAAI,GAAK,KAAK,KAAV,CAAW;IAC9B,OAAO;QACL,oBAAoB,EAAE;YACpB,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;SACrC;QAED,OAAO,wBACF,KAAK,CAAC,KAAK,CAAC,MAAM,KACrB,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,QAAQ,EACvB,OAAO,EAAE,KAAK,EACd,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,QAAQ,EACnB,GAAG,EAAE,KAAK,EACV,UAAU,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,EAC/C,YAAY,EAAE,KAAK,EACnB,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,GACrC;QAED,QAAQ,EAAE;YACR,QAAQ,EAAE,SAAS,CAAC,KAAK;YACzB,UAAU,EAAE,WAAW,CAAC,QAAQ;YAChC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;YAClC,SAAS;gBACP,GAAC,oBAAoB,IAAG;oBACtB,IAAI,EAAE,YAAY;iBACnB;mBACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FontSizes, FontWeights, HighContrastSelector } from '@fluentui/react/lib/Styling';\nimport { IGroupedVerticalBarChartStyleProps, IGroupedVerticalBarChartStyles } from '../../index';\n\nexport const getStyles = (props: IGroupedVerticalBarChartStyleProps): IGroupedVerticalBarChartStyles => {\n const { theme, href } = props;\n return {\n opacityChangeOnHover: {\n cursor: href ? 'pointer' : 'default',\n },\n\n tooltip: {\n ...theme.fonts.medium,\n display: 'flex',\n flexDirection: 'column',\n padding: '8px',\n position: 'absolute',\n textAlign: 'center',\n top: '0px',\n background: theme.semanticColors.bodyBackground,\n borderRadius: '2px',\n pointerEvents: 'none',\n color: theme.semanticColors.bodyText,\n },\n\n barLabel: {\n fontSize: FontSizes.small,\n fontWeight: FontWeights.semibold,\n fill: theme.palette.neutralPrimary,\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n },\n };\n};\n"]}
1
+ {"version":3,"file":"GroupedVerticalBarChart.styles.js","sourceRoot":"../src/","sources":["components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE1E,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAAyC;IACzD,IAAA,KAAK,GAAW,KAAK,MAAhB,EAAE,IAAI,GAAK,KAAK,KAAV,CAAW;IAC9B,OAAO;QACL,oBAAoB,EAAE;YACpB,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;SACrC;QACD,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC;QAC/B,QAAQ,EAAE,gBAAgB,CAAC,KAAK,CAAC;KAClC,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IGroupedVerticalBarChartStyleProps, IGroupedVerticalBarChartStyles } from '../../index';\nimport { getBarLabelStyle, getTooltipStyle } from '../../utilities/index';\n\nexport const getStyles = (props: IGroupedVerticalBarChartStyleProps): IGroupedVerticalBarChartStyles => {\n const { theme, href } = props;\n return {\n opacityChangeOnHover: {\n cursor: href ? 'pointer' : 'default',\n },\n tooltip: getTooltipStyle(theme),\n barLabel: getBarLabelStyle(theme),\n };\n};\n"]}
@@ -1,16 +1,8 @@
1
- import { __assign } from "tslib";
2
- import { HighContrastSelector } from '@fluentui/react/lib/Styling';
1
+ import { getMarkerLabelStyle, getTooltipStyle } from '../../utilities/index';
3
2
  export var getStyles = function (props) {
4
- var _a;
5
3
  return {
6
- tooltip: __assign(__assign({}, props.theme.fonts.medium), { display: 'flex', flexDirection: 'column', padding: '8px', position: 'absolute', textAlign: 'center', top: '0px', background: props.theme.semanticColors.bodyBackground, borderRadius: '2px', pointerEvents: 'none', color: props.theme.semanticColors.bodyText }),
7
- markerLabel: {
8
- selectors: (_a = {},
9
- _a[HighContrastSelector] = {
10
- fill: 'CanvasText',
11
- },
12
- _a),
13
- },
4
+ tooltip: getTooltipStyle(props.theme),
5
+ markerLabel: getMarkerLabelStyle(props.theme),
14
6
  };
15
7
  };
16
8
  //# sourceMappingURL=LineChart.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LineChart.styles.js","sourceRoot":"../src/","sources":["components/LineChart/LineChart.styles.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGnE,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAA2B;;IACnD,OAAO;QACL,OAAO,wBACF,KAAK,CAAC,KAAM,CAAC,KAAK,CAAC,MAAM,KAC5B,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,QAAQ,EACvB,OAAO,EAAE,KAAK,EACd,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,QAAQ,EACnB,GAAG,EAAE,KAAK,EACV,UAAU,EAAE,KAAK,CAAC,KAAM,CAAC,cAAc,CAAC,cAAc,EACtD,YAAY,EAAE,KAAK,EACnB,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,KAAK,CAAC,KAAM,CAAC,cAAc,CAAC,QAAQ,GAC5C;QACD,WAAW,EAAE;YACX,SAAS;gBACP,GAAC,oBAAoB,IAAG;oBACtB,IAAI,EAAE,YAAY;iBACnB;mBACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { HighContrastSelector } from '@fluentui/react/lib/Styling';\nimport { ILineChartStyleProps, ILineChartStyles } from './LineChart.types';\n\nexport const getStyles = (props: ILineChartStyleProps): ILineChartStyles => {\n return {\n tooltip: {\n ...props.theme!.fonts.medium,\n display: 'flex',\n flexDirection: 'column',\n padding: '8px',\n position: 'absolute',\n textAlign: 'center',\n top: '0px',\n background: props.theme!.semanticColors.bodyBackground,\n borderRadius: '2px',\n pointerEvents: 'none',\n color: props.theme!.semanticColors.bodyText,\n },\n markerLabel: {\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n },\n };\n};\n"]}
1
+ {"version":3,"file":"LineChart.styles.js","sourceRoot":"../src/","sources":["components/LineChart/LineChart.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7E,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAA2B;IACnD,OAAO;QACL,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,KAAM,CAAC;QACtC,WAAW,EAAE,mBAAmB,CAAC,KAAK,CAAC,KAAM,CAAC;KAC/C,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { ILineChartStyleProps, ILineChartStyles } from './LineChart.types';\nimport { getMarkerLabelStyle, getTooltipStyle } from '../../utilities/index';\n\nexport const getStyles = (props: ILineChartStyleProps): ILineChartStyles => {\n return {\n tooltip: getTooltipStyle(props.theme!),\n markerLabel: getMarkerLabelStyle(props.theme!),\n };\n};\n"]}
@@ -1,5 +1,6 @@
1
1
  import { __assign } from "tslib";
2
2
  import { HighContrastSelector } from '@fluentui/react/lib/Styling';
3
+ import { getTooltipStyle } from '../../utilities/index';
3
4
  export var getStyles = function (props) {
4
5
  var _a, _b, _c;
5
6
  var className = props.className, theme = props.theme, pathColor = props.pathColor, enableReflow = props.enableReflow;
@@ -34,7 +35,7 @@ export var getStyles = function (props) {
34
35
  },
35
36
  _b),
36
37
  },
37
- toolTip: __assign(__assign({}, props.theme.fonts.medium), { display: 'flex', flexDirection: 'column', padding: '8px', position: 'absolute', textAlign: 'center', top: '0px', background: props.theme.semanticColors.bodyBackground, borderRadius: '2px', pointerEvents: 'none' }),
38
+ toolTip: getTooltipStyle(props.theme),
38
39
  nodeTextContainer: {
39
40
  selectors: {
40
41
  text: {
@@ -1 +1 @@
1
- {"version":3,"file":"SankeyChart.styles.js","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C,KAAM,CAAC,cAAc,CAAC,cAAc,EACtD,YAAY,EAAE,KAAK,EACnB,aAAa,EAAE,MAAM,GACtB;QACD,iBAAiB,EAAE;YACjB,SAAS,EAAE;gBACT,IAAI,EAAE;oBACJ,SAAS;wBACP,GAAC,oBAAoB,IAAG;4BACtB,IAAI,EAAE,YAAY;yBACnB;2BACF;iBACF;aACF;YAED,SAAS,EAAE,KAAK;YAChB,UAAU,EAAE,KAAK;YACjB,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,KAAK;SACnB;QACD,kBAAkB,EAAE;YAClB,SAAS,EAAE,OAAO,CAAC,UAAU;SAC9B;QACD,YAAY,eACP,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAC9C;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { ISankeyChartStyleProps, ISankeyChartStyles } from './SankeyChart.types';\nimport { HighContrastSelector } from '@fluentui/react/lib/Styling';\n\nexport const getStyles = (props: ISankeyChartStyleProps): ISankeyChartStyles => {\n const { className, theme, pathColor, enableReflow } = props;\n const { effects } = theme;\n return {\n root: [\n theme.fonts.medium,\n {\n display: 'flex',\n width: '100%',\n height: '100%',\n flexDirection: 'column',\n overflow: 'hidden',\n },\n className,\n ],\n links: {\n stroke: pathColor ? pathColor : theme.palette.black,\n fill: theme ? theme.semanticColors.bodyBackground : '#F5F5F5',\n strokeWidth: 3,\n selectors: {\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n },\n nodes: {\n fill: '#F5F5F5',\n selectors: {\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n },\n toolTip: {\n ...props.theme!.fonts.medium,\n display: 'flex',\n flexDirection: 'column',\n padding: '8px',\n position: 'absolute',\n textAlign: 'center',\n top: '0px',\n background: props.theme!.semanticColors.bodyBackground,\n borderRadius: '2px',\n pointerEvents: 'none',\n },\n nodeTextContainer: {\n selectors: {\n text: {\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n },\n },\n\n marginTop: '4px',\n marginLeft: '8px',\n marginBottom: '4px',\n marginRight: '8px',\n },\n calloutContentRoot: {\n boxShadow: effects.elevation4,\n },\n chartWrapper: {\n ...(enableReflow ? { overflow: 'auto' } : {}),\n },\n };\n};\n"]}
1
+ {"version":3,"file":"SankeyChart.styles.js","sourceRoot":"../src/","sources":["components/SankeyChart/SankeyChart.styles.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAA6B;;IAC7C,IAAA,SAAS,GAAqC,KAAK,UAA1C,EAAE,KAAK,GAA8B,KAAK,MAAnC,EAAE,SAAS,GAAmB,KAAK,UAAxB,EAAE,YAAY,GAAK,KAAK,aAAV,CAAW;IACpD,IAAA,OAAO,GAAK,KAAK,QAAV,CAAW;IAC1B,OAAO;QACL,IAAI,EAAE;YACJ,KAAK,CAAC,KAAK,CAAC,MAAM;YAClB;gBACE,OAAO,EAAE,MAAM;gBACf,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;gBACd,aAAa,EAAE,QAAQ;gBACvB,QAAQ,EAAE,QAAQ;aACnB;YACD,SAAS;SACV;QACD,KAAK,EAAE;YACL,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK;YACnD,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS;YAC7D,WAAW,EAAE,CAAC;YACd,SAAS;gBACP,GAAC,oBAAoB,IAAG;oBACtB,IAAI,EAAE,QAAQ;iBACf;mBACF;SACF;QACD,KAAK,EAAE;YACL,IAAI,EAAE,SAAS;YACf,SAAS;gBACP,GAAC,oBAAoB,IAAG;oBACtB,IAAI,EAAE,QAAQ;iBACf;mBACF;SACF;QACD,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,KAAM,CAAC;QACtC,iBAAiB,EAAE;YACjB,SAAS,EAAE;gBACT,IAAI,EAAE;oBACJ,SAAS;wBACP,GAAC,oBAAoB,IAAG;4BACtB,IAAI,EAAE,YAAY;yBACnB;2BACF;iBACF;aACF;YAED,SAAS,EAAE,KAAK;YAChB,UAAU,EAAE,KAAK;YACjB,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,KAAK;SACnB;QACD,kBAAkB,EAAE;YAClB,SAAS,EAAE,OAAO,CAAC,UAAU;SAC9B;QACD,YAAY,eACP,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAC9C;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { ISankeyChartStyleProps, ISankeyChartStyles } from './SankeyChart.types';\nimport { HighContrastSelector } from '@fluentui/react/lib/Styling';\nimport { getTooltipStyle } from '../../utilities/index';\n\nexport const getStyles = (props: ISankeyChartStyleProps): ISankeyChartStyles => {\n const { className, theme, pathColor, enableReflow } = props;\n const { effects } = theme;\n return {\n root: [\n theme.fonts.medium,\n {\n display: 'flex',\n width: '100%',\n height: '100%',\n flexDirection: 'column',\n overflow: 'hidden',\n },\n className,\n ],\n links: {\n stroke: pathColor ? pathColor : theme.palette.black,\n fill: theme ? theme.semanticColors.bodyBackground : '#F5F5F5',\n strokeWidth: 3,\n selectors: {\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n },\n nodes: {\n fill: '#F5F5F5',\n selectors: {\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n },\n toolTip: getTooltipStyle(props.theme!),\n nodeTextContainer: {\n selectors: {\n text: {\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n },\n },\n\n marginTop: '4px',\n marginLeft: '8px',\n marginBottom: '4px',\n marginRight: '8px',\n },\n calloutContentRoot: {\n boxShadow: effects.elevation4,\n },\n chartWrapper: {\n ...(enableReflow ? { overflow: 'auto' } : {}),\n },\n };\n};\n"]}
@@ -1,19 +1,8 @@
1
- import { __assign } from "tslib";
2
- import { FontSizes, HighContrastSelector } from '@fluentui/react/lib/Styling';
1
+ import { getMarkerLabelStyle, getTooltipStyle } from '../../utilities/index';
3
2
  export var getStyles = function (props) {
4
- var _a;
5
3
  return {
6
- tooltip: __assign(__assign({}, props.theme.fonts.medium), { display: 'flex', flexDirection: 'column', padding: '8px', position: 'absolute', textAlign: 'center', top: '0px', background: props.theme.semanticColors.bodyBackground, borderRadius: '2px', pointerEvents: 'none', color: props.theme.semanticColors.bodyText }),
7
- markerLabel: {
8
- fontSize: FontSizes.medium,
9
- fill: props.theme.semanticColors.bodyText,
10
- textAnchor: 'middle',
11
- selectors: (_a = {},
12
- _a[HighContrastSelector] = {
13
- fill: 'CanvasText',
14
- },
15
- _a),
16
- },
4
+ tooltip: getTooltipStyle(props.theme),
5
+ markerLabel: getMarkerLabelStyle(props.theme),
17
6
  };
18
7
  };
19
8
  //# sourceMappingURL=ScatterChart.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScatterChart.styles.js","sourceRoot":"../src/","sources":["components/ScatterChart/ScatterChart.styles.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAG9E,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAA8B;;IACtD,OAAO;QACL,OAAO,wBACF,KAAK,CAAC,KAAM,CAAC,KAAK,CAAC,MAAM,KAC5B,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,QAAQ,EACvB,OAAO,EAAE,KAAK,EACd,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,QAAQ,EACnB,GAAG,EAAE,KAAK,EACV,UAAU,EAAE,KAAK,CAAC,KAAM,CAAC,cAAc,CAAC,cAAc,EACtD,YAAY,EAAE,KAAK,EACnB,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,KAAK,CAAC,KAAM,CAAC,cAAc,CAAC,QAAQ,GAC5C;QACD,WAAW,EAAE;YACX,QAAQ,EAAE,SAAS,CAAC,MAAM;YAC1B,IAAI,EAAE,KAAK,CAAC,KAAM,CAAC,cAAc,CAAC,QAAQ;YAC1C,UAAU,EAAE,QAAQ;YACpB,SAAS;gBACP,GAAC,oBAAoB,IAAG;oBACtB,IAAI,EAAE,YAAY;iBACnB;mBACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FontSizes, HighContrastSelector } from '@fluentui/react/lib/Styling';\nimport { IScatterChartStyleProps, IScatterChartStyles } from './ScatterChart.types';\n\nexport const getStyles = (props: IScatterChartStyleProps): IScatterChartStyles => {\n return {\n tooltip: {\n ...props.theme!.fonts.medium,\n display: 'flex',\n flexDirection: 'column',\n padding: '8px',\n position: 'absolute',\n textAlign: 'center',\n top: '0px',\n background: props.theme!.semanticColors.bodyBackground,\n borderRadius: '2px',\n pointerEvents: 'none',\n color: props.theme!.semanticColors.bodyText,\n },\n markerLabel: {\n fontSize: FontSizes.medium,\n fill: props.theme!.semanticColors.bodyText,\n textAnchor: 'middle',\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n },\n };\n};\n"]}
1
+ {"version":3,"file":"ScatterChart.styles.js","sourceRoot":"../src/","sources":["components/ScatterChart/ScatterChart.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7E,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAA8B;IACtD,OAAO;QACL,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,KAAM,CAAC;QACtC,WAAW,EAAE,mBAAmB,CAAC,KAAK,CAAC,KAAM,CAAC;KAC/C,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IScatterChartStyleProps, IScatterChartStyles } from './ScatterChart.types';\nimport { getMarkerLabelStyle, getTooltipStyle } from '../../utilities/index';\n\nexport const getStyles = (props: IScatterChartStyleProps): IScatterChartStyles => {\n return {\n tooltip: getTooltipStyle(props.theme!),\n markerLabel: getMarkerLabelStyle(props.theme!),\n };\n};\n"]}
@@ -1,7 +1,5 @@
1
- import { __assign } from "tslib";
2
- import { FontSizes, FontWeights, HighContrastSelector } from '@fluentui/react/lib/Styling';
1
+ import { getBarLabelStyle, getTooltipStyle } from '../../utilities/index';
3
2
  export var getStyles = function (props) {
4
- var _a;
5
3
  var shouldHighlight = props.shouldHighlight, theme = props.theme;
6
4
  return {
7
5
  opacityChangeOnHover: {
@@ -18,17 +16,8 @@ export var getStyles = function (props) {
18
16
  transform: 'scaleX(-1)',
19
17
  },
20
18
  ],
21
- tooltip: __assign(__assign({}, theme.fonts.medium), { display: 'flex', flexDirection: 'column', padding: '8px', position: 'absolute', textAlign: 'center', top: '0px', background: theme.semanticColors.bodyBackground, borderRadius: '2px', pointerEvents: 'none', color: theme.semanticColors.bodyText }),
22
- barLabel: {
23
- fontSize: FontSizes.small,
24
- fontWeight: FontWeights.semibold,
25
- fill: theme.palette.neutralPrimary,
26
- selectors: (_a = {},
27
- _a[HighContrastSelector] = {
28
- fill: 'CanvasText',
29
- },
30
- _a),
31
- },
19
+ tooltip: getTooltipStyle(theme),
20
+ barLabel: getBarLabelStyle(theme),
32
21
  };
33
22
  };
34
23
  //# sourceMappingURL=VerticalBarChart.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VerticalBarChart.styles.js","sourceRoot":"../src/","sources":["components/VerticalBarChart/VerticalBarChart.styles.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAG3F,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAAkC;;IAClD,IAAA,eAAe,GAAY,KAAK,gBAAjB,EAAE,KAAK,GAAK,KAAK,MAAV,CAAW;IACzC,OAAO;QACL,oBAAoB,EAAE;YACpB,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;SACtC;QAED,UAAU,EAAE,EAAE;QAEd,UAAU,EAAE;YACV;gBACE,SAAS,EAAE,YAAY;aACxB;SACF;QACD,WAAW,EAAE;YACX;gBACE,SAAS,EAAE,YAAY;aACxB;SACF;QAED,OAAO,wBACF,KAAK,CAAC,KAAK,CAAC,MAAM,KACrB,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,QAAQ,EACvB,OAAO,EAAE,KAAK,EACd,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,QAAQ,EACnB,GAAG,EAAE,KAAK,EACV,UAAU,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,EAC/C,YAAY,EAAE,KAAK,EACnB,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,GACrC;QAED,QAAQ,EAAE;YACR,QAAQ,EAAE,SAAS,CAAC,KAAK;YACzB,UAAU,EAAE,WAAW,CAAC,QAAQ;YAChC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;YAClC,SAAS;gBACP,GAAC,oBAAoB,IAAG;oBACtB,IAAI,EAAE,YAAY;iBACnB;mBACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FontSizes, FontWeights, HighContrastSelector } from '@fluentui/react/lib/Styling';\nimport { IVerticalBarChartStyleProps, IVerticalBarChartStyles } from '../../index';\n\nexport const getStyles = (props: IVerticalBarChartStyleProps): IVerticalBarChartStyles => {\n const { shouldHighlight, theme } = props;\n return {\n opacityChangeOnHover: {\n opacity: shouldHighlight ? '' : '0.1',\n },\n\n xAxisTicks: [],\n\n yAxisTicks: [\n {\n transform: 'scaleX(-1)',\n },\n ],\n yAxisDomain: [\n {\n transform: 'scaleX(-1)',\n },\n ],\n\n tooltip: {\n ...theme.fonts.medium,\n display: 'flex',\n flexDirection: 'column',\n padding: '8px',\n position: 'absolute',\n textAlign: 'center',\n top: '0px',\n background: theme.semanticColors.bodyBackground,\n borderRadius: '2px',\n pointerEvents: 'none',\n color: theme.semanticColors.bodyText,\n },\n\n barLabel: {\n fontSize: FontSizes.small,\n fontWeight: FontWeights.semibold,\n fill: theme.palette.neutralPrimary,\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n },\n };\n};\n"]}
1
+ {"version":3,"file":"VerticalBarChart.styles.js","sourceRoot":"../src/","sources":["components/VerticalBarChart/VerticalBarChart.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE1E,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAAkC;IAClD,IAAA,eAAe,GAAY,KAAK,gBAAjB,EAAE,KAAK,GAAK,KAAK,MAAV,CAAW;IACzC,OAAO;QACL,oBAAoB,EAAE;YACpB,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;SACtC;QAED,UAAU,EAAE,EAAE;QAEd,UAAU,EAAE;YACV;gBACE,SAAS,EAAE,YAAY;aACxB;SACF;QACD,WAAW,EAAE;YACX;gBACE,SAAS,EAAE,YAAY;aACxB;SACF;QACD,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC;QAC/B,QAAQ,EAAE,gBAAgB,CAAC,KAAK,CAAC;KAClC,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IVerticalBarChartStyleProps, IVerticalBarChartStyles } from '../../index';\nimport { getBarLabelStyle, getTooltipStyle } from '../../utilities/index';\n\nexport const getStyles = (props: IVerticalBarChartStyleProps): IVerticalBarChartStyles => {\n const { shouldHighlight, theme } = props;\n return {\n opacityChangeOnHover: {\n opacity: shouldHighlight ? '' : '0.1',\n },\n\n xAxisTicks: [],\n\n yAxisTicks: [\n {\n transform: 'scaleX(-1)',\n },\n ],\n yAxisDomain: [\n {\n transform: 'scaleX(-1)',\n },\n ],\n tooltip: getTooltipStyle(theme),\n barLabel: getBarLabelStyle(theme),\n };\n};\n"]}
@@ -1,24 +1,13 @@
1
- import { __assign } from "tslib";
2
- import { FontSizes, FontWeights, HighContrastSelector } from '@fluentui/react/lib/Styling';
1
+ import { getBarLabelStyle, getTooltipStyle } from '../../utilities/index';
3
2
  export var getStyles = function (props) {
4
- var _a;
5
3
  var shouldHighlight = props.shouldHighlight, href = props.href, theme = props.theme;
6
4
  return {
7
5
  opacityChangeOnHover: {
8
6
  opacity: shouldHighlight ? '' : '0.1',
9
7
  cursor: href ? 'pointer' : 'default',
10
8
  },
11
- tooltip: __assign(__assign({}, theme.fonts.medium), { display: 'flex', flexDirection: 'column', padding: '8px', position: 'absolute', textAlign: 'center', top: '0px', background: theme.semanticColors.bodyBackground, borderRadius: '2px', pointerEvents: 'none', color: theme.semanticColors.bodyText }),
12
- barLabel: {
13
- fontSize: FontSizes.small,
14
- fontWeight: FontWeights.semibold,
15
- fill: theme.palette.neutralPrimary,
16
- selectors: (_a = {},
17
- _a[HighContrastSelector] = {
18
- fill: 'CanvasText',
19
- },
20
- _a),
21
- },
9
+ tooltip: getTooltipStyle(theme),
10
+ barLabel: getBarLabelStyle(theme),
22
11
  };
23
12
  };
24
13
  //# sourceMappingURL=VerticalStackedBarChart.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VerticalStackedBarChart.styles.js","sourceRoot":"../src/","sources":["components/VerticalStackedBarChart/VerticalStackedBarChart.styles.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAG3F,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAAyC;;IACzD,IAAA,eAAe,GAAkB,KAAK,gBAAvB,EAAE,IAAI,GAAY,KAAK,KAAjB,EAAE,KAAK,GAAK,KAAK,MAAV,CAAW;IAC/C,OAAO;QACL,oBAAoB,EAAE;YACpB,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;YACrC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;SACrC;QAED,OAAO,wBACF,KAAK,CAAC,KAAK,CAAC,MAAM,KACrB,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,QAAQ,EACvB,OAAO,EAAE,KAAK,EACd,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,QAAQ,EACnB,GAAG,EAAE,KAAK,EACV,UAAU,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,EAC/C,YAAY,EAAE,KAAK,EACnB,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,GACrC;QAED,QAAQ,EAAE;YACR,QAAQ,EAAE,SAAS,CAAC,KAAK;YACzB,UAAU,EAAE,WAAW,CAAC,QAAQ;YAChC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;YAClC,SAAS;gBACP,GAAC,oBAAoB,IAAG;oBACtB,IAAI,EAAE,YAAY;iBACnB;mBACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FontSizes, FontWeights, HighContrastSelector } from '@fluentui/react/lib/Styling';\nimport { IVerticalStackedBarChartStyleProps, IVerticalStackedBarChartStyles } from './VerticalStackedBarChart.types';\n\nexport const getStyles = (props: IVerticalStackedBarChartStyleProps): IVerticalStackedBarChartStyles => {\n const { shouldHighlight, href, theme } = props;\n return {\n opacityChangeOnHover: {\n opacity: shouldHighlight ? '' : '0.1',\n cursor: href ? 'pointer' : 'default',\n },\n\n tooltip: {\n ...theme.fonts.medium,\n display: 'flex',\n flexDirection: 'column',\n padding: '8px',\n position: 'absolute',\n textAlign: 'center',\n top: '0px',\n background: theme.semanticColors.bodyBackground,\n borderRadius: '2px',\n pointerEvents: 'none',\n color: theme.semanticColors.bodyText,\n },\n\n barLabel: {\n fontSize: FontSizes.small,\n fontWeight: FontWeights.semibold,\n fill: theme.palette.neutralPrimary,\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n },\n };\n};\n"]}
1
+ {"version":3,"file":"VerticalStackedBarChart.styles.js","sourceRoot":"../src/","sources":["components/VerticalStackedBarChart/VerticalStackedBarChart.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE1E,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAAyC;IACzD,IAAA,eAAe,GAAkB,KAAK,gBAAvB,EAAE,IAAI,GAAY,KAAK,KAAjB,EAAE,KAAK,GAAK,KAAK,MAAV,CAAW;IAC/C,OAAO;QACL,oBAAoB,EAAE;YACpB,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;YACrC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;SACrC;QACD,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC;QAC/B,QAAQ,EAAE,gBAAgB,CAAC,KAAK,CAAC;KAClC,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IVerticalStackedBarChartStyleProps, IVerticalStackedBarChartStyles } from './VerticalStackedBarChart.types';\nimport { getBarLabelStyle, getTooltipStyle } from '../../utilities/index';\n\nexport const getStyles = (props: IVerticalStackedBarChartStyleProps): IVerticalStackedBarChartStyles => {\n const { shouldHighlight, href, theme } = props;\n return {\n opacityChangeOnHover: {\n opacity: shouldHighlight ? '' : '0.1',\n cursor: href ? 'pointer' : 'default',\n },\n tooltip: getTooltipStyle(theme),\n barLabel: getBarLabelStyle(theme),\n };\n};\n"]}
@@ -0,0 +1,6 @@
1
+ import { IStyle, ITheme } from '@fluentui/react/lib/Styling';
2
+ import type { IRawStyle } from '@fluentui/merge-styles';
3
+ export declare const getTooltipStyle: (theme: ITheme) => IStyle;
4
+ export declare const getAxisTitleStyle: (theme: ITheme, font: IRawStyle) => IStyle;
5
+ export declare const getBarLabelStyle: (theme: ITheme) => IStyle;
6
+ export declare const getMarkerLabelStyle: (theme: ITheme) => IStyle;
@@ -0,0 +1,51 @@
1
+ import { __assign } from "tslib";
2
+ import { FontSizes, FontWeights, HighContrastSelector } from '@fluentui/react/lib/Styling';
3
+ import { NeutralColors } from '@fluentui/react';
4
+ export var getTooltipStyle = function (theme) {
5
+ return __assign(__assign({}, theme.fonts.medium), { display: 'flex', flexDirection: 'column', padding: '8px', position: 'absolute', textAlign: 'center', top: '0px', background: theme.semanticColors.bodyBackground, borderRadius: '2px', pointerEvents: 'none', color: theme.semanticColors.bodyText });
6
+ };
7
+ export var getAxisTitleStyle = function (theme, font) {
8
+ var _a;
9
+ return [
10
+ font,
11
+ (_a = {
12
+ textAlign: 'center',
13
+ fontWeight: FontWeights.semibold,
14
+ fontStyle: 'normal',
15
+ lineHeight: FontSizes.medium,
16
+ color: NeutralColors.gray160,
17
+ fill: theme.semanticColors.bodyText
18
+ },
19
+ _a[HighContrastSelector] = {
20
+ fill: 'CanvasText',
21
+ },
22
+ _a),
23
+ ];
24
+ };
25
+ export var getBarLabelStyle = function (theme) {
26
+ var _a;
27
+ return {
28
+ fontSize: FontSizes.small,
29
+ fontWeight: FontWeights.semibold,
30
+ fill: theme.palette.neutralPrimary,
31
+ selectors: (_a = {},
32
+ _a[HighContrastSelector] = {
33
+ fill: 'CanvasText',
34
+ },
35
+ _a),
36
+ };
37
+ };
38
+ export var getMarkerLabelStyle = function (theme) {
39
+ var _a;
40
+ return {
41
+ fontSize: FontSizes.medium,
42
+ fill: theme.semanticColors.bodyText,
43
+ textAnchor: 'middle',
44
+ selectors: (_a = {},
45
+ _a[HighContrastSelector] = {
46
+ fill: 'CanvasText',
47
+ },
48
+ _a),
49
+ };
50
+ };
51
+ //# sourceMappingURL=Common.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Common.styles.js","sourceRo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B;eACF;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,mBAAmB,GAAG,UAAC,KAAa;;IAC/C,OAAO;QACL,QAAQ,EAAE,SAAS,CAAC,MAAM;QAC1B,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ;QACnC,UAAU,EAAE,QAAQ;QACpB,SAAS;YACP,GAAC,oBAAoB,IAAG;gBACtB,IAAI,EAAE,YAAY;aACnB;eACF;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IStyle, ITheme } from '@fluentui/react/lib/Styling';\nimport type { IRawStyle } from '@fluentui/merge-styles';\nimport { FontSizes, FontWeights, HighContrastSelector } from '@fluentui/react/lib/Styling';\nimport { NeutralColors } from '@fluentui/react';\n\nexport const getTooltipStyle = (theme: ITheme): IStyle => {\n return {\n ...theme.fonts.medium,\n display: 'flex',\n flexDirection: 'column',\n padding: '8px',\n position: 'absolute',\n textAlign: 'center',\n top: '0px',\n background: theme.semanticColors.bodyBackground,\n borderRadius: '2px',\n pointerEvents: 'none',\n color: theme.semanticColors.bodyText,\n };\n};\n\nexport const getAxisTitleStyle = (theme: ITheme, font: IRawStyle): IStyle => {\n return [\n font,\n {\n textAlign: 'center',\n fontWeight: FontWeights.semibold,\n fontStyle: 'normal',\n lineHeight: FontSizes.medium,\n color: NeutralColors.gray160,\n fill: theme.semanticColors.bodyText,\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n ];\n};\n\nexport const getBarLabelStyle = (theme: ITheme): IStyle => {\n return {\n fontSize: FontSizes.small,\n fontWeight: FontWeights.semibold,\n fill: theme.palette.neutralPrimary,\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n };\n};\n\nexport const getMarkerLabelStyle = (theme: ITheme): IStyle => {\n return {\n fontSize: FontSizes.medium,\n fill: theme.semanticColors.bodyText,\n textAnchor: 'middle',\n selectors: {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n };\n};\n"]}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ITooltipHost, ITooltipProps, TooltipDelay } from '@fluentui/react/lib/Tooltip';
3
3
  import { ITheme } from '@fluentui/react';
4
- interface ISVGTooltipTextProps {
4
+ export interface ISVGTooltipTextProps {
5
5
  /**
6
6
  * Number of milliseconds to delay closing the tooltip, so that the user has time to hover over
7
7
  * the tooltip and interact with it. Hovering over the tooltip will count as hovering over the