@carto/meridian-ds 2.5.5 → 2.6.0-alpha-searchfield.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/{Alert-lLA0z7fX.js → Alert-C1VgP3N1.js} +20 -77
  3. package/dist/{Alert-BdmDjcVc.cjs → Alert-F8G9P271.cjs} +22 -79
  4. package/dist/{MenuItem-nokUtiks.cjs → MenuItem-Bssr5qGq.cjs} +6 -6
  5. package/dist/{MenuItem-ZNdBUBvt.js → MenuItem-COajCLkS.js} +1 -1
  6. package/dist/{SwatchSquare-CaaLsjAC.js → Search-C7wkXu3f.js} +4 -23
  7. package/dist/{SwatchSquare-B8PIY3Rd.cjs → Search-CMWbM9nD.cjs} +3 -22
  8. package/dist/SwatchSquare-B6KYVoqV.js +24 -0
  9. package/dist/SwatchSquare-DuXPIL7t.cjs +23 -0
  10. package/dist/components/index.cjs +457 -112
  11. package/dist/components/index.js +397 -52
  12. package/dist/{TablePaginationActions-DAMGtIub.cjs → css-utils-CqIN_t7x.cjs} +126 -55
  13. package/dist/{TablePaginationActions-C6TVGJM-.js → css-utils-hxI-qUxK.js} +129 -58
  14. package/dist/custom-icons/index.cjs +3 -2
  15. package/dist/custom-icons/index.js +3 -2
  16. package/dist/theme/index.cjs +108 -114
  17. package/dist/theme/index.js +7 -13
  18. package/dist/types/components/AccordionGroup/AccordionGroup.d.ts +4 -1
  19. package/dist/types/components/AccordionGroup/AccordionGroup.d.ts.map +1 -1
  20. package/dist/types/components/AccordionGroup/AccordionGroup.stories.d.ts +39 -9
  21. package/dist/types/components/AccordionGroup/AccordionGroup.stories.d.ts.map +1 -1
  22. package/dist/types/components/AccordionGroup/AccordionGroup.test.d.ts +2 -0
  23. package/dist/types/components/AccordionGroup/AccordionGroup.test.d.ts.map +1 -0
  24. package/dist/types/components/AppBar/AppBar.d.ts +3 -1
  25. package/dist/types/components/AppBar/AppBar.d.ts.map +1 -1
  26. package/dist/types/components/AppBar/AppBar.stories.d.ts +2 -2
  27. package/dist/types/components/AppBar/AppBar.stories.d.ts.map +1 -1
  28. package/dist/types/components/AppBar/AppBar.test.d.ts +2 -0
  29. package/dist/types/components/AppBar/AppBar.test.d.ts.map +1 -0
  30. package/dist/types/components/Avatar/Avatar.d.ts +4 -1
  31. package/dist/types/components/Avatar/Avatar.d.ts.map +1 -1
  32. package/dist/types/components/Avatar/Avatar.stories.d.ts +1 -2
  33. package/dist/types/components/Avatar/Avatar.stories.d.ts.map +1 -1
  34. package/dist/types/components/Avatar/Avatar.test.d.ts +2 -0
  35. package/dist/types/components/Avatar/Avatar.test.d.ts.map +1 -0
  36. package/dist/types/components/Button/Button.d.ts +5 -0
  37. package/dist/types/components/Button/Button.d.ts.map +1 -1
  38. package/dist/types/components/Button/Button.stories.d.ts +3 -0
  39. package/dist/types/components/Button/Button.stories.d.ts.map +1 -1
  40. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts +117 -0
  41. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts.map +1 -0
  42. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts +66 -0
  43. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts.map +1 -0
  44. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.test.d.ts +2 -0
  45. package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.test.d.ts.map +1 -0
  46. package/dist/types/components/EllipsisWithTooltip/index.d.ts +3 -0
  47. package/dist/types/components/EllipsisWithTooltip/index.d.ts.map +1 -0
  48. package/dist/types/components/Link/Link.d.ts +5 -0
  49. package/dist/types/components/Link/Link.d.ts.map +1 -1
  50. package/dist/types/components/Link/Link.stories.d.ts +9 -27
  51. package/dist/types/components/Link/Link.stories.d.ts.map +1 -1
  52. package/dist/types/components/SearchField/SearchField.d.ts +32 -0
  53. package/dist/types/components/SearchField/SearchField.d.ts.map +1 -0
  54. package/dist/types/components/SearchField/SearchField.stories.d.ts +123 -0
  55. package/dist/types/components/SearchField/SearchField.stories.d.ts.map +1 -0
  56. package/dist/types/components/SearchField/index.d.ts +3 -0
  57. package/dist/types/components/SearchField/index.d.ts.map +1 -0
  58. package/dist/types/components/TablePaginationActions/TablePaginationActions.d.ts +5 -2
  59. package/dist/types/components/TablePaginationActions/TablePaginationActions.d.ts.map +1 -1
  60. package/dist/types/components/TablePaginationActions/TablePaginationActions.stories.d.ts +72 -0
  61. package/dist/types/components/TablePaginationActions/TablePaginationActions.stories.d.ts.map +1 -0
  62. package/dist/types/components/TablePaginationActions/TablePaginationActions.test.d.ts +2 -0
  63. package/dist/types/components/TablePaginationActions/TablePaginationActions.test.d.ts.map +1 -0
  64. package/dist/types/components/Tag/Tag.d.ts +176 -4
  65. package/dist/types/components/Tag/Tag.d.ts.map +1 -1
  66. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +3 -2
  67. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts.map +1 -1
  68. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts +2 -2
  69. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts.map +1 -1
  70. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.test.d.ts +2 -0
  71. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.test.d.ts.map +1 -0
  72. package/dist/types/components/TooltipData/TooltipData.d.ts.map +1 -1
  73. package/dist/types/components/TooltipData/TooltipData.stories.d.ts +34 -0
  74. package/dist/types/components/TooltipData/TooltipData.stories.d.ts.map +1 -0
  75. package/dist/types/components/TooltipData/TooltipData.test.d.ts +2 -0
  76. package/dist/types/components/TooltipData/TooltipData.test.d.ts.map +1 -0
  77. package/dist/types/components/index.d.ts +4 -0
  78. package/dist/types/components/index.d.ts.map +1 -1
  79. package/dist/types/localization/en.d.ts +1 -0
  80. package/dist/types/localization/en.d.ts.map +1 -1
  81. package/dist/types/localization/es.d.ts +1 -0
  82. package/dist/types/localization/es.d.ts.map +1 -1
  83. package/dist/types/localization/id.d.ts +1 -0
  84. package/dist/types/localization/id.d.ts.map +1 -1
  85. package/dist/types/localization/index.d.ts +3 -0
  86. package/dist/types/localization/index.d.ts.map +1 -1
  87. package/dist/types/theme/components/forms.d.ts.map +1 -1
  88. package/dist/types/theme/components/stories/Tooltip.stories.d.ts +0 -3
  89. package/dist/types/theme/components/stories/Tooltip.stories.d.ts.map +1 -1
  90. package/dist/types/utils/css-utils.d.ts +14 -0
  91. package/dist/types/utils/css-utils.d.ts.map +1 -0
  92. package/dist/types/utils/useTranslationFallback.d.ts +20 -0
  93. package/dist/types/utils/useTranslationFallback.d.ts.map +1 -0
  94. package/dist/types/utils/useTranslationFallback.test.d.ts +2 -0
  95. package/dist/types/utils/useTranslationFallback.test.d.ts.map +1 -0
  96. package/dist/types/widgets/TableWidgetUI/TableWidgetUI.d.ts.map +1 -1
  97. package/dist/types/widgets/WrapperWidgetUI/WrapperWidgetUI.d.ts.map +1 -1
  98. package/dist/widgets/index.cjs +120 -124
  99. package/dist/widgets/index.js +6 -10
  100. package/package.json +1 -1
@@ -4,13 +4,14 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const material = require("@mui/material");
6
6
  const reactIntl = require("react-intl");
7
- const TablePaginationActions = require("../TablePaginationActions-DAMGtIub.cjs");
7
+ const cssUtils = require("../css-utils-CqIN_t7x.cjs");
8
8
  const _ReactEcharts = require("echarts-for-react");
9
9
  const reactWindow = require("react-window");
10
- const SwatchSquare = require("../SwatchSquare-B8PIY3Rd.cjs");
11
- const Alert = require("../Alert-BdmDjcVc.cjs");
10
+ const Search = require("../Search-CMWbM9nD.cjs");
11
+ const Alert = require("../Alert-F8G9P271.cjs");
12
12
  const iconsMaterial = require("@mui/icons-material");
13
13
  const paletteUtils = require("../palette-utils-B9ybmwiI.cjs");
14
+ const SwatchSquare = require("../SwatchSquare-DuXPIL7t.cjs");
14
15
  function detectTouchscreen() {
15
16
  let result = false;
16
17
  if (window.PointerEvent && "maxTouchPoints" in navigator) {
@@ -157,7 +158,7 @@ var fastDeepEqual = function equal(a, b) {
157
158
  }
158
159
  return a !== a && b !== b;
159
160
  };
160
- const isEqual = /* @__PURE__ */ TablePaginationActions.getDefaultExportFromCjs(fastDeepEqual);
161
+ const isEqual = /* @__PURE__ */ cssUtils.getDefaultExportFromCjs(fastDeepEqual);
161
162
  class ReactEcharts extends _ReactEcharts {
162
163
  componentDidUpdate(prevProps) {
163
164
  const { shouldSetOption } = this.props;
@@ -328,7 +329,7 @@ function BarWidgetUI(props) {
328
329
  const isMultiSeries = series.length > 1;
329
330
  const theme = material.useTheme();
330
331
  const intl = reactIntl.useIntl();
331
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
332
+ const intlConfig = cssUtils.useImperativeIntl(intl);
332
333
  const { showSkeleton } = useSkeleton(!!isLoading);
333
334
  const tooltipOptions = React.useMemo(
334
335
  () => ({
@@ -550,7 +551,7 @@ function BarWidgetUI(props) {
550
551
  }
551
552
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
552
553
  onSelectedBarsChange && /* @__PURE__ */ jsxRuntime.jsxs(OptionsSelectedBar$2, { container: true, children: [
553
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", children: selectedBars.length > 0 ? intlConfig.formatMessage(
554
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "caption", children: selectedBars.length > 0 ? intlConfig.formatMessage(
554
555
  { id: "c4r.widgets.bar.selectedItems" },
555
556
  { items: selectedBars.length }
556
557
  ) : intlConfig.formatMessage({ id: "c4r.widgets.bar.all" }) }),
@@ -666,7 +667,7 @@ const CategoryLabelWrapper = material.styled(material.Grid, {
666
667
  }
667
668
  };
668
669
  });
669
- const CategoryLabel = material.styled(TablePaginationActions.Typography)(({ theme }) => ({
670
+ const CategoryLabel = material.styled(cssUtils.Typography)(({ theme }) => ({
670
671
  fontWeight: theme.typography.fontWeightBold,
671
672
  marginRight: theme.spacing(2)
672
673
  }));
@@ -819,7 +820,7 @@ function CategoryWidgetUI({
819
820
  const referencedPrevAnimValues = React.useRef([]);
820
821
  const { showSkeleton } = useSkeleton(!!isLoading);
821
822
  const intl = reactIntl.useIntl();
822
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
823
+ const intlConfig = cssUtils.useImperativeIntl(intl);
823
824
  function sortBlockedSameAsData(blockedCategories2) {
824
825
  const blockedCategoriesSet = new Set(blockedCategories2);
825
826
  let sortedByOrderData = data;
@@ -1167,7 +1168,7 @@ function CategoryWidgetUI({
1167
1168
  };
1168
1169
  return /* @__PURE__ */ jsxRuntime.jsxs(CategoriesRoot, { children: [
1169
1170
  filterable && sortedData.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(OptionsSelectedBar$1, { container: true, children: [
1170
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", children: selectedCategories.length > 0 ? intlConfig.formatMessage(
1171
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "caption", children: selectedCategories.length > 0 ? intlConfig.formatMessage(
1171
1172
  { id: "c4r.widgets.category.selectedItems" },
1172
1173
  { items: selectedCategories.length }
1173
1174
  ) : intlConfig.formatMessage({ id: "c4r.widgets.category.all" }) }),
@@ -1229,7 +1230,7 @@ function CategoryWidgetUI({
1229
1230
  }),
1230
1231
  onChange: handleSearchChange,
1231
1232
  InputProps: {
1232
- startAdornment: /* @__PURE__ */ jsxRuntime.jsx(material.InputAdornment, { position: "start", children: /* @__PURE__ */ jsxRuntime.jsx(SwatchSquare.Search, {}) })
1233
+ startAdornment: /* @__PURE__ */ jsxRuntime.jsx(material.InputAdornment, { position: "start", children: /* @__PURE__ */ jsxRuntime.jsx(Search.Search, {}) })
1233
1234
  },
1234
1235
  inputProps: {
1235
1236
  tabIndex: 0,
@@ -1249,10 +1250,10 @@ function CategoryWidgetUI({
1249
1250
  children: CategoryRow
1250
1251
  }
1251
1252
  ) : /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { children: [
1252
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "body2", children: intlConfig.formatMessage({
1253
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "body2", children: intlConfig.formatMessage({
1253
1254
  id: "c4r.widgets.category.noResults"
1254
1255
  }) }),
1255
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { component: "p", variant: "caption", mb: 2, children: intlConfig.formatMessage(
1256
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { component: "p", variant: "caption", mb: 2, children: intlConfig.formatMessage(
1256
1257
  { id: "c4r.widgets.category.noResultsMessage" },
1257
1258
  { searchValue }
1258
1259
  ) })
@@ -1273,7 +1274,7 @@ function CategoryWidgetUI({
1273
1274
  "data-testid": "show-all-categories-button",
1274
1275
  size: "small",
1275
1276
  color: "primary",
1276
- startIcon: /* @__PURE__ */ jsxRuntime.jsx(SwatchSquare.Search, {}),
1277
+ startIcon: /* @__PURE__ */ jsxRuntime.jsx(Search.Search, {}),
1277
1278
  onClick: handleShowAllCategoriesClicked,
1278
1279
  children: intlConfig.formatMessage(
1279
1280
  { id: "c4r.widgets.category.searchInfo" },
@@ -1339,12 +1340,12 @@ function FormulaWidgetUI({
1339
1340
  if (showSkeleton) {
1340
1341
  return /* @__PURE__ */ jsxRuntime.jsx(FormulaSkeleton, {});
1341
1342
  }
1342
- return isComplexFormat ? /* @__PURE__ */ jsxRuntime.jsxs(TablePaginationActions.Typography, { variant: "h5", component: "div", weight: "medium", children: [
1343
+ return isComplexFormat ? /* @__PURE__ */ jsxRuntime.jsxs(cssUtils.Typography, { variant: "h5", component: "div", weight: "medium", children: [
1343
1344
  /* @__PURE__ */ jsxRuntime.jsx(Prefix, { children: formattedValue.prefix }),
1344
1345
  formattedValue.value,
1345
1346
  /* @__PURE__ */ jsxRuntime.jsx(Suffix, { children: formattedValue.suffix })
1346
1347
  ] }) : /* @__PURE__ */ jsxRuntime.jsx(
1347
- TablePaginationActions.Typography,
1348
+ cssUtils.Typography,
1348
1349
  {
1349
1350
  variant: "h5",
1350
1351
  component: "div",
@@ -1543,7 +1544,7 @@ function HistogramWidgetUI({
1543
1544
  }) {
1544
1545
  const intl = reactIntl.useIntl();
1545
1546
  const theme = material.useTheme();
1546
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
1547
+ const intlConfig = cssUtils.useImperativeIntl(intl);
1547
1548
  const { showSkeleton } = useSkeleton(!!isLoading);
1548
1549
  const filterable = !!_filterable && !!onSelectedBarsChange;
1549
1550
  const [echartsInstance, setEchartInstance] = React.useState();
@@ -1563,7 +1564,7 @@ function HistogramWidgetUI({
1563
1564
  () => ({
1564
1565
  show: tooltip,
1565
1566
  trigger: "item",
1566
- padding: [TablePaginationActions.SPACING * 0.5, TablePaginationActions.SPACING],
1567
+ padding: [cssUtils.SPACING * 0.5, cssUtils.SPACING],
1567
1568
  borderWidth: 0,
1568
1569
  textStyle: {
1569
1570
  ...theme.typography.caption,
@@ -1601,7 +1602,7 @@ function HistogramWidgetUI({
1601
1602
  showMaxLabel: true,
1602
1603
  ...theme.typography.overlineDelicate,
1603
1604
  hideOverlap: true,
1604
- padding: [TablePaginationActions.SPACING * 0.5, TablePaginationActions.SPACING * 0.5, 0, TablePaginationActions.SPACING * 0.5],
1605
+ padding: [cssUtils.SPACING * 0.5, cssUtils.SPACING * 0.5, 0, cssUtils.SPACING * 0.5],
1605
1606
  formatter: (value) => {
1606
1607
  const formattedValue = processFormatterResult(xAxisFormatter(value));
1607
1608
  if (value === min) {
@@ -1621,7 +1622,7 @@ function HistogramWidgetUI({
1621
1622
  const denseAxisConfig = {
1622
1623
  margin: 0,
1623
1624
  verticalAlign: "bottom",
1624
- padding: [0, 0, TablePaginationActions.SPACING * 1.25, 0],
1625
+ padding: [0, 0, cssUtils.SPACING * 1.25, 0],
1625
1626
  inside: true,
1626
1627
  color: (value) => {
1627
1628
  const maxValue = Math.max(...data.map((d) => d ?? Number.MIN_SAFE_INTEGER)) || 1;
@@ -1636,7 +1637,7 @@ function HistogramWidgetUI({
1636
1637
  };
1637
1638
  const fullAxisConfig = {
1638
1639
  verticalAlign: "middle",
1639
- padding: [0, 0, 0, TablePaginationActions.SPACING * 0.5],
1640
+ padding: [0, 0, 0, cssUtils.SPACING * 0.5],
1640
1641
  color: theme.palette.black[60]
1641
1642
  };
1642
1643
  const axisLabelConfig = yAxisType === "dense" ? denseAxisConfig : fullAxisConfig;
@@ -1731,10 +1732,10 @@ function HistogramWidgetUI({
1731
1732
  const options = React.useMemo(
1732
1733
  () => ({
1733
1734
  grid: {
1734
- left: TablePaginationActions.SPACING * 0.1,
1735
- right: TablePaginationActions.SPACING * 0.1,
1736
- top: TablePaginationActions.SPACING * 2,
1737
- bottom: TablePaginationActions.SPACING * 0.5,
1735
+ left: cssUtils.SPACING * 0.1,
1736
+ right: cssUtils.SPACING * 0.1,
1737
+ top: cssUtils.SPACING * 2,
1738
+ bottom: cssUtils.SPACING * 0.5,
1738
1739
  containLabel: true
1739
1740
  },
1740
1741
  tooltip: tooltipOptions,
@@ -1758,7 +1759,7 @@ function HistogramWidgetUI({
1758
1759
  }
1759
1760
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1760
1761
  filterable && /* @__PURE__ */ jsxRuntime.jsxs(OptionsSelectedBar, { container: true, children: [
1761
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", weight: "strong", children: selectedBars.length > 0 ? intlConfig.formatMessage(
1762
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "caption", weight: "strong", children: selectedBars.length > 0 ? intlConfig.formatMessage(
1762
1763
  { id: "c4r.widgets.histogram.selectedItems" },
1763
1764
  {
1764
1765
  items: processFormatterResult(
@@ -1811,7 +1812,7 @@ function AlertBody({
1811
1812
  children
1812
1813
  }) {
1813
1814
  return children ? /* @__PURE__ */ jsxRuntime.jsx(material.Box, { mt: 0.5, children: /* @__PURE__ */ jsxRuntime.jsx(
1814
- TablePaginationActions.Typography,
1815
+ cssUtils.Typography,
1815
1816
  {
1816
1817
  component: "div",
1817
1818
  variant: "caption",
@@ -1828,7 +1829,7 @@ function NoDataAlert({
1828
1829
  ...otherProps
1829
1830
  }) {
1830
1831
  return severity ? /* @__PURE__ */ jsxRuntime.jsx(Alert.Alert, { title, severity, ...otherProps, children: /* @__PURE__ */ jsxRuntime.jsx(AlertBody, { children: body }) }) : /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { ...otherProps, children: [
1831
- title && /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "body2", children: title }),
1832
+ title && /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "body2", children: title }),
1832
1833
  /* @__PURE__ */ jsxRuntime.jsx(AlertBody, { color: "textSecondary", children: body })
1833
1834
  ] });
1834
1835
  }
@@ -1949,10 +1950,10 @@ function PieCentralText({
1949
1950
  return null;
1950
1951
  }
1951
1952
  return /* @__PURE__ */ jsxRuntime.jsxs(Root$4, { children: [
1952
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "h5", children: percentage }),
1953
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "h5", children: percentage }),
1953
1954
  /* @__PURE__ */ jsxRuntime.jsxs(Category, { children: [
1954
1955
  /* @__PURE__ */ jsxRuntime.jsx(MarkerColor, { bgcolor: color, component: "span" }),
1955
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { component: "span", variant: "body2", noWrap: true, children: name })
1956
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { component: "span", variant: "body2", noWrap: true, children: name })
1956
1957
  ] })
1957
1958
  ] });
1958
1959
  }
@@ -2110,7 +2111,7 @@ function ChartLegend({
2110
2111
  series = [{ name: "", color: theme.palette.text.disabled }];
2111
2112
  }
2112
2113
  const intl = reactIntl.useIntl();
2113
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
2114
+ const intlConfig = cssUtils.useImperativeIntl(intl);
2114
2115
  function handleClickRight() {
2115
2116
  setOffset(offset + 1);
2116
2117
  }
@@ -2183,7 +2184,7 @@ function ChartLegend({
2183
2184
  }
2184
2185
  ),
2185
2186
  /* @__PURE__ */ jsxRuntime.jsx(
2186
- TablePaginationActions.Typography,
2187
+ cssUtils.Typography,
2187
2188
  {
2188
2189
  variant: "overline",
2189
2190
  color: selected ? void 0 : "text.disabled",
@@ -2200,7 +2201,7 @@ function ChartLegend({
2200
2201
  (overflowing || offset > 0) && /* @__PURE__ */ jsxRuntime.jsxs(ShowMoreButtons, { ref: showMoreButtonsRef, children: [
2201
2202
  /* @__PURE__ */ jsxRuntime.jsx(OverflowVeil, {}),
2202
2203
  /* @__PURE__ */ jsxRuntime.jsx(
2203
- Alert.IconButton,
2204
+ cssUtils.IconButton,
2204
2205
  {
2205
2206
  icon: /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.ChevronLeft, {}),
2206
2207
  component: "span",
@@ -2213,7 +2214,7 @@ function ChartLegend({
2213
2214
  }
2214
2215
  ),
2215
2216
  /* @__PURE__ */ jsxRuntime.jsx(
2216
- Alert.IconButton,
2217
+ cssUtils.IconButton,
2217
2218
  {
2218
2219
  icon: /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.ChevronRight, {}),
2219
2220
  component: "span",
@@ -2288,7 +2289,7 @@ function PieWidgetUI({
2288
2289
  );
2289
2290
  const { showSkeleton } = useSkeleton(!!isLoading);
2290
2291
  const intl = reactIntl.useIntl();
2291
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
2292
+ const intlConfig = cssUtils.useImperativeIntl(intl);
2292
2293
  const _percentFormatter = React.useMemo(() => {
2293
2294
  if (percentFormatter) {
2294
2295
  return percentFormatter;
@@ -2304,7 +2305,7 @@ function PieWidgetUI({
2304
2305
  _formatter = (params) => tooltipFormatter(params, formatter, _percentFormatter);
2305
2306
  }
2306
2307
  return {
2307
- padding: [TablePaginationActions.SPACING * 0.5, TablePaginationActions.SPACING],
2308
+ padding: [cssUtils.SPACING * 0.5, cssUtils.SPACING],
2308
2309
  backgroundColor: theme.palette.black[90],
2309
2310
  borderColor: "transparent",
2310
2311
  textStyle: { color: theme.palette.common.white },
@@ -2344,7 +2345,7 @@ function PieWidgetUI({
2344
2345
  }),
2345
2346
  radius: ["74%", "90%"],
2346
2347
  selectedOffset: 0,
2347
- bottom: TablePaginationActions.SPACING * 1.5,
2348
+ bottom: cssUtils.SPACING * 1.5,
2348
2349
  label: { show: false },
2349
2350
  emphasis: {
2350
2351
  focus: "series",
@@ -2424,7 +2425,7 @@ function PieWidgetUI({
2424
2425
  }
2425
2426
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2426
2427
  filterable && /* @__PURE__ */ jsxRuntime.jsxs(OptionsBar, { container: true, children: [
2427
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", color: "textSecondary", children: selectedCategories.length ? intlConfig.formatMessage(
2428
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "caption", color: "textSecondary", children: selectedCategories.length ? intlConfig.formatMessage(
2428
2429
  { id: "c4r.widgets.pie.selectedItems" },
2429
2430
  { items: selectedCategories.length }
2430
2431
  ) : intlConfig.formatMessage({ id: "c4r.widgets.pie.allSelected" }) }),
@@ -2585,7 +2586,7 @@ function RangeWidgetUI({
2585
2586
  max
2586
2587
  ]);
2587
2588
  const intl = reactIntl.useIntl();
2588
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
2589
+ const intlConfig = cssUtils.useImperativeIntl(intl);
2589
2590
  const { showSkeleton } = useSkeleton(!!isLoading);
2590
2591
  const limitsMarks = React.useMemo(() => {
2591
2592
  if (!limits || limits.length !== 2) {
@@ -2657,7 +2658,7 @@ function RangeWidgetUI({
2657
2658
  return /* @__PURE__ */ jsxRuntime.jsx(RangeSkeleton, {});
2658
2659
  }
2659
2660
  return /* @__PURE__ */ jsxRuntime.jsxs(Root$2, { children: [
2660
- /* @__PURE__ */ jsxRuntime.jsx(ClearWrapper, { children: hasBeenModified && /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", color: "primary", children: /* @__PURE__ */ jsxRuntime.jsx(
2661
+ /* @__PURE__ */ jsxRuntime.jsx(ClearWrapper, { children: hasBeenModified && /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "caption", color: "primary", children: /* @__PURE__ */ jsxRuntime.jsx(
2661
2662
  ClearButton,
2662
2663
  {
2663
2664
  onClick: resetSlider,
@@ -2734,7 +2735,7 @@ const GraphGrid = material.styled(SkeletonGraphGrid)(({ theme }) => ({
2734
2735
  justifyContent: "center",
2735
2736
  marginLeft: theme.spacing(4),
2736
2737
  containerType: "inline-size",
2737
- [`@container (max-width: ${TablePaginationActions.BREAKPOINTS.XS}px)`]: {
2738
+ [`@container (max-width: ${cssUtils.BREAKPOINTS.XS}px)`]: {
2738
2739
  " > div": {
2739
2740
  maxWidth: "75%"
2740
2741
  }
@@ -2795,7 +2796,7 @@ function __generateDefaultConfig({
2795
2796
  containLabel: true
2796
2797
  },
2797
2798
  tooltip: {
2798
- padding: [TablePaginationActions.SPACING * 0.5, TablePaginationActions.SPACING],
2799
+ padding: [cssUtils.SPACING * 0.5, cssUtils.SPACING],
2799
2800
  textStyle: {
2800
2801
  ...theme.typography.caption,
2801
2802
  fontSize: 11,
@@ -2808,7 +2809,7 @@ function __generateDefaultConfig({
2808
2809
  xAxis: {
2809
2810
  axisLabel: {
2810
2811
  ...theme.typography.overlineDelicate,
2811
- padding: [TablePaginationActions.SPACING * 0.5, 0, 0, 0],
2812
+ padding: [cssUtils.SPACING * 0.5, 0, 0, 0],
2812
2813
  formatter: (v) => processFormatterResult(xAxisFormatter(v))
2813
2814
  }
2814
2815
  },
@@ -2969,9 +2970,7 @@ const TableCellStyled = material.styled(material.TableCell)(() => ({
2969
2970
  overflow: "hidden",
2970
2971
  "& p": {
2971
2972
  maxWidth: "100%",
2972
- whiteSpace: "nowrap",
2973
- overflow: "hidden",
2974
- textOverflow: "ellipsis"
2973
+ ...cssUtils.ellipsisStyles
2975
2974
  }
2976
2975
  }));
2977
2976
  const StyledTablePagination = material.styled(material.TablePagination)(({ theme }) => ({
@@ -3009,7 +3008,7 @@ function TableWidgetUI({
3009
3008
  var _a;
3010
3009
  const paginationRef = React.useRef(null);
3011
3010
  const intl = reactIntl.useIntl();
3012
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
3011
+ const intlConfig = cssUtils.useImperativeIntl(intl);
3013
3012
  const { showSkeleton } = useSkeleton(!!isLoading);
3014
3013
  function defaultLabelDisplayedRows({
3015
3014
  from,
@@ -3037,7 +3036,7 @@ function TableWidgetUI({
3037
3036
  if (height) {
3038
3037
  const paginationHeight = Math.max(
3039
3038
  ((_a = paginationRef == null ? void 0 : paginationRef.current) == null ? void 0 : _a.clientHeight) ?? 0,
3040
- pagination ? TablePaginationActions.SPACING * 6 : 0
3039
+ pagination ? cssUtils.SPACING * 6 : 0
3041
3040
  );
3042
3041
  fixedHeightStyle.height = `calc(${height} - ${paginationHeight}px)`;
3043
3042
  }
@@ -3091,7 +3090,7 @@ function TableWidgetUI({
3091
3090
  onPageChange: handleChangePage,
3092
3091
  onRowsPerPageChange: handleChangeRowsPerPage,
3093
3092
  ActionsComponent: () => /* @__PURE__ */ jsxRuntime.jsx(
3094
- TablePaginationActions.TablePaginationActions,
3093
+ cssUtils.TablePaginationActions,
3095
3094
  {
3096
3095
  count: totalCount,
3097
3096
  rowsPerPage,
@@ -3573,7 +3572,7 @@ function TimeSeriesProvider({
3573
3572
  const [_isPlaying, setIsPlaying] = React.useState(isPlaying);
3574
3573
  const [_isPaused, setIsPaused] = React.useState(isPaused);
3575
3574
  const [_timeWindow, setTimeWindow] = React.useState([]);
3576
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
3575
+ const intlConfig = cssUtils.useImperativeIntl(intl);
3577
3576
  React.useEffect(() => {
3578
3577
  const sorted = _timeWindow.sort((timeA, timeB) => timeA < timeB ? -1 : 1).map(getDate);
3579
3578
  onTimeWindowUpdate == null ? void 0 : onTimeWindowUpdate(sorted);
@@ -3874,11 +3873,11 @@ function addEventWithCleanUp(zr, eventKey, event) {
3874
3873
  };
3875
3874
  }
3876
3875
  }
3877
- const CHART_HEIGHT_DEFAULT = TablePaginationActions.SPACING * 22;
3876
+ const CHART_HEIGHT_DEFAULT = cssUtils.SPACING * 22;
3878
3877
  const CHART_HEIGHT_FITHEIGHT = "100%";
3879
3878
  const DEFAULT_SPLIT_NUMBER = 5;
3880
3879
  const MIN_ADAPTIVE_SPLIT_NUMBER = 3;
3881
- const ADAPTIVE_SPLIT_NUMBER_SPACING = TablePaginationActions.SPACING * 20;
3880
+ const ADAPTIVE_SPLIT_NUMBER_SPACING = cssUtils.SPACING * 20;
3882
3881
  function TimeSeriesChart({
3883
3882
  chartType,
3884
3883
  formatter,
@@ -3915,7 +3914,7 @@ function TimeSeriesChart({
3915
3914
  show: tooltip,
3916
3915
  trigger: "axis",
3917
3916
  appendToBody: true,
3918
- padding: [TablePaginationActions.SPACING * 0.5, TablePaginationActions.SPACING],
3917
+ padding: [cssUtils.SPACING * 0.5, cssUtils.SPACING],
3919
3918
  textStyle: {
3920
3919
  ...theme.typography.caption,
3921
3920
  fontSize: 11,
@@ -3926,9 +3925,9 @@ function TimeSeriesChart({
3926
3925
  position: (point, params, dom, rect, size) => {
3927
3926
  const position = { top: 0 };
3928
3927
  if (size.contentSize[0] < size.viewSize[0] - point[0]) {
3929
- position.left = point[0] + TablePaginationActions.SPACING * 1.5;
3928
+ position.left = point[0] + cssUtils.SPACING * 1.5;
3930
3929
  } else {
3931
- position.right = size.viewSize[0] - point[0] + TablePaginationActions.SPACING * 1.5;
3930
+ position.right = size.viewSize[0] - point[0] + cssUtils.SPACING * 1.5;
3932
3931
  }
3933
3932
  return position;
3934
3933
  },
@@ -3940,7 +3939,7 @@ function TimeSeriesChart({
3940
3939
  const denseAxisConfig = {
3941
3940
  margin: 0,
3942
3941
  verticalAlign: "bottom",
3943
- padding: [0, 0, TablePaginationActions.SPACING * 1.25, 0],
3942
+ padding: [0, 0, cssUtils.SPACING * 1.25, 0],
3944
3943
  inside: true,
3945
3944
  color: (value) => {
3946
3945
  let col = "transparent";
@@ -3953,7 +3952,7 @@ function TimeSeriesChart({
3953
3952
  const fullAxisConfig = {
3954
3953
  margin: 0,
3955
3954
  verticalAlign: "middle",
3956
- padding: [0, TablePaginationActions.SPACING * 0.75, 0, 0],
3955
+ padding: [0, cssUtils.SPACING * 0.75, 0, 0],
3957
3956
  color: theme.palette.black[60]
3958
3957
  };
3959
3958
  const yAxisLabelConfig = yAxisType === "dense" ? denseAxisConfig : fullAxisConfig;
@@ -4081,10 +4080,10 @@ function TimeSeriesChart({
4081
4080
  const options = React.useMemo(
4082
4081
  () => ({
4083
4082
  grid: {
4084
- left: TablePaginationActions.SPACING * (yAxisType === "dense" ? 2 : 3.5),
4085
- top: TablePaginationActions.SPACING * 4,
4086
- right: TablePaginationActions.SPACING * 2,
4087
- bottom: TablePaginationActions.SPACING * 3
4083
+ left: cssUtils.SPACING * (yAxisType === "dense" ? 2 : 3.5),
4084
+ top: cssUtils.SPACING * 4,
4085
+ right: cssUtils.SPACING * 2,
4086
+ bottom: cssUtils.SPACING * 3
4088
4087
  },
4089
4088
  color: [theme.palette.secondary.main],
4090
4089
  tooltip: tooltipOptions,
@@ -4270,7 +4269,7 @@ function TimeSeriesControls({
4270
4269
  open: Boolean(anchorSpeedEl),
4271
4270
  onClose: handleCloseSpeedMenu,
4272
4271
  children: [
4273
- /* @__PURE__ */ jsxRuntime.jsx(material.MenuItem, { disabled: true, children: /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", color: "textSecondary", children: intl.formatMessage({ id: "c4r.widgets.timeSeries.speed" }) }) }),
4272
+ /* @__PURE__ */ jsxRuntime.jsx(material.MenuItem, { disabled: true, children: /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "caption", color: "textSecondary", children: intl.formatMessage({ id: "c4r.widgets.timeSeries.speed" }) }) }),
4274
4273
  SPEED_FACTORS.map((speedItem) => /* @__PURE__ */ jsxRuntime.jsxs(
4275
4274
  material.MenuItem,
4276
4275
  {
@@ -4443,7 +4442,7 @@ const ControlsBox = material.styled(material.Box)(({ theme }) => ({
4443
4442
  flexShrink: 0,
4444
4443
  marginLeft: 0,
4445
4444
  paddingLeft: theme.spacing(1),
4446
- [`@container (max-width: ${TablePaginationActions.BREAKPOINTS.XS}px)`]: {
4445
+ [`@container (max-width: ${cssUtils.BREAKPOINTS.XS}px)`]: {
4447
4446
  paddingLeft: 0
4448
4447
  },
4449
4448
  paddingBottom: theme.spacing(1.5),
@@ -4454,7 +4453,7 @@ const ChartBox = material.styled(material.Box)(({ theme }) => ({
4454
4453
  minWidth: 0,
4455
4454
  paddingLeft: theme.spacing(5),
4456
4455
  paddingBottom: theme.spacing(1.5),
4457
- [`@container (max-width: ${TablePaginationActions.BREAKPOINTS.XS}px)`]: {
4456
+ [`@container (max-width: ${cssUtils.BREAKPOINTS.XS}px)`]: {
4458
4457
  paddingLeft: theme.spacing(1)
4459
4458
  }
4460
4459
  }));
@@ -4792,7 +4791,7 @@ function TimeSeriesWidgetUIContent({
4792
4791
  );
4793
4792
  const isLegendVisible = Boolean(showLegend ?? series.length > 1);
4794
4793
  const header = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4795
- /* @__PURE__ */ jsxRuntime.jsx(material.Box, { children: /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { color: "textSecondary", variant: "caption", children: currentDate || "-" }) }),
4794
+ /* @__PURE__ */ jsxRuntime.jsx(material.Box, { children: /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { color: "textSecondary", variant: "caption", children: currentDate || "-" }) }),
4796
4795
  filterable && showClearButton && /* @__PURE__ */ jsxRuntime.jsx(
4797
4796
  material.Link,
4798
4797
  {
@@ -4919,10 +4918,7 @@ const Text = material.styled(material.Typography, {
4919
4918
  WebkitLineClamp: 2,
4920
4919
  WebkitBoxOrient: "vertical"
4921
4920
  },
4922
- ...!expanded && {
4923
- whiteSpace: "nowrap",
4924
- textOverflow: "ellipsis"
4925
- }
4921
+ ...!expanded && cssUtils.ellipsisStyles
4926
4922
  }));
4927
4923
  const HeaderItems = material.styled(material.Grid)(({ theme }) => ({
4928
4924
  display: "flex",
@@ -5393,7 +5389,7 @@ function ComparativeCategoryWidgetUI({
5393
5389
  const [tempSelection, setTempSelection] = React.useState(selectedCategories);
5394
5390
  const [searchValue, setSearchValue] = React.useState("");
5395
5391
  const intl = reactIntl.useIntl();
5396
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
5392
+ const intlConfig = cssUtils.useImperativeIntl(intl);
5397
5393
  const processedData = React.useMemo(() => {
5398
5394
  const _colors = colors.length ? colors : [
5399
5395
  theme.palette.secondary.main,
@@ -5510,11 +5506,11 @@ function ComparativeCategoryWidgetUI({
5510
5506
  const clickHandler = filterable ? searchActive ? selectTempCategory : selectCategory : void 0;
5511
5507
  return /* @__PURE__ */ jsxRuntime.jsxs(Wrapper, { children: [
5512
5508
  filterable ? /* @__PURE__ */ jsxRuntime.jsxs(Toolbar, { center: true, children: [
5513
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", children: selectedCategories.length > 0 ? intlConfig.formatMessage(
5509
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "caption", children: selectedCategories.length > 0 ? intlConfig.formatMessage(
5514
5510
  { id: "c4r.widgets.category.selectedItems" },
5515
5511
  { items: selectedCategories.length }
5516
5512
  ) : intlConfig.formatMessage({ id: "c4r.widgets.category.all" }) }),
5517
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", component: "div", children: searchActive ? /* @__PURE__ */ jsxRuntime.jsx(Alert.Link, { onClick: applyTempSelection, children: intlConfig.formatMessage({ id: "c4r.widgets.category.apply" }) }) : blockingActive ? /* @__PURE__ */ jsxRuntime.jsx(Alert.Link, { onClick: disableBlocking, children: intlConfig.formatMessage({
5513
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "caption", component: "div", children: searchActive ? /* @__PURE__ */ jsxRuntime.jsx(Alert.Link, { onClick: applyTempSelection, children: intlConfig.formatMessage({ id: "c4r.widgets.category.apply" }) }) : blockingActive ? /* @__PURE__ */ jsxRuntime.jsx(Alert.Link, { onClick: disableBlocking, children: intlConfig.formatMessage({
5518
5514
  id: "c4r.widgets.category.unlock"
5519
5515
  }) }) : selectedCategories.length ? /* @__PURE__ */ jsxRuntime.jsxs(
5520
5516
  material.Box,
@@ -5546,16 +5542,16 @@ function ComparativeCategoryWidgetUI({
5546
5542
  onChange: (ev) => setSearchValue(ev.currentTarget.value),
5547
5543
  onFocus: (ev) => ev.currentTarget.scrollIntoView(),
5548
5544
  InputProps: {
5549
- startAdornment: /* @__PURE__ */ jsxRuntime.jsx(material.InputAdornment, { position: "start", children: /* @__PURE__ */ jsxRuntime.jsx(SwatchSquare.Search, {}) })
5545
+ startAdornment: /* @__PURE__ */ jsxRuntime.jsx(material.InputAdornment, { position: "start", children: /* @__PURE__ */ jsxRuntime.jsx(Search.Search, {}) })
5550
5546
  }
5551
5547
  }
5552
5548
  ) }) : null,
5553
5549
  /* @__PURE__ */ jsxRuntime.jsxs(CategoriesList, { children: [
5554
5550
  list.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5555
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "body2", children: intlConfig.formatMessage({
5551
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "body2", children: intlConfig.formatMessage({
5556
5552
  id: "c4r.widgets.category.noResults"
5557
5553
  }) }),
5558
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", children: intlConfig.formatMessage(
5554
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "caption", children: intlConfig.formatMessage(
5559
5555
  { id: "c4r.widgets.category.noResultsMessage" },
5560
5556
  { searchValue }
5561
5557
  ) })
@@ -5582,7 +5578,7 @@ function ComparativeCategoryWidgetUI({
5582
5578
  {
5583
5579
  size: "small",
5584
5580
  color: "primary",
5585
- startIcon: /* @__PURE__ */ jsxRuntime.jsx(SwatchSquare.Search, {}),
5581
+ startIcon: /* @__PURE__ */ jsxRuntime.jsx(Search.Search, {}),
5586
5582
  onClick: enableSearchMode,
5587
5583
  children: intlConfig.formatMessage(
5588
5584
  { id: "c4r.widgets.category.searchInfo" },
@@ -5593,11 +5589,11 @@ function ComparativeCategoryWidgetUI({
5593
5589
  searchActive ? /* @__PURE__ */ jsxRuntime.jsx(material.Button, { size: "small", color: "primary", onClick: disableSearchMode, children: intlConfig.formatMessage({ id: "c4r.widgets.category.cancel" }) }) : null,
5594
5590
  /* @__PURE__ */ jsxRuntime.jsx(BulletListWrapper, { children: names.map((name, i) => /* @__PURE__ */ jsxRuntime.jsxs(BulletWrapper, { children: [
5595
5591
  /* @__PURE__ */ jsxRuntime.jsx(Bullet, { color: (colors == null ? void 0 : colors[i]) ?? theme.palette.background.default }),
5596
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "overline", children: name })
5592
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "overline", children: name })
5597
5593
  ] }, names[i])) })
5598
5594
  ] });
5599
5595
  }
5600
- const Note = material.styled(TablePaginationActions.Typography)(({ theme }) => ({
5596
+ const Note = material.styled(cssUtils.Typography)(({ theme }) => ({
5601
5597
  display: "inline-block",
5602
5598
  marginTop: theme.spacing(0.5)
5603
5599
  }));
@@ -5614,10 +5610,10 @@ const MainLine = material.styled("div")(({ theme }) => ({
5614
5610
  color: theme.palette.text.primary,
5615
5611
  display: "flex"
5616
5612
  }));
5617
- const Preffix = material.styled(TablePaginationActions.Typography)(({ theme }) => ({
5613
+ const Preffix = material.styled(cssUtils.Typography)(({ theme }) => ({
5618
5614
  marginRight: theme.spacing(0.5)
5619
5615
  }));
5620
- const Unit = material.styled(TablePaginationActions.Typography)(({ theme }) => ({
5616
+ const Unit = material.styled(cssUtils.Typography)(({ theme }) => ({
5621
5617
  marginLeft: theme.spacing(0.5)
5622
5618
  }));
5623
5619
  function FormulaValue({
@@ -5765,19 +5761,19 @@ function ComparativePieWidgetUI({
5765
5761
  data: legendData,
5766
5762
  selectedMode: false,
5767
5763
  type: "scroll",
5768
- left: TablePaginationActions.SPACING,
5769
- bottom: TablePaginationActions.SPACING * -0.5,
5770
- itemGap: TablePaginationActions.SPACING * 3,
5764
+ left: cssUtils.SPACING,
5765
+ bottom: cssUtils.SPACING * -0.5,
5766
+ itemGap: cssUtils.SPACING * 3,
5771
5767
  icon: "circle",
5772
- itemWidth: TablePaginationActions.SPACING,
5773
- itemHeight: TablePaginationActions.SPACING,
5768
+ itemWidth: cssUtils.SPACING,
5769
+ itemHeight: cssUtils.SPACING,
5774
5770
  textStyle: {
5775
5771
  ...theme.typography.overline,
5776
5772
  color: theme.palette.text.primary,
5777
5773
  fontWeight: 400,
5778
5774
  lineHeight: 1,
5779
5775
  verticalAlign: "bottom",
5780
- padding: [0, 0, 0, TablePaginationActions.SPACING * 0.5]
5776
+ padding: [0, 0, 0, cssUtils.SPACING * 0.5]
5781
5777
  },
5782
5778
  inactiveColor: theme.palette.text.disabled,
5783
5779
  pageIcons: {
@@ -5786,13 +5782,13 @@ function ComparativePieWidgetUI({
5786
5782
  "path://M9 16.59 13.3265857 12 9 7.41 10.3319838 6 16 12 10.3319838 18z"
5787
5783
  ]
5788
5784
  },
5789
- pageIconSize: TablePaginationActions.SPACING * 1.5,
5785
+ pageIconSize: cssUtils.SPACING * 1.5,
5790
5786
  pageIconColor: theme.palette.text.secondary,
5791
5787
  pageIconInactiveColor: theme.palette.text.disabled,
5792
5788
  pageTextStyle: {
5793
5789
  fontFamily: theme.typography.overline.fontFamily,
5794
- fontSize: TablePaginationActions.SPACING * 1.5,
5795
- lineHeight: TablePaginationActions.SPACING * 1.75,
5790
+ fontSize: cssUtils.SPACING * 1.5,
5791
+ lineHeight: cssUtils.SPACING * 1.75,
5796
5792
  fontWeight: 400,
5797
5793
  color: theme.palette.text.primary
5798
5794
  }
@@ -5804,15 +5800,15 @@ function ComparativePieWidgetUI({
5804
5800
  rich: {
5805
5801
  b: {
5806
5802
  fontFamily: theme.typography.overline.fontFamily,
5807
- fontSize: TablePaginationActions.SPACING * 1.75,
5808
- lineHeight: TablePaginationActions.SPACING * 1.75,
5803
+ fontSize: cssUtils.SPACING * 1.75,
5804
+ lineHeight: cssUtils.SPACING * 1.75,
5809
5805
  fontWeight: 400,
5810
5806
  color: theme.palette.text.primary
5811
5807
  },
5812
5808
  per: {
5813
5809
  ...theme.typography.overline,
5814
- fontSize: TablePaginationActions.SPACING * 3,
5815
- lineHeight: TablePaginationActions.SPACING * 4.5,
5810
+ fontSize: cssUtils.SPACING * 3,
5811
+ lineHeight: cssUtils.SPACING * 4.5,
5816
5812
  fontWeight: 600,
5817
5813
  color: theme.palette.text.primary
5818
5814
  }
@@ -5831,7 +5827,7 @@ function ComparativePieWidgetUI({
5831
5827
  radius: i === 0 ? ["75%", "90%"] : ["56%", "72%"],
5832
5828
  selectedOffset: 0,
5833
5829
  hoverOffset: 5,
5834
- bottom: TablePaginationActions.SPACING * 2.5,
5830
+ bottom: cssUtils.SPACING * 2.5,
5835
5831
  avoidLabelOverlap: true,
5836
5832
  label: { show: false, ...labelOptions },
5837
5833
  emphasis: {
@@ -6026,7 +6022,7 @@ function FeatureSelectionUIDropdown({
6026
6022
  disabled: editDisabled && isEditItem(mode),
6027
6023
  children: /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { display: "flex", justifyContent: "space-between", alignItems: "center", children: [
6028
6024
  mode.icon,
6029
- /* @__PURE__ */ jsxRuntime.jsx(material.Box, { ml: 2, children: /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "body2", color: "inherit", children: material.capitalize(mode.label) }) })
6025
+ /* @__PURE__ */ jsxRuntime.jsx(material.Box, { ml: 2, children: /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "body2", color: "inherit", children: material.capitalize(mode.label) }) })
6030
6026
  ] })
6031
6027
  },
6032
6028
  mode.id
@@ -6055,7 +6051,7 @@ function FeatureSelectionUIDropdown({
6055
6051
  onClose: closeDropdown,
6056
6052
  MenuListProps: { "aria-labelledby": "feature-selection-menu-button" },
6057
6053
  children: [
6058
- menuHeaderText && /* @__PURE__ */ jsxRuntime.jsx(DisabledMenuItem, { disabled: true, children: /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", color: "textSecondary", children: menuHeaderText }) }),
6054
+ menuHeaderText && /* @__PURE__ */ jsxRuntime.jsx(DisabledMenuItem, { disabled: true, children: /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "caption", color: "textSecondary", children: menuHeaderText }) }),
6059
6055
  !!selectionModes.length && selectionModes.map(createMenuItemWrapper),
6060
6056
  showDivider && /* @__PURE__ */ jsxRuntime.jsx(material.Divider, { sx: { margin: ({ spacing }) => spacing(1, 0) } }),
6061
6057
  !!editModes.length && editModes.map(createMenuItemWrapper)
@@ -6089,7 +6085,7 @@ function FeatureSelectionUIGeometryChips({
6089
6085
  chipLabel
6090
6086
  }) {
6091
6087
  const intl = reactIntl.useIntl();
6092
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
6088
+ const intlConfig = cssUtils.useImperativeIntl(intl);
6093
6089
  function translateType(type) {
6094
6090
  if (type === "MultiPoint") {
6095
6091
  return intlConfig.formatMessage({
@@ -6190,7 +6186,7 @@ function FeatureSelectionWidgetUI({
6190
6186
  chipLabel
6191
6187
  }) {
6192
6188
  const intl = reactIntl.useIntl();
6193
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
6189
+ const intlConfig = cssUtils.useImperativeIntl(intl);
6194
6190
  const selectionModeWithLocales = React.useMemo(() => {
6195
6191
  return selectionModes.map((mode) => ({
6196
6192
  ...mode,
@@ -6358,8 +6354,8 @@ const LegendIconWrapper = material.styled("li")(() => ({
6358
6354
  }));
6359
6355
  const LegendIconImageWrapper = material.styled("div")(({ theme }) => ({
6360
6356
  marginRight: theme.spacing(1.5),
6361
- width: TablePaginationActions.ICON_SIZE_MEDIUM,
6362
- height: TablePaginationActions.ICON_SIZE_MEDIUM,
6357
+ width: cssUtils.ICON_SIZE_MEDIUM,
6358
+ height: cssUtils.ICON_SIZE_MEDIUM,
6363
6359
  "& img": {
6364
6360
  margin: "auto",
6365
6361
  display: "block"
@@ -6390,7 +6386,7 @@ function LegendOpacityControl({
6390
6386
  onChange
6391
6387
  }) {
6392
6388
  const intl = reactIntl.useIntl();
6393
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
6389
+ const intlConfig = cssUtils.useImperativeIntl(intl);
6394
6390
  function handleTextFieldChange(e) {
6395
6391
  const newOpacity = parseInt(e.target.value || "0");
6396
6392
  const clamped = Math.min(Math.max(newOpacity, 0), 100);
@@ -6482,7 +6478,7 @@ function LegendLayerTitle({
6482
6478
  }
6483
6479
  }, [title, visible]);
6484
6480
  const element = /* @__PURE__ */ jsxRuntime.jsx(
6485
- TablePaginationActions.Typography,
6481
+ cssUtils.Typography,
6486
6482
  {
6487
6483
  ref,
6488
6484
  color: visible ? "textPrimary" : "textSecondary",
@@ -6522,7 +6518,7 @@ function LegendCategories({
6522
6518
  const palette = paletteUtils.getPalette(colors, labels.length);
6523
6519
  const showHelperText = labels.length > MAX_CATEGORIES;
6524
6520
  const intl = reactIntl.useIntl();
6525
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
6521
+ const intlConfig = cssUtils.useImperativeIntl(intl);
6526
6522
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
6527
6523
  /* @__PURE__ */ jsxRuntime.jsx(LegendVariableList, { "data-testid": "categories-legend", children: labels.slice(0, MAX_CATEGORIES).map((label, idx) => /* @__PURE__ */ jsxRuntime.jsx(
6528
6524
  LegendCategoriesRow,
@@ -6536,7 +6532,7 @@ function LegendCategories({
6536
6532
  `${label}${idx}`
6537
6533
  )) }),
6538
6534
  showHelperText && /* @__PURE__ */ jsxRuntime.jsx(
6539
- TablePaginationActions.Typography,
6535
+ cssUtils.Typography,
6540
6536
  {
6541
6537
  variant: "caption",
6542
6538
  color: "textSecondary",
@@ -6680,7 +6676,7 @@ function LegendProportion({
6680
6676
  legend
6681
6677
  }) {
6682
6678
  const intl = reactIntl.useIntl();
6683
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
6679
+ const intlConfig = cssUtils.useImperativeIntl(intl);
6684
6680
  const showMinMax = legend.showMinMax ?? true;
6685
6681
  const { min, max, error } = calculateRange(legend);
6686
6682
  const [step1, step2] = !error ? calculateSteps(min, max) : [0, 0];
@@ -6693,20 +6689,20 @@ function LegendProportion({
6693
6689
  },
6694
6690
  index
6695
6691
  )) }),
6696
- /* @__PURE__ */ jsxRuntime.jsx(LabelList, { children: error ? /* @__PURE__ */ jsxRuntime.jsx(material.Box, { maxWidth: 240, children: /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "overline", children: "You need to specify valid numbers for the labels property" }) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
6697
- /* @__PURE__ */ jsxRuntime.jsxs(TablePaginationActions.Typography, { variant: "overline", color: "textSecondary", children: [
6692
+ /* @__PURE__ */ jsxRuntime.jsx(LabelList, { children: error ? /* @__PURE__ */ jsxRuntime.jsx(material.Box, { maxWidth: 240, children: /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "overline", children: "You need to specify valid numbers for the labels property" }) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
6693
+ /* @__PURE__ */ jsxRuntime.jsxs(cssUtils.Typography, { variant: "overline", color: "textSecondary", children: [
6698
6694
  showMinMax && intlConfig.formatMessage({ id: "c4r.widgets.legend.max" }) + ": ",
6699
6695
  intl.formatNumber(max, {
6700
6696
  maximumSignificantDigits: MAX_SIG_DIGITS
6701
6697
  })
6702
6698
  ] }),
6703
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "overline", color: "textSecondary", children: intl.formatNumber(step2, {
6699
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "overline", color: "textSecondary", children: intl.formatNumber(step2, {
6704
6700
  maximumSignificantDigits: MAX_SIG_DIGITS
6705
6701
  }) }),
6706
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "overline", color: "textSecondary", children: intl.formatNumber(step1, {
6702
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "overline", color: "textSecondary", children: intl.formatNumber(step1, {
6707
6703
  maximumSignificantDigits: MAX_SIG_DIGITS
6708
6704
  }) }),
6709
- /* @__PURE__ */ jsxRuntime.jsxs(TablePaginationActions.Typography, { variant: "overline", color: "textSecondary", children: [
6705
+ /* @__PURE__ */ jsxRuntime.jsxs(cssUtils.Typography, { variant: "overline", color: "textSecondary", children: [
6710
6706
  showMinMax && intlConfig.formatMessage({ id: "c4r.widgets.legend.min" }) + ": ",
6711
6707
  intl.formatNumber(min, {
6712
6708
  maximumSignificantDigits: MAX_SIG_DIGITS
@@ -6749,7 +6745,7 @@ function LegendIcon({
6749
6745
  src: icons[idx],
6750
6746
  alt: label,
6751
6747
  width: "auto",
6752
- height: TablePaginationActions.ICON_SIZE_MEDIUM
6748
+ height: cssUtils.ICON_SIZE_MEDIUM
6753
6749
  }
6754
6750
  ) }),
6755
6751
  /* @__PURE__ */ jsxRuntime.jsx(LegendLayerTitle, { visible: true, title: label })
@@ -6778,7 +6774,7 @@ function LegendRamp({
6778
6774
  minLabel = "< " + minLabel;
6779
6775
  maxLabel = "≥ " + maxLabel;
6780
6776
  }
6781
- return /* @__PURE__ */ jsxRuntime.jsx(material.Box, { py: 2, "data-testid": "ramp-legend", children: error ? /* @__PURE__ */ jsxRuntime.jsx(material.Box, { maxWidth: 240, children: /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "overline", children: "You need to specify valid numbers for the labels property" }) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
6777
+ return /* @__PURE__ */ jsxRuntime.jsx(material.Box, { py: 2, "data-testid": "ramp-legend", children: error ? /* @__PURE__ */ jsxRuntime.jsx(material.Box, { maxWidth: 240, children: /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "overline", children: "You need to specify valid numbers for the labels property" }) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
6782
6778
  /* @__PURE__ */ jsxRuntime.jsx(material.Box, { display: "flex", pb: 1, children: isContinuous ? /* @__PURE__ */ jsxRuntime.jsx(
6783
6779
  StepsContinuous,
6784
6780
  {
@@ -6795,8 +6791,8 @@ function LegendRamp({
6795
6791
  }
6796
6792
  ) }),
6797
6793
  /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { display: "flex", justifyContent: "space-between", children: [
6798
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "overlineDelicate", color: "textSecondary", children: minLabel }),
6799
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "overlineDelicate", color: "textSecondary", children: maxLabel })
6794
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "overlineDelicate", color: "textSecondary", children: minLabel }),
6795
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "overlineDelicate", color: "textSecondary", children: maxLabel })
6800
6796
  ] })
6801
6797
  ] }) });
6802
6798
  }
@@ -6844,11 +6840,11 @@ const legendTypeMap = {
6844
6840
  };
6845
6841
  function LegendUnknown({ legend }) {
6846
6842
  const intl = reactIntl.useIntl();
6847
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
6843
+ const intlConfig = cssUtils.useImperativeIntl(intl);
6848
6844
  if (legend.select || !legend.type) {
6849
6845
  return null;
6850
6846
  }
6851
- return /* @__PURE__ */ jsxRuntime.jsxs(TablePaginationActions.Typography, { variant: "body2", color: "textSecondary", component: "p", children: [
6847
+ return /* @__PURE__ */ jsxRuntime.jsxs(cssUtils.Typography, { variant: "body2", color: "textSecondary", component: "p", children: [
6852
6848
  legend.type,
6853
6849
  " ",
6854
6850
  intlConfig.formatMessage({ id: "c4r.widgets.legend.notSupported" }),
@@ -6875,7 +6871,7 @@ function LegendLayerVariable({
6875
6871
  }) {
6876
6872
  var _a;
6877
6873
  const intl = reactIntl.useIntl();
6878
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
6874
+ const intlConfig = cssUtils.useImperativeIntl(intl);
6879
6875
  const type = legend.type;
6880
6876
  const TypeComponent = legendTypeMap[type] ?? customLegendTypes[type] ?? LegendUnknown;
6881
6877
  const TypedComponent = TypeComponent;
@@ -6883,7 +6879,7 @@ function LegendLayerVariable({
6883
6879
  return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { component: "li", "data-testid": "legend-layer-variable", px: 2, children: [
6884
6880
  legend.attr ? /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { pb: 1, children: [
6885
6881
  /* @__PURE__ */ jsxRuntime.jsx(
6886
- TablePaginationActions.Typography,
6882
+ cssUtils.Typography,
6887
6883
  {
6888
6884
  gutterBottom: true,
6889
6885
  variant: "overlineDelicate",
@@ -6892,10 +6888,10 @@ function LegendLayerVariable({
6892
6888
  children: intlConfig.formatMessage({ id: getLegendSubtitle(legend) })
6893
6889
  }
6894
6890
  ),
6895
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", component: "p", children: legend.attr })
6891
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "caption", component: "p", children: legend.attr })
6896
6892
  ] }) : null,
6897
6893
  legend.select ? /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { pb: 1, children: [
6898
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", weight: "medium", component: "p", children: legend.select.label }),
6894
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "caption", weight: "medium", component: "p", children: legend.select.label }),
6899
6895
  /* @__PURE__ */ jsxRuntime.jsx(
6900
6896
  material.Select,
6901
6897
  {
@@ -6945,7 +6941,7 @@ function LegendLayer({
6945
6941
  currentZoom = 0
6946
6942
  }) {
6947
6943
  const intl = reactIntl.useIntl();
6948
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
6944
+ const intlConfig = cssUtils.useImperativeIntl(intl);
6949
6945
  const menuAnchorRef = React.useRef(null);
6950
6946
  const [opacityOpen, setOpacityOpen] = React.useState(false);
6951
6947
  const id = layer.id;
@@ -7003,7 +6999,7 @@ function LegendLayer({
7003
6999
  id: "c4r.widgets.legend.zoomLevelTooltip"
7004
7000
  }),
7005
7001
  children: /* @__PURE__ */ jsxRuntime.jsxs(
7006
- TablePaginationActions.Typography,
7002
+ cssUtils.Typography,
7007
7003
  {
7008
7004
  color: visible ? "textPrimary" : "textSecondary",
7009
7005
  variant: "caption",
@@ -7072,7 +7068,7 @@ function LegendLayer({
7072
7068
  }
7073
7069
  ),
7074
7070
  helperText && /* @__PURE__ */ jsxRuntime.jsx(
7075
- TablePaginationActions.Typography,
7071
+ cssUtils.Typography,
7076
7072
  {
7077
7073
  variant: "caption",
7078
7074
  color: "textSecondary",
@@ -7122,9 +7118,9 @@ function LegendWidgetUI({
7122
7118
  sx
7123
7119
  }) {
7124
7120
  const intl = reactIntl.useIntl();
7125
- const intlConfig = TablePaginationActions.useImperativeIntl(intl);
7121
+ const intlConfig = cssUtils.useImperativeIntl(intl);
7126
7122
  const legendToggleHeader = /* @__PURE__ */ jsxRuntime.jsxs(LegendToggleHeader, { collapsed, children: [
7127
- /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", flexGrow: 1, children: title }),
7123
+ /* @__PURE__ */ jsxRuntime.jsx(cssUtils.Typography, { variant: "caption", flexGrow: 1, children: title }),
7128
7124
  /* @__PURE__ */ jsxRuntime.jsx(
7129
7125
  material.Tooltip,
7130
7126
  {