@embeddable.com/remarkable-ui 2.0.13 → 2.0.15

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.js CHANGED
@@ -156,7 +156,7 @@ var SelectListOption = ({
156
156
  };
157
157
 
158
158
  // src/components/shared/Button/Button.tsx
159
- import styles8 from "./Button.module-UAYCVFGG.module.css";
159
+ import styles8 from "./Button.module-GOXSST7L.module.css";
160
160
  import clsx7 from "clsx";
161
161
  import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
162
162
  var Button = ({
@@ -252,13 +252,15 @@ SelectFieldTrigger.displayName = "SelectFieldTrigger";
252
252
 
253
253
  // src/components/editors/selects/shared/SelectFieldContent/SelectFieldContent.tsx
254
254
  import { useEffect, useRef } from "react";
255
- import styles12 from "./SelectFieldContent.module-6FORUMWR.module.css";
255
+ import styles12 from "./SelectFieldContent.module-GZYJOPUB.module.css";
256
256
  import clsx11 from "clsx";
257
257
  import { jsx as jsx13 } from "react/jsx-runtime";
258
258
  var SelectFieldContent = ({
259
259
  children,
260
260
  autoFocus,
261
- className
261
+ className,
262
+ fitContent = false,
263
+ ...props
262
264
  }) => {
263
265
  const containerRef = useRef(null);
264
266
  const currentIndex = useRef(0);
@@ -306,7 +308,16 @@ var SelectFieldContent = ({
306
308
  container.removeEventListener("keydown", onKeyDown);
307
309
  };
308
310
  }, [autoFocus, children]);
309
- return /* @__PURE__ */ jsx13("div", { ref: containerRef, tabIndex: -1, className: clsx11(styles12.selectFieldContent, className), children });
311
+ return /* @__PURE__ */ jsx13(
312
+ "div",
313
+ {
314
+ ref: containerRef,
315
+ tabIndex: -1,
316
+ className: clsx11(styles12.selectFieldContent, fitContent && styles12.fitContent, className),
317
+ ...props,
318
+ children
319
+ }
320
+ );
310
321
  };
311
322
  var SelectFieldContentList = ({ children, disabled }) => {
312
323
  return /* @__PURE__ */ jsx13("div", { className: clsx11(styles12.selectFieldContentList, disabled && styles12.disabled), children });
@@ -844,6 +855,170 @@ var NumberField = forwardRef4(
844
855
  );
845
856
  NumberField.displayName = "NumberField";
846
857
 
858
+ // src/components/editors/dates/DateRangePicker/DateRangePicker.tsx
859
+ import { useState as useState3 } from "react";
860
+ import { DayPicker } from "react-day-picker";
861
+ import "./DateRangePicker-YLEWETBG.css";
862
+
863
+ // src/components/editors/dates/DateRangePicker/DateRangePickerChevron.tsx
864
+ import { IconCaretDownFilled as IconCaretDownFilled2 } from "@tabler/icons-react";
865
+ import styles20 from "./DateRangePickerChevron.module-2PDNKQAJ.module.css";
866
+ import { jsx as jsx23 } from "react/jsx-runtime";
867
+ var DateRangePickerChevron = ({
868
+ orientation
869
+ }) => {
870
+ const rotation = orientation === "left" ? "rotate(90deg)" : orientation === "right" ? "rotate(-90deg)" : void 0;
871
+ return /* @__PURE__ */ jsx23(
872
+ "button",
873
+ {
874
+ className: styles20.chevron,
875
+ style: {
876
+ transform: rotation
877
+ },
878
+ children: /* @__PURE__ */ jsx23(IconCaretDownFilled2, {})
879
+ }
880
+ );
881
+ };
882
+
883
+ // src/utils/date.utils.ts
884
+ var isSameDate = (a, b) => a?.getTime() === b?.getTime();
885
+ var isSameDateRange = (a, b) => isSameDate(a?.from, b?.from) && isSameDate(a?.to, b?.to);
886
+ var endOfDayUTC = (date) => {
887
+ const d = new Date(date);
888
+ d.setUTCHours(23, 59, 59, 999);
889
+ return d;
890
+ };
891
+
892
+ // src/components/editors/dates/DateRangePicker/DateRangePicker.tsx
893
+ import * as rdpLocales from "react-day-picker/locale";
894
+ import { jsx as jsx24 } from "react/jsx-runtime";
895
+ var DateRangePicker = ({
896
+ value,
897
+ numberOfMonths = 1,
898
+ locale = "en",
899
+ onChange
900
+ }) => {
901
+ const [month, setMonth] = useState3(value?.from ?? /* @__PURE__ */ new Date());
902
+ const handleChange = (range) => {
903
+ if (range?.to) {
904
+ range.to = endOfDayUTC(range.to);
905
+ }
906
+ onChange(range);
907
+ };
908
+ return /* @__PURE__ */ jsx24(
909
+ DayPicker,
910
+ {
911
+ month,
912
+ onMonthChange: setMonth,
913
+ numberOfMonths,
914
+ components: { Chevron: DateRangePickerChevron },
915
+ locale: rdpLocales[locale],
916
+ mode: "range",
917
+ navLayout: "around",
918
+ onSelect: handleChange,
919
+ selected: value,
920
+ timeZone: "UTC",
921
+ showOutsideDays: true
922
+ }
923
+ );
924
+ };
925
+
926
+ // src/components/editors/dates/DateRangePickerField/DateRangePickerField.tsx
927
+ import { useState as useState4 } from "react";
928
+ import styles21 from "./DateRangePickerField.module-CURG3KIS.module.css";
929
+ import { jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
930
+ var getDateRangePickerLabel = (dateRange, displayValue) => {
931
+ if (dateRange === void 0) return void 0;
932
+ if (displayValue) return displayValue;
933
+ const { from, to } = dateRange;
934
+ if (!from || !to) return void 0;
935
+ return `${from ? from.toLocaleDateString() : ""} - ${to ? to.toLocaleDateString() : ""}`;
936
+ };
937
+ var DateRangePickerField = ({
938
+ locale,
939
+ displayValue,
940
+ value,
941
+ startIcon,
942
+ label,
943
+ disabled,
944
+ placeholder,
945
+ required,
946
+ error,
947
+ errorMessage,
948
+ clearable,
949
+ numberOfMonths = 1,
950
+ submitLabel = "Apply",
951
+ onChange
952
+ }) => {
953
+ const [isOpen, setIsOpen] = useState4(false);
954
+ const [currentDateRange, setCurrentDateRange] = useState4(value);
955
+ const valueLabel = getDateRangePickerLabel(value, displayValue);
956
+ const hasError = error || !!errorMessage;
957
+ const handleChange = () => {
958
+ onChange(currentDateRange);
959
+ setIsOpen(false);
960
+ };
961
+ const handleClear = () => {
962
+ setCurrentDateRange(void 0);
963
+ onChange(void 0);
964
+ };
965
+ const handleOpenChange = (open) => {
966
+ if (open) {
967
+ setIsOpen(true);
968
+ return;
969
+ }
970
+ setCurrentDateRange(value);
971
+ setIsOpen(false);
972
+ };
973
+ const isSubmitDisabled = isSameDateRange(currentDateRange, value);
974
+ return /* @__PURE__ */ jsxs14("div", { children: [
975
+ /* @__PURE__ */ jsx25(FieldHeader, { label, required }),
976
+ /* @__PURE__ */ jsx25(
977
+ Dropdown,
978
+ {
979
+ open: isOpen,
980
+ onOpenChange: handleOpenChange,
981
+ disabled,
982
+ triggerComponent: /* @__PURE__ */ jsx25(
983
+ SelectFieldTrigger,
984
+ {
985
+ startIcon,
986
+ "aria-label": "Select options",
987
+ placeholder,
988
+ disabled,
989
+ valueLabel,
990
+ onClear: handleClear,
991
+ isClearable: clearable,
992
+ error: hasError
993
+ }
994
+ ),
995
+ children: /* @__PURE__ */ jsxs14(SelectFieldContent, { fitContent: true, children: [
996
+ /* @__PURE__ */ jsx25(
997
+ DateRangePicker,
998
+ {
999
+ locale,
1000
+ numberOfMonths,
1001
+ value: currentDateRange,
1002
+ onChange: setCurrentDateRange
1003
+ }
1004
+ ),
1005
+ /* @__PURE__ */ jsx25(
1006
+ Button,
1007
+ {
1008
+ size: "small",
1009
+ className: styles21.submitButton,
1010
+ onClick: handleChange,
1011
+ disabled: isSubmitDisabled,
1012
+ children: submitLabel
1013
+ }
1014
+ )
1015
+ ] })
1016
+ }
1017
+ ),
1018
+ errorMessage && /* @__PURE__ */ jsx25(FieldFeedback, { message: errorMessage, variant: "error" })
1019
+ ] });
1020
+ };
1021
+
847
1022
  // src/components/charts/bars/BarChart.tsx
848
1023
  import { useRef as useRef4 } from "react";
849
1024
  import { Bar } from "react-chartjs-2";
@@ -1076,6 +1251,9 @@ function isMixedValues(values) {
1076
1251
  }
1077
1252
  var getChartjsAxisOptionsScalesGridColor = (ctx) => {
1078
1253
  if (ctx.tick.value === 0) {
1254
+ if (ctx.chart.data.datasets.length === 0) {
1255
+ return void 0;
1256
+ }
1079
1257
  const values = ctx.chart.data.datasets[0].data;
1080
1258
  if (isMixedValues(values)) {
1081
1259
  return getStyle("--em-chart-grid-line-color", "#212129");
@@ -1277,10 +1455,10 @@ var getBarChartOptions = (options) => {
1277
1455
  };
1278
1456
 
1279
1457
  // src/components/charts/bars/BarChart.tsx
1280
- import styles20 from "./charts.module-YNKCWRLU.module.css";
1458
+ import styles22 from "./charts.module-YNKCWRLU.module.css";
1281
1459
  import { mergician as mergician3 } from "mergician";
1282
1460
  import ChartDataLabels from "chartjs-plugin-datalabels";
1283
- import { jsx as jsx23 } from "react/jsx-runtime";
1461
+ import { jsx as jsx26 } from "react/jsx-runtime";
1284
1462
  ChartJS.register(
1285
1463
  CategoryScale,
1286
1464
  LinearScale,
@@ -1298,7 +1476,7 @@ var BarChart = ({ data, onSegmentClick, options = {}, ...props }) => {
1298
1476
  const indexClicked = getSegmentIndexClicked(event, chartRef);
1299
1477
  onSegmentClick?.(indexClicked);
1300
1478
  };
1301
- return /* @__PURE__ */ jsx23("div", { className: styles20.chartContainer, children: /* @__PURE__ */ jsx23(
1479
+ return /* @__PURE__ */ jsx26("div", { className: styles22.chartContainer, children: /* @__PURE__ */ jsx26(
1302
1480
  Bar,
1303
1481
  {
1304
1482
  ref: chartRef,
@@ -1323,7 +1501,7 @@ import {
1323
1501
  Filler
1324
1502
  } from "chart.js";
1325
1503
  import { Line } from "react-chartjs-2";
1326
- import styles21 from "./charts.module-YNKCWRLU.module.css";
1504
+ import styles23 from "./charts.module-YNKCWRLU.module.css";
1327
1505
  import { useRef as useRef5 } from "react";
1328
1506
  import { mergician as mergician5 } from "mergician";
1329
1507
 
@@ -1418,7 +1596,7 @@ var getLineChartOptions = (options) => {
1418
1596
  // src/components/charts/lines/LineChart.tsx
1419
1597
  import ChartDataLabels2 from "chartjs-plugin-datalabels";
1420
1598
  import AnnotationPlugin from "chartjs-plugin-annotation";
1421
- import { jsx as jsx24 } from "react/jsx-runtime";
1599
+ import { jsx as jsx27 } from "react/jsx-runtime";
1422
1600
  ChartJS2.register(
1423
1601
  CategoryScale2,
1424
1602
  LinearScale2,
@@ -1439,7 +1617,7 @@ var LineChart = ({ options = {}, data, onSegmentClick, ...props }) => {
1439
1617
  const indexClicked = getSegmentIndexClicked(event, chartRef);
1440
1618
  onSegmentClick?.(indexClicked);
1441
1619
  };
1442
- return /* @__PURE__ */ jsx24("div", { className: styles21.chartContainer, children: /* @__PURE__ */ jsx24(
1620
+ return /* @__PURE__ */ jsx27("div", { className: styles23.chartContainer, children: /* @__PURE__ */ jsx27(
1443
1621
  Line,
1444
1622
  {
1445
1623
  ref: chartRef,
@@ -1451,16 +1629,16 @@ var LineChart = ({ options = {}, data, onSegmentClick, ...props }) => {
1451
1629
  };
1452
1630
 
1453
1631
  // src/components/charts/kpis/KpiChart.tsx
1454
- import styles23 from "./KpiChart.module-2LUIN66C.module.css";
1632
+ import styles25 from "./KpiChart.module-2LUIN66C.module.css";
1455
1633
 
1456
1634
  // src/components/charts/kpis/components/KpiChartChange.tsx
1457
- import styles22 from "./KpiChartChange.module-BAW7YCOW.module.css";
1635
+ import styles24 from "./KpiChartChange.module-BAW7YCOW.module.css";
1458
1636
  import clsx16 from "clsx";
1459
1637
  import { IconTrendingDown, IconTrendingUp } from "@tabler/icons-react";
1460
- import { Fragment as Fragment4, jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
1638
+ import { Fragment as Fragment4, jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
1461
1639
  var getChangeClass = (isPositive, invertChangeColors) => {
1462
- if (isPositive) return invertChangeColors ? styles22.negative : styles22.positive;
1463
- return invertChangeColors ? styles22.positive : styles22.negative;
1640
+ if (isPositive) return invertChangeColors ? styles24.negative : styles24.positive;
1641
+ return invertChangeColors ? styles24.positive : styles24.negative;
1464
1642
  };
1465
1643
  var KpiChartChange = ({
1466
1644
  value,
@@ -1486,35 +1664,35 @@ var KpiChartChange = ({
1486
1664
  const displayValue = `${isPositive ? "+" : ""}${differenceLabel}`;
1487
1665
  const Icon = isPositive ? IconTrendingUp : IconTrendingDown;
1488
1666
  const showNoPreviousData = showChangeAsPercentage && Number(comparisonValue) === 0;
1489
- return /* @__PURE__ */ jsxs14("div", { className: styles22.kpiChangeContainerSizeGuide, children: [
1490
- /* @__PURE__ */ jsxs14("div", { className: clsx16(styles22.kpiChartChangeContainer, styles22.hidden), children: [
1491
- /* @__PURE__ */ jsxs14(
1667
+ return /* @__PURE__ */ jsxs15("div", { className: styles24.kpiChangeContainerSizeGuide, children: [
1668
+ /* @__PURE__ */ jsxs15("div", { className: clsx16(styles24.kpiChartChangeContainer, styles24.hidden), children: [
1669
+ /* @__PURE__ */ jsxs15(
1492
1670
  "span",
1493
1671
  {
1494
- className: clsx16(styles22.kpiChangeBadge, getChangeClass(isPositive, invertChangeColors)),
1672
+ className: clsx16(styles24.kpiChangeBadge, getChangeClass(isPositive, invertChangeColors)),
1495
1673
  children: [
1496
- /* @__PURE__ */ jsx25(Icon, {}),
1497
- /* @__PURE__ */ jsx25("span", { children: displayValue })
1674
+ /* @__PURE__ */ jsx28(Icon, {}),
1675
+ /* @__PURE__ */ jsx28("span", { children: displayValue })
1498
1676
  ]
1499
1677
  }
1500
1678
  ),
1501
- /* @__PURE__ */ jsx25("span", { className: styles22.kpiComparisonLabel, children: comparisonLabel })
1679
+ /* @__PURE__ */ jsx28("span", { className: styles24.kpiComparisonLabel, children: comparisonLabel })
1502
1680
  ] }),
1503
- /* @__PURE__ */ jsx25("div", { className: styles22.kpiAbsoluteContainer, children: /* @__PURE__ */ jsx25("div", { className: styles22.kpiChartChangeContainer, children: showNoPreviousData ? /* @__PURE__ */ jsx25("span", { className: styles22.kpiComparisonLabel, children: noPreviousDataLabel }) : /* @__PURE__ */ jsxs14(Fragment4, { children: [
1504
- !equalComparison && /* @__PURE__ */ jsxs14(
1681
+ /* @__PURE__ */ jsx28("div", { className: styles24.kpiAbsoluteContainer, children: /* @__PURE__ */ jsx28("div", { className: styles24.kpiChartChangeContainer, children: showNoPreviousData ? /* @__PURE__ */ jsx28("span", { className: styles24.kpiComparisonLabel, children: noPreviousDataLabel }) : /* @__PURE__ */ jsxs15(Fragment4, { children: [
1682
+ !equalComparison && /* @__PURE__ */ jsxs15(
1505
1683
  "span",
1506
1684
  {
1507
1685
  className: clsx16(
1508
- styles22.kpiChangeBadge,
1686
+ styles24.kpiChangeBadge,
1509
1687
  getChangeClass(isPositive, invertChangeColors)
1510
1688
  ),
1511
1689
  children: [
1512
- /* @__PURE__ */ jsx25(Icon, {}),
1513
- /* @__PURE__ */ jsx25("span", { children: displayValue })
1690
+ /* @__PURE__ */ jsx28(Icon, {}),
1691
+ /* @__PURE__ */ jsx28("span", { children: displayValue })
1514
1692
  ]
1515
1693
  }
1516
1694
  ),
1517
- /* @__PURE__ */ jsx25("span", { className: styles22.kpiComparisonLabel, children: equalComparison ? equalComparisonLabel ?? comparisonLabel : comparisonLabel })
1695
+ /* @__PURE__ */ jsx28("span", { className: styles24.kpiComparisonLabel, children: equalComparison ? equalComparisonLabel ?? comparisonLabel : comparisonLabel })
1518
1696
  ] }) }) })
1519
1697
  ] });
1520
1698
  };
@@ -1523,12 +1701,12 @@ var KpiChartChange = ({
1523
1701
  import { AutoTextSize } from "auto-text-size";
1524
1702
 
1525
1703
  // src/components/shared/ConditionalWrapper/ConditionalWrapper.tsx
1526
- import { Fragment as Fragment5, jsx as jsx26 } from "react/jsx-runtime";
1527
- var ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : /* @__PURE__ */ jsx26(Fragment5, { children });
1704
+ import { Fragment as Fragment5, jsx as jsx29 } from "react/jsx-runtime";
1705
+ var ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : /* @__PURE__ */ jsx29(Fragment5, { children });
1528
1706
  var ConditionalWrapper_default = ConditionalWrapper;
1529
1707
 
1530
1708
  // src/components/charts/kpis/KpiChart.tsx
1531
- import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
1709
+ import { jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
1532
1710
  var KpiChart = ({
1533
1711
  value,
1534
1712
  valueFontSize,
@@ -1545,13 +1723,13 @@ var KpiChart = ({
1545
1723
  const hasComparisonValue = comparisonValue !== void 0;
1546
1724
  const displayValue = value === void 0 ? "" : valueFormatter ? valueFormatter(value) : value;
1547
1725
  const autoResizeValueFontSize = !valueFontSize;
1548
- return /* @__PURE__ */ jsxs15("div", { className: styles23.kpiChartContainer, children: [
1549
- /* @__PURE__ */ jsx27("div", { className: styles23.kpiChartValueContainer, children: /* @__PURE__ */ jsx27(
1726
+ return /* @__PURE__ */ jsxs16("div", { className: styles25.kpiChartContainer, children: [
1727
+ /* @__PURE__ */ jsx30("div", { className: styles25.kpiChartValueContainer, children: /* @__PURE__ */ jsx30(
1550
1728
  ConditionalWrapper_default,
1551
1729
  {
1552
1730
  condition: autoResizeValueFontSize,
1553
- wrapper: (children) => /* @__PURE__ */ jsx27(AutoTextSize, { mode: "boxoneline", minFontSizePx: 1, maxFontSizePx: 999, children }),
1554
- children: /* @__PURE__ */ jsx27(
1731
+ wrapper: (children) => /* @__PURE__ */ jsx30(AutoTextSize, { mode: "boxoneline", minFontSizePx: 1, maxFontSizePx: 999, children }),
1732
+ children: /* @__PURE__ */ jsx30(
1555
1733
  "h2",
1556
1734
  {
1557
1735
  title: displayValue.toString(),
@@ -1563,7 +1741,7 @@ var KpiChart = ({
1563
1741
  )
1564
1742
  }
1565
1743
  ) }),
1566
- /* @__PURE__ */ jsx27("div", { className: styles23.kpiComparisonContainer, style: { fontSize: trendFontSize }, children: /* @__PURE__ */ jsx27("div", { style: { visibility: hasComparisonValue ? "visible" : "hidden" }, children: /* @__PURE__ */ jsx27(
1744
+ /* @__PURE__ */ jsx30("div", { className: styles25.kpiComparisonContainer, style: { fontSize: trendFontSize }, children: /* @__PURE__ */ jsx30("div", { style: { visibility: hasComparisonValue ? "visible" : "hidden" }, children: /* @__PURE__ */ jsx30(
1567
1745
  KpiChartChange,
1568
1746
  {
1569
1747
  equalComparisonLabel,
@@ -1660,12 +1838,12 @@ var getDonutChartOptions = (options) => {
1660
1838
 
1661
1839
  // src/components/charts/pies/DonutChart/DonutChart.tsx
1662
1840
  import { mergician as mergician7 } from "mergician";
1663
- import styles24 from "./charts.module-YNKCWRLU.module.css";
1841
+ import styles26 from "./charts.module-YNKCWRLU.module.css";
1664
1842
 
1665
1843
  // src/hooks/useResizeObserver.hook.ts
1666
- import { useLayoutEffect, useRef as useRef6, useState as useState3 } from "react";
1844
+ import { useLayoutEffect, useRef as useRef6, useState as useState5 } from "react";
1667
1845
  var useResizeObserver = (elRef, timeout = 100) => {
1668
- const [size, setSize] = useState3({ width: 0, height: 0 });
1846
+ const [size, setSize] = useState5({ width: 0, height: 0 });
1669
1847
  const timeoutRef = useRef6(void 0);
1670
1848
  useLayoutEffect(() => {
1671
1849
  const el = elRef.current;
@@ -1697,7 +1875,7 @@ var useResizeObserver = (elRef, timeout = 100) => {
1697
1875
  };
1698
1876
 
1699
1877
  // src/components/charts/pies/DonutChart/DonutChart.tsx
1700
- import { jsx as jsx28 } from "react/jsx-runtime";
1878
+ import { jsx as jsx31 } from "react/jsx-runtime";
1701
1879
  var MIN_WIDTH_HEIGHT_TO_SHOW_CHART = 10;
1702
1880
  ChartJS3.register(ArcElement, Tooltip3, Legend3, ChartDataLabels3, AnnotationPlugin2);
1703
1881
  var DonutChart = ({
@@ -1722,7 +1900,7 @@ var DonutChart = ({
1722
1900
  };
1723
1901
  const { height, width } = useResizeObserver(containerRef, 0);
1724
1902
  const hideChart = height < MIN_WIDTH_HEIGHT_TO_SHOW_CHART || width < MIN_WIDTH_HEIGHT_TO_SHOW_CHART;
1725
- return /* @__PURE__ */ jsx28("div", { className: styles24.chartContainer, ref: containerRef, children: hideChart ? null : /* @__PURE__ */ jsx28(
1903
+ return /* @__PURE__ */ jsx31("div", { className: styles26.chartContainer, ref: containerRef, children: hideChart ? null : /* @__PURE__ */ jsx31(
1726
1904
  Pie,
1727
1905
  {
1728
1906
  ref: chartRef,
@@ -1739,9 +1917,9 @@ import { Pie as Pie2 } from "react-chartjs-2";
1739
1917
  import { ArcElement as ArcElement2, Chart as ChartJS4, Legend as Legend4, Tooltip as Tooltip4 } from "chart.js";
1740
1918
  import ChartDataLabels4 from "chartjs-plugin-datalabels";
1741
1919
  import { mergician as mergician8 } from "mergician";
1742
- import styles25 from "./charts.module-YNKCWRLU.module.css";
1920
+ import styles27 from "./charts.module-YNKCWRLU.module.css";
1743
1921
  import AnnotationPlugin3 from "chartjs-plugin-annotation";
1744
- import { jsx as jsx29 } from "react/jsx-runtime";
1922
+ import { jsx as jsx32 } from "react/jsx-runtime";
1745
1923
  ChartJS4.register(ArcElement2, Tooltip4, Legend4, ChartDataLabels4, AnnotationPlugin3);
1746
1924
  var PieChart = ({
1747
1925
  data,
@@ -1764,7 +1942,7 @@ var PieChart = ({
1764
1942
  const indexClicked = getSegmentIndexClicked(event, chartRef);
1765
1943
  onSegmentClick?.(indexClicked);
1766
1944
  };
1767
- return /* @__PURE__ */ jsx29("div", { className: styles25.chartContainer, children: /* @__PURE__ */ jsx29(
1945
+ return /* @__PURE__ */ jsx32("div", { className: styles27.chartContainer, children: /* @__PURE__ */ jsx32(
1768
1946
  Pie2,
1769
1947
  {
1770
1948
  ref: chartRef,
@@ -1776,8 +1954,8 @@ var PieChart = ({
1776
1954
  };
1777
1955
 
1778
1956
  // src/components/charts/tables/Table/TablePaginated.tsx
1779
- import * as React2 from "react";
1780
- import styles29 from "./tables.module-GNDYDW3Z.module.css";
1957
+ import * as React3 from "react";
1958
+ import styles31 from "./tables.module-GNDYDW3Z.module.css";
1781
1959
  import clsx19 from "clsx";
1782
1960
 
1783
1961
  // src/components/charts/tables/Table/components/TablePagination/TablePagination.tsx
@@ -1787,9 +1965,9 @@ import {
1787
1965
  IconChevronsLeft,
1788
1966
  IconChevronsRight
1789
1967
  } from "@tabler/icons-react";
1790
- import styles26 from "./TablePagination.module-VGIQ7VN7.module.css";
1968
+ import styles28 from "./TablePagination.module-VGIQ7VN7.module.css";
1791
1969
  import { useEffect as useEffect5 } from "react";
1792
- import { jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
1970
+ import { jsx as jsx33, jsxs as jsxs17 } from "react/jsx-runtime";
1793
1971
  var getTableTotalPages = (total, pageSize) => {
1794
1972
  return total ? Math.ceil(total / pageSize) : void 0;
1795
1973
  };
@@ -1808,9 +1986,9 @@ var TablePagination = ({
1808
1986
  onPageChange(0);
1809
1987
  }
1810
1988
  }, [totalPages, page]);
1811
- return /* @__PURE__ */ jsx30("div", { className: styles26.tablePagination, "aria-label": "Table pagination controls", children: /* @__PURE__ */ jsxs16("div", { className: styles26.tablePaginationCentral, children: [
1812
- /* @__PURE__ */ jsxs16("div", { className: styles26.tablePaginationCentralButtons, children: [
1813
- /* @__PURE__ */ jsx30(
1989
+ return /* @__PURE__ */ jsx33("div", { className: styles28.tablePagination, "aria-label": "Table pagination controls", children: /* @__PURE__ */ jsxs17("div", { className: styles28.tablePaginationCentral, children: [
1990
+ /* @__PURE__ */ jsxs17("div", { className: styles28.tablePaginationCentralButtons, children: [
1991
+ /* @__PURE__ */ jsx33(
1814
1992
  ActionIcon,
1815
1993
  {
1816
1994
  icon: IconChevronsLeft,
@@ -1821,7 +1999,7 @@ var TablePagination = ({
1821
1999
  "aria-label": "First page"
1822
2000
  }
1823
2001
  ),
1824
- /* @__PURE__ */ jsx30(
2002
+ /* @__PURE__ */ jsx33(
1825
2003
  ActionIcon,
1826
2004
  {
1827
2005
  icon: IconChevronLeft,
@@ -1833,9 +2011,9 @@ var TablePagination = ({
1833
2011
  }
1834
2012
  )
1835
2013
  ] }),
1836
- /* @__PURE__ */ jsx30("span", { children: paginationLabel ?? `Page ${page + 1} of ${totalPages ?? "?"}` }),
1837
- /* @__PURE__ */ jsxs16("div", { className: styles26.tablePaginationCentralButtons, children: [
1838
- /* @__PURE__ */ jsx30(
2014
+ /* @__PURE__ */ jsx33("span", { children: paginationLabel ?? `Page ${page + 1} of ${totalPages ?? "?"}` }),
2015
+ /* @__PURE__ */ jsxs17("div", { className: styles28.tablePaginationCentralButtons, children: [
2016
+ /* @__PURE__ */ jsx33(
1839
2017
  ActionIcon,
1840
2018
  {
1841
2019
  icon: IconChevronRight,
@@ -1846,7 +2024,7 @@ var TablePagination = ({
1846
2024
  "aria-label": "Next page"
1847
2025
  }
1848
2026
  ),
1849
- /* @__PURE__ */ jsx30(
2027
+ /* @__PURE__ */ jsx33(
1850
2028
  ActionIcon,
1851
2029
  {
1852
2030
  icon: IconChevronsRight,
@@ -1860,8 +2038,8 @@ var TablePagination = ({
1860
2038
  };
1861
2039
 
1862
2040
  // src/components/charts/tables/Table/components/TableHeader/TableHeader.tsx
1863
- import { IconCaretDownFilled as IconCaretDownFilled2, IconCaretUpDownFilled, IconCaretUpFilled } from "@tabler/icons-react";
1864
- import styles27 from "./TableHeader.module-XXXLQWHC.module.css";
2041
+ import { IconCaretDownFilled as IconCaretDownFilled3, IconCaretUpDownFilled, IconCaretUpFilled } from "@tabler/icons-react";
2042
+ import styles29 from "./TableHeader.module-XXXLQWHC.module.css";
1865
2043
 
1866
2044
  // src/components/charts/tables/Table/table.types.ts
1867
2045
  var TableSortDirection = {
@@ -1877,7 +2055,7 @@ var TableHeaderAlign = {
1877
2055
  // src/components/charts/tables/Table/components/TableHeader/TableHeader.tsx
1878
2056
  import tableStyles from "./tables.module-GNDYDW3Z.module.css";
1879
2057
  import clsx17 from "clsx";
1880
- import { jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
2058
+ import { jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
1881
2059
  var getHeaderAriaSort = (sort, header) => {
1882
2060
  return sort?.id === header.id ? sort.direction === "asc" ? "ascending" : "descending" : "none";
1883
2061
  };
@@ -1891,15 +2069,15 @@ var TableHeader = ({
1891
2069
  onSortChange
1892
2070
  }) => {
1893
2071
  const getSortIcon = (header) => {
1894
- if (!sort) return /* @__PURE__ */ jsx31(IconCaretUpDownFilled, {});
2072
+ if (!sort) return /* @__PURE__ */ jsx34(IconCaretUpDownFilled, {});
1895
2073
  if (sort.id === header.id) {
1896
2074
  if (sort.direction === TableSortDirection.ASC) {
1897
- return /* @__PURE__ */ jsx31(IconCaretUpFilled, {});
2075
+ return /* @__PURE__ */ jsx34(IconCaretUpFilled, {});
1898
2076
  } else if (sort.direction === TableSortDirection.DESC) {
1899
- return /* @__PURE__ */ jsx31(IconCaretDownFilled2, {});
2077
+ return /* @__PURE__ */ jsx34(IconCaretDownFilled3, {});
1900
2078
  }
1901
2079
  }
1902
- return /* @__PURE__ */ jsx31(IconCaretUpDownFilled, {});
2080
+ return /* @__PURE__ */ jsx34(IconCaretUpDownFilled, {});
1903
2081
  };
1904
2082
  const handleSort = (id) => {
1905
2083
  if (!onSortChange) return;
@@ -1917,16 +2095,16 @@ var TableHeader = ({
1917
2095
  }
1918
2096
  }
1919
2097
  };
1920
- return /* @__PURE__ */ jsx31("thead", { className: styles27.tableHeader, children: /* @__PURE__ */ jsxs17("tr", { children: [
1921
- showIndex && /* @__PURE__ */ jsx31("th", { className: clsx17(tableStyles.mutedCell, tableStyles.stickyFirstColumn), children: "#" }),
1922
- headers.map((header) => /* @__PURE__ */ jsx31(
2098
+ return /* @__PURE__ */ jsx34("thead", { className: styles29.tableHeader, children: /* @__PURE__ */ jsxs18("tr", { children: [
2099
+ showIndex && /* @__PURE__ */ jsx34("th", { className: clsx17(tableStyles.mutedCell, tableStyles.stickyFirstColumn), children: "#" }),
2100
+ headers.map((header) => /* @__PURE__ */ jsx34(
1923
2101
  "th",
1924
2102
  {
1925
- className: styles27.tableHeaderCell,
2103
+ className: styles29.tableHeaderCell,
1926
2104
  style: { minWidth: header.minWidth },
1927
2105
  scope: "col",
1928
2106
  "aria-sort": getHeaderAriaSort(sort, header),
1929
- children: /* @__PURE__ */ jsxs17(
2107
+ children: /* @__PURE__ */ jsxs18(
1930
2108
  "button",
1931
2109
  {
1932
2110
  onClick: () => handleSort(header.id),
@@ -1944,12 +2122,12 @@ var TableHeader = ({
1944
2122
  };
1945
2123
 
1946
2124
  // src/components/charts/tables/Table/components/TableBody/TableBody.tsx
1947
- import styles28 from "./TableBody.module-ARNVVKDL.module.css";
2125
+ import styles30 from "./TableBody.module-ARNVVKDL.module.css";
1948
2126
  import clsx18 from "clsx";
1949
2127
  import { IconCopy, IconCopyCheckFilled } from "@tabler/icons-react";
1950
- import { useState as useState4 } from "react";
2128
+ import { useState as useState6 } from "react";
1951
2129
  import tableStyles2 from "./tables.module-GNDYDW3Z.module.css";
1952
- import { jsx as jsx32, jsxs as jsxs18 } from "react/jsx-runtime";
2130
+ import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
1953
2131
  var TableBody = ({
1954
2132
  headers,
1955
2133
  rows,
@@ -1958,14 +2136,14 @@ var TableBody = ({
1958
2136
  showIndex,
1959
2137
  onRowIndexClick
1960
2138
  }) => {
1961
- return /* @__PURE__ */ jsx32("tbody", { className: styles28.tableBody, children: rows.map((row, rowIndex) => /* @__PURE__ */ jsxs18(
2139
+ return /* @__PURE__ */ jsx35("tbody", { className: styles30.tableBody, children: rows.map((row, rowIndex) => /* @__PURE__ */ jsxs19(
1962
2140
  "tr",
1963
2141
  {
1964
2142
  onClick: () => onRowIndexClick?.(rowIndex),
1965
2143
  className: clsx18(rowIndex === rows.length - 1 && tableStyles2.tableLastRow),
1966
2144
  children: [
1967
- showIndex && /* @__PURE__ */ jsx32("td", { className: clsx18(tableStyles2.mutedCell, tableStyles2.stickyFirstColumn), children: pageSize * page + rowIndex + 1 }),
1968
- headers.map((header, cellIndex) => /* @__PURE__ */ jsx32(
2145
+ showIndex && /* @__PURE__ */ jsx35("td", { className: clsx18(tableStyles2.mutedCell, tableStyles2.stickyFirstColumn), children: pageSize * page + rowIndex + 1 }),
2146
+ headers.map((header, cellIndex) => /* @__PURE__ */ jsx35(
1969
2147
  TableBodyCell,
1970
2148
  {
1971
2149
  header,
@@ -1981,13 +2159,13 @@ var TableBody = ({
1981
2159
  )) });
1982
2160
  };
1983
2161
  var TableBodyCell = ({ header, row, rowIndex, cellIndex }) => {
1984
- const [isPressedCopy, setIsPressedCopy] = useState4(false);
2162
+ const [isPressedCopy, setIsPressedCopy] = useState6(false);
1985
2163
  const value = header.accessor !== void 0 ? header.accessor(row) : header.id !== void 0 ? (
1986
2164
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1987
2165
  row[header.id]
1988
2166
  ) : void 0;
1989
2167
  if (header.cell) {
1990
- return header.cell({ value, className: styles28.tableBodyCell });
2168
+ return header.cell({ value, className: styles30.tableBodyCell });
1991
2169
  }
1992
2170
  const handleCopy = () => {
1993
2171
  setIsPressedCopy(true);
@@ -1995,22 +2173,22 @@ var TableBodyCell = ({ header, row, rowIndex, cellIndex }) => {
1995
2173
  navigator.clipboard.writeText(String(value));
1996
2174
  }
1997
2175
  };
1998
- return /* @__PURE__ */ jsxs18(
2176
+ return /* @__PURE__ */ jsxs19(
1999
2177
  "td",
2000
2178
  {
2001
2179
  title: value,
2002
2180
  style: { textAlign: header.align },
2003
2181
  onMouseLeave: () => setIsPressedCopy(false),
2004
2182
  children: [
2005
- /* @__PURE__ */ jsx32(
2183
+ /* @__PURE__ */ jsx35(
2006
2184
  ActionIcon,
2007
2185
  {
2008
2186
  title: `Copy: ${String(value)}`,
2009
2187
  onMouseDown: handleCopy,
2010
2188
  icon: isPressedCopy ? IconCopyCheckFilled : IconCopy,
2011
2189
  className: clsx18(
2012
- styles28.copyButton,
2013
- header.align === TableHeaderAlign.RIGHT && styles28.leftAlign
2190
+ styles30.copyButton,
2191
+ header.align === TableHeaderAlign.RIGHT && styles30.leftAlign
2014
2192
  ),
2015
2193
  onClick: handleCopy
2016
2194
  }
@@ -2023,8 +2201,8 @@ var TableBodyCell = ({ header, row, rowIndex, cellIndex }) => {
2023
2201
  };
2024
2202
 
2025
2203
  // src/components/charts/tables/Table/TablePaginated.tsx
2026
- import { jsx as jsx33, jsxs as jsxs19 } from "react/jsx-runtime";
2027
- var TablePaginated = React2.forwardRef(
2204
+ import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
2205
+ var TablePaginated = React3.forwardRef(
2028
2206
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2029
2207
  (props, ref) => {
2030
2208
  const {
@@ -2041,9 +2219,9 @@ var TablePaginated = React2.forwardRef(
2041
2219
  onPageChange,
2042
2220
  onSortChange
2043
2221
  } = props;
2044
- return /* @__PURE__ */ jsxs19("div", { ref, className: clsx19(styles29.tableContainer, className), children: [
2045
- /* @__PURE__ */ jsx33("div", { className: styles29.tableContainerScroll, children: /* @__PURE__ */ jsxs19("table", { className: styles29.table, children: [
2046
- /* @__PURE__ */ jsx33(
2222
+ return /* @__PURE__ */ jsxs20("div", { ref, className: clsx19(styles31.tableContainer, className), children: [
2223
+ /* @__PURE__ */ jsx36("div", { className: styles31.tableContainerScroll, children: /* @__PURE__ */ jsxs20("table", { className: styles31.table, children: [
2224
+ /* @__PURE__ */ jsx36(
2047
2225
  TableHeader,
2048
2226
  {
2049
2227
  showIndex,
@@ -2052,7 +2230,7 @@ var TablePaginated = React2.forwardRef(
2052
2230
  onSortChange
2053
2231
  }
2054
2232
  ),
2055
- /* @__PURE__ */ jsx33(
2233
+ /* @__PURE__ */ jsx36(
2056
2234
  TableBody,
2057
2235
  {
2058
2236
  onRowIndexClick,
@@ -2064,7 +2242,7 @@ var TablePaginated = React2.forwardRef(
2064
2242
  }
2065
2243
  )
2066
2244
  ] }) }),
2067
- /* @__PURE__ */ jsx33(
2245
+ /* @__PURE__ */ jsx36(
2068
2246
  TablePagination,
2069
2247
  {
2070
2248
  page,
@@ -2080,7 +2258,7 @@ var TablePaginated = React2.forwardRef(
2080
2258
  TablePaginated.displayName = "TablePaginated";
2081
2259
 
2082
2260
  // src/components/charts/tables/PivotTable/PivotTable.tsx
2083
- import { useEffect as useEffect6, useMemo as useMemo3, useState as useState5 } from "react";
2261
+ import { useEffect as useEffect6, useMemo as useMemo3, useState as useState7 } from "react";
2084
2262
  import tableStyles3 from "./tables.module-GNDYDW3Z.module.css";
2085
2263
  import clsx20 from "clsx";
2086
2264
 
@@ -2094,7 +2272,7 @@ var getTableCellWidthStyle = (width) => {
2094
2272
  };
2095
2273
 
2096
2274
  // src/components/charts/tables/PivotTable/PivotTable.tsx
2097
- import { jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
2275
+ import { jsx as jsx37, jsxs as jsxs21 } from "react/jsx-runtime";
2098
2276
  var isNumber = (v) => typeof v === "number" && !Number.isNaN(v);
2099
2277
  var getPercentageDisplay = (percentage, percentageDecimalPlaces) => {
2100
2278
  return `${percentage.toFixed(percentageDecimalPlaces)}%`;
@@ -2186,7 +2364,7 @@ var PivotTable = ({
2186
2364
  }
2187
2365
  return { colTotals: cTotals, rowTotals: rTotals, grandTotals: gTotals };
2188
2366
  }, [data, measures, rowDimension.key, columnDimension.key, columnValues, rowValues]);
2189
- const [visibleCount, setVisibleCount] = useState5(
2367
+ const [visibleCount, setVisibleCount] = useState7(
2190
2368
  () => progressive ? Math.min(batchSize, rowValues.length) : rowValues.length
2191
2369
  );
2192
2370
  useEffect6(() => {
@@ -2213,22 +2391,22 @@ var PivotTable = ({
2213
2391
  };
2214
2392
  }, [progressive, batchSize, batchDelayMs, rowValues.length, data]);
2215
2393
  const visibleRows = progressive ? rowValues.slice(0, visibleCount) : rowValues;
2216
- return /* @__PURE__ */ jsx34("div", { className: clsx20(tableStyles3.tableFullContainer, className), children: /* @__PURE__ */ jsx34(
2394
+ return /* @__PURE__ */ jsx37("div", { className: clsx20(tableStyles3.tableFullContainer, className), children: /* @__PURE__ */ jsx37(
2217
2395
  "div",
2218
2396
  {
2219
2397
  className: clsx20(
2220
2398
  tableStyles3.tableAdjustedContainer,
2221
2399
  (!columnWidth || !firstColumnWidth) && tableStyles3.fullWidth
2222
2400
  ),
2223
- children: /* @__PURE__ */ jsxs20(
2401
+ children: /* @__PURE__ */ jsxs21(
2224
2402
  "table",
2225
2403
  {
2226
2404
  className: tableStyles3.table,
2227
2405
  "aria-label": `${rowDimension.label} by ${columnDimension.label}`,
2228
2406
  children: [
2229
- /* @__PURE__ */ jsxs20("thead", { children: [
2230
- /* @__PURE__ */ jsxs20("tr", { children: [
2231
- /* @__PURE__ */ jsx34(
2407
+ /* @__PURE__ */ jsxs21("thead", { children: [
2408
+ /* @__PURE__ */ jsxs21("tr", { children: [
2409
+ /* @__PURE__ */ jsx37(
2232
2410
  "th",
2233
2411
  {
2234
2412
  scope: "col",
@@ -2240,7 +2418,7 @@ var PivotTable = ({
2240
2418
  ),
2241
2419
  columnValues.map((columnValue) => {
2242
2420
  const columnValueDisplay = columnDimension.formatValue ? columnDimension.formatValue(columnValue) : columnValue;
2243
- return /* @__PURE__ */ jsx34(
2421
+ return /* @__PURE__ */ jsx37(
2244
2422
  "th",
2245
2423
  {
2246
2424
  scope: "colgroup",
@@ -2251,7 +2429,7 @@ var PivotTable = ({
2251
2429
  `col-${columnValue}`
2252
2430
  );
2253
2431
  }),
2254
- hasRowTotals && /* @__PURE__ */ jsx34(
2432
+ hasRowTotals && /* @__PURE__ */ jsx37(
2255
2433
  "th",
2256
2434
  {
2257
2435
  scope: "colgroup",
@@ -2263,8 +2441,8 @@ var PivotTable = ({
2263
2441
  "col-total-group"
2264
2442
  )
2265
2443
  ] }),
2266
- /* @__PURE__ */ jsxs20("tr", { children: [
2267
- /* @__PURE__ */ jsx34(
2444
+ /* @__PURE__ */ jsxs21("tr", { children: [
2445
+ /* @__PURE__ */ jsx37(
2268
2446
  "th",
2269
2447
  {
2270
2448
  scope: "col",
@@ -2276,7 +2454,7 @@ var PivotTable = ({
2276
2454
  }
2277
2455
  ),
2278
2456
  columnValues.flatMap(
2279
- (col) => measures.map((measure, idx) => /* @__PURE__ */ jsx34(
2457
+ (col) => measures.map((measure, idx) => /* @__PURE__ */ jsx37(
2280
2458
  "th",
2281
2459
  {
2282
2460
  scope: "col",
@@ -2287,7 +2465,7 @@ var PivotTable = ({
2287
2465
  `sub-${String(col)}-${measure.key}-${idx}`
2288
2466
  ))
2289
2467
  ),
2290
- hasRowTotals && measures.filter((measure) => rowTotalsSet.has(measure.key)).map((measure, idx) => /* @__PURE__ */ jsx34(
2468
+ hasRowTotals && measures.filter((measure) => rowTotalsSet.has(measure.key)).map((measure, idx) => /* @__PURE__ */ jsx37(
2291
2469
  "th",
2292
2470
  {
2293
2471
  scope: "col",
@@ -2300,11 +2478,11 @@ var PivotTable = ({
2300
2478
  ))
2301
2479
  ] })
2302
2480
  ] }),
2303
- /* @__PURE__ */ jsxs20("tbody", { children: [
2481
+ /* @__PURE__ */ jsxs21("tbody", { children: [
2304
2482
  visibleRows.map((row) => {
2305
2483
  const rowDimensionValue = rowDimension.formatValue ? rowDimension.formatValue(row) : row;
2306
- return /* @__PURE__ */ jsxs20("tr", { children: [
2307
- /* @__PURE__ */ jsx34(
2484
+ return /* @__PURE__ */ jsxs21("tr", { children: [
2485
+ /* @__PURE__ */ jsx37(
2308
2486
  "th",
2309
2487
  {
2310
2488
  scope: "row",
@@ -2332,7 +2510,7 @@ var PivotTable = ({
2332
2510
  return measure.accessor ? measure.accessor(object) : value;
2333
2511
  };
2334
2512
  const columnValueDisplay = getDisplayValue();
2335
- return /* @__PURE__ */ jsx34("td", { title: columnValueDisplay, children: columnValueDisplay }, key);
2513
+ return /* @__PURE__ */ jsx37("td", { title: columnValueDisplay, children: columnValueDisplay }, key);
2336
2514
  })
2337
2515
  ),
2338
2516
  hasRowTotals && measures.filter((measure) => rowTotalsSet.has(measure.key)).map((measure, idx) => {
@@ -2349,12 +2527,12 @@ var PivotTable = ({
2349
2527
  } else if (measure.accessor) {
2350
2528
  displayValue = measure.accessor({ [measure.key]: value });
2351
2529
  }
2352
- return /* @__PURE__ */ jsx34("td", { className: tableStyles3.boltCell, title: displayValue, children: displayValue }, key);
2530
+ return /* @__PURE__ */ jsx37("td", { className: tableStyles3.boltCell, title: displayValue, children: displayValue }, key);
2353
2531
  })
2354
2532
  ] }, `row-${row}`);
2355
2533
  }),
2356
- hasColumnTotals && /* @__PURE__ */ jsxs20("tr", { className: tableStyles3.stickyLastRow, children: [
2357
- /* @__PURE__ */ jsx34(
2534
+ hasColumnTotals && /* @__PURE__ */ jsxs21("tr", { className: tableStyles3.stickyLastRow, children: [
2535
+ /* @__PURE__ */ jsx37(
2358
2536
  "th",
2359
2537
  {
2360
2538
  scope: "row",
@@ -2380,7 +2558,7 @@ var PivotTable = ({
2380
2558
  displayValue = measure.accessor({ [measure.key]: value });
2381
2559
  }
2382
2560
  const columnValueDisplay = show ? displayValue : "";
2383
- return /* @__PURE__ */ jsx34("td", { className: tableStyles3.boltCell, title: columnValueDisplay, children: columnValueDisplay }, key);
2561
+ return /* @__PURE__ */ jsx37("td", { className: tableStyles3.boltCell, title: columnValueDisplay, children: columnValueDisplay }, key);
2384
2562
  })
2385
2563
  ),
2386
2564
  hasRowTotals && measures.filter((measure) => rowTotalsSet.has(measure.key)).map((measure, idx) => {
@@ -2396,7 +2574,7 @@ var PivotTable = ({
2396
2574
  } else if (measure.accessor) {
2397
2575
  displayValue = measure.accessor({ [measure.key]: value });
2398
2576
  }
2399
- return /* @__PURE__ */ jsx34("td", { className: tableStyles3.boltCell, title: displayValue, children: displayValue }, key);
2577
+ return /* @__PURE__ */ jsx37("td", { className: tableStyles3.boltCell, title: displayValue, children: displayValue }, key);
2400
2578
  })
2401
2579
  ] }, "totals-row")
2402
2580
  ] })
@@ -2557,7 +2735,7 @@ var createColorForValue = ({
2557
2735
  };
2558
2736
 
2559
2737
  // src/components/charts/tables/HeatMap/HeatMap.tsx
2560
- import { jsx as jsx35, jsxs as jsxs21 } from "react/jsx-runtime";
2738
+ import { jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
2561
2739
  var HeatMap = ({
2562
2740
  data,
2563
2741
  showValues = false,
@@ -2632,16 +2810,16 @@ var HeatMap = ({
2632
2810
  },
2633
2811
  [domainMin, domainMax, rawMin, rawMax, minColor, midColor, maxColor]
2634
2812
  );
2635
- return /* @__PURE__ */ jsx35("div", { className: clsx21(tableStyles4.tableFullContainer, className), children: /* @__PURE__ */ jsx35(
2813
+ return /* @__PURE__ */ jsx38("div", { className: clsx21(tableStyles4.tableFullContainer, className), children: /* @__PURE__ */ jsx38(
2636
2814
  "div",
2637
2815
  {
2638
2816
  className: clsx21(
2639
2817
  tableStyles4.tableAdjustedContainer,
2640
2818
  (!columnWidth || !firstColumnWidth) && tableStyles4.fullWidth
2641
2819
  ),
2642
- children: /* @__PURE__ */ jsxs21("table", { className: tableStyles4.table, "aria-label": "Heat map", children: [
2643
- /* @__PURE__ */ jsx35("thead", { children: /* @__PURE__ */ jsxs21("tr", { children: [
2644
- /* @__PURE__ */ jsx35(
2820
+ children: /* @__PURE__ */ jsxs22("table", { className: tableStyles4.table, "aria-label": "Heat map", children: [
2821
+ /* @__PURE__ */ jsx38("thead", { children: /* @__PURE__ */ jsxs22("tr", { children: [
2822
+ /* @__PURE__ */ jsx38(
2645
2823
  "th",
2646
2824
  {
2647
2825
  className: tableStyles4.stickyFirstColumn,
@@ -2649,10 +2827,10 @@ var HeatMap = ({
2649
2827
  children: measure.label
2650
2828
  }
2651
2829
  ),
2652
- columnValues.map((cv, index) => /* @__PURE__ */ jsx35("th", { style: getTableCellWidthStyle(columnWidth), children: columnDimension.format ? columnDimension.format(cv) : cv }, `col-${cv}-${index}`))
2830
+ columnValues.map((cv, index) => /* @__PURE__ */ jsx38("th", { style: getTableCellWidthStyle(columnWidth), children: columnDimension.format ? columnDimension.format(cv) : cv }, `col-${cv}-${index}`))
2653
2831
  ] }) }),
2654
- /* @__PURE__ */ jsx35("tbody", { children: rowValues.map((rv) => /* @__PURE__ */ jsxs21("tr", { children: [
2655
- /* @__PURE__ */ jsx35(
2832
+ /* @__PURE__ */ jsx38("tbody", { children: rowValues.map((rv) => /* @__PURE__ */ jsxs22("tr", { children: [
2833
+ /* @__PURE__ */ jsx38(
2656
2834
  "th",
2657
2835
  {
2658
2836
  scope: "row",
@@ -2666,7 +2844,7 @@ var HeatMap = ({
2666
2844
  const value = getCellValue(obj?.[measure.key], displayNullAs);
2667
2845
  const background = getCellBackground(value, colorForValue);
2668
2846
  const color = getCellColor(background);
2669
- return /* @__PURE__ */ jsx35(
2847
+ return /* @__PURE__ */ jsx38(
2670
2848
  "td",
2671
2849
  {
2672
2850
  style: {
@@ -2736,6 +2914,8 @@ export {
2736
2914
  CardContent,
2737
2915
  CardFeedback,
2738
2916
  CardHeader,
2917
+ DateRangePicker,
2918
+ DateRangePickerField,
2739
2919
  DonutChart,
2740
2920
  Dropdown,
2741
2921
  FieldFeedback,