@embeddable.com/remarkable-ui 2.0.14 → 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";
@@ -1280,10 +1455,10 @@ var getBarChartOptions = (options) => {
1280
1455
  };
1281
1456
 
1282
1457
  // src/components/charts/bars/BarChart.tsx
1283
- import styles20 from "./charts.module-YNKCWRLU.module.css";
1458
+ import styles22 from "./charts.module-YNKCWRLU.module.css";
1284
1459
  import { mergician as mergician3 } from "mergician";
1285
1460
  import ChartDataLabels from "chartjs-plugin-datalabels";
1286
- import { jsx as jsx23 } from "react/jsx-runtime";
1461
+ import { jsx as jsx26 } from "react/jsx-runtime";
1287
1462
  ChartJS.register(
1288
1463
  CategoryScale,
1289
1464
  LinearScale,
@@ -1301,7 +1476,7 @@ var BarChart = ({ data, onSegmentClick, options = {}, ...props }) => {
1301
1476
  const indexClicked = getSegmentIndexClicked(event, chartRef);
1302
1477
  onSegmentClick?.(indexClicked);
1303
1478
  };
1304
- return /* @__PURE__ */ jsx23("div", { className: styles20.chartContainer, children: /* @__PURE__ */ jsx23(
1479
+ return /* @__PURE__ */ jsx26("div", { className: styles22.chartContainer, children: /* @__PURE__ */ jsx26(
1305
1480
  Bar,
1306
1481
  {
1307
1482
  ref: chartRef,
@@ -1326,7 +1501,7 @@ import {
1326
1501
  Filler
1327
1502
  } from "chart.js";
1328
1503
  import { Line } from "react-chartjs-2";
1329
- import styles21 from "./charts.module-YNKCWRLU.module.css";
1504
+ import styles23 from "./charts.module-YNKCWRLU.module.css";
1330
1505
  import { useRef as useRef5 } from "react";
1331
1506
  import { mergician as mergician5 } from "mergician";
1332
1507
 
@@ -1421,7 +1596,7 @@ var getLineChartOptions = (options) => {
1421
1596
  // src/components/charts/lines/LineChart.tsx
1422
1597
  import ChartDataLabels2 from "chartjs-plugin-datalabels";
1423
1598
  import AnnotationPlugin from "chartjs-plugin-annotation";
1424
- import { jsx as jsx24 } from "react/jsx-runtime";
1599
+ import { jsx as jsx27 } from "react/jsx-runtime";
1425
1600
  ChartJS2.register(
1426
1601
  CategoryScale2,
1427
1602
  LinearScale2,
@@ -1442,7 +1617,7 @@ var LineChart = ({ options = {}, data, onSegmentClick, ...props }) => {
1442
1617
  const indexClicked = getSegmentIndexClicked(event, chartRef);
1443
1618
  onSegmentClick?.(indexClicked);
1444
1619
  };
1445
- return /* @__PURE__ */ jsx24("div", { className: styles21.chartContainer, children: /* @__PURE__ */ jsx24(
1620
+ return /* @__PURE__ */ jsx27("div", { className: styles23.chartContainer, children: /* @__PURE__ */ jsx27(
1446
1621
  Line,
1447
1622
  {
1448
1623
  ref: chartRef,
@@ -1454,16 +1629,16 @@ var LineChart = ({ options = {}, data, onSegmentClick, ...props }) => {
1454
1629
  };
1455
1630
 
1456
1631
  // src/components/charts/kpis/KpiChart.tsx
1457
- import styles23 from "./KpiChart.module-2LUIN66C.module.css";
1632
+ import styles25 from "./KpiChart.module-2LUIN66C.module.css";
1458
1633
 
1459
1634
  // src/components/charts/kpis/components/KpiChartChange.tsx
1460
- import styles22 from "./KpiChartChange.module-BAW7YCOW.module.css";
1635
+ import styles24 from "./KpiChartChange.module-BAW7YCOW.module.css";
1461
1636
  import clsx16 from "clsx";
1462
1637
  import { IconTrendingDown, IconTrendingUp } from "@tabler/icons-react";
1463
- 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";
1464
1639
  var getChangeClass = (isPositive, invertChangeColors) => {
1465
- if (isPositive) return invertChangeColors ? styles22.negative : styles22.positive;
1466
- return invertChangeColors ? styles22.positive : styles22.negative;
1640
+ if (isPositive) return invertChangeColors ? styles24.negative : styles24.positive;
1641
+ return invertChangeColors ? styles24.positive : styles24.negative;
1467
1642
  };
1468
1643
  var KpiChartChange = ({
1469
1644
  value,
@@ -1489,35 +1664,35 @@ var KpiChartChange = ({
1489
1664
  const displayValue = `${isPositive ? "+" : ""}${differenceLabel}`;
1490
1665
  const Icon = isPositive ? IconTrendingUp : IconTrendingDown;
1491
1666
  const showNoPreviousData = showChangeAsPercentage && Number(comparisonValue) === 0;
1492
- return /* @__PURE__ */ jsxs14("div", { className: styles22.kpiChangeContainerSizeGuide, children: [
1493
- /* @__PURE__ */ jsxs14("div", { className: clsx16(styles22.kpiChartChangeContainer, styles22.hidden), children: [
1494
- /* @__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(
1495
1670
  "span",
1496
1671
  {
1497
- className: clsx16(styles22.kpiChangeBadge, getChangeClass(isPositive, invertChangeColors)),
1672
+ className: clsx16(styles24.kpiChangeBadge, getChangeClass(isPositive, invertChangeColors)),
1498
1673
  children: [
1499
- /* @__PURE__ */ jsx25(Icon, {}),
1500
- /* @__PURE__ */ jsx25("span", { children: displayValue })
1674
+ /* @__PURE__ */ jsx28(Icon, {}),
1675
+ /* @__PURE__ */ jsx28("span", { children: displayValue })
1501
1676
  ]
1502
1677
  }
1503
1678
  ),
1504
- /* @__PURE__ */ jsx25("span", { className: styles22.kpiComparisonLabel, children: comparisonLabel })
1679
+ /* @__PURE__ */ jsx28("span", { className: styles24.kpiComparisonLabel, children: comparisonLabel })
1505
1680
  ] }),
1506
- /* @__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: [
1507
- !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(
1508
1683
  "span",
1509
1684
  {
1510
1685
  className: clsx16(
1511
- styles22.kpiChangeBadge,
1686
+ styles24.kpiChangeBadge,
1512
1687
  getChangeClass(isPositive, invertChangeColors)
1513
1688
  ),
1514
1689
  children: [
1515
- /* @__PURE__ */ jsx25(Icon, {}),
1516
- /* @__PURE__ */ jsx25("span", { children: displayValue })
1690
+ /* @__PURE__ */ jsx28(Icon, {}),
1691
+ /* @__PURE__ */ jsx28("span", { children: displayValue })
1517
1692
  ]
1518
1693
  }
1519
1694
  ),
1520
- /* @__PURE__ */ jsx25("span", { className: styles22.kpiComparisonLabel, children: equalComparison ? equalComparisonLabel ?? comparisonLabel : comparisonLabel })
1695
+ /* @__PURE__ */ jsx28("span", { className: styles24.kpiComparisonLabel, children: equalComparison ? equalComparisonLabel ?? comparisonLabel : comparisonLabel })
1521
1696
  ] }) }) })
1522
1697
  ] });
1523
1698
  };
@@ -1526,12 +1701,12 @@ var KpiChartChange = ({
1526
1701
  import { AutoTextSize } from "auto-text-size";
1527
1702
 
1528
1703
  // src/components/shared/ConditionalWrapper/ConditionalWrapper.tsx
1529
- import { Fragment as Fragment5, jsx as jsx26 } from "react/jsx-runtime";
1530
- 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 });
1531
1706
  var ConditionalWrapper_default = ConditionalWrapper;
1532
1707
 
1533
1708
  // src/components/charts/kpis/KpiChart.tsx
1534
- import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
1709
+ import { jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
1535
1710
  var KpiChart = ({
1536
1711
  value,
1537
1712
  valueFontSize,
@@ -1548,13 +1723,13 @@ var KpiChart = ({
1548
1723
  const hasComparisonValue = comparisonValue !== void 0;
1549
1724
  const displayValue = value === void 0 ? "" : valueFormatter ? valueFormatter(value) : value;
1550
1725
  const autoResizeValueFontSize = !valueFontSize;
1551
- return /* @__PURE__ */ jsxs15("div", { className: styles23.kpiChartContainer, children: [
1552
- /* @__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(
1553
1728
  ConditionalWrapper_default,
1554
1729
  {
1555
1730
  condition: autoResizeValueFontSize,
1556
- wrapper: (children) => /* @__PURE__ */ jsx27(AutoTextSize, { mode: "boxoneline", minFontSizePx: 1, maxFontSizePx: 999, children }),
1557
- children: /* @__PURE__ */ jsx27(
1731
+ wrapper: (children) => /* @__PURE__ */ jsx30(AutoTextSize, { mode: "boxoneline", minFontSizePx: 1, maxFontSizePx: 999, children }),
1732
+ children: /* @__PURE__ */ jsx30(
1558
1733
  "h2",
1559
1734
  {
1560
1735
  title: displayValue.toString(),
@@ -1566,7 +1741,7 @@ var KpiChart = ({
1566
1741
  )
1567
1742
  }
1568
1743
  ) }),
1569
- /* @__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(
1570
1745
  KpiChartChange,
1571
1746
  {
1572
1747
  equalComparisonLabel,
@@ -1663,12 +1838,12 @@ var getDonutChartOptions = (options) => {
1663
1838
 
1664
1839
  // src/components/charts/pies/DonutChart/DonutChart.tsx
1665
1840
  import { mergician as mergician7 } from "mergician";
1666
- import styles24 from "./charts.module-YNKCWRLU.module.css";
1841
+ import styles26 from "./charts.module-YNKCWRLU.module.css";
1667
1842
 
1668
1843
  // src/hooks/useResizeObserver.hook.ts
1669
- import { useLayoutEffect, useRef as useRef6, useState as useState3 } from "react";
1844
+ import { useLayoutEffect, useRef as useRef6, useState as useState5 } from "react";
1670
1845
  var useResizeObserver = (elRef, timeout = 100) => {
1671
- const [size, setSize] = useState3({ width: 0, height: 0 });
1846
+ const [size, setSize] = useState5({ width: 0, height: 0 });
1672
1847
  const timeoutRef = useRef6(void 0);
1673
1848
  useLayoutEffect(() => {
1674
1849
  const el = elRef.current;
@@ -1700,7 +1875,7 @@ var useResizeObserver = (elRef, timeout = 100) => {
1700
1875
  };
1701
1876
 
1702
1877
  // src/components/charts/pies/DonutChart/DonutChart.tsx
1703
- import { jsx as jsx28 } from "react/jsx-runtime";
1878
+ import { jsx as jsx31 } from "react/jsx-runtime";
1704
1879
  var MIN_WIDTH_HEIGHT_TO_SHOW_CHART = 10;
1705
1880
  ChartJS3.register(ArcElement, Tooltip3, Legend3, ChartDataLabels3, AnnotationPlugin2);
1706
1881
  var DonutChart = ({
@@ -1725,7 +1900,7 @@ var DonutChart = ({
1725
1900
  };
1726
1901
  const { height, width } = useResizeObserver(containerRef, 0);
1727
1902
  const hideChart = height < MIN_WIDTH_HEIGHT_TO_SHOW_CHART || width < MIN_WIDTH_HEIGHT_TO_SHOW_CHART;
1728
- 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(
1729
1904
  Pie,
1730
1905
  {
1731
1906
  ref: chartRef,
@@ -1742,9 +1917,9 @@ import { Pie as Pie2 } from "react-chartjs-2";
1742
1917
  import { ArcElement as ArcElement2, Chart as ChartJS4, Legend as Legend4, Tooltip as Tooltip4 } from "chart.js";
1743
1918
  import ChartDataLabels4 from "chartjs-plugin-datalabels";
1744
1919
  import { mergician as mergician8 } from "mergician";
1745
- import styles25 from "./charts.module-YNKCWRLU.module.css";
1920
+ import styles27 from "./charts.module-YNKCWRLU.module.css";
1746
1921
  import AnnotationPlugin3 from "chartjs-plugin-annotation";
1747
- import { jsx as jsx29 } from "react/jsx-runtime";
1922
+ import { jsx as jsx32 } from "react/jsx-runtime";
1748
1923
  ChartJS4.register(ArcElement2, Tooltip4, Legend4, ChartDataLabels4, AnnotationPlugin3);
1749
1924
  var PieChart = ({
1750
1925
  data,
@@ -1767,7 +1942,7 @@ var PieChart = ({
1767
1942
  const indexClicked = getSegmentIndexClicked(event, chartRef);
1768
1943
  onSegmentClick?.(indexClicked);
1769
1944
  };
1770
- return /* @__PURE__ */ jsx29("div", { className: styles25.chartContainer, children: /* @__PURE__ */ jsx29(
1945
+ return /* @__PURE__ */ jsx32("div", { className: styles27.chartContainer, children: /* @__PURE__ */ jsx32(
1771
1946
  Pie2,
1772
1947
  {
1773
1948
  ref: chartRef,
@@ -1779,8 +1954,8 @@ var PieChart = ({
1779
1954
  };
1780
1955
 
1781
1956
  // src/components/charts/tables/Table/TablePaginated.tsx
1782
- import * as React2 from "react";
1783
- import styles29 from "./tables.module-GNDYDW3Z.module.css";
1957
+ import * as React3 from "react";
1958
+ import styles31 from "./tables.module-GNDYDW3Z.module.css";
1784
1959
  import clsx19 from "clsx";
1785
1960
 
1786
1961
  // src/components/charts/tables/Table/components/TablePagination/TablePagination.tsx
@@ -1790,9 +1965,9 @@ import {
1790
1965
  IconChevronsLeft,
1791
1966
  IconChevronsRight
1792
1967
  } from "@tabler/icons-react";
1793
- import styles26 from "./TablePagination.module-VGIQ7VN7.module.css";
1968
+ import styles28 from "./TablePagination.module-VGIQ7VN7.module.css";
1794
1969
  import { useEffect as useEffect5 } from "react";
1795
- import { jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
1970
+ import { jsx as jsx33, jsxs as jsxs17 } from "react/jsx-runtime";
1796
1971
  var getTableTotalPages = (total, pageSize) => {
1797
1972
  return total ? Math.ceil(total / pageSize) : void 0;
1798
1973
  };
@@ -1811,9 +1986,9 @@ var TablePagination = ({
1811
1986
  onPageChange(0);
1812
1987
  }
1813
1988
  }, [totalPages, page]);
1814
- return /* @__PURE__ */ jsx30("div", { className: styles26.tablePagination, "aria-label": "Table pagination controls", children: /* @__PURE__ */ jsxs16("div", { className: styles26.tablePaginationCentral, children: [
1815
- /* @__PURE__ */ jsxs16("div", { className: styles26.tablePaginationCentralButtons, children: [
1816
- /* @__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(
1817
1992
  ActionIcon,
1818
1993
  {
1819
1994
  icon: IconChevronsLeft,
@@ -1824,7 +1999,7 @@ var TablePagination = ({
1824
1999
  "aria-label": "First page"
1825
2000
  }
1826
2001
  ),
1827
- /* @__PURE__ */ jsx30(
2002
+ /* @__PURE__ */ jsx33(
1828
2003
  ActionIcon,
1829
2004
  {
1830
2005
  icon: IconChevronLeft,
@@ -1836,9 +2011,9 @@ var TablePagination = ({
1836
2011
  }
1837
2012
  )
1838
2013
  ] }),
1839
- /* @__PURE__ */ jsx30("span", { children: paginationLabel ?? `Page ${page + 1} of ${totalPages ?? "?"}` }),
1840
- /* @__PURE__ */ jsxs16("div", { className: styles26.tablePaginationCentralButtons, children: [
1841
- /* @__PURE__ */ jsx30(
2014
+ /* @__PURE__ */ jsx33("span", { children: paginationLabel ?? `Page ${page + 1} of ${totalPages ?? "?"}` }),
2015
+ /* @__PURE__ */ jsxs17("div", { className: styles28.tablePaginationCentralButtons, children: [
2016
+ /* @__PURE__ */ jsx33(
1842
2017
  ActionIcon,
1843
2018
  {
1844
2019
  icon: IconChevronRight,
@@ -1849,7 +2024,7 @@ var TablePagination = ({
1849
2024
  "aria-label": "Next page"
1850
2025
  }
1851
2026
  ),
1852
- /* @__PURE__ */ jsx30(
2027
+ /* @__PURE__ */ jsx33(
1853
2028
  ActionIcon,
1854
2029
  {
1855
2030
  icon: IconChevronsRight,
@@ -1863,8 +2038,8 @@ var TablePagination = ({
1863
2038
  };
1864
2039
 
1865
2040
  // src/components/charts/tables/Table/components/TableHeader/TableHeader.tsx
1866
- import { IconCaretDownFilled as IconCaretDownFilled2, IconCaretUpDownFilled, IconCaretUpFilled } from "@tabler/icons-react";
1867
- 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";
1868
2043
 
1869
2044
  // src/components/charts/tables/Table/table.types.ts
1870
2045
  var TableSortDirection = {
@@ -1880,7 +2055,7 @@ var TableHeaderAlign = {
1880
2055
  // src/components/charts/tables/Table/components/TableHeader/TableHeader.tsx
1881
2056
  import tableStyles from "./tables.module-GNDYDW3Z.module.css";
1882
2057
  import clsx17 from "clsx";
1883
- import { jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
2058
+ import { jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
1884
2059
  var getHeaderAriaSort = (sort, header) => {
1885
2060
  return sort?.id === header.id ? sort.direction === "asc" ? "ascending" : "descending" : "none";
1886
2061
  };
@@ -1894,15 +2069,15 @@ var TableHeader = ({
1894
2069
  onSortChange
1895
2070
  }) => {
1896
2071
  const getSortIcon = (header) => {
1897
- if (!sort) return /* @__PURE__ */ jsx31(IconCaretUpDownFilled, {});
2072
+ if (!sort) return /* @__PURE__ */ jsx34(IconCaretUpDownFilled, {});
1898
2073
  if (sort.id === header.id) {
1899
2074
  if (sort.direction === TableSortDirection.ASC) {
1900
- return /* @__PURE__ */ jsx31(IconCaretUpFilled, {});
2075
+ return /* @__PURE__ */ jsx34(IconCaretUpFilled, {});
1901
2076
  } else if (sort.direction === TableSortDirection.DESC) {
1902
- return /* @__PURE__ */ jsx31(IconCaretDownFilled2, {});
2077
+ return /* @__PURE__ */ jsx34(IconCaretDownFilled3, {});
1903
2078
  }
1904
2079
  }
1905
- return /* @__PURE__ */ jsx31(IconCaretUpDownFilled, {});
2080
+ return /* @__PURE__ */ jsx34(IconCaretUpDownFilled, {});
1906
2081
  };
1907
2082
  const handleSort = (id) => {
1908
2083
  if (!onSortChange) return;
@@ -1920,16 +2095,16 @@ var TableHeader = ({
1920
2095
  }
1921
2096
  }
1922
2097
  };
1923
- return /* @__PURE__ */ jsx31("thead", { className: styles27.tableHeader, children: /* @__PURE__ */ jsxs17("tr", { children: [
1924
- showIndex && /* @__PURE__ */ jsx31("th", { className: clsx17(tableStyles.mutedCell, tableStyles.stickyFirstColumn), children: "#" }),
1925
- 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(
1926
2101
  "th",
1927
2102
  {
1928
- className: styles27.tableHeaderCell,
2103
+ className: styles29.tableHeaderCell,
1929
2104
  style: { minWidth: header.minWidth },
1930
2105
  scope: "col",
1931
2106
  "aria-sort": getHeaderAriaSort(sort, header),
1932
- children: /* @__PURE__ */ jsxs17(
2107
+ children: /* @__PURE__ */ jsxs18(
1933
2108
  "button",
1934
2109
  {
1935
2110
  onClick: () => handleSort(header.id),
@@ -1947,12 +2122,12 @@ var TableHeader = ({
1947
2122
  };
1948
2123
 
1949
2124
  // src/components/charts/tables/Table/components/TableBody/TableBody.tsx
1950
- import styles28 from "./TableBody.module-ARNVVKDL.module.css";
2125
+ import styles30 from "./TableBody.module-ARNVVKDL.module.css";
1951
2126
  import clsx18 from "clsx";
1952
2127
  import { IconCopy, IconCopyCheckFilled } from "@tabler/icons-react";
1953
- import { useState as useState4 } from "react";
2128
+ import { useState as useState6 } from "react";
1954
2129
  import tableStyles2 from "./tables.module-GNDYDW3Z.module.css";
1955
- import { jsx as jsx32, jsxs as jsxs18 } from "react/jsx-runtime";
2130
+ import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
1956
2131
  var TableBody = ({
1957
2132
  headers,
1958
2133
  rows,
@@ -1961,14 +2136,14 @@ var TableBody = ({
1961
2136
  showIndex,
1962
2137
  onRowIndexClick
1963
2138
  }) => {
1964
- 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(
1965
2140
  "tr",
1966
2141
  {
1967
2142
  onClick: () => onRowIndexClick?.(rowIndex),
1968
2143
  className: clsx18(rowIndex === rows.length - 1 && tableStyles2.tableLastRow),
1969
2144
  children: [
1970
- showIndex && /* @__PURE__ */ jsx32("td", { className: clsx18(tableStyles2.mutedCell, tableStyles2.stickyFirstColumn), children: pageSize * page + rowIndex + 1 }),
1971
- 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(
1972
2147
  TableBodyCell,
1973
2148
  {
1974
2149
  header,
@@ -1984,13 +2159,13 @@ var TableBody = ({
1984
2159
  )) });
1985
2160
  };
1986
2161
  var TableBodyCell = ({ header, row, rowIndex, cellIndex }) => {
1987
- const [isPressedCopy, setIsPressedCopy] = useState4(false);
2162
+ const [isPressedCopy, setIsPressedCopy] = useState6(false);
1988
2163
  const value = header.accessor !== void 0 ? header.accessor(row) : header.id !== void 0 ? (
1989
2164
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1990
2165
  row[header.id]
1991
2166
  ) : void 0;
1992
2167
  if (header.cell) {
1993
- return header.cell({ value, className: styles28.tableBodyCell });
2168
+ return header.cell({ value, className: styles30.tableBodyCell });
1994
2169
  }
1995
2170
  const handleCopy = () => {
1996
2171
  setIsPressedCopy(true);
@@ -1998,22 +2173,22 @@ var TableBodyCell = ({ header, row, rowIndex, cellIndex }) => {
1998
2173
  navigator.clipboard.writeText(String(value));
1999
2174
  }
2000
2175
  };
2001
- return /* @__PURE__ */ jsxs18(
2176
+ return /* @__PURE__ */ jsxs19(
2002
2177
  "td",
2003
2178
  {
2004
2179
  title: value,
2005
2180
  style: { textAlign: header.align },
2006
2181
  onMouseLeave: () => setIsPressedCopy(false),
2007
2182
  children: [
2008
- /* @__PURE__ */ jsx32(
2183
+ /* @__PURE__ */ jsx35(
2009
2184
  ActionIcon,
2010
2185
  {
2011
2186
  title: `Copy: ${String(value)}`,
2012
2187
  onMouseDown: handleCopy,
2013
2188
  icon: isPressedCopy ? IconCopyCheckFilled : IconCopy,
2014
2189
  className: clsx18(
2015
- styles28.copyButton,
2016
- header.align === TableHeaderAlign.RIGHT && styles28.leftAlign
2190
+ styles30.copyButton,
2191
+ header.align === TableHeaderAlign.RIGHT && styles30.leftAlign
2017
2192
  ),
2018
2193
  onClick: handleCopy
2019
2194
  }
@@ -2026,8 +2201,8 @@ var TableBodyCell = ({ header, row, rowIndex, cellIndex }) => {
2026
2201
  };
2027
2202
 
2028
2203
  // src/components/charts/tables/Table/TablePaginated.tsx
2029
- import { jsx as jsx33, jsxs as jsxs19 } from "react/jsx-runtime";
2030
- var TablePaginated = React2.forwardRef(
2204
+ import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
2205
+ var TablePaginated = React3.forwardRef(
2031
2206
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2032
2207
  (props, ref) => {
2033
2208
  const {
@@ -2044,9 +2219,9 @@ var TablePaginated = React2.forwardRef(
2044
2219
  onPageChange,
2045
2220
  onSortChange
2046
2221
  } = props;
2047
- return /* @__PURE__ */ jsxs19("div", { ref, className: clsx19(styles29.tableContainer, className), children: [
2048
- /* @__PURE__ */ jsx33("div", { className: styles29.tableContainerScroll, children: /* @__PURE__ */ jsxs19("table", { className: styles29.table, children: [
2049
- /* @__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(
2050
2225
  TableHeader,
2051
2226
  {
2052
2227
  showIndex,
@@ -2055,7 +2230,7 @@ var TablePaginated = React2.forwardRef(
2055
2230
  onSortChange
2056
2231
  }
2057
2232
  ),
2058
- /* @__PURE__ */ jsx33(
2233
+ /* @__PURE__ */ jsx36(
2059
2234
  TableBody,
2060
2235
  {
2061
2236
  onRowIndexClick,
@@ -2067,7 +2242,7 @@ var TablePaginated = React2.forwardRef(
2067
2242
  }
2068
2243
  )
2069
2244
  ] }) }),
2070
- /* @__PURE__ */ jsx33(
2245
+ /* @__PURE__ */ jsx36(
2071
2246
  TablePagination,
2072
2247
  {
2073
2248
  page,
@@ -2083,7 +2258,7 @@ var TablePaginated = React2.forwardRef(
2083
2258
  TablePaginated.displayName = "TablePaginated";
2084
2259
 
2085
2260
  // src/components/charts/tables/PivotTable/PivotTable.tsx
2086
- 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";
2087
2262
  import tableStyles3 from "./tables.module-GNDYDW3Z.module.css";
2088
2263
  import clsx20 from "clsx";
2089
2264
 
@@ -2097,7 +2272,7 @@ var getTableCellWidthStyle = (width) => {
2097
2272
  };
2098
2273
 
2099
2274
  // src/components/charts/tables/PivotTable/PivotTable.tsx
2100
- import { jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
2275
+ import { jsx as jsx37, jsxs as jsxs21 } from "react/jsx-runtime";
2101
2276
  var isNumber = (v) => typeof v === "number" && !Number.isNaN(v);
2102
2277
  var getPercentageDisplay = (percentage, percentageDecimalPlaces) => {
2103
2278
  return `${percentage.toFixed(percentageDecimalPlaces)}%`;
@@ -2189,7 +2364,7 @@ var PivotTable = ({
2189
2364
  }
2190
2365
  return { colTotals: cTotals, rowTotals: rTotals, grandTotals: gTotals };
2191
2366
  }, [data, measures, rowDimension.key, columnDimension.key, columnValues, rowValues]);
2192
- const [visibleCount, setVisibleCount] = useState5(
2367
+ const [visibleCount, setVisibleCount] = useState7(
2193
2368
  () => progressive ? Math.min(batchSize, rowValues.length) : rowValues.length
2194
2369
  );
2195
2370
  useEffect6(() => {
@@ -2216,22 +2391,22 @@ var PivotTable = ({
2216
2391
  };
2217
2392
  }, [progressive, batchSize, batchDelayMs, rowValues.length, data]);
2218
2393
  const visibleRows = progressive ? rowValues.slice(0, visibleCount) : rowValues;
2219
- 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(
2220
2395
  "div",
2221
2396
  {
2222
2397
  className: clsx20(
2223
2398
  tableStyles3.tableAdjustedContainer,
2224
2399
  (!columnWidth || !firstColumnWidth) && tableStyles3.fullWidth
2225
2400
  ),
2226
- children: /* @__PURE__ */ jsxs20(
2401
+ children: /* @__PURE__ */ jsxs21(
2227
2402
  "table",
2228
2403
  {
2229
2404
  className: tableStyles3.table,
2230
2405
  "aria-label": `${rowDimension.label} by ${columnDimension.label}`,
2231
2406
  children: [
2232
- /* @__PURE__ */ jsxs20("thead", { children: [
2233
- /* @__PURE__ */ jsxs20("tr", { children: [
2234
- /* @__PURE__ */ jsx34(
2407
+ /* @__PURE__ */ jsxs21("thead", { children: [
2408
+ /* @__PURE__ */ jsxs21("tr", { children: [
2409
+ /* @__PURE__ */ jsx37(
2235
2410
  "th",
2236
2411
  {
2237
2412
  scope: "col",
@@ -2243,7 +2418,7 @@ var PivotTable = ({
2243
2418
  ),
2244
2419
  columnValues.map((columnValue) => {
2245
2420
  const columnValueDisplay = columnDimension.formatValue ? columnDimension.formatValue(columnValue) : columnValue;
2246
- return /* @__PURE__ */ jsx34(
2421
+ return /* @__PURE__ */ jsx37(
2247
2422
  "th",
2248
2423
  {
2249
2424
  scope: "colgroup",
@@ -2254,7 +2429,7 @@ var PivotTable = ({
2254
2429
  `col-${columnValue}`
2255
2430
  );
2256
2431
  }),
2257
- hasRowTotals && /* @__PURE__ */ jsx34(
2432
+ hasRowTotals && /* @__PURE__ */ jsx37(
2258
2433
  "th",
2259
2434
  {
2260
2435
  scope: "colgroup",
@@ -2266,8 +2441,8 @@ var PivotTable = ({
2266
2441
  "col-total-group"
2267
2442
  )
2268
2443
  ] }),
2269
- /* @__PURE__ */ jsxs20("tr", { children: [
2270
- /* @__PURE__ */ jsx34(
2444
+ /* @__PURE__ */ jsxs21("tr", { children: [
2445
+ /* @__PURE__ */ jsx37(
2271
2446
  "th",
2272
2447
  {
2273
2448
  scope: "col",
@@ -2279,7 +2454,7 @@ var PivotTable = ({
2279
2454
  }
2280
2455
  ),
2281
2456
  columnValues.flatMap(
2282
- (col) => measures.map((measure, idx) => /* @__PURE__ */ jsx34(
2457
+ (col) => measures.map((measure, idx) => /* @__PURE__ */ jsx37(
2283
2458
  "th",
2284
2459
  {
2285
2460
  scope: "col",
@@ -2290,7 +2465,7 @@ var PivotTable = ({
2290
2465
  `sub-${String(col)}-${measure.key}-${idx}`
2291
2466
  ))
2292
2467
  ),
2293
- 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(
2294
2469
  "th",
2295
2470
  {
2296
2471
  scope: "col",
@@ -2303,11 +2478,11 @@ var PivotTable = ({
2303
2478
  ))
2304
2479
  ] })
2305
2480
  ] }),
2306
- /* @__PURE__ */ jsxs20("tbody", { children: [
2481
+ /* @__PURE__ */ jsxs21("tbody", { children: [
2307
2482
  visibleRows.map((row) => {
2308
2483
  const rowDimensionValue = rowDimension.formatValue ? rowDimension.formatValue(row) : row;
2309
- return /* @__PURE__ */ jsxs20("tr", { children: [
2310
- /* @__PURE__ */ jsx34(
2484
+ return /* @__PURE__ */ jsxs21("tr", { children: [
2485
+ /* @__PURE__ */ jsx37(
2311
2486
  "th",
2312
2487
  {
2313
2488
  scope: "row",
@@ -2335,7 +2510,7 @@ var PivotTable = ({
2335
2510
  return measure.accessor ? measure.accessor(object) : value;
2336
2511
  };
2337
2512
  const columnValueDisplay = getDisplayValue();
2338
- return /* @__PURE__ */ jsx34("td", { title: columnValueDisplay, children: columnValueDisplay }, key);
2513
+ return /* @__PURE__ */ jsx37("td", { title: columnValueDisplay, children: columnValueDisplay }, key);
2339
2514
  })
2340
2515
  ),
2341
2516
  hasRowTotals && measures.filter((measure) => rowTotalsSet.has(measure.key)).map((measure, idx) => {
@@ -2352,12 +2527,12 @@ var PivotTable = ({
2352
2527
  } else if (measure.accessor) {
2353
2528
  displayValue = measure.accessor({ [measure.key]: value });
2354
2529
  }
2355
- 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);
2356
2531
  })
2357
2532
  ] }, `row-${row}`);
2358
2533
  }),
2359
- hasColumnTotals && /* @__PURE__ */ jsxs20("tr", { className: tableStyles3.stickyLastRow, children: [
2360
- /* @__PURE__ */ jsx34(
2534
+ hasColumnTotals && /* @__PURE__ */ jsxs21("tr", { className: tableStyles3.stickyLastRow, children: [
2535
+ /* @__PURE__ */ jsx37(
2361
2536
  "th",
2362
2537
  {
2363
2538
  scope: "row",
@@ -2383,7 +2558,7 @@ var PivotTable = ({
2383
2558
  displayValue = measure.accessor({ [measure.key]: value });
2384
2559
  }
2385
2560
  const columnValueDisplay = show ? displayValue : "";
2386
- 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);
2387
2562
  })
2388
2563
  ),
2389
2564
  hasRowTotals && measures.filter((measure) => rowTotalsSet.has(measure.key)).map((measure, idx) => {
@@ -2399,7 +2574,7 @@ var PivotTable = ({
2399
2574
  } else if (measure.accessor) {
2400
2575
  displayValue = measure.accessor({ [measure.key]: value });
2401
2576
  }
2402
- 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);
2403
2578
  })
2404
2579
  ] }, "totals-row")
2405
2580
  ] })
@@ -2560,7 +2735,7 @@ var createColorForValue = ({
2560
2735
  };
2561
2736
 
2562
2737
  // src/components/charts/tables/HeatMap/HeatMap.tsx
2563
- import { jsx as jsx35, jsxs as jsxs21 } from "react/jsx-runtime";
2738
+ import { jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
2564
2739
  var HeatMap = ({
2565
2740
  data,
2566
2741
  showValues = false,
@@ -2635,16 +2810,16 @@ var HeatMap = ({
2635
2810
  },
2636
2811
  [domainMin, domainMax, rawMin, rawMax, minColor, midColor, maxColor]
2637
2812
  );
2638
- 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(
2639
2814
  "div",
2640
2815
  {
2641
2816
  className: clsx21(
2642
2817
  tableStyles4.tableAdjustedContainer,
2643
2818
  (!columnWidth || !firstColumnWidth) && tableStyles4.fullWidth
2644
2819
  ),
2645
- children: /* @__PURE__ */ jsxs21("table", { className: tableStyles4.table, "aria-label": "Heat map", children: [
2646
- /* @__PURE__ */ jsx35("thead", { children: /* @__PURE__ */ jsxs21("tr", { children: [
2647
- /* @__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(
2648
2823
  "th",
2649
2824
  {
2650
2825
  className: tableStyles4.stickyFirstColumn,
@@ -2652,10 +2827,10 @@ var HeatMap = ({
2652
2827
  children: measure.label
2653
2828
  }
2654
2829
  ),
2655
- 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}`))
2656
2831
  ] }) }),
2657
- /* @__PURE__ */ jsx35("tbody", { children: rowValues.map((rv) => /* @__PURE__ */ jsxs21("tr", { children: [
2658
- /* @__PURE__ */ jsx35(
2832
+ /* @__PURE__ */ jsx38("tbody", { children: rowValues.map((rv) => /* @__PURE__ */ jsxs22("tr", { children: [
2833
+ /* @__PURE__ */ jsx38(
2659
2834
  "th",
2660
2835
  {
2661
2836
  scope: "row",
@@ -2669,7 +2844,7 @@ var HeatMap = ({
2669
2844
  const value = getCellValue(obj?.[measure.key], displayNullAs);
2670
2845
  const background = getCellBackground(value, colorForValue);
2671
2846
  const color = getCellColor(background);
2672
- return /* @__PURE__ */ jsx35(
2847
+ return /* @__PURE__ */ jsx38(
2673
2848
  "td",
2674
2849
  {
2675
2850
  style: {
@@ -2739,6 +2914,8 @@ export {
2739
2914
  CardContent,
2740
2915
  CardFeedback,
2741
2916
  CardHeader,
2917
+ DateRangePicker,
2918
+ DateRangePickerField,
2742
2919
  DonutChart,
2743
2920
  Dropdown,
2744
2921
  FieldFeedback,