@spaziodati/atoka-design-system 10.10.0 → 10.11.4

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 (35) hide show
  1. package/AddableItems/AddableItems.d.ts +2 -0
  2. package/AddableItems/ClickableItemList.d.ts +1 -0
  3. package/AddableItems/index.js +3 -1
  4. package/Alert/index.js +1 -1
  5. package/CardsPage/index.js +2 -2
  6. package/ClickableExcludableItem/index.js +1 -1
  7. package/DetailPageContent/index.js +1 -1
  8. package/EllipsableContent/index.js +1 -1
  9. package/Funnel/index.js +1 -1
  10. package/Gauge/index.js +1 -1
  11. package/GridCard/index.js +1 -1
  12. package/Map/MapUtils.d.ts +1 -1
  13. package/Map/index.js +2 -1
  14. package/Navbar/index.js +1 -1
  15. package/PieChart/index.js +1 -1
  16. package/RecordBit/index.js +1 -1
  17. package/ResponsiveLineChart/index.js +1 -1
  18. package/RowCard/index.js +1 -1
  19. package/StatisticsItemCard/index.js +2 -2
  20. package/StatisticsLegend/index.js +2 -2
  21. package/Toast/index.js +2 -2
  22. package/ToggleButtonGroup/index.js +1 -1
  23. package/Tooltip/index.js +1 -1
  24. package/_shared/{Alert-DfrkiukZ.js → Alert-DRSXjo6r.js} +1 -1
  25. package/_shared/{CardMenu-DCuVAJHA.js → CardMenu-qWENEk_1.js} +1 -1
  26. package/_shared/{ClickableItemList-Bhiz90-u.js → ClickableItemList-irokfYIV.js} +7 -5
  27. package/_shared/{EllipsableContent-Dg7SmEC1.js → EllipsableContent-D9cVq_wI.js} +1 -1
  28. package/_shared/{RowCard-aVTtGpHA.js → RowCard-CZIj0R1g.js} +1 -1
  29. package/_shared/{StatisticsSVGLegend-DFifhIFN.js → StatisticsSVGLegend-74C3yk1m.js} +1 -1
  30. package/_shared/{ToggleButtonGroup-Duq22aii.js → ToggleButtonGroup-oKuK9VxI.js} +1 -1
  31. package/_shared/{Tooltip-Ds1ht2gU.js → Tooltip-BHIhjI3i.js} +4 -4
  32. package/{atoka-design-system-10.10.0.min.css → atoka-design-system-10.11.4.min.css} +1 -1
  33. package/package.json +1 -1
  34. package/styles/atoka-bootstrap-variables.scss +0 -1
  35. package/styles/atoka-namespaced-bs.scss +6 -2
@@ -51,6 +51,8 @@ export interface AddableItemsProps<ItemType extends ClickableFacetItem = Clickab
51
51
  onToggleIncludeExclude?: (item: ItemType, isExcluded: boolean) => void;
52
52
  /** this is the message that appears when the list of selectable items will be empty */
53
53
  emptyMessage?: string;
54
+ /** custom sort comparator for selectable items; if omitted, items are sorted by count descending */
55
+ sortComparator?: (a: ItemType, b: ItemType) => number;
54
56
  /** this function allow to use a custom formatters numbers, generally counts in facets items */
55
57
  countFormatter?: NumberToStringFormatterType;
56
58
  isLoading?: true;
@@ -20,6 +20,7 @@ export interface ClickableItemListProps<ItemType extends ClickableFacetItem> ext
20
20
  onClick: (item: ItemType, additionType: ItemAdditionType) => void;
21
21
  supportsExclusionAfterInclusion?: boolean;
22
22
  areItemsExcluded?: boolean;
23
+ sortComparator?: (a: ItemType, b: ItemType) => number;
23
24
  'aria-label': string;
24
25
  }
25
26
  export declare class ClickableItemList<ItemType extends ClickableFacetItem = ClickableFacetItem> extends React.Component<ClickableItemListProps<ItemType>> {
@@ -3,7 +3,7 @@ import classnames from "classnames";
3
3
  import React__default from "react";
4
4
  import { B as Button } from "../_shared/Button-Bn8PyQFK.js";
5
5
  import { T as Text } from "../_shared/Text-B4AyT0Tx.js";
6
- import { a as ClickableItemKind, b as ClickableItemList } from "../_shared/ClickableItemList-Bhiz90-u.js";
6
+ import { a as ClickableItemKind, b as ClickableItemList } from "../_shared/ClickableItemList-irokfYIV.js";
7
7
  function extractFacetKeyFromItemValue(key) {
8
8
  return typeof key === "object" ? key.value : key;
9
9
  }
@@ -48,6 +48,7 @@ class AddableItems extends React__default.PureComponent {
48
48
  kind: ClickableItemKind.remove,
49
49
  onClick: this.props.onRemoveItem,
50
50
  itemContentRenderer: this.getItemContentRenderer(),
51
+ sortComparator: this.props.sortComparator,
51
52
  tooltipMessages: this.props.tooltipMessages,
52
53
  countFormatter: this.props.countFormatter,
53
54
  includeBtnLabel: this.props.includeBtnLabel,
@@ -125,6 +126,7 @@ class AddableItems extends React__default.PureComponent {
125
126
  supportsExclusionHoverButton: this.props.supportsExclusionHoverButton,
126
127
  includeBtnLabel: this.props.includeBtnLabel,
127
128
  excludeBtnLabel: this.props.excludeBtnLabel,
129
+ sortComparator: this.props.sortComparator,
128
130
  "aria-label": "Selectable items"
129
131
  }
130
132
  )
package/Alert/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A, t } from "../_shared/Alert-DfrkiukZ.js";
1
+ import { A, t } from "../_shared/Alert-DRSXjo6r.js";
2
2
  export {
3
3
  A as Alert,
4
4
  t as titleIcons
@@ -10,10 +10,10 @@ import classnames from "classnames";
10
10
  import { S as SelectDropdown } from "../_shared/SelectDropdown-GHblwuD9.js";
11
11
  import { faList } from "@fortawesome/pro-light-svg-icons/faList";
12
12
  import { faTh } from "@fortawesome/pro-light-svg-icons/faTh";
13
- import { T as ToggleButtonGroup } from "../_shared/ToggleButtonGroup-Duq22aii.js";
13
+ import { T as ToggleButtonGroup } from "../_shared/ToggleButtonGroup-oKuK9VxI.js";
14
14
  import { T as Title } from "../_shared/Title-Bjj6BAK7.js";
15
15
  import { B as Button } from "../_shared/Button-Bn8PyQFK.js";
16
- import { a as RowCardLayout, R as RowCard } from "../_shared/RowCard-aVTtGpHA.js";
16
+ import { a as RowCardLayout, R as RowCard } from "../_shared/RowCard-CZIj0R1g.js";
17
17
  import { E as EmptyState } from "../_shared/EmptyState-BQyVos2X.js";
18
18
  import { T as Text } from "../_shared/Text-B4AyT0Tx.js";
19
19
  import { T as TabSwitcher } from "../_shared/TabSwitcher-B35_74Vv.js";
@@ -1,4 +1,4 @@
1
- import { C } from "../_shared/ClickableItemList-Bhiz90-u.js";
1
+ import { C } from "../_shared/ClickableItemList-irokfYIV.js";
2
2
  export {
3
3
  C as ClickableExcludableItem
4
4
  };
@@ -3,7 +3,7 @@ import classnames from "classnames";
3
3
  import React__default from "react";
4
4
  import { faInfoCircle } from "@fortawesome/pro-light-svg-icons/faInfoCircle";
5
5
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
6
- import { T as Tooltip } from "../_shared/Tooltip-Ds1ht2gU.js";
6
+ import { T as Tooltip } from "../_shared/Tooltip-BHIhjI3i.js";
7
7
  import { T as Title } from "../_shared/Title-Bjj6BAK7.js";
8
8
  const DetailPageContent = (props) => {
9
9
  const topContent = props.title || props.titleSuffix;
@@ -1,4 +1,4 @@
1
- import { E } from "../_shared/EllipsableContent-Dg7SmEC1.js";
1
+ import { E } from "../_shared/EllipsableContent-D9cVq_wI.js";
2
2
  export {
3
3
  E as EllipsableContent
4
4
  };
package/Funnel/index.js CHANGED
@@ -4,7 +4,7 @@ import { g as generateStyledTheme, d as deepEqual } from "../_shared/Utils-BrBNE
4
4
  import { g as blue50, i as blue90, j as blue95, e as blue300, n as generateRangeColor } from "../_shared/Style-CSNnkrg3.js";
5
5
  import { ResponsiveFunnel } from "@nivo/funnel";
6
6
  import classnames from "classnames";
7
- import { S as StatisticsSVGLegend } from "../_shared/StatisticsSVGLegend-DFifhIFN.js";
7
+ import { S as StatisticsSVGLegend } from "../_shared/StatisticsSVGLegend-74C3yk1m.js";
8
8
  import "../_shared/StatisticsTooltip-CCS8nRmU.js";
9
9
  import { g as getRenderStatisticsTooltip } from "../_shared/helpers-NoMDjFuw.js";
10
10
  import { e as ellipse, s as slugify } from "../_shared/Text-DT1G7-vq.js";
package/Gauge/index.js CHANGED
@@ -5,7 +5,7 @@ import "@fortawesome/react-fontawesome";
5
5
  import "../_shared/Form-D-8ftG21.js";
6
6
  import { n as generateRangeColor, z as usableRangeColors } from "../_shared/Style-CSNnkrg3.js";
7
7
  import { T as Title } from "../_shared/Title-Bjj6BAK7.js";
8
- import { T as Tooltip } from "../_shared/Tooltip-Ds1ht2gU.js";
8
+ import { T as Tooltip } from "../_shared/Tooltip-BHIhjI3i.js";
9
9
  class GaugeLinear extends React__default.PureComponent {
10
10
  static displayName = "GaugeLinear";
11
11
  padding = 4;
package/GridCard/index.js CHANGED
@@ -3,7 +3,7 @@ import React__default from "react";
3
3
  import classnames from "classnames";
4
4
  import { f as findChildByComponent } from "../_shared/Utils-BrBNE2g6.js";
5
5
  import { O as OniruCard } from "../_shared/OniruCard-g_9qIXxK.js";
6
- import { C as CardTitle, a as CardMenu } from "../_shared/CardMenu-DCuVAJHA.js";
6
+ import { C as CardTitle, a as CardMenu } from "../_shared/CardMenu-qWENEk_1.js";
7
7
  import { F as Form } from "../_shared/Form-D-8ftG21.js";
8
8
  const GridCardFooter = React__default.memo(
9
9
  (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-3", children: props.children })
package/Map/MapUtils.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const MAP_ATTRIBUTION: string, MAP_TILE_URL = "https://atoka.io/maps/styles/light/512/{z}/{x}/{y}.png";
1
+ declare const MAP_ATTRIBUTION: string, MAP_TILE_URL: string;
2
2
  export { MAP_ATTRIBUTION, MAP_TILE_URL };
package/Map/index.js CHANGED
@@ -390,7 +390,8 @@ const MapPopup = React__default.memo(({ ...props }) => {
390
390
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className, children: props.children });
391
391
  });
392
392
  MapPopup.displayName = "MapPopup";
393
- const MAP_ATTRIBUTION = '© <a href="https://openmaptiles.org/">OpenMapTiles</a> © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', MAP_TILE_URL = "https://atoka.io/maps/styles/light/512/{z}/{x}/{y}.png";
393
+ const mapPrefix = "https://atoka.io";
394
+ const MAP_ATTRIBUTION = '© <a href="https://openmaptiles.org/">OpenMapTiles</a> © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', MAP_TILE_URL = `${mapPrefix}/maps/styles/light/512/{z}/{x}/{y}.png`;
394
395
  class MapChoropleth extends React__default.Component {
395
396
  static displayName = "MapChoropleth";
396
397
  static defaultProps = {
package/Navbar/index.js CHANGED
@@ -16,7 +16,7 @@ import { E as EmptyState } from "../_shared/EmptyState-BQyVos2X.js";
16
16
  import BsDropdown from "react-bootstrap/Dropdown";
17
17
  import Col from "react-bootstrap/Col";
18
18
  import { T as Text } from "../_shared/Text-B4AyT0Tx.js";
19
- import { E as EllipsableContent } from "../_shared/EllipsableContent-Dg7SmEC1.js";
19
+ import { E as EllipsableContent } from "../_shared/EllipsableContent-D9cVq_wI.js";
20
20
  import { c as isStringEmpty } from "../_shared/Text-DT1G7-vq.js";
21
21
  import { U as UserAvatar } from "../_shared/UserAvatar-CDZ6F3es.js";
22
22
  import { faSearch } from "@fortawesome/pro-light-svg-icons/faSearch";
package/PieChart/index.js CHANGED
@@ -2,7 +2,7 @@ import { j as jsxRuntimeExports } from "../_shared/jsx-runtime-CkWJgiG5.js";
2
2
  import { ResponsivePie } from "@nivo/pie";
3
3
  import classnames from "classnames";
4
4
  import React__default from "react";
5
- import { S as StatisticsSVGLegend } from "../_shared/StatisticsSVGLegend-DFifhIFN.js";
5
+ import { S as StatisticsSVGLegend } from "../_shared/StatisticsSVGLegend-74C3yk1m.js";
6
6
  import "../_shared/StatisticsTooltip-CCS8nRmU.js";
7
7
  import { g as getRenderStatisticsTooltip } from "../_shared/helpers-NoMDjFuw.js";
8
8
  import { c as createDataWithOtherSlice } from "../_shared/Statistics-DhyTVLxQ.js";
@@ -2,7 +2,7 @@ import { j as jsxRuntimeExports } from "../_shared/jsx-runtime-CkWJgiG5.js";
2
2
  import classnames from "classnames";
3
3
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
4
4
  import { faInfoCircle } from "@fortawesome/pro-light-svg-icons/faInfoCircle";
5
- import { T as Tooltip } from "../_shared/Tooltip-Ds1ht2gU.js";
5
+ import { T as Tooltip } from "../_shared/Tooltip-BHIhjI3i.js";
6
6
  import { T as Title } from "../_shared/Title-Bjj6BAK7.js";
7
7
  import { T as Text } from "../_shared/Text-B4AyT0Tx.js";
8
8
  const RecordBit = ({
@@ -3,7 +3,7 @@ import { ResponsiveLine } from "@nivo/line";
3
3
  import { S as StatisticsTooltip } from "../_shared/StatisticsTooltip-CCS8nRmU.js";
4
4
  import { g as generateStyledTheme } from "../_shared/Utils-BrBNE2g6.js";
5
5
  import { A as violet, x as salmon, k as bluelight, w as red, r as green, s as orange, e as blue300 } from "../_shared/Style-CSNnkrg3.js";
6
- import { a as StatisticsLegend } from "../_shared/StatisticsSVGLegend-DFifhIFN.js";
6
+ import { a as StatisticsLegend } from "../_shared/StatisticsSVGLegend-74C3yk1m.js";
7
7
  const lineChartColorNameToHex = {
8
8
  blue300,
9
9
  orange,
package/RowCard/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R } from "../_shared/RowCard-aVTtGpHA.js";
1
+ import { R } from "../_shared/RowCard-CZIj0R1g.js";
2
2
  export {
3
3
  R as RowCard
4
4
  };
@@ -6,10 +6,10 @@ import { faInfoCircle } from "@fortawesome/pro-light-svg-icons/faInfoCircle";
6
6
  import { O as OniruCard } from "../_shared/OniruCard-g_9qIXxK.js";
7
7
  import { T as Title } from "../_shared/Title-Bjj6BAK7.js";
8
8
  import { f as findChildByComponent, b as findChildrenByComponent } from "../_shared/Utils-BrBNE2g6.js";
9
- import { E as EllipsableContent } from "../_shared/EllipsableContent-Dg7SmEC1.js";
9
+ import { E as EllipsableContent } from "../_shared/EllipsableContent-D9cVq_wI.js";
10
10
  import { S as Spinner, a as SpinnerSize } from "../_shared/Spinner-DHoqZ2pO.js";
11
11
  import { E as EmptyState } from "../_shared/EmptyState-BQyVos2X.js";
12
- import { T as Tooltip } from "../_shared/Tooltip-Ds1ht2gU.js";
12
+ import { T as Tooltip } from "../_shared/Tooltip-BHIhjI3i.js";
13
13
  import { D as Dropdown, b as AtokaSimpleDropdownToggle } from "../_shared/AtokaDropdownToggles-B6q-ieDU.js";
14
14
  const statisticsTitle = React__default.memo((props) => {
15
15
  const tooltip = props.tooltip != null ? /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { ...props.tooltipProps, content: props.tooltip, children: /* @__PURE__ */ jsxRuntimeExports.jsx(FontAwesomeIcon, { icon: faInfoCircle, className: "ms-1 cursor-pointer" }) }) : null;
@@ -1,5 +1,5 @@
1
- import { a as StatisticsLegend } from "../_shared/StatisticsSVGLegend-DFifhIFN.js";
2
- import { S } from "../_shared/StatisticsSVGLegend-DFifhIFN.js";
1
+ import { a as StatisticsLegend } from "../_shared/StatisticsSVGLegend-74C3yk1m.js";
2
+ import { S } from "../_shared/StatisticsSVGLegend-74C3yk1m.js";
3
3
  import { j as jsxRuntimeExports } from "../_shared/jsx-runtime-CkWJgiG5.js";
4
4
  const getRenderStatisticsLegend = ({ legendDataLabelKey, legendDataValueKey, legendDataPercentageKey, layout, columnsNumber }) => (
5
5
  // eslint-disable-next-line react/display-name
package/Toast/index.js CHANGED
@@ -4,9 +4,9 @@ import BsToast from "react-bootstrap/Toast";
4
4
  import BsToastHeader from "react-bootstrap/ToastHeader";
5
5
  import { faInfoCircle } from "@fortawesome/pro-regular-svg-icons/faInfoCircle";
6
6
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
7
- import { t as titleIcons } from "../_shared/Alert-DfrkiukZ.js";
7
+ import { t as titleIcons } from "../_shared/Alert-DRSXjo6r.js";
8
8
  import { T as Title } from "../_shared/Title-Bjj6BAK7.js";
9
- import { T as Tooltip } from "../_shared/Tooltip-Ds1ht2gU.js";
9
+ import { T as Tooltip } from "../_shared/Tooltip-BHIhjI3i.js";
10
10
  import { B as Button } from "../_shared/Button-Bn8PyQFK.js";
11
11
  import React__default from "react";
12
12
  import { B as Bs4V3Wrapper } from "../_shared/Bs4V3Wrapper-BKRW0pvE.js";
@@ -1,4 +1,4 @@
1
- import { T } from "../_shared/ToggleButtonGroup-Duq22aii.js";
1
+ import { T } from "../_shared/ToggleButtonGroup-oKuK9VxI.js";
2
2
  export {
3
3
  T as ToggleButtonGroup
4
4
  };
package/Tooltip/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T } from "../_shared/Tooltip-Ds1ht2gU.js";
1
+ import { T } from "../_shared/Tooltip-BHIhjI3i.js";
2
2
  export {
3
3
  T as Tooltip
4
4
  };
@@ -8,7 +8,7 @@ import { faExclamationCircle } from "@fortawesome/pro-solid-svg-icons/faExclamat
8
8
  import { faInfoCircle } from "@fortawesome/pro-solid-svg-icons/faInfoCircle";
9
9
  import { B as Button } from "./Button-Bn8PyQFK.js";
10
10
  import { T as Title } from "./Title-Bjj6BAK7.js";
11
- import { T as Tooltip } from "./Tooltip-Ds1ht2gU.js";
11
+ import { T as Tooltip } from "./Tooltip-BHIhjI3i.js";
12
12
  const titleIcons = {
13
13
  danger: faCircleXmark,
14
14
  success: faCheckCircle,
@@ -1,6 +1,6 @@
1
1
  import { j as jsxRuntimeExports } from "./jsx-runtime-CkWJgiG5.js";
2
2
  import React__default from "react";
3
- import { E as EllipsableContent } from "./EllipsableContent-Dg7SmEC1.js";
3
+ import { E as EllipsableContent } from "./EllipsableContent-D9cVq_wI.js";
4
4
  import { T as Title } from "./Title-Bjj6BAK7.js";
5
5
  import classnames from "classnames";
6
6
  import { D as Dropdown, b as AtokaSimpleDropdownToggle } from "./AtokaDropdownToggles-B6q-ieDU.js";
@@ -5,7 +5,7 @@ import ListGroup from "react-bootstrap/ListGroup";
5
5
  import { faPlusCircle } from "@fortawesome/pro-light-svg-icons/faPlusCircle";
6
6
  import { faMinusCircle } from "@fortawesome/pro-light-svg-icons/faMinusCircle";
7
7
  import { faTimes } from "@fortawesome/pro-light-svg-icons/faTimes";
8
- import { T as Tooltip } from "./Tooltip-Ds1ht2gU.js";
8
+ import { T as Tooltip } from "./Tooltip-BHIhjI3i.js";
9
9
  import { B as Button } from "./Button-Bn8PyQFK.js";
10
10
  import { c as clone } from "./Utils-BrBNE2g6.js";
11
11
  class ClickableExcludableItem extends React__default.PureComponent {
@@ -177,11 +177,13 @@ class ClickableItemList extends React__default.Component {
177
177
  if (this.props.items == null || this.props.items.length === 0) {
178
178
  return null;
179
179
  }
180
- if (this.props.items[0].count == null) {
181
- return this.props.items.map(this.renderItem);
182
- }
183
180
  const items = clone(this.props.items);
184
- return items.sort((a, b) => (b.count ?? 0) - (a.count ?? 0)).map(this.renderItem);
181
+ if (this.props.sortComparator) {
182
+ items.sort(this.props.sortComparator);
183
+ } else if (items[0].count) {
184
+ items.sort((a, b) => (b.count ?? 0) - (a.count ?? 0));
185
+ } else ;
186
+ return items.map(this.renderItem);
185
187
  }
186
188
  render() {
187
189
  const type = this.props.kind === 0 ? "addable" : "removable";
@@ -1,7 +1,7 @@
1
1
  import { j as jsxRuntimeExports } from "./jsx-runtime-CkWJgiG5.js";
2
2
  import classnames from "classnames";
3
3
  import React__default from "react";
4
- import { T as Tooltip } from "./Tooltip-Ds1ht2gU.js";
4
+ import { T as Tooltip } from "./Tooltip-BHIhjI3i.js";
5
5
  import { f as findChildByComponent } from "./Utils-BrBNE2g6.js";
6
6
  const Prepend = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ellipsable-content-prepend", children: props.children });
7
7
  Prepend.displayName = "EllipsableContent.Prepend";
@@ -2,7 +2,7 @@ import { j as jsxRuntimeExports } from "./jsx-runtime-CkWJgiG5.js";
2
2
  import React__default from "react";
3
3
  import classnames from "classnames";
4
4
  import { f as findChildByComponent } from "./Utils-BrBNE2g6.js";
5
- import { C as CardTitle, a as CardMenu } from "./CardMenu-DCuVAJHA.js";
5
+ import { C as CardTitle, a as CardMenu } from "./CardMenu-qWENEk_1.js";
6
6
  import { O as OniruCard } from "./OniruCard-g_9qIXxK.js";
7
7
  import { F as Form } from "./Form-D-8ftG21.js";
8
8
  import Col from "react-bootstrap/Col";
@@ -6,7 +6,7 @@ import classnames from "classnames";
6
6
  import Col from "react-bootstrap/Col";
7
7
  import { faCircle } from "@fortawesome/pro-solid-svg-icons/faCircle";
8
8
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
9
- import { E as EllipsableContent } from "./EllipsableContent-Dg7SmEC1.js";
9
+ import { E as EllipsableContent } from "./EllipsableContent-D9cVq_wI.js";
10
10
  import { c as isStringEmpty } from "./Text-DT1G7-vq.js";
11
11
  import { n as normalizePercentage } from "./Statistics-DhyTVLxQ.js";
12
12
  class StatisticsLegendItem extends React__default.PureComponent {
@@ -4,7 +4,7 @@ import classnames from "classnames";
4
4
  import ButtonGroup from "react-bootstrap/ButtonGroup";
5
5
  import BsToggleButton from "react-bootstrap/ToggleButton";
6
6
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
7
- import { T as Tooltip } from "./Tooltip-Ds1ht2gU.js";
7
+ import { T as Tooltip } from "./Tooltip-BHIhjI3i.js";
8
8
  class ToggleButton extends React__default.PureComponent {
9
9
  static displayName = "ToggleButton";
10
10
  renderIcon() {
@@ -50,7 +50,7 @@ const Tooltip = React__default.memo((props) => {
50
50
  if (enableHover) {
51
51
  clearHoverTimeout();
52
52
  if (delaySettings.show) {
53
- hoverTimeoutRef.current = setTimeout(() => {
53
+ hoverTimeoutRef.current = window.setTimeout(() => {
54
54
  setIsHovered(true);
55
55
  }, delaySettings.show);
56
56
  } else {
@@ -66,7 +66,7 @@ const Tooltip = React__default.memo((props) => {
66
66
  if (enableHover) {
67
67
  clearHoverTimeout();
68
68
  if (delaySettings.hide) {
69
- hoverTimeoutRef.current = setTimeout(() => {
69
+ hoverTimeoutRef.current = window.setTimeout(() => {
70
70
  setIsHovered(false);
71
71
  }, delaySettings.hide);
72
72
  } else {
@@ -82,7 +82,7 @@ const Tooltip = React__default.memo((props) => {
82
82
  if (enableFocus) {
83
83
  clearFocusTimeout();
84
84
  if (delaySettings.show) {
85
- focusTimeoutRef.current = setTimeout(() => {
85
+ focusTimeoutRef.current = window.setTimeout(() => {
86
86
  setIsFocused(true);
87
87
  }, delaySettings.show);
88
88
  } else {
@@ -98,7 +98,7 @@ const Tooltip = React__default.memo((props) => {
98
98
  if (enableFocus) {
99
99
  clearFocusTimeout();
100
100
  if (delaySettings.hide) {
101
- focusTimeoutRef.current = setTimeout(() => {
101
+ focusTimeoutRef.current = window.setTimeout(() => {
102
102
  setIsFocused(false);
103
103
  }, delaySettings.hide);
104
104
  } else {