cr-ui-lib 1.0.6 → 1.0.8

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 CHANGED
@@ -42,8 +42,9 @@ interface GraphedCardProps {
42
42
  isLoading: boolean;
43
43
  isError: boolean;
44
44
  handleRefresh?: () => void;
45
+ tooltipIcon?: string;
45
46
  }
46
- declare const GraphedCard: ({ className, title, value, subText, unit, tooltip_text, image, gradientColor0, gradientColor1, pointLabelColor, labelPopupTitle, lineData, lineLabel, isCustomTitle, customTitle, lineColor, isLoading, isError, handleRefresh, }: GraphedCardProps) => JSX.Element;
47
+ declare const GraphedCard: ({ className, title, value, subText, unit, tooltip_text, image, gradientColor0, gradientColor1, pointLabelColor, labelPopupTitle, lineData, lineLabel, isCustomTitle, customTitle, lineColor, isLoading, isError, handleRefresh, tooltipIcon, }: GraphedCardProps) => JSX.Element;
47
48
 
48
49
  interface SimpleCardProps {
49
50
  title: string;
package/dist/index.d.ts CHANGED
@@ -42,8 +42,9 @@ interface GraphedCardProps {
42
42
  isLoading: boolean;
43
43
  isError: boolean;
44
44
  handleRefresh?: () => void;
45
+ tooltipIcon?: string;
45
46
  }
46
- declare const GraphedCard: ({ className, title, value, subText, unit, tooltip_text, image, gradientColor0, gradientColor1, pointLabelColor, labelPopupTitle, lineData, lineLabel, isCustomTitle, customTitle, lineColor, isLoading, isError, handleRefresh, }: GraphedCardProps) => JSX.Element;
47
+ declare const GraphedCard: ({ className, title, value, subText, unit, tooltip_text, image, gradientColor0, gradientColor1, pointLabelColor, labelPopupTitle, lineData, lineLabel, isCustomTitle, customTitle, lineColor, isLoading, isError, handleRefresh, tooltipIcon, }: GraphedCardProps) => JSX.Element;
47
48
 
48
49
  interface SimpleCardProps {
49
50
  title: string;
package/dist/index.js CHANGED
@@ -301,7 +301,8 @@ var LineChart = ({
301
301
  gradientColor1 = "rgba(23, 202, 67, 0.5)",
302
302
  gradientColor0 = "rgba(23, 202, 67, 0)",
303
303
  pointLabelColor = "#4062E5",
304
- labelPopupTitle = "Requests Completed"
304
+ labelPopupTitle = "Requests Completed",
305
+ tooltipIcon
305
306
  }) => {
306
307
  const chartRef = (0, import_react.useRef)(null);
307
308
  const [chartKey, setChartKey] = (0, import_react.useState)(`chart-${Date.now()}`);
@@ -439,9 +440,18 @@ var LineChart = ({
439
440
  <div>
440
441
  <p style="color:#757575;"><strong>${label2}</strong></p>
441
442
  <span style="display: inline-flex; align-items: center; font-weight: bold; color: #757575;">
442
- <svg width="10" height="10" viewBox="0 0 9 10" fill="none" xmlns="http://www.w3.org/2000/svg">
443
- <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"/>
444
- </svg>&nbsp;
443
+ ${tooltipIcon ? tooltipIcon : ` <svg
444
+ width="10"
445
+ height="10"
446
+ viewBox="0 0 9 10"
447
+ fill="none"
448
+ xmlns="http://www.w3.org/2000/svg"
449
+ >
450
+ <path
451
+ d="M0.416687 3.36663H2.16669V9.08329H0.416687V3.36663ZM3.68335 0.916626H5.31669V9.08329H3.68335V0.916626ZM6.95002 5.58329H8.58335V9.08329H6.95002V5.58329Z"
452
+ fill="#4683B4"
453
+ />
454
+ </svg>`}&nbsp;
445
455
  ${labelPopupTitle}: <span style="color:#131414;">&nbsp;${value}</span>
446
456
  </span>
447
457
  </div>
@@ -589,7 +599,8 @@ var GraphedCard = ({
589
599
  lineColor,
590
600
  isLoading,
591
601
  isError,
592
- handleRefresh
602
+ handleRefresh,
603
+ tooltipIcon
593
604
  }) => {
594
605
  if (isLoading) {
595
606
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(LoaderGraphContent_default, { className });
@@ -685,7 +696,8 @@ var GraphedCard = ({
685
696
  gradientColor0,
686
697
  gradientColor1,
687
698
  pointLabelColor,
688
- labelPopupTitle
699
+ labelPopupTitle,
700
+ tooltipIcon
689
701
  }
690
702
  ) })
691
703
  ] }) })
@@ -3435,7 +3447,6 @@ var SelectionButton_default = SelectionButton;
3435
3447
  // src/components/inputs/SingleDateInput.tsx
3436
3448
  var import_date_fns = require("date-fns");
3437
3449
  var import_react_datepicker = __toESM(require("react-datepicker"));
3438
- var import_react_datepicker2 = require("react-datepicker/dist/react-datepicker.css");
3439
3450
  var import_tailwind_merge19 = require("tailwind-merge");
3440
3451
  var import_jsx_runtime21 = require("react/jsx-runtime");
3441
3452
  var SingleDateInput = ({
@@ -3529,8 +3540,7 @@ var SingleDateInput_default = SingleDateInput;
3529
3540
 
3530
3541
  // src/components/inputs/TimeInput.tsx
3531
3542
  var import_date_fns2 = require("date-fns");
3532
- var import_react_datepicker3 = __toESM(require("react-datepicker"));
3533
- var import_react_datepicker4 = require("react-datepicker/dist/react-datepicker.css");
3543
+ var import_react_datepicker2 = __toESM(require("react-datepicker"));
3534
3544
  var import_tailwind_merge20 = require("tailwind-merge");
3535
3545
  var import_jsx_runtime22 = require("react/jsx-runtime");
3536
3546
  var TimeInput = ({
@@ -3580,7 +3590,7 @@ var TimeInput = ({
3580
3590
  ),
3581
3591
  /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "relative", children: [
3582
3592
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3583
- import_react_datepicker3.default,
3593
+ import_react_datepicker2.default,
3584
3594
  {
3585
3595
  selected: parsedDate,
3586
3596
  onChange: handleChange,