@sgonzaloc/react-financial-charts-tooltip 3.0.0

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 (55) hide show
  1. package/LICENSE +24 -0
  2. package/README.md +5 -0
  3. package/lib/BollingerBandTooltip.d.ts +40 -0
  4. package/lib/BollingerBandTooltip.js +46 -0
  5. package/lib/BollingerBandTooltip.js.map +1 -0
  6. package/lib/GroupTooltip.d.ts +41 -0
  7. package/lib/GroupTooltip.js +81 -0
  8. package/lib/GroupTooltip.js.map +1 -0
  9. package/lib/HoverTooltip.d.ts +57 -0
  10. package/lib/HoverTooltip.js +175 -0
  11. package/lib/HoverTooltip.js.map +1 -0
  12. package/lib/MACDTooltip.d.ts +46 -0
  13. package/lib/MACDTooltip.js +35 -0
  14. package/lib/MACDTooltip.js.map +1 -0
  15. package/lib/MovingAverageTooltip.d.ts +55 -0
  16. package/lib/MovingAverageTooltip.js +56 -0
  17. package/lib/MovingAverageTooltip.js.map +1 -0
  18. package/lib/OHLCTooltip.d.ts +57 -0
  19. package/lib/OHLCTooltip.js +58 -0
  20. package/lib/OHLCTooltip.js.map +1 -0
  21. package/lib/RSITooltip.d.ts +32 -0
  22. package/lib/RSITooltip.js +34 -0
  23. package/lib/RSITooltip.js.map +1 -0
  24. package/lib/SingleTooltip.d.ts +29 -0
  25. package/lib/SingleTooltip.js +67 -0
  26. package/lib/SingleTooltip.js.map +1 -0
  27. package/lib/SingleValueTooltip.d.ts +38 -0
  28. package/lib/SingleValueTooltip.js +49 -0
  29. package/lib/SingleValueTooltip.js.map +1 -0
  30. package/lib/StochasticTooltip.d.ts +43 -0
  31. package/lib/StochasticTooltip.js +36 -0
  32. package/lib/StochasticTooltip.js.map +1 -0
  33. package/lib/ToolTipTSpanLabel.d.ts +8 -0
  34. package/lib/ToolTipTSpanLabel.js +24 -0
  35. package/lib/ToolTipTSpanLabel.js.map +1 -0
  36. package/lib/ToolTipText.d.ts +9 -0
  37. package/lib/ToolTipText.js +25 -0
  38. package/lib/ToolTipText.js.map +1 -0
  39. package/lib/index.d.ts +12 -0
  40. package/lib/index.js +13 -0
  41. package/lib/index.js.map +1 -0
  42. package/package.json +50 -0
  43. package/src/BollingerBandTooltip.tsx +99 -0
  44. package/src/GroupTooltip.tsx +156 -0
  45. package/src/HoverTooltip.tsx +270 -0
  46. package/src/MACDTooltip.tsx +116 -0
  47. package/src/MovingAverageTooltip.tsx +145 -0
  48. package/src/OHLCTooltip.tsx +138 -0
  49. package/src/RSITooltip.tsx +80 -0
  50. package/src/SingleTooltip.tsx +122 -0
  51. package/src/SingleValueTooltip.tsx +107 -0
  52. package/src/StochasticTooltip.tsx +97 -0
  53. package/src/ToolTipTSpanLabel.tsx +14 -0
  54. package/src/ToolTipText.tsx +15 -0
  55. package/src/index.ts +12 -0
@@ -0,0 +1,55 @@
1
+ import * as React from "react";
2
+ export interface SingleMAToolTipProps {
3
+ readonly color: string;
4
+ readonly displayName: string;
5
+ readonly fontFamily?: string;
6
+ readonly fontSize?: number;
7
+ readonly fontWeight?: number;
8
+ readonly forChart: number | string;
9
+ readonly labelFill?: string;
10
+ readonly labelFontWeight?: number;
11
+ readonly onClick?: (event: React.MouseEvent<SVGRectElement, MouseEvent>, details: any) => void;
12
+ readonly options: any;
13
+ readonly origin: [number, number];
14
+ readonly textFill?: string;
15
+ readonly value: string;
16
+ }
17
+ export declare class SingleMAToolTip extends React.Component<SingleMAToolTipProps> {
18
+ render(): import("react/jsx-runtime").JSX.Element;
19
+ private readonly onClick;
20
+ }
21
+ interface MovingAverageTooltipProps {
22
+ readonly className?: string;
23
+ readonly displayFormat: (value: number) => string;
24
+ readonly origin: number[];
25
+ readonly displayInit?: string;
26
+ readonly displayValuesFor?: (props: MovingAverageTooltipProps, moreProps: any) => any;
27
+ readonly onClick?: (event: React.MouseEvent<SVGRectElement, MouseEvent>) => void;
28
+ readonly textFill?: string;
29
+ readonly labelFill?: string;
30
+ readonly fontFamily?: string;
31
+ readonly fontSize?: number;
32
+ readonly fontWeight?: number;
33
+ readonly width?: number;
34
+ readonly options: {
35
+ yAccessor: (data: any) => number;
36
+ type: string;
37
+ stroke: string;
38
+ windowSize: number;
39
+ }[];
40
+ }
41
+ export declare class MovingAverageTooltip extends React.Component<MovingAverageTooltipProps> {
42
+ static defaultProps: {
43
+ className: string;
44
+ displayFormat: (n: number | {
45
+ valueOf(): number;
46
+ }) => string;
47
+ displayInit: string;
48
+ displayValuesFor: (_: any, props: any) => any;
49
+ origin: number[];
50
+ width: number;
51
+ };
52
+ render(): import("react/jsx-runtime").JSX.Element;
53
+ private readonly renderSVG;
54
+ }
55
+ export {};
@@ -0,0 +1,56 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { functor, GenericChartComponent, last } from "@sgonzaloc/react-financial-charts-core";
3
+ import { format } from "d3-format";
4
+ import * as React from "react";
5
+ import { ToolTipText } from "./ToolTipText";
6
+ import { ToolTipTSpanLabel } from "./ToolTipTSpanLabel";
7
+ export class SingleMAToolTip extends React.Component {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.onClick = (event) => {
11
+ const { onClick, forChart, options } = this.props;
12
+ if (onClick !== undefined) {
13
+ onClick(event, Object.assign({ chartId: forChart }, options));
14
+ }
15
+ };
16
+ }
17
+ render() {
18
+ const { color, displayName, fontSize, fontFamily, fontWeight, textFill, labelFill, labelFontWeight, value } = this.props;
19
+ const translate = "translate(" + this.props.origin[0] + ", " + this.props.origin[1] + ")";
20
+ return (_jsxs("g", Object.assign({ transform: translate }, { children: [_jsx("line", { x1: 0, y1: 2, x2: 0, y2: 28, stroke: color, strokeWidth: 4 }), _jsxs(ToolTipText, Object.assign({ x: 5, y: 11, fontFamily: fontFamily, fontSize: fontSize, fontWeight: fontWeight }, { children: [_jsx(ToolTipTSpanLabel, Object.assign({ fill: labelFill, fontWeight: labelFontWeight }, { children: displayName })), _jsx("tspan", Object.assign({ x: 5, dy: 15, fill: textFill }, { children: value }))] })), _jsx("rect", { x: 0, y: 0, width: 55, height: 30, onClick: this.onClick, fill: "none", stroke: "none" })] })));
21
+ }
22
+ }
23
+ // tslint:disable-next-line: max-classes-per-file
24
+ export class MovingAverageTooltip extends React.Component {
25
+ constructor() {
26
+ super(...arguments);
27
+ this.renderSVG = (moreProps) => {
28
+ var _a;
29
+ const { chartId, chartConfig, chartConfig: { height = 0 } = {}, fullData } = moreProps;
30
+ const { className, displayInit = MovingAverageTooltip.defaultProps.displayInit, onClick, width = 65, fontFamily, fontSize, fontWeight, textFill, labelFill, origin: originProp, displayFormat, displayValuesFor = MovingAverageTooltip.defaultProps.displayValuesFor, options, } = this.props;
31
+ const currentItem = (_a = displayValuesFor(this.props, moreProps)) !== null && _a !== void 0 ? _a : last(fullData);
32
+ const config = chartConfig;
33
+ const origin = functor(originProp);
34
+ const [x, y] = origin(width, height);
35
+ const [ox, oy] = config.origin;
36
+ return (_jsx("g", Object.assign({ transform: `translate(${ox + x}, ${oy + y})`, className: className }, { children: options.map((each, idx) => {
37
+ const yValue = currentItem && each.yAccessor(currentItem);
38
+ const tooltipLabel = `${each.type} (${each.windowSize})`;
39
+ const yDisplayValue = yValue ? displayFormat(yValue) : displayInit;
40
+ return (_jsx(SingleMAToolTip, { origin: [width * idx, 0], color: each.stroke, displayName: tooltipLabel, value: yDisplayValue, options: each, forChart: chartId, onClick: onClick, fontFamily: fontFamily, fontSize: fontSize, fontWeight: fontWeight, textFill: textFill, labelFill: labelFill }, idx));
41
+ }) })));
42
+ };
43
+ }
44
+ render() {
45
+ return _jsx(GenericChartComponent, { clip: false, svgDraw: this.renderSVG, drawOn: ["mousemove"] });
46
+ }
47
+ }
48
+ MovingAverageTooltip.defaultProps = {
49
+ className: "react-financial-charts-tooltip react-financial-charts-moving-average-tooltip",
50
+ displayFormat: format(".2f"),
51
+ displayInit: "n/a",
52
+ displayValuesFor: (_, props) => props.currentItem,
53
+ origin: [0, 10],
54
+ width: 65,
55
+ };
56
+ //# sourceMappingURL=Mov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,OAAO,KAAC,qBAAqB,IAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,GAAI,CAAC;IAClG,CAAC;;AAXa,iCAAY,GAAG;IACzB,SAAS,EAAE,8EAA8E;IACzF,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC;IAC5B,WAAW,EAAE,KAAK;IAClB,gBAAgB,EAAE,CAAC,CAAM,EAAE,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;IAC3D,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;IACf,KAAK,EAAE,EAAE;CACZ,CAAC"}
@@ -0,0 +1,57 @@
1
+ import * as React from "react";
2
+ export interface OHLCTooltipProps {
3
+ readonly accessor?: (data: any) => any;
4
+ readonly className?: string;
5
+ readonly changeFormat?: (n: number | {
6
+ valueOf(): number;
7
+ }) => string;
8
+ readonly displayTexts?: {
9
+ o: string;
10
+ h: string;
11
+ l: string;
12
+ c: string;
13
+ na: string;
14
+ };
15
+ readonly displayValuesFor?: (props: OHLCTooltipProps, moreProps: any) => any;
16
+ readonly fontFamily?: string;
17
+ readonly fontSize?: number;
18
+ readonly fontWeight?: number;
19
+ readonly labelFill?: string;
20
+ readonly labelFontWeight?: number;
21
+ readonly ohlcFormat?: (n: number | {
22
+ valueOf(): number;
23
+ }) => string;
24
+ readonly onClick?: (event: React.MouseEvent<SVGGElement, MouseEvent>) => void;
25
+ readonly origin?: [number, number] | ((width: number, height: number) => [number, number]);
26
+ readonly percentFormat?: (n: number | {
27
+ valueOf(): number;
28
+ }) => string;
29
+ readonly textFill?: string | ((item: any) => string);
30
+ }
31
+ export declare class OHLCTooltip extends React.Component<OHLCTooltipProps> {
32
+ static defaultProps: {
33
+ accessor: (d: unknown) => unknown;
34
+ changeFormat: (n: number | {
35
+ valueOf(): number;
36
+ }) => string;
37
+ className: string;
38
+ displayTexts: {
39
+ o: string;
40
+ h: string;
41
+ l: string;
42
+ c: string;
43
+ na: string;
44
+ };
45
+ displayValuesFor: (_: any, props: any) => any;
46
+ fontFamily: string;
47
+ ohlcFormat: (n: number | {
48
+ valueOf(): number;
49
+ }) => string;
50
+ origin: number[];
51
+ percentFormat: (n: number | {
52
+ valueOf(): number;
53
+ }) => string;
54
+ };
55
+ render(): import("react/jsx-runtime").JSX.Element;
56
+ private readonly renderSVG;
57
+ }
@@ -0,0 +1,58 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { functor, GenericChartComponent, last } from "@sgonzaloc/react-financial-charts-core";
3
+ import { format } from "d3-format";
4
+ import * as React from "react";
5
+ import { ToolTipText } from "./ToolTipText";
6
+ import { ToolTipTSpanLabel } from "./ToolTipTSpanLabel";
7
+ const displayTextsDefault = {
8
+ o: "O: ",
9
+ h: " H: ",
10
+ l: " L: ",
11
+ c: " C: ",
12
+ na: "n/a",
13
+ };
14
+ export class OHLCTooltip extends React.Component {
15
+ constructor() {
16
+ super(...arguments);
17
+ this.renderSVG = (moreProps) => {
18
+ var _a;
19
+ const { accessor, changeFormat = OHLCTooltip.defaultProps.changeFormat, className, displayTexts = OHLCTooltip.defaultProps.displayTexts, displayValuesFor = OHLCTooltip.defaultProps.displayValuesFor, fontFamily, fontSize, fontWeight, labelFill, labelFontWeight, ohlcFormat = OHLCTooltip.defaultProps.ohlcFormat, onClick, percentFormat = OHLCTooltip.defaultProps.percentFormat, textFill, } = this.props;
20
+ const { chartConfig: { width, height }, fullData, } = moreProps;
21
+ const currentItem = (_a = displayValuesFor(this.props, moreProps)) !== null && _a !== void 0 ? _a : last(fullData);
22
+ let open = displayTexts.na;
23
+ let high = displayTexts.na;
24
+ let low = displayTexts.na;
25
+ let close = displayTexts.na;
26
+ let change = displayTexts.na;
27
+ if (currentItem !== undefined && accessor !== undefined) {
28
+ const item = accessor(currentItem);
29
+ if (item !== undefined) {
30
+ open = ohlcFormat(item.open);
31
+ high = ohlcFormat(item.high);
32
+ low = ohlcFormat(item.low);
33
+ close = ohlcFormat(item.close);
34
+ change = `${changeFormat(item.close - item.open)} (${percentFormat((item.close - item.open) / item.open)})`;
35
+ }
36
+ }
37
+ const { origin: originProp } = this.props;
38
+ const [x, y] = functor(originProp)(width, height);
39
+ const valueFill = functor(textFill)(currentItem);
40
+ return (_jsx("g", Object.assign({ className: className, transform: `translate(${x}, ${y})`, onClick: onClick }, { children: _jsxs(ToolTipText, Object.assign({ x: 0, y: 0, fontFamily: fontFamily, fontSize: fontSize, fontWeight: fontWeight }, { children: [_jsx(ToolTipTSpanLabel, Object.assign({ fill: labelFill, fontWeight: labelFontWeight }, { children: displayTexts.o }), "label_O"), _jsx("tspan", Object.assign({ fill: valueFill }, { children: open }), "value_O"), _jsx(ToolTipTSpanLabel, Object.assign({ fill: labelFill, fontWeight: labelFontWeight }, { children: displayTexts.h }), "label_H"), _jsx("tspan", Object.assign({ fill: valueFill }, { children: high }), "value_H"), _jsx(ToolTipTSpanLabel, Object.assign({ fill: labelFill, fontWeight: labelFontWeight }, { children: displayTexts.l }), "label_L"), _jsx("tspan", Object.assign({ fill: valueFill }, { children: low }), "value_L"), _jsx(ToolTipTSpanLabel, Object.assign({ fill: labelFill, fontWeight: labelFontWeight }, { children: displayTexts.c }), "label_C"), _jsx("tspan", Object.assign({ fill: valueFill }, { children: close }), "value_C"), _jsx("tspan", Object.assign({ fill: valueFill }, { children: ` ${change}` }), "value_Change")] })) })));
41
+ };
42
+ }
43
+ render() {
44
+ return _jsx(GenericChartComponent, { clip: false, svgDraw: this.renderSVG, drawOn: ["mousemove"] });
45
+ }
46
+ }
47
+ OHLCTooltip.defaultProps = {
48
+ accessor: (d) => d,
49
+ changeFormat: format("+.2f"),
50
+ className: "react-financial-charts-tooltip-hover",
51
+ displayTexts: displayTextsDefault,
52
+ displayValuesFor: (_, props) => props.currentItem,
53
+ fontFamily: "-apple-system, system-ui, 'Helvetica Neue', Ubuntu, sans-serif",
54
+ ohlcFormat: format(".2f"),
55
+ origin: [0, 0],
56
+ percentFormat: format("+.2%"),
57
+ };
58
+ //# sourceMappingURL=OHLCTooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OHLCTooltip.js","sourceRoot":"","sources":["../src/OHLCTooltip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,qBAAqB,EAAE,IAAI,EAAE,MAAM,wCAAwC,CAAC;AAC9F,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,mBAAmB,GAAG;IACxB,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,EAAE,EAAE,KAAK;CACZ,CAAC;AA0BF,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,SAA2B;IAAlE;;QAiBqB,cAAS,GAAG,CAAC,SAAc,EAAE,EAAE;;YAC5C,MAAM,EACF,QAAQ,EACR,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC,YAAY,EACpD,SAAS,EACT,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC,YAAY,EACpD,gBAAgB,GAAG,WAAW,CAAC,YAAY,CAAC,gBAAgB,EAC5D,UAAU,EACV,QAAQ,EACR,UAAU,EACV,SAAS,EACT,eAAe,EACf,UAAU,GAAG,WAAW,CAAC,YAAY,CAAC,UAAU,EAChD,OAAO,EACP,aAAa,GAAG,WAAW,CAAC,YAAY,CAAC,aAAa,EACtD,QAAQ,GACX,GAAG,IAAI,CAAC,KAAK,CAAC;YAEf,MAAM,EACF,WAAW,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAC9B,QAAQ,GACX,GAAG,SAAS,CAAC;YAEd,MAAM,WAAW,GAAG,MAAA,gBAAgB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AAY,GAAG;IACzB,QAAQ,EAAE,CAAC,CAAU,EAAE,EAAE,CAAC,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC;IAC5B,SAAS,EAAE,sCAAsC;IACjD,YAAY,EAAE,mBAAmB;IACjC,gBAAgB,EAAE,CAAC,CAAM,EAAE,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;IAC3D,UAAU,EAAE,gEAAgE;IAC5E,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC;IACzB,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC;CAChC,CAAC"}
@@ -0,0 +1,32 @@
1
+ import * as React from "react";
2
+ export interface RSITooltipProps {
3
+ readonly className?: string;
4
+ readonly displayFormat: (value: number) => string;
5
+ readonly displayInit?: string;
6
+ readonly displayValuesFor: (props: RSITooltipProps, moreProps: any) => any;
7
+ readonly fontFamily?: string;
8
+ readonly fontSize?: number;
9
+ readonly fontWeight?: number;
10
+ readonly labelFill?: string;
11
+ readonly labelFontWeight?: number;
12
+ readonly onClick?: (event: React.MouseEvent<SVGGElement, MouseEvent>) => void;
13
+ readonly origin: number[] | ((width: number, height: number) => number[]);
14
+ readonly options: {
15
+ windowSize: number;
16
+ };
17
+ readonly textFill?: string;
18
+ readonly yAccessor: (data: any) => number | undefined;
19
+ }
20
+ export declare class RSITooltip extends React.Component<RSITooltipProps> {
21
+ static defaultProps: {
22
+ displayFormat: (n: number | {
23
+ valueOf(): number;
24
+ }) => string;
25
+ displayInit: string;
26
+ displayValuesFor: (_: RSITooltipProps, props: any) => any;
27
+ origin: number[];
28
+ className: string;
29
+ };
30
+ render(): import("react/jsx-runtime").JSX.Element;
31
+ private readonly renderSVG;
32
+ }
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { functor, isDefined, GenericChartComponent } from "@sgonzaloc/react-financial-charts-core";
3
+ import { format } from "d3-format";
4
+ import * as React from "react";
5
+ import { ToolTipText } from "./ToolTipText";
6
+ import { ToolTipTSpanLabel } from "./ToolTipTSpanLabel";
7
+ export class RSITooltip extends React.Component {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.renderSVG = (moreProps) => {
11
+ const { onClick, displayInit, fontFamily, fontSize, fontWeight, yAccessor, displayFormat, className, options, labelFill, labelFontWeight, textFill, displayValuesFor, } = this.props;
12
+ const { chartConfig: { width, height }, } = moreProps;
13
+ const currentItem = displayValuesFor(this.props, moreProps);
14
+ const rsi = isDefined(currentItem) && yAccessor(currentItem);
15
+ const value = (rsi && displayFormat(rsi)) || displayInit;
16
+ const { origin: originProp } = this.props;
17
+ const origin = functor(originProp);
18
+ const [x, y] = origin(width, height);
19
+ const tooltipLabel = `RSI (${options.windowSize}): `;
20
+ return (_jsx("g", Object.assign({ className: className, transform: `translate(${x}, ${y})`, onClick: onClick }, { children: _jsxs(ToolTipText, Object.assign({ x: 0, y: 0, fontFamily: fontFamily, fontSize: fontSize, fontWeight: fontWeight }, { children: [_jsx(ToolTipTSpanLabel, Object.assign({ fill: labelFill, fontWeight: labelFontWeight }, { children: tooltipLabel })), _jsx("tspan", Object.assign({ fill: textFill }, { children: value }))] })) })));
21
+ };
22
+ }
23
+ render() {
24
+ return _jsx(GenericChartComponent, { clip: false, svgDraw: this.renderSVG, drawOn: ["mousemove"] });
25
+ }
26
+ }
27
+ RSITooltip.defaultProps = {
28
+ displayFormat: format(".2f"),
29
+ displayInit: "n/a",
30
+ displayValuesFor: (_, props) => props.currentItem,
31
+ origin: [0, 0],
32
+ className: "react-financial-charts-tooltip",
33
+ };
34
+ //# sourceMappingURL=RSITooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RSITooltip.js","sourceRoot":"","sources":["../src/RSITooltip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AACnG,OA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,WAAW,kBAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,iBACvF,KAAC,iBAAiB,kBAAC,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,gBAC1D,YAAY,IACG,EACpB,8BAAO,IAAI,EAAE,QAAQ,gBAAG,KAAK,IAAS,KAC5B,IACd,CACP,CAAC;QACN,CAAC,CAAC;IACN,CAAC;IA7CU,MAAM;QACT,OAAO,KAAC,qBAAqB,IAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,GAAI,CAAC;IAClG,CAAC;;AAVa,uBAAY,GAAG;IACzB,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC;IAC5B,WAAW,EAAE,KAAK;IAClB,gBAAgB,EAAE,CAAC,CAAkB,EAAE,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;IACvE,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,SAAS,EAAE,gCAAgC;CAC9C,CAAC"}
@@ -0,0 +1,29 @@
1
+ import * as React from "react";
2
+ export type layouts = "horizontal" | "horizontalRows" | "horizontalInline" | "vertical" | "verticalRows";
3
+ export interface SingleTooltipProps {
4
+ readonly origin: [number, number];
5
+ readonly yLabel: string;
6
+ readonly yValue: string;
7
+ readonly onClick?: (event: React.MouseEvent, details: any) => void;
8
+ readonly fontFamily?: string;
9
+ readonly fontSize?: number;
10
+ readonly fontWeight?: number;
11
+ readonly labelFill: string;
12
+ readonly valueFill: string;
13
+ readonly forChart: number | string;
14
+ readonly options: any;
15
+ readonly layout: layouts;
16
+ readonly withShape: boolean;
17
+ }
18
+ export declare class SingleTooltip extends React.Component<SingleTooltipProps> {
19
+ static defaultProps: {
20
+ labelFill: string;
21
+ valueFill: string;
22
+ withShape: boolean;
23
+ };
24
+ renderValueNextToLabel(): import("react/jsx-runtime").JSX.Element;
25
+ renderValueBeneathLabel(): import("react/jsx-runtime").JSX.Element;
26
+ renderInline(): import("react/jsx-runtime").JSX.Element;
27
+ render(): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
28
+ private readonly handleClick;
29
+ }
@@ -0,0 +1,67 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { ToolTipText } from "./ToolTipText";
4
+ import { ToolTipTSpanLabel } from "./ToolTipTSpanLabel";
5
+ export class SingleTooltip extends React.Component {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.handleClick = (event) => {
9
+ const { onClick, forChart, options } = this.props;
10
+ if (onClick !== undefined) {
11
+ onClick(event, Object.assign({ chartId: forChart }, options));
12
+ }
13
+ };
14
+ }
15
+ /*
16
+ * Renders the value next to the label.
17
+ */
18
+ renderValueNextToLabel() {
19
+ const { origin, yLabel, yValue, labelFill, valueFill, withShape, fontSize, fontFamily, fontWeight } = this.props;
20
+ return (_jsxs("g", Object.assign({ transform: `translate(${origin[0]}, ${origin[1]})`, onClick: this.handleClick }, { children: [withShape ? _jsx("rect", { x: "0", y: "-6", width: "6", height: "6", fill: valueFill }) : null, _jsxs(ToolTipText, Object.assign({ x: withShape ? 8 : 0, y: 0, fontFamily: fontFamily, fontSize: fontSize, fontWeight: fontWeight }, { children: [_jsxs(ToolTipTSpanLabel, Object.assign({ fill: labelFill }, { children: [yLabel, ": "] })), _jsx("tspan", Object.assign({ fill: valueFill }, { children: yValue }))] }))] })));
21
+ }
22
+ /*
23
+ * Renders the value beneath the label.
24
+ */
25
+ renderValueBeneathLabel() {
26
+ const { origin, yLabel, yValue, labelFill, valueFill, withShape, fontSize, fontFamily, fontWeight } = this.props;
27
+ return (_jsxs("g", Object.assign({ transform: `translate(${origin[0]}, ${origin[1]})`, onClick: this.handleClick }, { children: [withShape ? _jsx("line", { x1: 0, y1: 2, x2: 0, y2: 28, stroke: valueFill, strokeWidth: "4px" }) : null, _jsxs(ToolTipText, Object.assign({ x: 5, y: 11, fontFamily: fontFamily, fontSize: fontSize, fontWeight: fontWeight }, { children: [_jsx(ToolTipTSpanLabel, Object.assign({ fill: labelFill }, { children: yLabel })), _jsx("tspan", Object.assign({ x: "5", dy: "15", fill: valueFill }, { children: yValue }))] }))] })));
28
+ }
29
+ /*
30
+ * Renders the value next to the label.
31
+ * The parent component must have a "text"-element.
32
+ */
33
+ renderInline() {
34
+ const { yLabel, yValue, labelFill, valueFill, fontSize, fontFamily, fontWeight } = this.props;
35
+ return (_jsxs("tspan", Object.assign({ onClick: this.handleClick, fontFamily: fontFamily, fontSize: fontSize, fontWeight: fontWeight }, { children: [_jsxs(ToolTipTSpanLabel, Object.assign({ fill: labelFill }, { children: [yLabel, ":\u00A0"] })), _jsxs("tspan", Object.assign({ fill: valueFill }, { children: [yValue, "\u00A0\u00A0"] }))] })));
36
+ }
37
+ render() {
38
+ const { layout } = this.props;
39
+ let comp = null;
40
+ switch (layout) {
41
+ case "horizontal":
42
+ comp = this.renderValueNextToLabel();
43
+ break;
44
+ case "horizontalRows":
45
+ comp = this.renderValueBeneathLabel();
46
+ break;
47
+ case "horizontalInline":
48
+ comp = this.renderInline();
49
+ break;
50
+ case "vertical":
51
+ comp = this.renderValueNextToLabel();
52
+ break;
53
+ case "verticalRows":
54
+ comp = this.renderValueBeneathLabel();
55
+ break;
56
+ default:
57
+ comp = this.renderValueNextToLabel();
58
+ }
59
+ return comp;
60
+ }
61
+ }
62
+ SingleTooltip.defaultProps = {
63
+ labelFill: "#4682B4",
64
+ valueFill: "#000000",
65
+ withShape: false,
66
+ };
67
+ //# sourceMappingURL=SingleTooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SingleTooltip.js","sourceRoot":"","sources":["../src/SingleTooltip.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,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AG,MAAM,gBAA4B,EACvE,+BAAO,IAAI,EAAE,SAAS,iBAAG,MAAM,qBAAqB,KAChD,CACX,CAAC;IACN,CAAC;IAEM,MAAM;QACT,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAC9B,IAAI,IAAI,GAA8B,IAAI,CAAC;QAE3C,QAAQ,MAAM,EAAE;YACZ,KAAK,YAAY;gBACb,IAAI,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;gBACrC,MAAM;YACV,KAAK,gBAAgB;gBACjB,IAAI,GAAG,IAAI,CAAC,uBAAuB,EAAE,CAAC;gBACtC,MAAM;YACV,KAAK,kBAAkB;gBACnB,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;gBAC3B,MAAM;YACV,KAAK,UAAU;gBACX,IAAI,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;gBACrC,MAAM;YACV,KAAK,cAAc;gBACf,IAAI,GAAG,IAAI,CAAC,uBAAuB,EAAE,CAAC;gBACtC,MAAM;YACV;gBACI,IAAI,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;SAC5C;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;;AA1Fa,0BAAY,GAAG;IACzB,SAAS,EAAE,SAAS;IACpB,SAAS,EAAE,SAAS;IACpB,SAAS,EAAE,KAAK;CACnB,CAAC"}
@@ -0,0 +1,38 @@
1
+ import * as React from "react";
2
+ export interface SingleValueTooltipProps {
3
+ readonly xDisplayFormat?: (value: number) => string;
4
+ readonly yDisplayFormat?: (value: number) => string;
5
+ readonly xInitDisplay?: string;
6
+ readonly yInitDisplay?: string;
7
+ readonly xLabel?: string;
8
+ readonly yLabel: string;
9
+ readonly labelFill?: string;
10
+ readonly labelFontWeight?: number;
11
+ readonly valueFill?: string;
12
+ readonly origin?: [number, number] | ((width: number, height: number) => [number, number]);
13
+ readonly className?: string;
14
+ readonly fontFamily?: string;
15
+ readonly fontSize?: number;
16
+ readonly fontWeight?: number;
17
+ readonly onClick?: (event: React.MouseEvent<SVGGElement, MouseEvent>) => void;
18
+ readonly displayValuesFor?: (props: SingleValueTooltipProps, moreProps: any) => any;
19
+ readonly xAccessor?: (d: any) => number;
20
+ readonly yAccessor?: (d: any) => number;
21
+ }
22
+ export declare class SingleValueTooltip extends React.Component<SingleValueTooltipProps> {
23
+ static defaultProps: {
24
+ className: string;
25
+ displayValuesFor: (_: any, props: any) => any;
26
+ labelFill: string;
27
+ origin: number[];
28
+ valueFill: string;
29
+ xAccessor: () => void;
30
+ xDisplayFormat: (value: number) => string;
31
+ xInitDisplay: string;
32
+ yAccessor: (d: any) => number;
33
+ yDisplayFormat: (value: number) => string;
34
+ yInitDisplay: string;
35
+ };
36
+ render(): import("react/jsx-runtime").JSX.Element;
37
+ private readonly renderSVG;
38
+ }
@@ -0,0 +1,49 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { functor, identity, GenericChartComponent, noop, last } from "@sgonzaloc/react-financial-charts-core";
3
+ import { format } from "d3-format";
4
+ import * as React from "react";
5
+ import { ToolTipText } from "./ToolTipText";
6
+ import { ToolTipTSpanLabel } from "./ToolTipTSpanLabel";
7
+ export class SingleValueTooltip extends React.Component {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.renderSVG = (moreProps) => {
11
+ var _a;
12
+ const { onClick, fontFamily, fontSize, fontWeight, labelFill, labelFontWeight, valueFill, className, displayValuesFor = SingleValueTooltip.defaultProps.displayValuesFor, origin: originProp, xDisplayFormat = SingleValueTooltip.defaultProps.xDisplayFormat, yDisplayFormat = SingleValueTooltip.defaultProps.yDisplayFormat, xLabel, yLabel, xAccessor = SingleValueTooltip.defaultProps.xAccessor, yAccessor = SingleValueTooltip.defaultProps.yAccessor, xInitDisplay, yInitDisplay, } = this.props;
13
+ const { chartConfig: { width, height }, fullData, } = moreProps;
14
+ const currentItem = (_a = displayValuesFor(this.props, moreProps)) !== null && _a !== void 0 ? _a : last(fullData);
15
+ let xDisplayValue = xInitDisplay;
16
+ let yDisplayValue = yInitDisplay;
17
+ if (currentItem !== undefined) {
18
+ const xItem = xAccessor(currentItem);
19
+ if (xItem !== undefined) {
20
+ xDisplayValue = xDisplayFormat(xItem);
21
+ }
22
+ const yItem = yAccessor(currentItem);
23
+ if (yItem !== undefined) {
24
+ yDisplayValue = yDisplayFormat(yItem);
25
+ }
26
+ }
27
+ const origin = functor(originProp);
28
+ const [x, y] = origin(width, height);
29
+ return (_jsx("g", Object.assign({ className: className, transform: `translate(${x}, ${y})`, onClick: onClick }, { children: _jsxs(ToolTipText, Object.assign({ x: 0, y: 0, fontFamily: fontFamily, fontSize: fontSize, fontWeight: fontWeight }, { children: [xLabel ? (_jsx(ToolTipTSpanLabel, Object.assign({ x: 0, dy: "5", fill: labelFill }, { children: `${xLabel}: ` }))) : null, xLabel ? _jsx("tspan", Object.assign({ fill: valueFill }, { children: `${xDisplayValue} ` })) : null, _jsx(ToolTipTSpanLabel, Object.assign({ fill: labelFill, fontWeight: labelFontWeight }, { children: `${yLabel} ` })), _jsx("tspan", Object.assign({ fill: valueFill }, { children: yDisplayValue }))] })) })));
30
+ };
31
+ }
32
+ render() {
33
+ return _jsx(GenericChartComponent, { clip: false, svgDraw: this.renderSVG, drawOn: ["mousemove"] });
34
+ }
35
+ }
36
+ SingleValueTooltip.defaultProps = {
37
+ className: "react-financial-charts-tooltip",
38
+ displayValuesFor: (_, props) => props.currentItem,
39
+ labelFill: "#4682B4",
40
+ origin: [0, 0],
41
+ valueFill: "#000000",
42
+ xAccessor: noop,
43
+ xDisplayFormat: identity,
44
+ xInitDisplay: "n/a",
45
+ yAccessor: identity,
46
+ yDisplayFormat: format(".2f"),
47
+ yInitDisplay: "n/a",
48
+ };
49
+ //# sourceMappingURL=SingleValueTooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SingleValueTooltip.js","sourceRoot":"","sources":["../src/SingleValueTooltip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAA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,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,GAAI,CAAC;IAClG,CAAC;;AAhBa,+BAAY,GAAG;IACzB,SAAS,EAAE,gCAAgC;IAC3C,gBAAgB,EAAE,CAAC,CAAM,EAAE,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;IAC3D,SAAS,EAAE,SAAS;IACpB,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACd,SAAS,EAAE,SAAS;IACpB,SAAS,EAAE,IAAI;IACf,cAAc,EAAE,QAAqC;IACrD,YAAY,EAAE,KAAK;IACnB,SAAS,EAAE,QAA8B;IACzC,cAAc,EAAE,MAAM,CAAC,KAAK,CAA8B;IAC1D,YAAY,EAAE,KAAK;CACtB,CAAC"}
@@ -0,0 +1,43 @@
1
+ import * as React from "react";
2
+ export interface StochasticTooltipProps {
3
+ readonly origin: number[] | ((width: number, height: number) => [number, number]);
4
+ readonly className?: string;
5
+ readonly fontFamily?: string;
6
+ readonly fontSize?: number;
7
+ readonly fontWeight?: number;
8
+ readonly labelFill?: string;
9
+ readonly onClick?: (event: React.MouseEvent) => void;
10
+ readonly yAccessor: (currentItem: any) => {
11
+ K: number;
12
+ D: number;
13
+ };
14
+ readonly options: {
15
+ windowSize: number;
16
+ kWindowSize: number;
17
+ dWindowSize: number;
18
+ };
19
+ readonly appearance: {
20
+ stroke: {
21
+ dLine: string;
22
+ kLine: string;
23
+ };
24
+ };
25
+ readonly displayFormat: (value: number) => string;
26
+ readonly displayInit?: string;
27
+ readonly displayValuesFor?: (props: StochasticTooltipProps, moreProps: any) => any;
28
+ readonly label: string;
29
+ }
30
+ export declare class StochasticTooltip extends React.Component<StochasticTooltipProps> {
31
+ static defaultProps: {
32
+ className: string;
33
+ displayFormat: (n: number | {
34
+ valueOf(): number;
35
+ }) => string;
36
+ displayInit: string;
37
+ displayValuesFor: (_: any, props: any) => any;
38
+ label: string;
39
+ origin: number[];
40
+ };
41
+ render(): import("react/jsx-runtime").JSX.Element;
42
+ private readonly renderSVG;
43
+ }
@@ -0,0 +1,36 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { functor, GenericChartComponent } from "@sgonzaloc/react-financial-charts-core";
3
+ import { format } from "d3-format";
4
+ import * as React from "react";
5
+ import { ToolTipText } from "./ToolTipText";
6
+ import { ToolTipTSpanLabel } from "./ToolTipTSpanLabel";
7
+ export class StochasticTooltip extends React.Component {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.renderSVG = (moreProps) => {
11
+ var _a, _b, _c;
12
+ const { onClick, fontFamily, fontSize, fontWeight, yAccessor, displayFormat, origin: originProp, label, className, displayInit, displayValuesFor = StochasticTooltip.defaultProps.displayValuesFor, options, appearance, labelFill, } = this.props;
13
+ const { chartConfig: { width, height }, fullData, } = moreProps;
14
+ const currentItem = (_a = displayValuesFor(this.props, moreProps)) !== null && _a !== void 0 ? _a : fullData[fullData.length - 1];
15
+ const stochastic = currentItem && yAccessor(currentItem);
16
+ const K = (_b = ((stochastic === null || stochastic === void 0 ? void 0 : stochastic.K) && displayFormat(stochastic.K))) !== null && _b !== void 0 ? _b : displayInit;
17
+ const D = (_c = ((stochastic === null || stochastic === void 0 ? void 0 : stochastic.D) && displayFormat(stochastic.D))) !== null && _c !== void 0 ? _c : displayInit;
18
+ const origin = functor(originProp);
19
+ const [x, y] = origin(width, height);
20
+ const { stroke } = appearance;
21
+ return (_jsx("g", Object.assign({ className: className, transform: `translate(${x}, ${y})`, onClick: onClick }, { children: _jsxs(ToolTipText, Object.assign({ x: 0, y: 0, fontFamily: fontFamily, fontSize: fontSize, fontWeight: fontWeight }, { children: [_jsx(ToolTipTSpanLabel, Object.assign({ fill: labelFill }, { children: `${label} %K(` })), _jsx("tspan", Object.assign({ fill: stroke.kLine }, { children: `${options.windowSize}, ${options.kWindowSize}` })), _jsx(ToolTipTSpanLabel, Object.assign({ fill: labelFill }, { children: "): " })), _jsx("tspan", Object.assign({ fill: stroke.kLine }, { children: K })), _jsx(ToolTipTSpanLabel, Object.assign({ fill: labelFill }, { children: " %D (" })), _jsx("tspan", Object.assign({ fill: stroke.dLine }, { children: options.dWindowSize })), _jsx(ToolTipTSpanLabel, Object.assign({ fill: labelFill }, { children: "): " })), _jsx("tspan", Object.assign({ fill: stroke.dLine }, { children: D }))] })) })));
22
+ };
23
+ }
24
+ render() {
25
+ return _jsx(GenericChartComponent, { clip: false, svgDraw: this.renderSVG, drawOn: ["mousemove"] });
26
+ }
27
+ }
28
+ StochasticTooltip.defaultProps = {
29
+ className: "react-financial-charts-tooltip",
30
+ displayFormat: format(".2f"),
31
+ displayInit: "n/a",
32
+ displayValuesFor: (_, props) => props.currentItem,
33
+ label: "STO",
34
+ origin: [0, 0],
35
+ };
36
+ //# sourceMappingURL=StochasticTooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StochasticTooltip.js","sourceRoot":"","sources":["../src/StochasticTooltip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AA4BxD,MAAM,OAAO,iBAAkB,SAAQ,KAAK,CAAC,SAAiC;IAA9E;;QAcqB,cAAS,GAAG,CAAC,SAAc,EAAE,EAAE;;YAC5C,MAAM,EACF,OAAO,EACP,UAAU,EACV,QAAQ,EACR,UAAU,EACV,SAAS,EACT,aAAa,EACb,MAAM,EAAE,UAAU,EAClB,KAAK,EACL,SAAS,EACT,WAAW,EACX,gBAAgB,GAAG,iBAAiB,CAAC,YAAY,CAAC,gBAAgB,EAClE,OAAO,EACP,UAAU,EACV,SAAS,GACZ,GAAG,IAAI,CAAC,KAAK,CAAC;YACf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C,WAAW,EAAE,IAAS,EACpF,KAAC,iBAAiB,kBAAC,IAAI,EAAE,SAAS,yBAAyB,EAC3D,8BAAO,IAAI,EAAE,MAAM,CAAC,KAAK,gBAAG,CAAC,IAAS,EACtC,KAAC,iBAAiB,kBAAC,IAAI,EAAE,SAAS,2BAA2B,EAC7D,8BAAO,IAAI,EAAE,MAAM,CAAC,KAAK,gBAAG,OAAO,CAAC,WAAW,IAAS,EACxD,KAAC,iBAAiB,kBAAC,IAAI,EAAE,SAAS,yBAAyB,EAC3D,8BAAO,IAAI,EAAE,MAAM,CAAC,KAAK,gBAAG,CAAC,IAAS,KAC5B,IACd,CACP,CAAC;QACN,CAAC,CAAC;IACN,CAAC;IAtDU,MAAM;QACT,OAAO,KAAC,qBAAqB,IAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,GAAI,CAAC;IAClG,CAAC;;AAXa,8BAAY,GAAG;IACzB,SAAS,EAAE,gCAAgC;IAC3C,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC;IAC5B,WAAW,EAAE,KAAK;IAClB,gBAAgB,EAAE,CAAC,CAAM,EAAE,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;IAC3D,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;CACjB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ export declare class ToolTipTSpanLabel extends React.PureComponent<React.SVGProps<SVGTSpanElement>> {
3
+ static defaultProps: {
4
+ className: string;
5
+ fill: string;
6
+ };
7
+ render(): import("react/jsx-runtime").JSX.Element;
8
+ }