cr-ui-lib 1.1.28 → 1.1.30
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/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -100,8 +100,9 @@ interface SingleLineGraphProps {
|
|
|
100
100
|
className?: string;
|
|
101
101
|
/** Determines the default position of the tooltip. Defaults to 'top'. */
|
|
102
102
|
tooltipPosition?: "top" | "bottom";
|
|
103
|
+
svg?: string;
|
|
103
104
|
}
|
|
104
|
-
declare const SingleLineGraph: ({ data, label, lineColor, gradientColor1, gradientColor0, pointLabelColor, labelPopupTitle, className, tooltipPosition, }: SingleLineGraphProps) => JSX.Element;
|
|
105
|
+
declare const SingleLineGraph: ({ data, label, lineColor, gradientColor1, gradientColor0, pointLabelColor, labelPopupTitle, className, tooltipPosition, svg, }: SingleLineGraphProps) => JSX.Element;
|
|
105
106
|
|
|
106
107
|
interface CommonInputProps extends React$1.HTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
|
|
107
108
|
label?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -100,8 +100,9 @@ interface SingleLineGraphProps {
|
|
|
100
100
|
className?: string;
|
|
101
101
|
/** Determines the default position of the tooltip. Defaults to 'top'. */
|
|
102
102
|
tooltipPosition?: "top" | "bottom";
|
|
103
|
+
svg?: string;
|
|
103
104
|
}
|
|
104
|
-
declare const SingleLineGraph: ({ data, label, lineColor, gradientColor1, gradientColor0, pointLabelColor, labelPopupTitle, className, tooltipPosition, }: SingleLineGraphProps) => JSX.Element;
|
|
105
|
+
declare const SingleLineGraph: ({ data, label, lineColor, gradientColor1, gradientColor0, pointLabelColor, labelPopupTitle, className, tooltipPosition, svg, }: SingleLineGraphProps) => JSX.Element;
|
|
105
106
|
|
|
106
107
|
interface CommonInputProps extends React$1.HTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
|
|
107
108
|
label?: string;
|
package/dist/index.js
CHANGED
|
@@ -1196,8 +1196,10 @@ var SingleLineGraph = ({
|
|
|
1196
1196
|
pointLabelColor = "#4062E5",
|
|
1197
1197
|
labelPopupTitle = "Requests Completed",
|
|
1198
1198
|
className = "",
|
|
1199
|
-
tooltipPosition = "top"
|
|
1200
|
-
|
|
1199
|
+
tooltipPosition = "top",
|
|
1200
|
+
svg = ` <svg width="10" height="10" viewBox="0 0 9 10" fill="none" xmlns="http://www.w3.org/2000/svg" style="margin-right: 4px;">
|
|
1201
|
+
<path d="M0.416687 3.36663H2.16669V9.08329H0.416687V3.36663ZM3.68335 0.916626H5.31669V9.08329H3.68335V0.916626ZM6.95002 5.58329H8.58335V9.08329H6.95002V5.58329Z" fill="#4683B4"/>
|
|
1202
|
+
</svg>`
|
|
1201
1203
|
}) => {
|
|
1202
1204
|
const chartRef = React.useRef(null);
|
|
1203
1205
|
const [chartKey, setChartKey] = React.useState(`chart-${Date.now()}`);
|
|
@@ -1318,9 +1320,7 @@ var SingleLineGraph = ({
|
|
|
1318
1320
|
<div>
|
|
1319
1321
|
<p style="color:#757575; margin: 0 0 4px 0;"><strong>${label2}</strong></p>
|
|
1320
1322
|
<span style="display: inline-flex; align-items: center; font-weight: bold; color: #757575;">
|
|
1321
|
-
|
|
1322
|
-
<path d="M0.416687 3.36663H2.16669V9.08329H0.416687V3.36663ZM3.68335 0.916626H5.31669V9.08329H3.68335V0.916626ZM6.95002 5.58329H8.58335V9.08329H6.95002V5.58329Z" fill="#4683B4"/>
|
|
1323
|
-
</svg>
|
|
1323
|
+
${svg}
|
|
1324
1324
|
${labelPopupTitle}: <span style="color:#131414;"> ${value}</span>
|
|
1325
1325
|
</span>
|
|
1326
1326
|
</div>
|