@fluentui/react-charts 0.0.0-nightly-20250423-1415.1 → 0.0.0-nightly-20250424-0405.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.
- package/CHANGELOG.md +16 -16
- package/dist/index.d.ts +4 -36
- package/lib/components/AreaChart/useAreaChartStyles.styles.js +0 -9
- package/lib/components/AreaChart/useAreaChartStyles.styles.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib/components/CommonComponents/ChartPopover.js +2 -2
- package/lib/components/CommonComponents/ChartPopover.js.map +1 -1
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.js +7 -123
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -1
- package/lib/components/CommonComponents/useChartPopoverStyles.styles.js +11 -22
- package/lib/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -1
- package/lib/components/DonutChart/Pie/usePieStyles.styles.js +2 -6
- package/lib/components/DonutChart/Pie/usePieStyles.styles.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.js +1 -1
- package/lib/components/GaugeChart/GaugeChart.js.map +1 -1
- package/lib/components/GaugeChart/useGaugeChartStyles.styles.js +13 -9
- package/lib/components/GaugeChart/useGaugeChartStyles.styles.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +0 -9
- package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +1 -1
- package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js +0 -9
- package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +1 -1
- package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +2 -9
- package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +0 -9
- package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +1 -1
- package/lib/components/Legends/useLegendsStyles.styles.js +2 -3
- package/lib/components/Legends/useLegendsStyles.styles.js.map +1 -1
- package/lib/components/LineChart/useLineChartStyles.styles.js +1 -10
- package/lib/components/LineChart/useLineChartStyles.styles.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.js +3 -2
- package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
- package/lib/components/ScatterChart/useScatterChartStyles.styles.js +1 -10
- package/lib/components/ScatterChart/useScatterChartStyles.styles.js.map +1 -1
- package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +3 -11
- package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +3 -11
- package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js +0 -9
- package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/ChartPopover.js +2 -2
- package/lib-commonjs/components/CommonComponents/ChartPopover.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js +8 -198
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js +12 -37
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js +3 -10
- package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.js +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js +14 -8
- package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +0 -9
- package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js +0 -9
- package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +2 -16
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +0 -9
- package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +1 -1
- package/lib-commonjs/components/Legends/useLegendsStyles.styles.js +2 -2
- package/lib-commonjs/components/Legends/useLegendsStyles.styles.js.map +1 -1
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js +1 -10
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.js +3 -2
- package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
- package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js +1 -10
- package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +4 -11
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +4 -11
- package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +1 -1
- package/package.json +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["ChartPopover.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Popover, PopoverSurface } from '@fluentui/react-popover';\nimport { mergeClasses } from '@griffel/react';\nimport type { PositioningVirtualElement } from '@fluentui/react-positioning';\nimport { tokens } from '@fluentui/react-theme';\nimport { useId } from '@fluentui/react-utilities';\nimport { getAccessibleDataObject, Points, pointTypes } from '../../utilities/index';\nimport { convertToLocaleString } from '../../utilities/locale-util';\nimport { Shape } from '../Legends/shape';\nimport { usePopoverStyles_unstable } from './useChartPopoverStyles.styles';\nimport { YValueHover } from './CartesianChart.types';\nimport { LegendShape } from '../Legends/Legends.types';\nimport { ChartPopoverProps } from './ChartPopover.types';\n\n/* This component is a wrapper over Popover component which implements the logic for rendering popovers for any chart\ncombining the logic for Callout and ChartHoverCard in v8 charts. */\nexport const ChartPopover: React.FunctionComponent<ChartPopoverProps> = React.forwardRef<\n HTMLDivElement,\n ChartPopoverProps\n>((props, forwardedRef) => {\n const virtualElement: PositioningVirtualElement = {\n getBoundingClientRect: () => ({\n top: props.clickPosition!.y,\n left: props.clickPosition!.x,\n right: props.clickPosition!.x,\n bottom: props.clickPosition!.y,\n x: props.clickPosition!.x,\n y: props.clickPosition!.y,\n width: 0,\n height: 0,\n }),\n };\n props = { ...props, ...props.customCallout?.customCalloutProps };\n const classes = usePopoverStyles_unstable(props);\n const legend = props.xCalloutValue ? props.xCalloutValue : props.legend;\n const YValue = props.yCalloutValue ? props.yCalloutValue : props.YValue;\n return (\n <div id={useId('callout')} ref={forwardedRef} className={classes.calloutContainer}>\n <Popover\n positioning={{ target: virtualElement, autoSize: 'always', offset: 20, coverTarget: false }}\n open={props.isPopoverOpen}\n inline\n >\n <PopoverSurface>\n {/** Given custom callout, then it will render */}\n {props.customCallout && props.customCallout.customizedCallout && props.customCallout.customizedCallout}\n {/** single x point its corresponding y points of all the bars/lines in chart will render in callout */}\n {(!props.customCallout || !props.customCallout.customizedCallout) &&\n props.isCalloutForStack &&\n _multiValueCallout()}\n {/** single x point its corresponding y point of single line/bar in the chart will render in callout */}\n {(!props.customCallout || !props.customCallout.customizedCallout) && !props.isCalloutForStack && (\n <div className={classes.calloutContentRoot}>\n <div className={classes.calloutDateTimeContainer}>\n <div className={classes.calloutContentX}>{props.XValue} </div>\n {/*TO DO if we add time for callout then will use this */}\n {/* <div className={classNames.calloutContentX}>07:00am</div> */}\n </div>\n <div\n className={classes.calloutInfoContainer}\n style={{\n ...(props.ratio && {\n display: 'flex',\n alignItems: 'flex-end',\n }),\n borderLeft: `4px solid ${props.color}`,\n }}\n >\n <div className={classes.calloutBlockContainer}>\n <div className={classes.calloutlegendText}>{convertToLocaleString(legend, props.culture)}</div>\n <div\n className={classes.calloutContentY}\n style={{ color: props.color ? props.color : tokens.colorNeutralForeground1 }}\n >\n {convertToLocaleString(YValue, props.culture)}\n </div>\n </div>\n {!!props.ratio && (\n <div className={classes.ratio}>\n <>\n <span className={classes.numerator}>{convertToLocaleString(props.ratio[0], props.culture)}</span>/\n <span className={classes.denominator}>\n {convertToLocaleString(props.ratio[1], props.culture)}\n </span>\n </>\n </div>\n )}\n </div>\n {!!props.descriptionMessage && (\n <div className={classes.descriptionMessage}>{props.descriptionMessage}</div>\n )}\n </div>\n )}\n </PopoverSurface>\n </Popover>\n </div>\n );\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n function _multiValueCallout() {\n const yValueHoverSubCountsExists: boolean = _yValueHoverSubCountsExists(props.YValueHover) ?? false;\n return (\n <div className={classes.calloutContentRoot}>\n <div\n className={classes.calloutDateTimeContainer}\n style={yValueHoverSubCountsExists ? { marginBottom: '11px' } : {}}\n >\n <div\n className={classes.calloutContentX}\n {...getAccessibleDataObject(props!.xAxisCalloutAccessibilityData, 'text', false)}\n >\n {convertToLocaleString(props!.hoverXValue, props.culture)}\n </div>\n </div>\n <div style={yValueHoverSubCountsExists ? { display: 'flex' } : {}}>\n {props!.YValueHover &&\n props!.YValueHover.map((yValue: YValueHover, index: number, yValues: YValueHover[]) => {\n const isLast: boolean = index + 1 === yValues.length;\n const { shouldDrawBorderBottom = false } = yValue;\n return (\n <div\n {...getAccessibleDataObject(yValue.callOutAccessibilityData, 'text', false)}\n key={`callout-content-${index}`}\n style={\n yValueHoverSubCountsExists\n ? {\n display: 'inline-block',\n ...(shouldDrawBorderBottom && {\n borderBottom: `1px solid ${tokens.colorNeutralStroke2}`,\n paddingBottom: '10px',\n }),\n }\n : {\n ...(shouldDrawBorderBottom && {\n borderBottom: `1px solid ${tokens.colorNeutralStroke2}`,\n paddingBottom: '10px',\n }),\n }\n }\n >\n {_getCalloutContent(yValue, index, yValueHoverSubCountsExists, isLast)}\n </div>\n );\n })}\n {!!props.descriptionMessage && <div className={classes.descriptionMessage}>{props.descriptionMessage}</div>}\n </div>\n </div>\n );\n }\n\n function _yValueHoverSubCountsExists(yValueHover?: YValueHover[]): boolean | undefined {\n return (\n yValueHover &&\n yValueHover.some(\n (yValue: {\n legend?: string;\n y?: number;\n color?: string;\n yAxisCalloutData?: string | { [id: string]: number };\n }) => yValue.yAxisCalloutData && typeof yValue.yAxisCalloutData !== 'string',\n )\n );\n }\n\n function _getCalloutContent(\n xValue: YValueHover,\n index: number,\n yValueHoverSubCountsExists: boolean,\n isLast: boolean,\n ): React.ReactNode {\n const marginStyle: React.CSSProperties = isLast ? {} : { marginRight: '16px' };\n const toDrawShape = xValue.index !== undefined && xValue.index !== -1;\n const { culture } = props;\n const yValue = convertToLocaleString(xValue.y, culture);\n if (!xValue.yAxisCalloutData || typeof xValue.yAxisCalloutData === 'string') {\n return (\n <div style={yValueHoverSubCountsExists ? marginStyle : {}}>\n {yValueHoverSubCountsExists && (\n <div className=\"ms-fontWeight-semibold\" style={{ fontSize: '12pt' }}>\n {xValue.legend!} ({yValue})\n </div>\n )}\n <div\n id={`${index}_${xValue.y}`}\n className={classes.calloutBlockContainer}\n style={{\n marginTop: props.XValue ? '13px' : 'unset',\n ...(!toDrawShape\n ? {\n borderLeft: `4px solid ${xValue.color}`,\n }\n : {}),\n }}\n >\n {toDrawShape && (\n <Shape\n svgProps={{\n className: classes.shapeStyles,\n }}\n pathProps={{ fill: xValue.color }}\n shape={Points[xValue.index! % Object.keys(pointTypes).length] as LegendShape}\n />\n )}\n <div\n className={mergeClasses(\n classes.calloutBlockContainer,\n toDrawShape\n ? classes.calloutBlockContainertoDrawShapetrue\n : classes.calloutBlockContainertoDrawShapefalse,\n )}\n >\n <div className={classes.calloutlegendText}> {xValue.legend}</div>\n <div className={classes.calloutContentY}>\n {convertToLocaleString(\n xValue.yAxisCalloutData ? xValue.yAxisCalloutData : xValue.y ?? xValue.data,\n culture,\n )}\n </div>\n </div>\n </div>\n </div>\n );\n } else {\n const subcounts: { [id: string]: number } = xValue.yAxisCalloutData as { [id: string]: number };\n return (\n <div style={marginStyle}>\n <div className=\"ms-fontWeight-semibold\" style={{ fontSize: '12pt' }}>\n {xValue.legend!} ({yValue})\n </div>\n {Object.keys(subcounts).map((subcountName: string) => {\n return (\n <div key={subcountName} className={classes.calloutBlockContainer}>\n <div className={classes.calloutlegendText}> {convertToLocaleString(subcountName, culture)}</div>\n <div\n className={classes.calloutContentY}\n style={{ color: props.color ? props.color : tokens.colorNeutralForeground1 }}\n >\n {convertToLocaleString(subcounts[subcountName], culture)}\n </div>\n </div>\n );\n })}\n </div>\n );\n }\n }\n});\nChartPopover.displayName = 'ChartPopover';\n"],"names":["ChartPopover","React","forwardRef","props","forwardedRef","virtualElement","getBoundingClientRect","top","clickPosition","y","left","x","right","bottom","width","height","customCallout","customCalloutProps","classes","usePopoverStyles_unstable","legend","xCalloutValue","YValue","yCalloutValue","createElement","div","id","useId","ref","className","calloutContainer","Popover","positioning","target","autoSize","offset","coverTarget","open","isPopoverOpen","inline","PopoverSurface","customizedCallout","isCalloutForStack","_multiValueCallout","calloutContentRoot","calloutDateTimeContainer","calloutContentX","XValue","calloutInfoContainer","style","ratio","display","alignItems","borderLeft","color","calloutBlockContainer","calloutlegendText","convertToLocaleString","culture","calloutContentY","tokens","colorNeutralForeground1","Fragment","span","numerator","denominator","descriptionMessage","_yValueHoverSubCountsExists","yValueHoverSubCountsExists","YValueHover","marginBottom","getAccessibleDataObject","xAxisCalloutAccessibilityData","hoverXValue","map","yValue","index","yValues","isLast","length","shouldDrawBorderBottom","callOutAccessibilityData","key","borderBottom","colorNeutralStroke2","paddingBottom","_getCalloutContent","yValueHover","some","yAxisCalloutData","xValue","marginStyle","marginRight","toDrawShape","undefined","fontSize","marginTop","Shape","svgProps","shapeStyles","pathProps","fill","shape","Points","Object","keys","pointTypes","mergeClasses","calloutBlockContainertoDrawShapetrue","calloutBlockContainertoDrawShapefalse","data","subcounts","subcountName","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAgBaA;;;eAAAA;;;;iEAhBU;8BACiB;wBACX;4BAEN;gCACD;uBACsC;4BACtB;uBAChB;6CACoB;AAOnC,MAAMA,eAAAA,WAAAA,GAA2DC,OAAMC,UAAU,CAGtF,CAACC,OAAOC;QAaeD;IAZvB,MAAME,iBAA4C;QAChDC,uBAAuB,IAAO,CAAA;gBAC5BC,KAAKJ,MAAMK,aAAa,CAAEC,CAAC;gBAC3BC,MAAMP,MAAMK,aAAa,CAAEG,CAAC;gBAC5BC,OAAOT,MAAMK,aAAa,CAAEG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AAAA,IAAAA,YAAYA,OAAOoB,IAAI,EAC3EpD;QAOd,OAAO;YACL,MAAMqD,YAAsCrB,OAAOD,gBAAgB;YACnE,OAAA,WAAA,GACExF,OAAAuB,aAAA,CAACC,OAAAA;gBAAIwB,OAAO0C;6BACV1F,OAAAuB,aAAA,CAACC,OAAAA;gBAAII,WAAU;gBAAyBoB,OAAO;oBAAE8C,UAAU;gBAAO;eAC/DL,OAAOtE,MAAM,EAAE,MAAGuD,QAAO,MAE3B6B,OAAOC,IAAI,CAACM,WAAWrC,GAAG,CAAC,CAACsC;gBAC3B,OAAA,WAAA,GACE/G,OAAAuB,aAAA,CAACC,OAAAA;oBAAIyD,KAAK8B;oBAAcnF,WAAWX,QAAQqC,qBAAqB;iCAC9DtD,OAAAuB,aAAA,CAACC,OAAAA;oBAAII,WAAWX,QAAQsC,iBAAiB;mBAAE,KAAEC,IAAAA,iCAAAA,EAAsBuD,cAActD,WAAAA,WAAAA,GACjFzD,OAAAuB,aAAA,CAACC,OAAAA;oBACCI,WAAWX,QAAQyC,eAAe;oBAClCV,OAAO;wBAAEK,OAAOnD,MAAMmD,KAAK,GAAGnD,MAAMmD,KAAK,GAAGM,kBAAAA,CAAOC,uBAAuB;oBAAC;mBAE1EJ,IAAAA,iCAAAA,EAAsBsD,SAAS,CAACC,aAAa,EAAEtD;YAIxD;QAGN;IACF;AACF;AACA1D,aAAaiH,WAAW,GAAG"}
|
|
1
|
+
{"version":3,"sources":["ChartPopover.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Popover, PopoverSurface } from '@fluentui/react-popover';\nimport { mergeClasses } from '@griffel/react';\nimport type { PositioningVirtualElement } from '@fluentui/react-positioning';\nimport { tokens } from '@fluentui/react-theme';\nimport { useId } from '@fluentui/react-utilities';\nimport { getAccessibleDataObject, Points, pointTypes } from '../../utilities/index';\nimport { convertToLocaleString } from '../../utilities/locale-util';\nimport { Shape } from '../Legends/shape';\nimport { usePopoverStyles_unstable } from './useChartPopoverStyles.styles';\nimport { YValueHover } from './CartesianChart.types';\nimport { LegendShape } from '../Legends/Legends.types';\nimport { ChartPopoverProps } from './ChartPopover.types';\n\n/* This component is a wrapper over Popover component which implements the logic for rendering popovers for any chart\ncombining the logic for Callout and ChartHoverCard in v8 charts. */\nexport const ChartPopover: React.FunctionComponent<ChartPopoverProps> = React.forwardRef<\n HTMLDivElement,\n ChartPopoverProps\n>((props, forwardedRef) => {\n const virtualElement: PositioningVirtualElement = {\n getBoundingClientRect: () => ({\n top: props.clickPosition!.y,\n left: props.clickPosition!.x,\n right: props.clickPosition!.x,\n bottom: props.clickPosition!.y,\n x: props.clickPosition!.x,\n y: props.clickPosition!.y,\n width: 0,\n height: 0,\n }),\n };\n props = { ...props, ...props.customCallout?.customCalloutProps };\n const classes = usePopoverStyles_unstable(props);\n const legend = props.xCalloutValue ? props.xCalloutValue : props.legend;\n const YValue = props.yCalloutValue ? props.yCalloutValue : props.YValue;\n return (\n <div id={useId('callout')} ref={forwardedRef} className={classes.calloutContainer}>\n <Popover\n positioning={{ target: virtualElement, autoSize: 'always', offset: 20, coverTarget: false }}\n open={props.isPopoverOpen}\n inline\n >\n <PopoverSurface>\n {/** Given custom callout, then it will render */}\n {props.customCallout && props.customCallout.customizedCallout && props.customCallout.customizedCallout}\n {/** single x point its corresponding y points of all the bars/lines in chart will render in callout */}\n {(!props.customCallout || !props.customCallout.customizedCallout) &&\n props.isCalloutForStack &&\n _multiValueCallout()}\n {/** single x point its corresponding y point of single line/bar in the chart will render in callout */}\n {(!props.customCallout || !props.customCallout.customizedCallout) && !props.isCalloutForStack && (\n <div className={classes.calloutContentRoot}>\n <div className={classes.calloutDateTimeContainer}>\n <div className={classes.calloutContentX}>{props.XValue} </div>\n {/*TO DO if we add time for callout then will use this */}\n {/* <div className={classNames.calloutContentX}>07:00am</div> */}\n </div>\n <div\n className={classes.calloutInfoContainer}\n style={{\n ...(props.ratio && {\n display: 'flex',\n alignItems: 'flex-end',\n }),\n borderInlineStart: `4px solid ${props.color}`,\n }}\n >\n <div className={classes.calloutBlockContainer}>\n <div className={classes.calloutlegendText}>{convertToLocaleString(legend, props.culture)}</div>\n <div\n className={classes.calloutContentY}\n style={{ color: props.color ? props.color : tokens.colorNeutralForeground1 }}\n >\n {convertToLocaleString(YValue, props.culture)}\n </div>\n </div>\n {!!props.ratio && (\n <div className={classes.ratio}>\n <>\n <span className={classes.numerator}>{convertToLocaleString(props.ratio[0], props.culture)}</span>/\n <span className={classes.denominator}>\n {convertToLocaleString(props.ratio[1], props.culture)}\n </span>\n </>\n </div>\n )}\n </div>\n {!!props.descriptionMessage && (\n <div className={classes.descriptionMessage}>{props.descriptionMessage}</div>\n )}\n </div>\n )}\n </PopoverSurface>\n </Popover>\n </div>\n );\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n function _multiValueCallout() {\n const yValueHoverSubCountsExists: boolean = _yValueHoverSubCountsExists(props.YValueHover) ?? false;\n return (\n <div className={classes.calloutContentRoot}>\n <div\n className={classes.calloutDateTimeContainer}\n style={yValueHoverSubCountsExists ? { marginBottom: '11px' } : {}}\n >\n <div\n className={classes.calloutContentX}\n {...getAccessibleDataObject(props!.xAxisCalloutAccessibilityData, 'text', false)}\n >\n {convertToLocaleString(props!.hoverXValue, props.culture)}\n </div>\n </div>\n <div style={yValueHoverSubCountsExists ? { display: 'flex' } : {}}>\n {props!.YValueHover &&\n props!.YValueHover.map((yValue: YValueHover, index: number, yValues: YValueHover[]) => {\n const isLast: boolean = index + 1 === yValues.length;\n const { shouldDrawBorderBottom = false } = yValue;\n return (\n <div\n {...getAccessibleDataObject(yValue.callOutAccessibilityData, 'text', false)}\n key={`callout-content-${index}`}\n style={\n yValueHoverSubCountsExists\n ? {\n display: 'inline-block',\n ...(shouldDrawBorderBottom && {\n borderBottom: `1px solid ${tokens.colorNeutralStroke2}`,\n paddingBottom: '10px',\n }),\n }\n : {\n ...(shouldDrawBorderBottom && {\n borderBottom: `1px solid ${tokens.colorNeutralStroke2}`,\n paddingBottom: '10px',\n }),\n }\n }\n >\n {_getCalloutContent(yValue, index, yValueHoverSubCountsExists, isLast)}\n </div>\n );\n })}\n {!!props.descriptionMessage && <div className={classes.descriptionMessage}>{props.descriptionMessage}</div>}\n </div>\n </div>\n );\n }\n\n function _yValueHoverSubCountsExists(yValueHover?: YValueHover[]): boolean | undefined {\n return (\n yValueHover &&\n yValueHover.some(\n (yValue: {\n legend?: string;\n y?: number;\n color?: string;\n yAxisCalloutData?: string | { [id: string]: number };\n }) => yValue.yAxisCalloutData && typeof yValue.yAxisCalloutData !== 'string',\n )\n );\n }\n\n function _getCalloutContent(\n xValue: YValueHover,\n index: number,\n yValueHoverSubCountsExists: boolean,\n isLast: boolean,\n ): React.ReactNode {\n const marginStyle: React.CSSProperties = isLast ? {} : { marginRight: '16px' };\n const toDrawShape = xValue.index !== undefined && xValue.index !== -1;\n const { culture } = props;\n const yValue = convertToLocaleString(xValue.y, culture);\n if (!xValue.yAxisCalloutData || typeof xValue.yAxisCalloutData === 'string') {\n return (\n <div style={yValueHoverSubCountsExists ? marginStyle : {}}>\n {yValueHoverSubCountsExists && (\n <div className=\"ms-fontWeight-semibold\" style={{ fontSize: '12pt' }}>\n {xValue.legend!} ({yValue})\n </div>\n )}\n <div\n id={`${index}_${xValue.y}`}\n className={classes.calloutBlockContainer}\n style={{\n marginTop: props.XValue ? '13px' : 'unset',\n ...(!toDrawShape\n ? {\n borderInlineStart: `4px solid ${xValue.color}`,\n }\n : {}),\n }}\n >\n {toDrawShape && (\n <Shape\n svgProps={{\n className: classes.shapeStyles,\n }}\n pathProps={{ fill: xValue.color }}\n shape={Points[xValue.index! % Object.keys(pointTypes).length] as LegendShape}\n />\n )}\n <div\n className={mergeClasses(\n classes.calloutBlockContainer,\n toDrawShape\n ? classes.calloutBlockContainertoDrawShapetrue\n : classes.calloutBlockContainertoDrawShapefalse,\n )}\n >\n <div className={classes.calloutlegendText}> {xValue.legend}</div>\n <div className={classes.calloutContentY}>\n {convertToLocaleString(\n xValue.yAxisCalloutData ? xValue.yAxisCalloutData : xValue.y ?? xValue.data,\n culture,\n )}\n </div>\n </div>\n </div>\n </div>\n );\n } else {\n const subcounts: { [id: string]: number } = xValue.yAxisCalloutData as { [id: string]: number };\n return (\n <div style={marginStyle}>\n <div className=\"ms-fontWeight-semibold\" style={{ fontSize: '12pt' }}>\n {xValue.legend!} ({yValue})\n </div>\n {Object.keys(subcounts).map((subcountName: string) => {\n return (\n <div key={subcountName} className={classes.calloutBlockContainer}>\n <div className={classes.calloutlegendText}> {convertToLocaleString(subcountName, culture)}</div>\n <div\n className={classes.calloutContentY}\n style={{ color: props.color ? props.color : tokens.colorNeutralForeground1 }}\n >\n {convertToLocaleString(subcounts[subcountName], culture)}\n </div>\n </div>\n );\n })}\n </div>\n );\n }\n }\n});\nChartPopover.displayName = 'ChartPopover';\n"],"names":["ChartPopover","React","forwardRef","props","forwardedRef","virtualElement","getBoundingClientRect","top","clickPosition","y","left","x","right","bottom","width","height","customCallout","customCalloutProps","classes","usePopoverStyles_unstable","legend","xCalloutValue","YValue","yCalloutValue","createElement","div","id","useId","ref","className","calloutContainer","Popover","positioning","target","autoSize","offset","coverTarget","open","isPopoverOpen","inline","PopoverSurface","customizedCallout","isCalloutForStack","_multiValueCallout","calloutContentRoot","calloutDateTimeContainer","calloutContentX","XValue","calloutInfoContainer","style","ratio","display","alignItems","borderInlineStart","color","calloutBlockContainer","calloutlegendText","convertToLocaleString","culture","calloutContentY","tokens","colorNeutralForeground1","Fragment","span","numerator","denominator","descriptionMessage","_yValueHoverSubCountsExists","yValueHoverSubCountsExists","YValueHover","marginBottom","getAccessibleDataObject","xAxisCalloutAccessibilityData","hoverXValue","map","yValue","index","yValues","isLast","length","shouldDrawBorderBottom","callOutAccessibilityData","key","borderBottom","colorNeutralStroke2","paddingBottom","_getCalloutContent","yValueHover","some","yAxisCalloutData","xValue","marginStyle","marginRight","toDrawShape","undefined","fontSize","marginTop","Shape","svgProps","shapeStyles","pathProps","fill","shape","Points","Object","keys","pointTypes","mergeClasses","calloutBlockContainertoDrawShapetrue","calloutBlockContainertoDrawShapefalse","data","subcounts","subcountName","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAgBaA;;;eAAAA;;;;iEAhBU;8BACiB;wBACX;4BAEN;gCACD;uBACsC;4BACtB;uBAChB;6CACoB;AAOnC,MAAMA,eAAAA,WAAAA,GAA2DC,OAAMC,UAAU,CAGtF,CAACC,OAAOC;QAaeD;IAZvB,MAAME,iBAA4C;QAChDC,uBAAuB,IAAO,CAAA;gBAC5BC,KAAKJ,MAAMK,aAAa,CAAEC,CAAC;gBAC3BC,MAAMP,MAAMK,aAAa,CAAEG,CAAC;gBAC5BC,OAAOT,MAAMK,aAAa,CAAEG,CAAC;gBAC7BE,QAAQV,MAAMK,aAAa,CAAEC,CAAC;gBAC9BE,GAAGR,MAAMK,aAAa,CAAEG,CAAC;gBACzBF,GAAGN,MAAMK,aAAa,CAAEC,CAAC;gBACzBK,OAAO;gBACPC,QAAQ;YACV,CAAA;IACF;IACAZ,QAAQ;QAAE,GAAGA,KAAK;WAAKA,CAAAA,uBAAAA,MAAMa,aAAa,AAAbA,MAAa,QAAnBb,yBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,qBAAqBc,kBAAkB;IAAC;IAC/D,MAAMC,UAAUC,IAAAA,sDAAAA,EAA0BhB;IAC1C,MAAMiB,SAASjB,MAAMkB,aAAa,GAAGlB,MAAMkB,aAAa,GAAGlB,MAAMiB,MAAM;IACvE,MAAME,SAASnB,MAAMoB,aAAa,GAAGpB,MAAMoB,aAAa,GAAGpB,MAAMmB,MAAM;IACvE,OAAA,W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A,iCAAAA,EAAsBuD,cAActD,WAAAA,WAAAA,GACjFzD,OAAAuB,aAAA,CAACC,OAAAA;oBACCI,WAAWX,QAAQyC,eAAe;oBAClCV,OAAO;wBAAEK,OAAOnD,MAAMmD,KAAK,GAAGnD,MAAMmD,KAAK,GAAGM,kBAAAA,CAAOC,uBAAuB;oBAAC;mBAE1EJ,IAAAA,iCAAAA,EAAsBsD,SAAS,CAACC,aAAa,EAAEtD;YAIxD;QAGN;IACF;AACF;AACA1D,aAAaiH,WAAW,GAAG"}
|
|
@@ -26,18 +26,9 @@ const cartesianchartClassNames = {
|
|
|
26
26
|
yAxis: 'fui-cart__yAxis',
|
|
27
27
|
opacityChangeOnHover: 'fui-cart__opacityChangeOnHover',
|
|
28
28
|
legendContainer: 'fui-cart__legendContainer',
|
|
29
|
-
calloutContentRoot: 'fui-cart__calloutContentRoot',
|
|
30
|
-
calloutDateTimeContainer: 'fui-cart__calloutDateTimeContainer',
|
|
31
|
-
calloutContentX: 'fui-cart__calloutContentX',
|
|
32
|
-
calloutBlockContainer: 'fui-cart__calloutBlockContainer',
|
|
33
|
-
calloutBlockContainertoDrawShapefalse: 'fui-cart__calloutBlockContainertoDrawShapefalse',
|
|
34
|
-
calloutBlockContainertoDrawShapetrue: 'fui-cart__calloutBlockContainertoDrawShapetrue',
|
|
35
29
|
shapeStyles: 'fui-cart__shapeStyles',
|
|
36
|
-
calloutlegendText: 'fui-cart__calloutlegendText',
|
|
37
|
-
calloutContentY: 'fui-cart__calloutContentY',
|
|
38
30
|
descriptionMessage: 'fui-cart__descriptionMessage',
|
|
39
31
|
hover: 'fui-cart__hover',
|
|
40
|
-
calloutInfoContainer: 'fui-cart__calloutInfoContainer',
|
|
41
32
|
tooltip: 'fui-cart__tooltip',
|
|
42
33
|
chartTitle: 'fui-cart__chartTitle'
|
|
43
34
|
};
|
|
@@ -78,14 +69,11 @@ const cartesianchartClassNames = {
|
|
|
78
69
|
D01gh: "f1wvrikb",
|
|
79
70
|
vxuu72: "fidmvdy",
|
|
80
71
|
lclgl4: "f1noc3f3",
|
|
81
|
-
|
|
82
|
-
s17mou: "f4w8oyz",
|
|
72
|
+
zp1vxd: "f44ebzg",
|
|
83
73
|
jxu3ei: "fkuun",
|
|
84
74
|
B3i31d3: "f1u7a78k",
|
|
85
75
|
Bhcy8il: "f1myyn02",
|
|
86
|
-
|
|
87
|
-
Bpf2t2a: "fs22wna",
|
|
88
|
-
J19x1g: "f19ju15u",
|
|
76
|
+
z3m6do: "f1oca6e6",
|
|
89
77
|
se2xxg: "f1x8lysa"
|
|
90
78
|
},
|
|
91
79
|
yAxis: {
|
|
@@ -94,13 +82,10 @@ const cartesianchartClassNames = {
|
|
|
94
82
|
vxuu72: "fidmvdy",
|
|
95
83
|
lclgl4: "f1noc3f3",
|
|
96
84
|
Bifops1: "fk6onyz",
|
|
97
|
-
|
|
98
|
-
s17mou: "f4w8oyz",
|
|
85
|
+
zp1vxd: "f44ebzg",
|
|
99
86
|
jxu3ei: "fkuun",
|
|
100
87
|
B3i31d3: "f1u7a78k",
|
|
101
|
-
|
|
102
|
-
Bpf2t2a: "fs22wna",
|
|
103
|
-
J19x1g: "f19ju15u",
|
|
88
|
+
z3m6do: "f1oca6e6",
|
|
104
89
|
se2xxg: "f1x8lysa"
|
|
105
90
|
},
|
|
106
91
|
rtl: {
|
|
@@ -117,92 +102,6 @@ const cartesianchartClassNames = {
|
|
|
117
102
|
"ff3wqvv",
|
|
118
103
|
"f1l2akhw"
|
|
119
104
|
]
|
|
120
|
-
},
|
|
121
|
-
calloutContentRoot: {
|
|
122
|
-
mc9l5x: "f13qh94s",
|
|
123
|
-
B68tc82: 0,
|
|
124
|
-
Bmxbyg5: 0,
|
|
125
|
-
Bpg54ce: "f1a3p1vp",
|
|
126
|
-
z8tnut: "f1dvrhzg",
|
|
127
|
-
z189sj: [
|
|
128
|
-
"fjnv7mu",
|
|
129
|
-
"fae8789"
|
|
130
|
-
],
|
|
131
|
-
Byoj8tv: "f1av7aef",
|
|
132
|
-
uwmqm3: [
|
|
133
|
-
"fae8789",
|
|
134
|
-
"fjnv7mu"
|
|
135
|
-
],
|
|
136
|
-
De3pzq: "fxugw4r",
|
|
137
|
-
jy2i9i: "fronft5"
|
|
138
|
-
},
|
|
139
|
-
calloutDateTimeContainer: {
|
|
140
|
-
mc9l5x: "f22iagw",
|
|
141
|
-
Beiy3e4: "f1063pyq",
|
|
142
|
-
Brf1p80: "f1869bpl"
|
|
143
|
-
},
|
|
144
|
-
calloutContentX: {
|
|
145
|
-
Bahqtrf: "fk6fouc",
|
|
146
|
-
Be2twd7: "fy9rknc",
|
|
147
|
-
Bhrd7zp: "figsok6",
|
|
148
|
-
Bg96gwp: "fwrc4pm",
|
|
149
|
-
abs64n: "fp25eh",
|
|
150
|
-
sj55zd: "fkfq4zb"
|
|
151
|
-
},
|
|
152
|
-
calloutBlockContainer: {
|
|
153
|
-
Bahqtrf: "fk6fouc",
|
|
154
|
-
Be2twd7: "fod5ikn",
|
|
155
|
-
Bhrd7zp: "figsok6",
|
|
156
|
-
Bg96gwp: "faaz57k",
|
|
157
|
-
B6of3ja: "f7jvbu2",
|
|
158
|
-
sj55zd: "fkfq4zb"
|
|
159
|
-
},
|
|
160
|
-
calloutBlockContainertoDrawShapefalse: {
|
|
161
|
-
B93v9kj: "f15mrrko",
|
|
162
|
-
ibv6hh: [
|
|
163
|
-
"frjpdoz",
|
|
164
|
-
"fm1xp1g"
|
|
165
|
-
],
|
|
166
|
-
uwmqm3: [
|
|
167
|
-
"f1f5gg8d",
|
|
168
|
-
"f1vdfbxk"
|
|
169
|
-
]
|
|
170
|
-
},
|
|
171
|
-
calloutBlockContainertoDrawShapetrue: {
|
|
172
|
-
mc9l5x: "f22iagw"
|
|
173
|
-
},
|
|
174
|
-
shapeStyles: {
|
|
175
|
-
t21cq0: [
|
|
176
|
-
"f1vcna3q",
|
|
177
|
-
"foyynoy"
|
|
178
|
-
]
|
|
179
|
-
},
|
|
180
|
-
calloutLegendText: {
|
|
181
|
-
Bahqtrf: "fk6fouc",
|
|
182
|
-
Be2twd7: "fy9rknc",
|
|
183
|
-
Bhrd7zp: "figsok6",
|
|
184
|
-
Bg96gwp: "fwrc4pm",
|
|
185
|
-
sj55zd: "fkfq4zb",
|
|
186
|
-
Bd6j3yi: "f5klfrb",
|
|
187
|
-
hbub2c: "f1f0smcx"
|
|
188
|
-
},
|
|
189
|
-
calloutContentY: {
|
|
190
|
-
Bahqtrf: "fk6fouc",
|
|
191
|
-
Be2twd7: "fod5ikn",
|
|
192
|
-
Bhrd7zp: "flh3ekv",
|
|
193
|
-
Bg96gwp: "faaz57k",
|
|
194
|
-
Bd6j3yi: "f5klfrb",
|
|
195
|
-
hbub2c: "f1f0smcx"
|
|
196
|
-
},
|
|
197
|
-
descriptionMessage: {
|
|
198
|
-
Bahqtrf: "fk6fouc",
|
|
199
|
-
Be2twd7: "fy9rknc",
|
|
200
|
-
Bhrd7zp: "figsok6",
|
|
201
|
-
Bg96gwp: "fwrc4pm",
|
|
202
|
-
sj55zd: "fkfq4zb",
|
|
203
|
-
B6of3ja: "f1gaxbfw",
|
|
204
|
-
z8tnut: "f1ngh7ph",
|
|
205
|
-
B4j52fo: "f1pgliyk"
|
|
206
105
|
}
|
|
207
106
|
}, {
|
|
208
107
|
d: [
|
|
@@ -238,97 +137,18 @@ const cartesianchartClassNames = {
|
|
|
238
137
|
".f1wvrikb text{font-size:var(--fontSizeBase100);}",
|
|
239
138
|
".fidmvdy text{font-weight:var(--fontWeightSemibold);}",
|
|
240
139
|
".f1noc3f3 text{line-height:var(--lineHeightBase100);}",
|
|
140
|
+
".f44ebzg text{forced-color-adjust:auto;}",
|
|
241
141
|
".fkuun line{opacity:0.2;}",
|
|
242
142
|
".f1u7a78k line{stroke:var(--colorNeutralForeground1);}",
|
|
243
143
|
".f1myyn02 line{width:1px;}",
|
|
144
|
+
".f1oca6e6 line{forced-color-adjust:auto;}",
|
|
244
145
|
".f1x8lysa path{display:none;}",
|
|
245
146
|
".f1j2g1si g{text-anchor:end;}",
|
|
246
147
|
".f9das1l{opacity:0.1;}",
|
|
247
148
|
".f158kwzp{cursor:default;}",
|
|
248
149
|
".frnwi6n{margin-top:var(--spacingVerticalS);}",
|
|
249
150
|
".ff3wqvv{margin-left:var(--spacingHorizontalXL);}",
|
|
250
|
-
".f1l2akhw{margin-right:var(--spacingHorizontalXL);}"
|
|
251
|
-
".f13qh94s{display:grid;}",
|
|
252
|
-
[
|
|
253
|
-
".f1a3p1vp{overflow:hidden;}",
|
|
254
|
-
{
|
|
255
|
-
p: -1
|
|
256
|
-
}
|
|
257
|
-
],
|
|
258
|
-
".f1dvrhzg{padding-top:11px 16px 10px 16px;}",
|
|
259
|
-
".fjnv7mu{padding-right:11px 16px 10px 16px;}",
|
|
260
|
-
".fae8789{padding-left:11px 16px 10px 16px;}",
|
|
261
|
-
".f1av7aef{padding-bottom:11px 16px 10px 16px;}",
|
|
262
|
-
".fxugw4r{background-color:var(--colorNeutralBackground1);}",
|
|
263
|
-
".fronft5{background-blend-mode:normal,luminosity;}",
|
|
264
|
-
".f1063pyq{flex-direction:row;}",
|
|
265
|
-
".f1869bpl{justify-content:space-between;}",
|
|
266
|
-
".fy9rknc{font-size:var(--fontSizeBase200);}",
|
|
267
|
-
".fwrc4pm{line-height:var(--lineHeightBase200);}",
|
|
268
|
-
".fp25eh{opacity:0.8;}",
|
|
269
|
-
".fod5ikn{font-size:var(--fontSizeBase400);}",
|
|
270
|
-
".faaz57k{line-height:var(--lineHeightBase400);}",
|
|
271
|
-
".f7jvbu2{margin-top:13px;}",
|
|
272
|
-
".frjpdoz{border-left-width:4px solid;}",
|
|
273
|
-
".fm1xp1g{border-right-width:4px solid;}",
|
|
274
|
-
".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",
|
|
275
|
-
".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",
|
|
276
|
-
".f1vcna3q{margin-right:var(--spacingHorizontalS);}",
|
|
277
|
-
".foyynoy{margin-left:var(--spacingHorizontalS);}",
|
|
278
|
-
".flh3ekv{font-weight:var(--fontWeightBold);}",
|
|
279
|
-
".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",
|
|
280
|
-
".f1ngh7ph{padding-top:var(--spacingVerticalMNudge);}",
|
|
281
|
-
".f1pgliyk{border-top-width:1px solid var(--colorNeutralStroke2);}"
|
|
282
|
-
],
|
|
283
|
-
m: [
|
|
284
|
-
[
|
|
285
|
-
"@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.f1rtcel9 text{fill:rgb(179, 179, 179);}}",
|
|
286
|
-
{
|
|
287
|
-
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
288
|
-
}
|
|
289
|
-
],
|
|
290
|
-
[
|
|
291
|
-
"@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.f4w8oyz text{forced-color-adjust:none;}}",
|
|
292
|
-
{
|
|
293
|
-
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
294
|
-
}
|
|
295
|
-
],
|
|
296
|
-
[
|
|
297
|
-
"@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.f1ypwncy line{opacity:0.1;}}",
|
|
298
|
-
{
|
|
299
|
-
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
300
|
-
}
|
|
301
|
-
],
|
|
302
|
-
[
|
|
303
|
-
"@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.fs22wna line{stroke:rgb(179, 179, 179);}}",
|
|
304
|
-
{
|
|
305
|
-
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
306
|
-
}
|
|
307
|
-
],
|
|
308
|
-
[
|
|
309
|
-
"@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.f19ju15u line{forced-color-adjust:none;}}",
|
|
310
|
-
{
|
|
311
|
-
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
312
|
-
}
|
|
313
|
-
],
|
|
314
|
-
[
|
|
315
|
-
"@media screen and (-ms-high-contrast: active),screen and (forced-colors: active){.f15mrrko{forced-color-adjust:none;}}",
|
|
316
|
-
{
|
|
317
|
-
m: "screen and (-ms-high-contrast: active), screen and (forced-colors: active)"
|
|
318
|
-
}
|
|
319
|
-
],
|
|
320
|
-
[
|
|
321
|
-
"@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.f5klfrb{color:rgb(255, 255, 255);}}",
|
|
322
|
-
{
|
|
323
|
-
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
324
|
-
}
|
|
325
|
-
],
|
|
326
|
-
[
|
|
327
|
-
"@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.f1f0smcx{forced-color-adjust:none;}}",
|
|
328
|
-
{
|
|
329
|
-
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
330
|
-
}
|
|
331
|
-
]
|
|
151
|
+
".f1l2akhw{margin-right:var(--spacingHorizontalXL);}"
|
|
332
152
|
]
|
|
333
153
|
});
|
|
334
154
|
const useCartesianChartStyles = (props)=>{
|
|
@@ -341,16 +161,6 @@ const useCartesianChartStyles = (props)=>{
|
|
|
341
161
|
xAxis: (0, _react.mergeClasses)(cartesianchartClassNames.xAxis, baseStyles.xAxis /*props.styles?.xAxis*/ ),
|
|
342
162
|
yAxis: (0, _react.mergeClasses)(cartesianchartClassNames.yAxis, baseStyles.yAxis, _useRtl ? baseStyles.rtl : baseStyles.ltr /*props.styles?.yAxis*/ ),
|
|
343
163
|
opacityChangeOnHover: (0, _react.mergeClasses)(cartesianchartClassNames.opacityChangeOnHover, baseStyles.opacityChangeOnHover /*props.styles?.opacityChangeOnHover*/ ),
|
|
344
|
-
legendContainer: (0, _react.mergeClasses)(cartesianchartClassNames.legendContainer, baseStyles.legendContainer /*props.styles?.legendContainer*/ )
|
|
345
|
-
calloutContentRoot: (0, _react.mergeClasses)(cartesianchartClassNames.calloutContentRoot, baseStyles.calloutContentRoot /*props.styles?. calloutContentRoot*/ ),
|
|
346
|
-
calloutDateTimeContainer: (0, _react.mergeClasses)(cartesianchartClassNames.calloutDateTimeContainer, baseStyles.calloutDateTimeContainer /*props.styles?.calloutDateTimeContainer*/ ),
|
|
347
|
-
calloutContentX: (0, _react.mergeClasses)(cartesianchartClassNames.calloutContentX, baseStyles.calloutContentX /*props.styles?.calloutContentX*/ ),
|
|
348
|
-
calloutBlockContainer: (0, _react.mergeClasses)(cartesianchartClassNames.calloutBlockContainer, baseStyles.calloutBlockContainer /*props.styles?.calloutBlockContainer*/ ),
|
|
349
|
-
calloutBlockContainertoDrawShapefalse: (0, _react.mergeClasses)(cartesianchartClassNames.calloutBlockContainertoDrawShapefalse, baseStyles.calloutBlockContainertoDrawShapefalse /*props.styles?.calloutBlockContainertoDrawShapefalse*/ ),
|
|
350
|
-
calloutBlockContainertoDrawShapetrue: (0, _react.mergeClasses)(cartesianchartClassNames.calloutBlockContainertoDrawShapetrue, baseStyles.calloutBlockContainertoDrawShapetrue /*props.styles?.calloutBlockContainertoDrawShapetrue*/ ),
|
|
351
|
-
shapeStyles: (0, _react.mergeClasses)(cartesianchartClassNames.shapeStyles, baseStyles.shapeStyles /*props.styles?.shapeStyles*/ ),
|
|
352
|
-
calloutlegendText: (0, _react.mergeClasses)(cartesianchartClassNames.calloutlegendText, baseStyles.calloutLegendText /*props.styles?.calloutlegendText*/ ),
|
|
353
|
-
calloutContentY: (0, _react.mergeClasses)(cartesianchartClassNames.calloutContentY, baseStyles.calloutContentY /*props.styles?.calloutContentY*/ ),
|
|
354
|
-
descriptionMessage: (0, _react.mergeClasses)(cartesianchartClassNames.descriptionMessage, baseStyles.descriptionMessage /*props.styles?. descriptionMessage*/ )
|
|
164
|
+
legendContainer: (0, _react.mergeClasses)(cartesianchartClassNames.legendContainer, baseStyles.legendContainer /*props.styles?.legendContainer*/ )
|
|
355
165
|
};
|
|
356
166
|
}; //# sourceMappingURL=useCartesianChartStyles.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useCartesianChartStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { HighContrastSelectorBlack, HighContrastSelector } from '../../utilities/index';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { useRtl } from '../../utilities/utilities';\n/**\n * @internal\n */ export const cartesianchartClassNames = {\n root: 'fui-cart__root',\n chartWrapper: 'fui-cart__chartWrapper',\n axisTitle: 'fui-cart__axisTitle',\n xAxis: 'fui-cart__xAxis',\n yAxis: 'fui-cart__yAxis',\n opacityChangeOnHover: 'fui-cart__opacityChangeOnHover',\n legendContainer: 'fui-cart__legendContainer',\n calloutContentRoot: 'fui-cart__calloutContentRoot',\n calloutDateTimeContainer: 'fui-cart__calloutDateTimeContainer',\n calloutContentX: 'fui-cart__calloutContentX',\n calloutBlockContainer: 'fui-cart__calloutBlockContainer',\n calloutBlockContainertoDrawShapefalse: 'fui-cart__calloutBlockContainertoDrawShapefalse',\n calloutBlockContainertoDrawShapetrue: 'fui-cart__calloutBlockContainertoDrawShapetrue',\n shapeStyles: 'fui-cart__shapeStyles',\n calloutlegendText: 'fui-cart__calloutlegendText',\n calloutContentY: 'fui-cart__calloutContentY',\n descriptionMessage: 'fui-cart__descriptionMessage',\n hover: 'fui-cart__hover',\n calloutInfoContainer: 'fui-cart__calloutInfoContainer',\n tooltip: 'fui-cart__tooltip',\n chartTitle: 'fui-cart__chartTitle'\n};\n/**\n * Base Styles\n */ const useStyles = makeStyles({\n root: {\n ...typographyStyles.body1,\n display: 'flex',\n width: '100%',\n height: '100%',\n flexDirection: 'column',\n overflow: 'hidden'\n },\n chartWrapper: {\n overflow: 'auto'\n },\n axisTitle: {\n ...typographyStyles.caption2Strong,\n fontStyle: 'normal',\n textAlign: 'center',\n color: tokens.colorNeutralForeground2,\n fill: tokens.colorNeutralForeground1\n },\n xAxis: {\n '& text': {\n fill: tokens.colorNeutralForeground1,\n ...typographyStyles.caption2Strong,\n [HighContrastSelectorBlack]: {\n fill: 'rgb(179, 179, 179)',\n forcedColorAdjust: 'none'\n }\n },\n '& line': {\n opacity: 0.2,\n stroke: tokens.colorNeutralForeground1,\n width: '1px',\n [HighContrastSelectorBlack]: {\n opacity: 0.1,\n stroke: 'rgb(179, 179, 179)',\n forcedColorAdjust: 'none'\n }\n },\n '& path': {\n display: 'none'\n }\n },\n yAxis: {\n '& text': {\n ...typographyStyles.caption2Strong,\n fill: tokens.colorNeutralForeground1,\n [HighContrastSelectorBlack]: {\n fill: 'rgb(179, 179, 179)',\n forcedColorAdjust: 'none'\n }\n },\n '& line': {\n opacity: 0.2,\n stroke: tokens.colorNeutralForeground1,\n [HighContrastSelectorBlack]: {\n opacity: 0.1,\n stroke: 'rgb(179, 179, 179)',\n forcedColorAdjust: 'none'\n }\n },\n '& path': {\n display: 'none'\n }\n },\n rtl: {\n '& g': {\n textAnchor: 'end'\n }\n },\n ltr: {},\n opacityChangeOnHover: {\n opacity: '0.1',\n cursor: 'default'\n },\n legendContainer: {\n marginTop: tokens.spacingVerticalS,\n marginLeft: tokens.spacingHorizontalXL\n },\n calloutContentRoot: {\n display: 'grid',\n overflow: 'hidden',\n ...shorthands.padding('11px 16px 10px 16px'),\n backgroundColor: tokens.colorNeutralBackground1,\n backgroundBlendMode: 'normal, luminosity'\n },\n calloutDateTimeContainer: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between'\n },\n calloutContentX: {\n ...typographyStyles.caption1,\n opacity: '0.8',\n color: tokens.colorNeutralForeground2\n },\n calloutBlockContainer: {\n ...typographyStyles.body2,\n marginTop: '13px',\n color: tokens.colorNeutralForeground2\n },\n calloutBlockContainertoDrawShapefalse: {\n [HighContrastSelector]: {\n forcedColorAdjust: 'none'\n },\n ...shorthands.borderLeft('4px solid'),\n paddingLeft: tokens.spacingHorizontalS\n },\n calloutBlockContainertoDrawShapetrue: {\n display: 'flex'\n },\n shapeStyles: {\n marginRight: tokens.spacingHorizontalS\n },\n calloutLegendText: {\n ...typographyStyles.caption1,\n color: tokens.colorNeutralForeground2,\n [HighContrastSelectorBlack]: {\n color: 'rgb(255, 255, 255)',\n forcedColorAdjust: 'none'\n }\n },\n calloutContentY: {\n ...typographyStyles.subtitle2Stronger,\n [HighContrastSelectorBlack]: {\n color: 'rgb(255, 255, 255)',\n forcedColorAdjust: 'none'\n }\n },\n descriptionMessage: {\n ...typographyStyles.caption1,\n color: tokens.colorNeutralForeground2,\n marginTop: tokens.spacingVerticalMNudge,\n paddingTop: tokens.spacingVerticalMNudge,\n ...shorthands.borderTop(`1px solid ${tokens.colorNeutralStroke2}`)\n }\n});\n/**\n * Apply styling to the Carousel slots based on the state\n */ export const useCartesianChartStyles = (props)=>{\n const _useRtl = useRtl();\n const baseStyles = useStyles();\n return {\n root: mergeClasses(cartesianchartClassNames.root, baseStyles.root /*props.styles?.root*/ ),\n chartWrapper: mergeClasses(cartesianchartClassNames.chartWrapper, baseStyles.chartWrapper /*props.styles?.chartWrapper*/ ),\n axisTitle: mergeClasses(cartesianchartClassNames.axisTitle, baseStyles.axisTitle /*props.styles?.axisTitle*/ ),\n xAxis: mergeClasses(cartesianchartClassNames.xAxis, baseStyles.xAxis /*props.styles?.xAxis*/ ),\n yAxis: mergeClasses(cartesianchartClassNames.yAxis, baseStyles.yAxis, _useRtl ? baseStyles.rtl : baseStyles.ltr /*props.styles?.yAxis*/ ),\n opacityChangeOnHover: mergeClasses(cartesianchartClassNames.opacityChangeOnHover, baseStyles.opacityChangeOnHover /*props.styles?.opacityChangeOnHover*/ ),\n legendContainer: mergeClasses(cartesianchartClassNames.legendContainer, baseStyles.legendContainer /*props.styles?.legendContainer*/ ),\n calloutContentRoot: mergeClasses(cartesianchartClassNames.calloutContentRoot, baseStyles.calloutContentRoot /*props.styles?. calloutContentRoot*/ ),\n calloutDateTimeContainer: mergeClasses(cartesianchartClassNames.calloutDateTimeContainer, baseStyles.calloutDateTimeContainer /*props.styles?.calloutDateTimeContainer*/ ),\n calloutContentX: mergeClasses(cartesianchartClassNames.calloutContentX, baseStyles.calloutContentX /*props.styles?.calloutContentX*/ ),\n calloutBlockContainer: mergeClasses(cartesianchartClassNames.calloutBlockContainer, baseStyles.calloutBlockContainer /*props.styles?.calloutBlockContainer*/ ),\n calloutBlockContainertoDrawShapefalse: mergeClasses(cartesianchartClassNames.calloutBlockContainertoDrawShapefalse, baseStyles.calloutBlockContainertoDrawShapefalse /*props.styles?.calloutBlockContainertoDrawShapefalse*/ ),\n calloutBlockContainertoDrawShapetrue: mergeClasses(cartesianchartClassNames.calloutBlockContainertoDrawShapetrue, baseStyles.calloutBlockContainertoDrawShapetrue /*props.styles?.calloutBlockContainertoDrawShapetrue*/ ),\n shapeStyles: mergeClasses(cartesianchartClassNames.shapeStyles, baseStyles.shapeStyles /*props.styles?.shapeStyles*/ ),\n calloutlegendText: mergeClasses(cartesianchartClassNames.calloutlegendText, baseStyles.calloutLegendText /*props.styles?.calloutlegendText*/ ),\n calloutContentY: mergeClasses(cartesianchartClassNames.calloutContentY, baseStyles.calloutContentY /*props.styles?.calloutContentY*/ ),\n descriptionMessage: mergeClasses(cartesianchartClassNames.descriptionMessage, baseStyles.descriptionMessage /*props.styles?. descriptionMessage*/ )\n };\n};\n"],"names":["cartesianchartClassNames","useCartesianChartStyles","root","chartWrapper","axisTitle","xAxis","yAxis","opacityChangeOnHover","legendContainer","calloutContentRoot","calloutDateTimeContainer","calloutContentX","calloutBlockContainer","calloutBlockContainertoDrawShapefalse","calloutBlockContainertoDrawShapetrue","shapeStyles","calloutlegendText","calloutContentY","descriptionMessage","hover","calloutInfoContainer","tooltip","chartTitle","useStyles","__styles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","mc9l5x","a9b677","Bqenvij","Beiy3e4","B68tc82","Bmxbyg5","Bpg54ce","B80ckks","fsow6f","sj55zd","Bkfmm31","Bifops1","lr70ht","D01gh","vxuu72","lclgl4","Dzfv0s","s17mou","jxu3ei","B3i31d3","Bhcy8il","t7r2jy","Bpf2t2a","J19x1g","se2xxg","rtl","Bkw34lo","ltr","abs64n","Bceei9c","B6of3ja","Frg6f3","z8tnut","z189sj","Byoj8tv","uwmqm3","De3pzq","jy2i9i","Brf1p80","B93v9kj","ibv6hh","t21cq0","calloutLegendText","Bd6j3yi","hbub2c","B4j52fo","d","p","m","props","_useRtl","useRtl","baseStyles","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAMiBA,wBAAwB;eAAxBA;;IAmKAC,uBAAuB;eAAvBA;;;uBAzKoC;2BAG9B;AAGZ,MAAMD,2BAA2B;IACxCE,MAAM;IACNC,cAAc;IACdC,WAAW;IACXC,OAAO;IACPC,OAAO;IACPC,sBAAsB;IACtBC,iBAAiB;IACjBC,oBAAoB;IACpBC,0BAA0B;IAC1BC,iBAAiB;IACjBC,uBAAuB;IACvBC,uCAAuC;IAC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B,CAAC,oCAAA;QAClHC,iBAAiB0E,IAAAA,mBAAY,EAAClF,yBAAyBQ,eAAe,EAAEyE,WAAWzE,eAAe,CAAC,+BAAA;QACnGC,oBAAoByE,IAAAA,mBAAY,EAAClF,yBAAyBS,kBAAkB,EAAEwE,WAAWxE,kBAAkB,CAAC,mCAAA;QAC5GC,0BAA0BwE,IAAAA,mBAAY,EAAClF,yBAAyBU,wBAAwB,EAAEuE,WAAWvE,wBAAwB,CAAC,wCAAA;QAC9HC,iBAAiBuE,IAAAA,mBAAY,EAAClF,yBAAyBW,eAAe,EAAEsE,WAAWtE,eAAe,CAAC,+BAAA;QACnGC,uBAAuBsE,IAAAA,mBAAY,EAAClF,yBAAyBY,qBAAqB,EAAEqE,WAAWrE,qBAAqB,CAAC,qCAAA;QACrHC,uCAAuCqE,IAAAA,mBAAY,EAAClF,yBAAyBa,qCAAqC,EAAEoE,WAAWpE,qCAAqC,CAAC,qDAAA;QACrKC,sCAAsCoE,IAAAA,mBAAY,EAAClF,yBAAyBc,oCAAoC,EAAEmE,WAAWnE,oCAAoC,CAAC,oDAAA;QAClKC,aAAamE,IAAAA,mBAAY,EAAClF,yBAAyBe,WAAW,EAAEkE,WAAWlE,WAAW,CAAC,2BAAA;QACvFC,mBAAmBkE,IAAAA,mBAAY,EAAClF,yBAAyBgB,iBAAiB,EAAEiE,WAAWV,iBAAiB,CAAC,iCAAA;QACzGtD,iBAAiBiE,IAAAA,mBAAY,EAAClF,yBAAyBiB,eAAe,EAAEgE,WAAWhE,eAAe,CAAC,+BAAA;QACnGC,oBAAoBgE,IAAAA,mBAAY,EAAClF,yBAAyBkB,kBAAkB,EAAE+D,WAAW/D,kBAAkB,CAAC,mCAAA;IAChH;AACJ"}
|
|
1
|
+
{"version":3,"sources":["useCartesianChartStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { useRtl } from '../../utilities/utilities';\n/**\n * @internal\n */ export const cartesianchartClassNames = {\n root: 'fui-cart__root',\n chartWrapper: 'fui-cart__chartWrapper',\n axisTitle: 'fui-cart__axisTitle',\n xAxis: 'fui-cart__xAxis',\n yAxis: 'fui-cart__yAxis',\n opacityChangeOnHover: 'fui-cart__opacityChangeOnHover',\n legendContainer: 'fui-cart__legendContainer',\n shapeStyles: 'fui-cart__shapeStyles',\n descriptionMessage: 'fui-cart__descriptionMessage',\n hover: 'fui-cart__hover',\n tooltip: 'fui-cart__tooltip',\n chartTitle: 'fui-cart__chartTitle'\n};\n/**\n * Base Styles\n */ const useStyles = makeStyles({\n root: {\n ...typographyStyles.body1,\n display: 'flex',\n width: '100%',\n height: '100%',\n flexDirection: 'column',\n overflow: 'hidden'\n },\n chartWrapper: {\n overflow: 'auto'\n },\n axisTitle: {\n ...typographyStyles.caption2Strong,\n fontStyle: 'normal',\n textAlign: 'center',\n color: tokens.colorNeutralForeground2,\n fill: tokens.colorNeutralForeground1\n },\n xAxis: {\n '& text': {\n fill: tokens.colorNeutralForeground1,\n ...typographyStyles.caption2Strong,\n forcedColorAdjust: 'auto'\n },\n '& line': {\n opacity: 0.2,\n stroke: tokens.colorNeutralForeground1,\n width: '1px',\n forcedColorAdjust: 'auto'\n },\n '& path': {\n display: 'none'\n }\n },\n yAxis: {\n '& text': {\n ...typographyStyles.caption2Strong,\n fill: tokens.colorNeutralForeground1,\n forcedColorAdjust: 'auto'\n },\n '& line': {\n opacity: 0.2,\n stroke: tokens.colorNeutralForeground1,\n forcedColorAdjust: 'auto'\n },\n '& path': {\n display: 'none'\n }\n },\n rtl: {\n '& g': {\n textAnchor: 'end'\n }\n },\n ltr: {},\n opacityChangeOnHover: {\n opacity: '0.1',\n cursor: 'default'\n },\n legendContainer: {\n marginTop: tokens.spacingVerticalS,\n marginLeft: tokens.spacingHorizontalXL\n }\n});\n/**\n * Apply styling to the Carousel slots based on the state\n */ export const useCartesianChartStyles = (props)=>{\n const _useRtl = useRtl();\n const baseStyles = useStyles();\n return {\n root: mergeClasses(cartesianchartClassNames.root, baseStyles.root /*props.styles?.root*/ ),\n chartWrapper: mergeClasses(cartesianchartClassNames.chartWrapper, baseStyles.chartWrapper /*props.styles?.chartWrapper*/ ),\n axisTitle: mergeClasses(cartesianchartClassNames.axisTitle, baseStyles.axisTitle /*props.styles?.axisTitle*/ ),\n xAxis: mergeClasses(cartesianchartClassNames.xAxis, baseStyles.xAxis /*props.styles?.xAxis*/ ),\n yAxis: mergeClasses(cartesianchartClassNames.yAxis, baseStyles.yAxis, _useRtl ? baseStyles.rtl : baseStyles.ltr /*props.styles?.yAxis*/ ),\n opacityChangeOnHover: mergeClasses(cartesianchartClassNames.opacityChangeOnHover, baseStyles.opacityChangeOnHover /*props.styles?.opacityChangeOnHover*/ ),\n legendContainer: mergeClasses(cartesianchartClassNames.legendContainer, baseStyles.legendContainer /*props.styles?.legendContainer*/ )\n };\n};\n"],"names":["cartesianchartClassNames","useCartesianChartStyles","root","chartWrapper","axisTitle","xAxis","yAxis","opacityChangeOnHover","legendContainer","shapeStyles","descriptionMessage","hover","tooltip","chartTitle","useStyles","__styles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","mc9l5x","a9b677","Bqenvij","Beiy3e4","B68tc82","Bmxbyg5","Bpg54ce","B80ckks","fsow6f","sj55zd","Bkfmm31","Bifops1","lr70ht","D01gh","vxuu72","lclgl4","zp1vxd","jxu3ei","B3i31d3","Bhcy8il","z3m6do","se2xxg","rtl","Bkw34lo","ltr","abs64n","Bceei9c","B6of3ja","Frg6f3","d","p","props","_useRtl","useRtl","baseStyles","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAKiBA,wBAAwB;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of3ja: "f7jvbu2",
|
|
80
|
+
Bvjb7m6: "fdgv6k0"
|
|
80
81
|
},
|
|
81
82
|
calloutBlockContainerNonCartesian: {
|
|
82
83
|
Be2twd7: "fojgt09",
|
|
83
84
|
Bg96gwp: "f82itaf",
|
|
84
|
-
|
|
85
|
+
Bvjb7m6: "fdgv6k0"
|
|
85
86
|
},
|
|
86
87
|
calloutBlockContainertoDrawShapefalse: {
|
|
87
|
-
bo4z9n: "fg7a56h",
|
|
88
88
|
uwmqm3: [
|
|
89
89
|
"f1f5gg8d",
|
|
90
90
|
"f1vdfbxk"
|
|
91
|
-
]
|
|
91
|
+
],
|
|
92
|
+
Bvjb7m6: "fdgv6k0"
|
|
92
93
|
},
|
|
93
94
|
calloutBlockContainertoDrawShapetrue: {
|
|
94
95
|
mc9l5x: "fwk3njj"
|
|
@@ -105,10 +106,10 @@ const popoverClassNames = {
|
|
|
105
106
|
Bhrd7zp: "figsok6",
|
|
106
107
|
Bg96gwp: "fwrc4pm",
|
|
107
108
|
sj55zd: "fkfq4zb",
|
|
108
|
-
|
|
109
|
+
Bvjb7m6: "fhv2zbx"
|
|
109
110
|
},
|
|
110
111
|
calloutContentY: {
|
|
111
|
-
|
|
112
|
+
Bvjb7m6: "fhv2zbx"
|
|
112
113
|
},
|
|
113
114
|
calloutContentYCartesian: {
|
|
114
115
|
Bahqtrf: "fk6fouc",
|
|
@@ -159,12 +160,10 @@ const popoverClassNames = {
|
|
|
159
160
|
uwmqm3: [
|
|
160
161
|
"f1f5gg8d",
|
|
161
162
|
"f1vdfbxk"
|
|
162
|
-
]
|
|
163
|
+
],
|
|
164
|
+
Bvjb7m6: "fdgv6k0"
|
|
163
165
|
},
|
|
164
|
-
calloutContainer: {
|
|
165
|
-
a6j6cd: "f1j86lqe",
|
|
166
|
-
B93v9kj: "f15mrrko"
|
|
167
|
-
}
|
|
166
|
+
calloutContainer: {}
|
|
168
167
|
}, {
|
|
169
168
|
d: [
|
|
170
169
|
".f1bxpd7w{display:contents;}",
|
|
@@ -190,6 +189,7 @@ const popoverClassNames = {
|
|
|
190
189
|
".fp25eh{opacity:0.8;}",
|
|
191
190
|
".fkfq4zb{color:var(--colorNeutralForeground2);}",
|
|
192
191
|
".f7jvbu2{margin-top:13px;}",
|
|
192
|
+
".fdgv6k0{forced-color-adjust:none;}",
|
|
193
193
|
".fojgt09{font-size:var(--fontSizeHero700);}",
|
|
194
194
|
".f82itaf{line-height:22px;}",
|
|
195
195
|
".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",
|
|
@@ -197,6 +197,7 @@ const popoverClassNames = {
|
|
|
197
197
|
".fwk3njj{display:inline-grid;}",
|
|
198
198
|
".f1vcna3q{margin-right:var(--spacingHorizontalS);}",
|
|
199
199
|
".foyynoy{margin-left:var(--spacingHorizontalS);}",
|
|
200
|
+
".fhv2zbx{forced-color-adjust:auto;}",
|
|
200
201
|
".fod5ikn{font-size:var(--fontSizeBase400);}",
|
|
201
202
|
".flh3ekv{font-weight:var(--fontWeightBold);}",
|
|
202
203
|
".faaz57k{line-height:var(--lineHeightBase400);}",
|
|
@@ -210,32 +211,6 @@ const popoverClassNames = {
|
|
|
210
211
|
".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",
|
|
211
212
|
".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",
|
|
212
213
|
".f19n0e5{color:var(--colorNeutralForeground1);}"
|
|
213
|
-
],
|
|
214
|
-
m: [
|
|
215
|
-
[
|
|
216
|
-
"@media screen and (-ms-high-contrast: active),screen and (forced-colors: active){.fg7a56h selectors{forced-color-adjust:none;}}",
|
|
217
|
-
{
|
|
218
|
-
m: "screen and (-ms-high-contrast: active), screen and (forced-colors: active)"
|
|
219
|
-
}
|
|
220
|
-
],
|
|
221
|
-
[
|
|
222
|
-
"@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.fig6os7 selectors{color:rgb(255, 255, 255);}}",
|
|
223
|
-
{
|
|
224
|
-
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
225
|
-
}
|
|
226
|
-
],
|
|
227
|
-
[
|
|
228
|
-
"@media screen and (-ms-high-contrast: active),screen and (forced-colors: active){.f1j86lqe{fill:WindowText;}}",
|
|
229
|
-
{
|
|
230
|
-
m: "screen and (-ms-high-contrast: active), screen and (forced-colors: active)"
|
|
231
|
-
}
|
|
232
|
-
],
|
|
233
|
-
[
|
|
234
|
-
"@media screen and (-ms-high-contrast: active),screen and (forced-colors: active){.f15mrrko{forced-color-adjust:none;}}",
|
|
235
|
-
{
|
|
236
|
-
m: "screen and (-ms-high-contrast: active), screen and (forced-colors: active)"
|
|
237
|
-
}
|
|
238
|
-
]
|
|
239
214
|
]
|
|
240
215
|
});
|
|
241
216
|
const usePopoverStyles_unstable = (props)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useChartPopoverStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { HighContrastSelectorBlack, HighContrastSelector } from '../../utilities/index';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\n/**\n * @internal\n */ export const popoverClassNames = {\n calloutContentRoot: 'fui-cart__calloutContentRoot',\n calloutDateTimeContainer: 'fui-cart__calloutDateTimeContainer',\n calloutContentX: 'fui-cart__calloutContentX',\n calloutBlockContainer: 'fui-cart__calloutBlockContainer',\n calloutBlockContainertoDrawShapefalse: 'fui-cart__calloutBlockContainertoDrawShapefalse',\n calloutBlockContainertoDrawShapetrue: 'fui-cart__calloutBlockContainertoDrawShapetrue',\n shapeStyles: 'fui-cart__shapeStyles',\n calloutlegendText: 'fui-cart__calloutlegendText',\n calloutContentY: 'fui-cart__calloutContentY',\n descriptionMessage: 'fui-cart__descriptionMessage',\n ratio: 'fui-cart__ratio',\n numerator: 'fui-cart__numerator',\n denominator: 'fui-cart__denominator',\n calloutInfoContainer: 'fui-cart__calloutInfoContainer',\n calloutContainer: 'fui-cart__calloutContainer'\n};\n/**\n * Base Styles\n */ const useStyles = makeStyles({\n calloutContentRoot: {\n display: 'contents',\n overflow: 'hidden',\n ...shorthands.padding('11px 16px 10px 16px'),\n backgroundColor: tokens.colorNeutralBackground1,\n backgroundBlendMode: 'normal, luminosity'\n },\n calloutDateTimeContainer: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between'\n },\n calloutContentX: {\n ...typographyStyles.caption1,\n opacity: '0.8',\n color: tokens.colorNeutralForeground2\n },\n calloutBlockContainer: {\n color: tokens.colorNeutralForeground2\n },\n calloutBlockContainerCartesian: {\n ...typographyStyles.caption1,\n marginTop: '13px'\n },\n calloutBlockContainerNonCartesian: {\n fontSize: tokens.fontSizeHero700,\n lineHeight: '22px',\n '& selectors': {\n [HighContrastSelector]: {\n forcedColorAdjust: 'none'\n }\n }\n },\n calloutBlockContainertoDrawShapefalse: {\n '& selectors': {\n [HighContrastSelector]: {\n forcedColorAdjust: 'none'\n }\n },\n paddingLeft: tokens.spacingHorizontalS\n },\n calloutBlockContainertoDrawShapetrue: {\n display: 'inline-grid'\n },\n shapeStyles: {\n marginRight: tokens.spacingHorizontalS\n },\n calloutLegendText: {\n ...typographyStyles.caption1,\n color: tokens.colorNeutralForeground2,\n '& selectors': {\n [HighContrastSelectorBlack]: {\n color: 'rgb(255, 255, 255)'\n }\n }\n },\n calloutContentY: {\n '& selectors': {\n [HighContrastSelectorBlack]: {\n color: 'rgb(255, 255, 255)'\n }\n }\n },\n calloutContentYCartesian: {\n ...typographyStyles.subtitle2Stronger\n },\n calloutContentYNonCartesian: {\n ...typographyStyles.title2\n },\n descriptionMessage: {\n ...typographyStyles.caption1,\n color: tokens.colorNeutralForeground2,\n marginTop: tokens.spacingVerticalMNudge,\n paddingTop: tokens.spacingVerticalMNudge,\n ...shorthands.borderTop(`1px solid ${tokens.colorNeutralStroke2}`)\n },\n ratio: {\n ...typographyStyles.caption2,\n marginLeft: tokens.spacingHorizontalSNudge,\n color: tokens.colorNeutralForeground1\n },\n numerator: {\n ...typographyStyles.caption2Strong\n },\n denominator: {\n ...typographyStyles.caption2Strong\n },\n calloutInfoContainer: {\n paddingLeft: tokens.spacingHorizontalS\n },\n calloutContainer: {\n [HighContrastSelector]: {\n fill: 'WindowText',\n forcedColorAdjust: 'none'\n }\n }\n});\n/**\n * Apply styling to the Carousel slots based on the state\n */ export const usePopoverStyles_unstable = (props)=>{\n const { isCartesian } = props;\n const baseStyles = useStyles();\n return {\n calloutContentRoot: mergeClasses(popoverClassNames.calloutContentRoot, baseStyles.calloutContentRoot /*props.styles?. calloutContentRoot*/ ),\n calloutDateTimeContainer: mergeClasses(popoverClassNames.calloutDateTimeContainer, baseStyles.calloutDateTimeContainer /*props.styles?.calloutDateTimeContainer*/ ),\n calloutContentX: mergeClasses(popoverClassNames.calloutContentX, baseStyles.calloutContentX /*props.styles?.calloutContentX*/ ),\n calloutBlockContainer: mergeClasses(popoverClassNames.calloutBlockContainer, baseStyles.calloutBlockContainer /*props.styles?.calloutBlockContainerCartesian*/ , isCartesian ? baseStyles.calloutBlockContainerCartesian : baseStyles.calloutBlockContainerNonCartesian),\n calloutBlockContainertoDrawShapefalse: mergeClasses(popoverClassNames.calloutBlockContainertoDrawShapefalse, baseStyles.calloutBlockContainertoDrawShapefalse /*props.styles?.calloutBlockContainertoDrawShapefalse*/ ),\n calloutBlockContainertoDrawShapetrue: mergeClasses(popoverClassNames.calloutBlockContainertoDrawShapetrue, baseStyles.calloutBlockContainertoDrawShapetrue /*props.styles?.calloutBlockContainertoDrawShapetrue*/ ),\n shapeStyles: mergeClasses(popoverClassNames.shapeStyles, baseStyles.shapeStyles /*props.styles?.shapeStyles*/ ),\n calloutlegendText: mergeClasses(popoverClassNames.calloutlegendText, baseStyles.calloutLegendText /*props.styles?.calloutlegendText*/ ),\n calloutContentY: mergeClasses(popoverClassNames.calloutContentY, baseStyles.calloutContentY /*props.styles?.calloutContentYNonCartesian*/ , isCartesian ? baseStyles.calloutContentYCartesian : baseStyles.calloutContentYNonCartesian),\n descriptionMessage: mergeClasses(popoverClassNames.descriptionMessage, baseStyles.descriptionMessage /*props.styles?. descriptionMessage*/ ),\n ratio: mergeClasses(popoverClassNames.ratio, baseStyles.ratio /*props.styles?.ratio*/ ),\n numerator: mergeClasses(popoverClassNames.numerator, baseStyles.numerator /*props.styles?.numerator*/ ),\n denominator: mergeClasses(popoverClassNames.denominator, baseStyles.denominator /*props.styles?.denominator*/ ),\n calloutInfoContainer: mergeClasses(popoverClassNames.calloutInfoContainer, baseStyles.calloutInfoContainer),\n calloutContainer: mergeClasses(popoverClassNames.calloutContainer, baseStyles.calloutContainer)\n };\n};\n"],"names":["popoverClassNames","usePopoverStyles_unstable","calloutContentRoot","calloutDateTimeContainer","calloutContentX","calloutBlockContainer","calloutBlockContainertoDrawShapefalse","calloutBlockContainertoDrawShapetrue","shapeStyles","calloutlegendText","calloutContentY","descriptionMessage","ratio","numerator","denominator","calloutInfoContainer","calloutContainer","useStyles","__styles","mc9l5x","B68tc82","Bmxbyg5","Bpg54ce","z8tnut","z189sj","Byoj8tv","uwmqm3","De3pzq","jy2i9i","Beiy3e4","Brf1p80","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","abs64n","sj55zd","calloutBlockContainerCartesian","B6of3ja","calloutBlockContainerNonCartesian","bo4z9n","t21cq0","calloutLegendText","B1cpy0k","calloutContentYCartesian","calloutContentYNonCartesian","B4j52fo","Frg6f3","a6j6cd","B93v9kj","d","p","m","props","isCartesian","baseStyles","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A,mBAAY,EAACxD,kBAAkBa,SAAS,EAAE0C,WAAW1C,SAAS,CAAC,yBAAA;QAC1EC,aAAa0C,IAAAA,mBAAY,EAACxD,kBAAkBc,WAAW,EAAEyC,WAAWzC,WAAW,CAAC,2BAAA;QAChFC,sBAAsByC,IAAAA,mBAAY,EAACxD,kBAAkBe,oBAAoB,EAAEwC,WAAWxC,oBAAoB;QAC1GC,kBAAkBwC,IAAAA,mBAAY,EAACxD,kBAAkBgB,gBAAgB,EAAEuC,WAAWvC,gBAAgB;IAClG;AACJ"}
|
|
1
|
+
{"version":3,"sources":["useChartPopoverStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\n/**\n * @internal\n */ export const popoverClassNames = {\n calloutContentRoot: 'fui-cart__calloutContentRoot',\n calloutDateTimeContainer: 'fui-cart__calloutDateTimeContainer',\n calloutContentX: 'fui-cart__calloutContentX',\n calloutBlockContainer: 'fui-cart__calloutBlockContainer',\n calloutBlockContainertoDrawShapefalse: 'fui-cart__calloutBlockContainertoDrawShapefalse',\n calloutBlockContainertoDrawShapetrue: 'fui-cart__calloutBlockContainertoDrawShapetrue',\n shapeStyles: 'fui-cart__shapeStyles',\n calloutlegendText: 'fui-cart__calloutlegendText',\n calloutContentY: 'fui-cart__calloutContentY',\n descriptionMessage: 'fui-cart__descriptionMessage',\n ratio: 'fui-cart__ratio',\n numerator: 'fui-cart__numerator',\n denominator: 'fui-cart__denominator',\n calloutInfoContainer: 'fui-cart__calloutInfoContainer',\n calloutContainer: 'fui-cart__calloutContainer'\n};\n/**\n * Base Styles\n */ const useStyles = makeStyles({\n calloutContentRoot: {\n display: 'contents',\n overflow: 'hidden',\n ...shorthands.padding('11px 16px 10px 16px'),\n backgroundColor: tokens.colorNeutralBackground1,\n backgroundBlendMode: 'normal, luminosity'\n },\n calloutDateTimeContainer: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between'\n },\n calloutContentX: {\n ...typographyStyles.caption1,\n opacity: '0.8',\n color: tokens.colorNeutralForeground2\n },\n calloutBlockContainer: {\n color: tokens.colorNeutralForeground2\n },\n calloutBlockContainerCartesian: {\n ...typographyStyles.caption1,\n marginTop: '13px',\n forcedColorAdjust: 'none'\n },\n calloutBlockContainerNonCartesian: {\n fontSize: tokens.fontSizeHero700,\n lineHeight: '22px',\n forcedColorAdjust: 'none'\n },\n calloutBlockContainertoDrawShapefalse: {\n paddingLeft: tokens.spacingHorizontalS,\n forcedColorAdjust: 'none'\n },\n calloutBlockContainertoDrawShapetrue: {\n display: 'inline-grid'\n },\n shapeStyles: {\n marginRight: tokens.spacingHorizontalS\n },\n calloutLegendText: {\n ...typographyStyles.caption1,\n color: tokens.colorNeutralForeground2,\n forcedColorAdjust: 'auto'\n },\n calloutContentY: {\n forcedColorAdjust: 'auto'\n },\n calloutContentYCartesian: {\n ...typographyStyles.subtitle2Stronger\n },\n calloutContentYNonCartesian: {\n ...typographyStyles.title2\n },\n descriptionMessage: {\n ...typographyStyles.caption1,\n color: tokens.colorNeutralForeground2,\n marginTop: tokens.spacingVerticalMNudge,\n paddingTop: tokens.spacingVerticalMNudge,\n ...shorthands.borderTop(`1px solid ${tokens.colorNeutralStroke2}`)\n },\n ratio: {\n ...typographyStyles.caption2,\n marginLeft: tokens.spacingHorizontalSNudge,\n color: tokens.colorNeutralForeground1\n },\n numerator: {\n ...typographyStyles.caption2Strong\n },\n denominator: {\n ...typographyStyles.caption2Strong\n },\n calloutInfoContainer: {\n paddingLeft: tokens.spacingHorizontalS,\n forcedColorAdjust: 'none'\n },\n calloutContainer: {}\n});\n/**\n * Apply styling to the Carousel slots based on the state\n */ export const usePopoverStyles_unstable = (props)=>{\n const { isCartesian } = props;\n const baseStyles = useStyles();\n return {\n calloutContentRoot: mergeClasses(popoverClassNames.calloutContentRoot, baseStyles.calloutContentRoot /*props.styles?. calloutContentRoot*/ ),\n calloutDateTimeContainer: mergeClasses(popoverClassNames.calloutDateTimeContainer, baseStyles.calloutDateTimeContainer /*props.styles?.calloutDateTimeContainer*/ ),\n calloutContentX: mergeClasses(popoverClassNames.calloutContentX, baseStyles.calloutContentX /*props.styles?.calloutContentX*/ ),\n calloutBlockContainer: mergeClasses(popoverClassNames.calloutBlockContainer, baseStyles.calloutBlockContainer /*props.styles?.calloutBlockContainerCartesian*/ , isCartesian ? baseStyles.calloutBlockContainerCartesian : baseStyles.calloutBlockContainerNonCartesian),\n calloutBlockContainertoDrawShapefalse: mergeClasses(popoverClassNames.calloutBlockContainertoDrawShapefalse, baseStyles.calloutBlockContainertoDrawShapefalse /*props.styles?.calloutBlockContainertoDrawShapefalse*/ ),\n calloutBlockContainertoDrawShapetrue: mergeClasses(popoverClassNames.calloutBlockContainertoDrawShapetrue, baseStyles.calloutBlockContainertoDrawShapetrue /*props.styles?.calloutBlockContainertoDrawShapetrue*/ ),\n shapeStyles: mergeClasses(popoverClassNames.shapeStyles, baseStyles.shapeStyles /*props.styles?.shapeStyles*/ ),\n calloutlegendText: mergeClasses(popoverClassNames.calloutlegendText, baseStyles.calloutLegendText /*props.styles?.calloutlegendText*/ ),\n calloutContentY: mergeClasses(popoverClassNames.calloutContentY, baseStyles.calloutContentY /*props.styles?.calloutContentYNonCartesian*/ , isCartesian ? baseStyles.calloutContentYCartesian : baseStyles.calloutContentYNonCartesian),\n descriptionMessage: mergeClasses(popoverClassNames.descriptionMessage, baseStyles.descriptionMessage /*props.styles?. descriptionMessage*/ ),\n ratio: mergeClasses(popoverClassNames.ratio, baseStyles.ratio /*props.styles?.ratio*/ ),\n numerator: mergeClasses(popoverClassNames.numerator, baseStyles.numerator /*props.styles?.numerator*/ ),\n denominator: mergeClasses(popoverClassNames.denominator, baseStyles.denominator /*props.styles?.denominator*/ ),\n calloutInfoContainer: mergeClasses(popoverClassNames.calloutInfoContainer, baseStyles.calloutInfoContainer),\n calloutContainer: mergeClasses(popoverClassNames.calloutContainer, baseStyles.calloutContainer)\n };\n};\n"],"names":["popoverClassNames","usePopoverStyles_unstable","calloutContentRoot","calloutDateTimeContainer","calloutContentX","calloutBlockContainer","calloutBlockContainertoDrawShapefalse","calloutBlockContainertoDrawShapetrue","shapeStyles","calloutlegendText","calloutContentY","descriptionMessage","ratio","numerator","denominator","calloutInfoContainer","calloutContainer","useStyles","__styles","mc9l5x","B68tc82","Bmxbyg5","Bpg54ce","z8tnut","z189sj","Byoj8tv","uwmqm3","De3pzq","jy2i9i","Beiy3e4","Brf1p80","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","abs64n","sj55zd","calloutBlockContainerCartesian","B6of3ja","Bvjb7m6","calloutBlockContainerNonCartesian","t21cq0","calloutLegendText","calloutContentYCartesian","calloutContentYNonCartesian","B4j52fo","Frg6f3","d","p","props","isCartesian","baseStyles","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAIiBA,iBAAiB;eAAjBA;;IAoGAC,yBAAyB;eAAzBA;;;uBAxGoC;AAI1C,MAAMD,oBAAoB;IACjCE,oBAAoB;IACpBC,0BAA0B;IAC1BC,iBAAiB;IACjBC,uBAAuB;IACvBC,uCAAuC;IACvCC,sCAAsC;IACtCC,aAAa;IACbC,mBAAmB;IACnBC,iBAAiB;IACjBC,oBAAoB;IACpBC,OAAO;IACPC,WAAW;IACXC,aAAa;IACbC,sBAAsB;IACtBC,kBAAkB;AACtB;AACA;;CAEA,GAAI,MAAMC,YAAS,WAAA,GAAGC,IAAAA,eAAA,EAAA;IAAAhB,oBAAA;QAAAiB,QAAA;QAAAC,SA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|
|
40
40
|
".fl43uef{font-weight:var(--fontWeightSemibold);}",
|
|
41
41
|
".fcen8rp{line-height:var(--lineHeightHero700);}",
|
|
42
|
-
".fhuob2q{fill:var(--colorNeutralForeground1);}"
|
|
43
|
-
|
|
44
|
-
m: [
|
|
45
|
-
[
|
|
46
|
-
"@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.fy323tu{fill:rgb(179, 179, 179);}}",
|
|
47
|
-
{
|
|
48
|
-
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
49
|
-
}
|
|
50
|
-
]
|
|
42
|
+
".fhuob2q{fill:var(--colorNeutralForeground1);}",
|
|
43
|
+
".fhv2zbx{forced-color-adjust:auto;}"
|
|
51
44
|
]
|
|
52
45
|
});
|
|
53
46
|
const usePieStyles = (props)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["usePieStyles.styles.js"],"sourcesContent":["import { tokens, typographyStyles } from '@fluentui/react-theme';\nimport {
|
|
1
|
+
{"version":3,"sources":["usePieStyles.styles.js"],"sourcesContent":["import { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { makeStyles, mergeClasses } from '@griffel/react';\n/**\n * @internal\n */ export const donutPieClassNames = {\n root: 'fui-donut-pie__root',\n insideDonutString: 'fui-donut-pie__insideDonutString'\n};\n/**\n * Base Styles\n */ const useStyles = makeStyles({\n root: {},\n insideDonutString: {\n ...typographyStyles.title2,\n fill: tokens.colorNeutralForeground1,\n forcedColorAdjust: 'auto'\n }\n});\n/**\n * Apply styling to the Pie inside donut chart component\n */ export const usePieStyles = (props)=>{\n var _props_styles, _props_styles1;\n const { className } = props;\n const baseStyles = useStyles();\n return {\n root: mergeClasses(donutPieClassNames.root, baseStyles.root, className, (_props_styles = props.styles) === null || _props_styles === void 0 ? void 0 : _props_styles.root),\n insideDonutString: mergeClasses(donutPieClassNames.insideDonutString, baseStyles.insideDonutString, className, (_props_styles1 = props.styles) === null || _props_styles1 === void 0 ? void 0 : _props_styles1.insideDonutString)\n };\n};\n"],"names":["donutPieClassNames","usePieStyles","root","insideDonutString","useStyles","__styles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","Bkfmm31","Bvjb7m6","d","props","_props_styles","_props_styles1","className","baseStyles","mergeClasses","styles"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAIiBA,kBAAkB;eAAlBA;;IAgBAC,YAAY;eAAZA;;;uBAnBwB;AAG9B,MAAMD,qBAAqB;IAClCE,MAAM;IACNC,mBAAmB;AACvB;AACA;;CAEA,GAAI,MAAMC,YAAS,WAAA,GAAGC,IAAAA,eAAA,EAAA;IAAAH,MAAA,CAAA;IAAAC,mBAAA;QAAAG,SAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,SAAA;IAAA;AAAA,GAAA;IAAAC,GAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA;AAUX,MAAMX,eAAgBY,CAAAA;IAC7B,IAAIC,eAAeC;IACnB,MAAM,EAAEC,SAAAA,EAAW,GAAGH;IACtB,MAAMI,aAAab;IACnB,OAAO;QACHF,MAAMgB,IAAAA,mBAAY,EAAClB,mBAAmBE,IAAI,EAAEe,WAAWf,IAAI,EAAEc,WAAW,AAACF,CAAAA,gBAAgBD,MAAMM,MAAM,AAANA,MAAY,QAAQL,kBAAkB,KAAK,IAAI,KAAK,IAAIA,cAAcZ,IAAI;QACzKC,mBAAmBe,IAAAA,mBAAY,EAAClB,mBAAmBG,iBAAiB,EAAEc,WAAWd,iBAAiB,EAAEa,WAAW,AAACD,CAAAA,iBAAiBF,MAAMM,MAAM,AAANA,MAAY,QAAQJ,mBAAmB,KAAK,IAAI,KAAK,IAAIA,eAAeZ,iBAAiB;IACpO;AACJ"}
|
|
@@ -464,7 +464,7 @@ const GaugeChart = /*#__PURE__*/ _react.forwardRef((props, forwardedRef)=>{
|
|
|
464
464
|
id: `${index}_${xValue.y}`,
|
|
465
465
|
className: classes.calloutBlockContainer,
|
|
466
466
|
style: {
|
|
467
|
-
|
|
467
|
+
borderInlineStart: `4px solid ${xValue.color}`
|
|
468
468
|
}
|
|
469
469
|
}, toDrawShape && /*#__PURE__*/ _react.createElement(_index1.Shape, {
|
|
470
470
|
svgProps: {
|