@spaziodati/atoka-design-system 10.8.0 → 10.9.0

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 (52) hide show
  1. package/AddableItems/index.js +1 -1
  2. package/BubbleChart/index.js +9 -12
  3. package/CardsPage/index.js +3 -3
  4. package/ClickableExcludableItem/index.js +1 -1
  5. package/CursorPagination/index.js +1 -1
  6. package/DatePickerInput/index.js +2 -2
  7. package/DetailPage/index.js +1 -1
  8. package/EllipsableContent/index.js +1 -1
  9. package/Expandable/index.js +1 -1
  10. package/Funnel/Funnel.d.ts +2 -2
  11. package/Funnel/index.js +4 -4
  12. package/GeoMap/GeoMap.d.ts +2 -0
  13. package/GeoMap/index.js +18 -10
  14. package/GridCard/index.js +2 -2
  15. package/Histogram/Histogram.d.ts +3 -3
  16. package/Histogram/Types.d.ts +2 -2
  17. package/Histogram/index.js +23 -25
  18. package/InputGroup/index.js +1 -1
  19. package/Map/index.js +1 -1
  20. package/Modal/index.js +1 -1
  21. package/MultiModeDatePicker/index.js +1 -1
  22. package/Navbar/index.js +3 -3
  23. package/Pagination/index.js +1 -1
  24. package/PieChart/index.js +5 -5
  25. package/ResponsiveLineChart/ResponsiveLineChart.d.ts +3 -2
  26. package/ResponsiveLineChart/index.js +7 -7
  27. package/ResultItemCard/index.js +2 -2
  28. package/RowCard/index.js +1 -1
  29. package/StatisticsItemCard/index.js +2 -2
  30. package/StatisticsLegend/StatisticsSVGLegend.d.ts +3 -3
  31. package/StatisticsLegend/index.js +2 -2
  32. package/StatisticsTooltip/index.js +2 -2
  33. package/SunBurst/index.js +4 -4
  34. package/TabSwitcher/index.js +1 -1
  35. package/Utils/Utils.d.ts +2 -2
  36. package/Utils/index.js +2 -2
  37. package/_shared/{CardMenu-BEJgJfms.js → CardMenu-DCuVAJHA.js} +1 -1
  38. package/_shared/{ClickableItemList-DVomaPq2.js → ClickableItemList-Bhiz90-u.js} +1 -1
  39. package/_shared/{EllipsableContent-DA9bhZw-.js → EllipsableContent-Dg7SmEC1.js} +1 -1
  40. package/_shared/{InputGroupShortcut-DVgXnEC3.js → InputGroupShortcut-mfQ0HR5_.js} +1 -1
  41. package/_shared/{ItemImage-Bhitkbw1.js → ItemImage-Cns4pr0R.js} +1 -1
  42. package/_shared/{Modal-DKv77LLf.js → Modal-BAgaw4ui.js} +1 -1
  43. package/_shared/{MultiModeDatePicker-nKd6dcHG.js → MultiModeDatePicker-CvnQBr92.js} +1 -1
  44. package/_shared/{RowCard-DoBnimBD.js → RowCard-aVTtGpHA.js} +2 -2
  45. package/_shared/{Statistics-Bm18tBPk.js → Statistics-DhyTVLxQ.js} +1 -1
  46. package/_shared/{StatisticsSVGLegend-hnWvsMts.js → StatisticsSVGLegend-DFifhIFN.js} +2 -2
  47. package/_shared/{StatisticsTooltip-pL9xXE3S.js → StatisticsTooltip-CCS8nRmU.js} +1 -1
  48. package/_shared/{TabSwitcher-BwM8Io9E.js → TabSwitcher-B35_74Vv.js} +1 -1
  49. package/_shared/{Utils-Bpj1pJRF.js → Utils-BrBNE2g6.js} +2 -0
  50. package/_shared/{helpers-Bg6unjPS.js → helpers-NoMDjFuw.js} +1 -1
  51. package/{atoka-design-system-10.8.0.min.css → atoka-design-system-10.9.0.min.css} +1 -1
  52. package/package.json +10 -10
@@ -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-DVomaPq2.js";
6
+ import { a as ClickableItemKind, b as ClickableItemList } from "../_shared/ClickableItemList-Bhiz90-u.js";
7
7
  function extractFacetKeyFromItemValue(key) {
8
8
  return typeof key === "object" ? key.value : key;
9
9
  }
@@ -1,11 +1,11 @@
1
1
  import { j as jsxRuntimeExports } from "../_shared/jsx-runtime-CkWJgiG5.js";
2
2
  import React__default from "react";
3
3
  import { e as blue300, d as blue30, n as generateRangeColor } from "../_shared/Style-CSNnkrg3.js";
4
- import "../_shared/StatisticsTooltip-pL9xXE3S.js";
5
- import { g as getRenderStatisticsTooltip } from "../_shared/helpers-Bg6unjPS.js";
6
- import { c as createDataWithOtherSlice } from "../_shared/Statistics-Bm18tBPk.js";
7
- import { d as deepEqual, s as sortObjDesc } from "../_shared/Utils-Bpj1pJRF.js";
8
- import { ResponsiveCirclePackingCanvas, ResponsiveCirclePacking } from "@nivo/circle-packing";
4
+ import "../_shared/StatisticsTooltip-CCS8nRmU.js";
5
+ import { g as getRenderStatisticsTooltip } from "../_shared/helpers-NoMDjFuw.js";
6
+ import { c as createDataWithOtherSlice } from "../_shared/Statistics-DhyTVLxQ.js";
7
+ import { d as deepEqual, s as sortObjDesc } from "../_shared/Utils-BrBNE2g6.js";
8
+ import { CirclePackingCanvas, ResponsiveCirclePackingCanvas, CirclePacking, ResponsiveCirclePacking } from "@nivo/circle-packing";
9
9
  import classnames from "classnames";
10
10
  import { e as ellipse } from "../_shared/Text-DT1G7-vq.js";
11
11
  class BubbleChartUI extends React__default.PureComponent {
@@ -27,7 +27,7 @@ class BubbleChartUI extends React__default.PureComponent {
27
27
  return this.getEllipsedLabel(d.radius, d.data.label);
28
28
  };
29
29
  renderContent() {
30
- const { id, isCanvas, fontSize } = this.props, commonProps = {
30
+ const { id, isCanvas, fontSize, size } = this.props, width = size?.width, height = size?.height, hasExplicitSize = width != null && height != null, commonProps = {
31
31
  layers: this.defaultLayers,
32
32
  margin: { top: 0, right: 0, bottom: 0, left: 0 },
33
33
  data: this.props.data,
@@ -46,15 +46,12 @@ class BubbleChartUI extends React__default.PureComponent {
46
46
  fontSize,
47
47
  background: "#fff"
48
48
  };
49
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ResponsiveCirclePackingCanvas, { ...commonProps, theme });
49
+ return hasExplicitSize ? /* @__PURE__ */ jsxRuntimeExports.jsx(CirclePackingCanvas, { ...commonProps, theme, width, height }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ResponsiveCirclePackingCanvas, { ...commonProps, theme });
50
50
  }
51
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ResponsiveCirclePacking, { ...commonProps });
51
+ return hasExplicitSize ? /* @__PURE__ */ jsxRuntimeExports.jsx(CirclePacking, { ...commonProps, width, height }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ResponsiveCirclePacking, { ...commonProps });
52
52
  }
53
53
  render() {
54
- const { id, className, chartRef, size } = this.props, chartWidth = size?.width ?? "100%", chartHeight = size?.height ?? "100%", classNames = classnames(
55
- "bubble-chart-container d-flex justify-content-center align-items-center",
56
- className
57
- );
54
+ const { id, className, chartRef, size } = this.props, chartWidth = size?.width ?? "100%", chartHeight = size?.height ?? "100%", classNames = classnames("bubble-chart-container", className);
58
55
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id, className: classNames, ref: chartRef, style: { width: chartWidth, height: chartHeight }, children: this.renderContent() });
59
56
  }
60
57
  }
@@ -4,7 +4,7 @@ import Container from "react-bootstrap/Container";
4
4
  import { B as Bs4V3Wrapper } from "../_shared/Bs4V3Wrapper-BKRW0pvE.js";
5
5
  import Row from "react-bootstrap/Row";
6
6
  import Col from "react-bootstrap/Col";
7
- import { f as findChildByComponent } from "../_shared/Utils-Bpj1pJRF.js";
7
+ import { f as findChildByComponent } from "../_shared/Utils-BrBNE2g6.js";
8
8
  import { F as Form } from "../_shared/Form-D-8ftG21.js";
9
9
  import classnames from "classnames";
10
10
  import { S as SelectDropdown } from "../_shared/SelectDropdown-GHblwuD9.js";
@@ -13,10 +13,10 @@ import { faTh } from "@fortawesome/pro-light-svg-icons/faTh";
13
13
  import { T as ToggleButtonGroup } from "../_shared/ToggleButtonGroup-Duq22aii.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-DoBnimBD.js";
16
+ import { a as RowCardLayout, R as RowCard } from "../_shared/RowCard-aVTtGpHA.js";
17
17
  import { E as EmptyState } from "../_shared/EmptyState-BQyVos2X.js";
18
18
  import { T as Text } from "../_shared/Text-B4AyT0Tx.js";
19
- import { T as TabSwitcher } from "../_shared/TabSwitcher-BwM8Io9E.js";
19
+ import { T as TabSwitcher } from "../_shared/TabSwitcher-B35_74Vv.js";
20
20
  const CardsPageFullText = React__default.memo(
21
21
  (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "cards-page-fulltext mt-3", children: props.children })
22
22
  );
@@ -1,4 +1,4 @@
1
- import { C } from "../_shared/ClickableItemList-DVomaPq2.js";
1
+ import { C } from "../_shared/ClickableItemList-Bhiz90-u.js";
2
2
  export {
3
3
  C as ClickableExcludableItem
4
4
  };
@@ -2,7 +2,7 @@ import { j as jsxRuntimeExports } from "../_shared/jsx-runtime-CkWJgiG5.js";
2
2
  import classnames from "classnames";
3
3
  import React__default from "react";
4
4
  import BsPagination from "react-bootstrap/Pagination";
5
- import { a as scrollToTop } from "../_shared/Utils-Bpj1pJRF.js";
5
+ import { a as scrollToTop } from "../_shared/Utils-BrBNE2g6.js";
6
6
  import { P as PaginationPrev, a as PaginationNext } from "../_shared/PaginationNext-BOdbeCda.js";
7
7
  class CursorPagination extends React__default.PureComponent {
8
8
  static displayName = "CursorPagination";
@@ -4,8 +4,8 @@ import { createPortal } from "react-dom";
4
4
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
5
5
  import { faTimes } from "@fortawesome/pro-light-svg-icons/faTimes";
6
6
  import { a as FormControl } from "../_shared/Form-D-8ftG21.js";
7
- import { I as InputGroupComponent } from "../_shared/InputGroupShortcut-DVgXnEC3.js";
8
- import { M as MultiModeDatePicker } from "../_shared/MultiModeDatePicker-nKd6dcHG.js";
7
+ import { I as InputGroupComponent } from "../_shared/InputGroupShortcut-mfQ0HR5_.js";
8
+ import { M as MultiModeDatePicker } from "../_shared/MultiModeDatePicker-CvnQBr92.js";
9
9
  function useClickOutside(callback) {
10
10
  const ref = React__default.useRef(null);
11
11
  useEffect(() => {
@@ -4,7 +4,7 @@ import Container from "react-bootstrap/Container";
4
4
  import { B as Bs4V3Wrapper } from "../_shared/Bs4V3Wrapper-BKRW0pvE.js";
5
5
  import { T as Text } from "../_shared/Text-B4AyT0Tx.js";
6
6
  import classnames from "classnames";
7
- import { I as ItemImage } from "../_shared/ItemImage-Bhitkbw1.js";
7
+ import { I as ItemImage } from "../_shared/ItemImage-Cns4pr0R.js";
8
8
  import { S as Spinner, a as SpinnerSize } from "../_shared/Spinner-DHoqZ2pO.js";
9
9
  import { T as Title } from "../_shared/Title-Bjj6BAK7.js";
10
10
  import Nav from "react-bootstrap/Nav";
@@ -1,4 +1,4 @@
1
- import { E } from "../_shared/EllipsableContent-DA9bhZw-.js";
1
+ import { E } from "../_shared/EllipsableContent-Dg7SmEC1.js";
2
2
  export {
3
3
  E as EllipsableContent
4
4
  };
@@ -4,7 +4,7 @@ import { useRef, useState, useEffect } from "react";
4
4
  import { faChevronDown } from "@fortawesome/pro-light-svg-icons/faChevronDown";
5
5
  import { faChevronUp } from "@fortawesome/pro-light-svg-icons/faChevronUp";
6
6
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
7
- import { M as Modal } from "../_shared/Modal-DKv77LLf.js";
7
+ import { M as Modal } from "../_shared/Modal-BAgaw4ui.js";
8
8
  import { T as Text } from "../_shared/Text-B4AyT0Tx.js";
9
9
  const TOLERANCE_THRESHOLD = 40;
10
10
  const DEFAULT_MAX_HEIGHT = 200;
@@ -11,9 +11,9 @@ export interface FunnelProps extends AtokaFunnelCommonProps {
11
11
  /** The colors are a palette, the component will generate the right color numbers depending on the palette you give it*/
12
12
  colors?: string[];
13
13
  }
14
- export interface AtokaFunnelDatum extends FunnelDatum {
14
+ export type AtokaFunnelDatum = FunnelDatum<{
15
15
  percentage?: number;
16
- }
16
+ }>;
17
17
  interface FunnelState extends Pick<FunnelProps, 'colors'> {
18
18
  data: AtokaFunnelDatum[];
19
19
  sinkData: FunnelData[];
package/Funnel/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { j as jsxRuntimeExports } from "../_shared/jsx-runtime-CkWJgiG5.js";
2
2
  import React__default from "react";
3
- import { g as generateStyledTheme, d as deepEqual } from "../_shared/Utils-Bpj1pJRF.js";
3
+ import { g as generateStyledTheme, d as deepEqual } from "../_shared/Utils-BrBNE2g6.js";
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-hnWvsMts.js";
8
- import "../_shared/StatisticsTooltip-pL9xXE3S.js";
9
- import { g as getRenderStatisticsTooltip } from "../_shared/helpers-Bg6unjPS.js";
7
+ import { S as StatisticsSVGLegend } from "../_shared/StatisticsSVGLegend-DFifhIFN.js";
8
+ import "../_shared/StatisticsTooltip-CCS8nRmU.js";
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";
11
11
  const SVGDataLabelSizes = {
12
12
  ESTIMATED_LETTER_PIXELS: 6
@@ -3,6 +3,8 @@ import './GeoMap.scss';
3
3
  type GeoMapProps = Partial<ResponsiveChoropleth['props']> & Pick<ResponsiveChoropleth['props'], 'features' | 'data'> & {
4
4
  isZoomEnabled?: boolean;
5
5
  isZoomOnWheelEnabled?: boolean;
6
+ minProjectionScale?: number;
7
+ maxProjectionScale?: number;
6
8
  };
7
9
  /**
8
10
  * ### Overview
package/GeoMap/index.js CHANGED
@@ -5,17 +5,25 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
5
5
  import { faMinus } from "@fortawesome/pro-light-svg-icons/faMinus";
6
6
  import { faArrowRotateLeft } from "@fortawesome/pro-light-svg-icons/faArrowRotateLeft";
7
7
  import { faPlus } from "@fortawesome/pro-light-svg-icons/faPlus";
8
- import { g as generateStyledTheme } from "../_shared/Utils-Bpj1pJRF.js";
8
+ import { g as generateStyledTheme } from "../_shared/Utils-BrBNE2g6.js";
9
9
  const DEFAULT_PROJECTION_SCALE = 1e3;
10
- const MIN_PROJECTION_SCALE = 500;
11
- const MAX_PROJECTION_SCALE = 5e3;
10
+ const DEFAULT_MIN_PROJECTION_SCALE = 500;
11
+ const DEFAULT_MAX_PROJECTION_SCALE = 5e3;
12
12
  const DEFAULT_TRANSLATION_X = 0;
13
13
  const DEFAULT_TRANSLATION_Y = 3.15;
14
14
  const ZOOM_IN_FACTOR = 1.1;
15
15
  const ZOOM_OUT_FACTOR = 0.9;
16
16
  const TRANSLATION_CENTER = 0.5;
17
17
  const GeoMap = (props) => {
18
- const { getIDForFeature, isZoomEnabled, isZoomOnWheelEnabled, projectionTranslation, ...restProps } = props;
18
+ const {
19
+ getIDForFeature,
20
+ isZoomEnabled,
21
+ isZoomOnWheelEnabled,
22
+ projectionTranslation,
23
+ minProjectionScale = DEFAULT_MIN_PROJECTION_SCALE,
24
+ maxProjectionScale = DEFAULT_MAX_PROJECTION_SCALE,
25
+ ...restProps
26
+ } = props;
19
27
  const initialProjectionScale = useMemo(
20
28
  () => props.projectionScale ?? DEFAULT_PROJECTION_SCALE,
21
29
  [props.projectionScale]
@@ -47,7 +55,7 @@ const GeoMap = (props) => {
47
55
  }, [props.features, getIDForFeature]);
48
56
  const handleZoomIn = useCallback(() => {
49
57
  setProjectionScale((prev) => {
50
- const newScale = Math.min(prev * ZOOM_IN_FACTOR, MAX_PROJECTION_SCALE);
58
+ const newScale = Math.min(prev * ZOOM_IN_FACTOR, maxProjectionScale);
51
59
  const scaleFactor = newScale / prev;
52
60
  setTranslation(([x, y]) => [
53
61
  TRANSLATION_CENTER + (x - TRANSLATION_CENTER) * scaleFactor,
@@ -55,10 +63,10 @@ const GeoMap = (props) => {
55
63
  ]);
56
64
  return newScale;
57
65
  });
58
- }, []);
66
+ }, [maxProjectionScale]);
59
67
  const handleZoomOut = useCallback(() => {
60
68
  setProjectionScale((prev) => {
61
- const newScale = Math.max(prev / ZOOM_IN_FACTOR, MIN_PROJECTION_SCALE);
69
+ const newScale = Math.max(prev / ZOOM_IN_FACTOR, minProjectionScale);
62
70
  const scaleFactor = newScale / prev;
63
71
  setTranslation(([x, y]) => [
64
72
  TRANSLATION_CENTER + (x - TRANSLATION_CENTER) * scaleFactor,
@@ -66,7 +74,7 @@ const GeoMap = (props) => {
66
74
  ]);
67
75
  return newScale;
68
76
  });
69
- }, []);
77
+ }, [minProjectionScale]);
70
78
  const handleResetZoom = useCallback(() => {
71
79
  setProjectionScale(initialProjectionScale);
72
80
  setTranslation(initialTranslation);
@@ -84,7 +92,7 @@ const GeoMap = (props) => {
84
92
  const mouseX = (e.clientX - rect.left) / rect.width;
85
93
  const mouseY = (e.clientY - rect.top) / rect.height;
86
94
  setProjectionScale((prev) => {
87
- const newScale = Math.max(MIN_PROJECTION_SCALE, Math.min(MAX_PROJECTION_SCALE, prev * zoomFactor));
95
+ const newScale = Math.max(minProjectionScale, Math.min(maxProjectionScale, prev * zoomFactor));
88
96
  const scaleFactor = newScale / prev;
89
97
  setTranslation(([x, y]) => [mouseX + (x - mouseX) * scaleFactor, mouseY + (y - mouseY) * scaleFactor]);
90
98
  return newScale;
@@ -94,7 +102,7 @@ const GeoMap = (props) => {
94
102
  return () => {
95
103
  container.removeEventListener("wheel", handleWheel);
96
104
  };
97
- }, [isZoomOnWheelEnabled, isZoomEnabled]);
105
+ }, [isZoomOnWheelEnabled, isZoomEnabled, minProjectionScale, maxProjectionScale]);
98
106
  useEffect(() => {
99
107
  const container = mapContainerRef.current;
100
108
  if (!container || !isZoomEnabled) {
package/GridCard/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { j as jsxRuntimeExports } from "../_shared/jsx-runtime-CkWJgiG5.js";
2
2
  import React__default from "react";
3
3
  import classnames from "classnames";
4
- import { f as findChildByComponent } from "../_shared/Utils-Bpj1pJRF.js";
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-BEJgJfms.js";
6
+ import { C as CardTitle, a as CardMenu } from "../_shared/CardMenu-DCuVAJHA.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 })
@@ -1,4 +1,4 @@
1
- import { BarCommonProps, BarCustomLayerProps, LabelFormatter, ValueFormatter } from '@nivo/bar';
1
+ import { BarCommonProps, BarCustomLayerProps, LabelFormatter } from '@nivo/bar';
2
2
  import { Dimensions, Margin } from '@nivo/core';
3
3
  import React from 'react';
4
4
  import { BarDatum, DataPoint, Value } from '../Utils/CommonTypes';
@@ -79,9 +79,9 @@ type HistogramProps = Pick<BarCommonProps<BarDatum>, 'gridYValues' | 'gridXValue
79
79
  total?: number;
80
80
  /** This prop will calculate dynamically the necessary space for your margin for your value axis */
81
81
  computeMargin?: boolean;
82
- valueFormat?: ValueFormatter;
82
+ valueFormat?: LabelFormatter;
83
83
  labelFormat?: LabelFormatter;
84
- tooltipValueFormat?: ValueFormatter;
84
+ tooltipValueFormat?: LabelFormatter;
85
85
  } & ({
86
86
  isCanvas?: true;
87
87
  animate?: never;
@@ -1,4 +1,4 @@
1
- import { BarTooltipProps, ComputedDatum } from '@nivo/bar';
1
+ import { BarTooltipProps, ComputedDatum, BarDatum as NivoBarDatum } from '@nivo/bar';
2
2
  import { BarDatum } from '../Utils/CommonTypes';
3
3
  export type Layout = 'horizontal' | 'vertical';
4
4
  type Margin = {
@@ -11,7 +11,7 @@ export type Box = Partial<Margin>;
11
11
  export interface CustomColorsDatum {
12
12
  [key: string]: string;
13
13
  }
14
- export type BarTooltipDatum<T> = ComputedDatum<T> & {
14
+ export type BarTooltipDatum<T extends NivoBarDatum> = ComputedDatum<T> & {
15
15
  color: string;
16
16
  };
17
17
  export type TooltipProp = (props: BarTooltipProps<BarDatum>) => JSX.Element;
@@ -1,14 +1,14 @@
1
1
  import { j as jsxRuntimeExports } from "../_shared/jsx-runtime-CkWJgiG5.js";
2
- import { ResponsiveBarCanvas, ResponsiveBar } from "@nivo/bar";
2
+ import { BarCanvas, ResponsiveBarCanvas, ResponsiveBar } from "@nivo/bar";
3
3
  import { useTooltip } from "@nivo/tooltip";
4
4
  import classnames from "classnames";
5
5
  import React__default, { useMemo, useCallback } from "react";
6
6
  import { E as EmptyState } from "../_shared/EmptyState-BQyVos2X.js";
7
7
  import { S as Spinner } from "../_shared/Spinner-DHoqZ2pO.js";
8
- import { d as deepEqual, f as findChildByComponent, g as generateStyledTheme } from "../_shared/Utils-Bpj1pJRF.js";
9
- import "../_shared/StatisticsTooltip-pL9xXE3S.js";
10
- import { g as getRenderStatisticsTooltip } from "../_shared/helpers-Bg6unjPS.js";
11
- import { c as createDataWithOtherSlice } from "../_shared/Statistics-Bm18tBPk.js";
8
+ import { d as deepEqual, f as findChildByComponent, g as generateStyledTheme } from "../_shared/Utils-BrBNE2g6.js";
9
+ import "../_shared/StatisticsTooltip-CCS8nRmU.js";
10
+ import { g as getRenderStatisticsTooltip } from "../_shared/helpers-NoMDjFuw.js";
11
+ import { c as createDataWithOtherSlice } from "../_shared/Statistics-DhyTVLxQ.js";
12
12
  import { m as extractColorFromVar, d as blue30 } from "../_shared/Style-CSNnkrg3.js";
13
13
  import { a as ellipseAndFormat, m as matchAndFormatRangeLabel } from "../_shared/Text-DT1G7-vq.js";
14
14
  const MAGIC_MULTIPLIER_LEFT = 7.7;
@@ -493,6 +493,8 @@ class Histogram extends React__default.Component {
493
493
  theme: generateStyledTheme(this.props.theme),
494
494
  isInteractive: this.isClickable() || hasTooltip,
495
495
  indexBy: "id",
496
+ valueScale: { type: "linear", min: "auto", max: "auto" },
497
+ indexScale: { type: "band", round: true },
496
498
  colors: this.getColors,
497
499
  enableGridY: this.props.layout === "vertical" ? enableGridY : false,
498
500
  enableGridX: this.props.layout === "horizontal" ? enableGridX : false,
@@ -503,17 +505,17 @@ class Histogram extends React__default.Component {
503
505
  if (barProps.theme) {
504
506
  barProps.theme = mapObjectCSSVarToHex(barProps.theme);
505
507
  }
506
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
507
- ResponsiveBarCanvas,
508
- {
509
- ...barProps,
510
- ...size,
511
- data,
512
- layers: this.getCanvasLayers(),
513
- axisLeft,
514
- axisBottom
515
- }
516
- );
508
+ const canvasProps = {
509
+ ...barProps,
510
+ data,
511
+ layers: this.getCanvasLayers(),
512
+ axisLeft,
513
+ axisBottom
514
+ };
515
+ if (size?.width != null && size?.height != null) {
516
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(BarCanvas, { ...canvasProps, width: size.width, height: size.height });
517
+ }
518
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ResponsiveBarCanvas, { ...canvasProps });
517
519
  }
518
520
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
519
521
  ResponsiveBar,
@@ -531,15 +533,11 @@ class Histogram extends React__default.Component {
531
533
  );
532
534
  }
533
535
  render() {
534
- const className = classnames(
535
- "histogram-container",
536
- "d-flex",
537
- "justify-content-center",
538
- "align-items-center",
539
- {
540
- clickable: this.isClickable()
541
- }
542
- );
536
+ const isLoadingOrEmpty = this.props.isLoading || this.props.isEmpty;
537
+ const className = classnames("histogram-container", {
538
+ "d-flex justify-content-center align-items-center": isLoadingOrEmpty,
539
+ clickable: this.isClickable()
540
+ });
543
541
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { id: this.props.id, className, ref: this.props.chartRef, children: [
544
542
  this.renderIsLoading(),
545
543
  this.renderIsEmpty(),
@@ -1,4 +1,4 @@
1
- import { I, a } from "../_shared/InputGroupShortcut-DVgXnEC3.js";
1
+ import { I, a } from "../_shared/InputGroupShortcut-mfQ0HR5_.js";
2
2
  export {
3
3
  I as InputGroup,
4
4
  a as InputGroupShortcut
package/Map/index.js CHANGED
@@ -3,7 +3,7 @@ import React__default, { useRef, useEffect, useContext, createContext, forwardRe
3
3
  import L, { GeoJSON as GeoJSON$1, Map as Map$2, TileLayer as TileLayer$1 } from "leaflet";
4
4
  import classnames from "classnames";
5
5
  import leafletImage from "leaflet-image";
6
- import { f as findChildByComponent } from "../_shared/Utils-Bpj1pJRF.js";
6
+ import { f as findChildByComponent } from "../_shared/Utils-BrBNE2g6.js";
7
7
  import { S as Spinner } from "../_shared/Spinner-DHoqZ2pO.js";
8
8
  import { E as EmptyState } from "../_shared/EmptyState-BQyVos2X.js";
9
9
  import Tooltip from "react-bootstrap/Tooltip";
package/Modal/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { M } from "../_shared/Modal-DKv77LLf.js";
1
+ import { M } from "../_shared/Modal-BAgaw4ui.js";
2
2
  export {
3
3
  M as Modal
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M } from "../_shared/MultiModeDatePicker-nKd6dcHG.js";
1
+ import { M } from "../_shared/MultiModeDatePicker-CvnQBr92.js";
2
2
  export {
3
3
  M as MultiModeDatePicker
4
4
  };
package/Navbar/index.js CHANGED
@@ -10,19 +10,19 @@ import { faBars } from "@fortawesome/pro-light-svg-icons/faBars";
10
10
  import Row from "react-bootstrap/Row";
11
11
  import { T as Title } from "../_shared/Title-Bjj6BAK7.js";
12
12
  import { D as Dropdown, a as AtokaCustomDropdownToggleWithChevron, A as AtokaCustomDropdownToggle } from "../_shared/AtokaDropdownToggles-B6q-ieDU.js";
13
- import { z as zip, f as findChildByComponent } from "../_shared/Utils-Bpj1pJRF.js";
13
+ import { z as zip, f as findChildByComponent } from "../_shared/Utils-BrBNE2g6.js";
14
14
  import { faBell } from "@fortawesome/pro-light-svg-icons/faBell";
15
15
  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-DA9bhZw-.js";
19
+ import { E as EllipsableContent } from "../_shared/EllipsableContent-Dg7SmEC1.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";
23
23
  import { faTimes } from "@fortawesome/pro-light-svg-icons/faTimes";
24
24
  import { a as FormControl } from "../_shared/Form-D-8ftG21.js";
25
- import { I as InputGroupComponent, a as InputGroupShortcutComponent } from "../_shared/InputGroupShortcut-DVgXnEC3.js";
25
+ import { I as InputGroupComponent, a as InputGroupShortcutComponent } from "../_shared/InputGroupShortcut-mfQ0HR5_.js";
26
26
  import { faUserNinja } from "@fortawesome/pro-light-svg-icons/faUserNinja";
27
27
  import { faTrash } from "@fortawesome/pro-light-svg-icons/faTrash";
28
28
  import ListGroup from "react-bootstrap/ListGroup";
@@ -2,7 +2,7 @@ import { j as jsxRuntimeExports } from "../_shared/jsx-runtime-CkWJgiG5.js";
2
2
  import classnames from "classnames";
3
3
  import React__default from "react";
4
4
  import BsPagination from "react-bootstrap/Pagination";
5
- import { a as scrollToTop } from "../_shared/Utils-Bpj1pJRF.js";
5
+ import { a as scrollToTop } from "../_shared/Utils-BrBNE2g6.js";
6
6
  import { P as PaginationPrev, a as PaginationNext } from "../_shared/PaginationNext-BOdbeCda.js";
7
7
  class Pagination extends React__default.PureComponent {
8
8
  static defaultProps = {
package/PieChart/index.js CHANGED
@@ -2,13 +2,13 @@ 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-hnWvsMts.js";
6
- import "../_shared/StatisticsTooltip-pL9xXE3S.js";
7
- import { g as getRenderStatisticsTooltip } from "../_shared/helpers-Bg6unjPS.js";
8
- import { c as createDataWithOtherSlice } from "../_shared/Statistics-Bm18tBPk.js";
5
+ import { S as StatisticsSVGLegend } from "../_shared/StatisticsSVGLegend-DFifhIFN.js";
6
+ import "../_shared/StatisticsTooltip-CCS8nRmU.js";
7
+ import { g as getRenderStatisticsTooltip } from "../_shared/helpers-NoMDjFuw.js";
8
+ import { c as createDataWithOtherSlice } from "../_shared/Statistics-DhyTVLxQ.js";
9
9
  import { d as blue30, h as blue80, a as blue100, e as blue300 } from "../_shared/Style-CSNnkrg3.js";
10
10
  import { e as ellipse } from "../_shared/Text-DT1G7-vq.js";
11
- import { d as deepEqual, s as sortObjDesc, g as generateStyledTheme } from "../_shared/Utils-Bpj1pJRF.js";
11
+ import { d as deepEqual, s as sortObjDesc, g as generateStyledTheme } from "../_shared/Utils-BrBNE2g6.js";
12
12
  class PieChart extends React__default.Component {
13
13
  renderTooltip = null;
14
14
  static displayName = "PieChart";
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
- import { LineProps, LineSvgProps } from '@nivo/line';
2
+ import { LineSeries, LineSvgProps } from '@nivo/line';
3
+ import { ResponsiveProps } from '@nivo/core';
3
4
  import { ColorName } from '../Utils';
4
5
  import { LineData } from '../Utils/CommonTypes';
5
6
  export type ResponsiveLineChartColorName = Extract<ColorName, 'blue300' | 'orange' | 'green' | 'red' | 'bluelight' | 'salmon' | 'violet'>;
6
- export interface ResponsiveLineChartProps extends Omit<LineProps, 'data' | 'colors'>, Pick<LineSvgProps, 'useMesh'> {
7
+ export interface ResponsiveLineChartProps extends Omit<ResponsiveProps<LineSvgProps<LineSeries>>, 'data' | 'colors'> {
7
8
  /** Arrays of line data for the chart */
8
9
  data: LineData[];
9
10
  /** Colors can be any among `blue300`, `orange`, `green`, `red`, `bluelight`, `salmon`, `violet` */
@@ -1,9 +1,9 @@
1
1
  import { j as jsxRuntimeExports } from "../_shared/jsx-runtime-CkWJgiG5.js";
2
2
  import { ResponsiveLine } from "@nivo/line";
3
- import { S as StatisticsTooltip } from "../_shared/StatisticsTooltip-pL9xXE3S.js";
4
- import { g as generateStyledTheme } from "../_shared/Utils-Bpj1pJRF.js";
3
+ import { S as StatisticsTooltip } from "../_shared/StatisticsTooltip-CCS8nRmU.js";
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-hnWvsMts.js";
6
+ import { a as StatisticsLegend } from "../_shared/StatisticsSVGLegend-DFifhIFN.js";
7
7
  const lineChartColorNameToHex = {
8
8
  blue300,
9
9
  orange,
@@ -56,7 +56,7 @@ function ResponsiveLineChart({
56
56
  const hexColors = colors.map((color) => lineChartColorNameToHex[color]);
57
57
  function LineChartTooltip({ point }) {
58
58
  const tooltipDatum = {
59
- id: String(point.serieId),
59
+ id: String(point.seriesId),
60
60
  label: String(point.data.x),
61
61
  value: axisLeftValueFormatter ? axisLeftValueFormatter(Number(point.data.y)) : String(point.data.y)
62
62
  };
@@ -67,7 +67,7 @@ function ResponsiveLineChart({
67
67
  tooltipDataLabelKey: "label",
68
68
  tooltipDataValueKey: "value",
69
69
  tooltipDataTitleKey: "id",
70
- color: point.serieColor,
70
+ color: point.seriesColor,
71
71
  className: "tooltip-background"
72
72
  }
73
73
  );
@@ -124,10 +124,10 @@ function ResponsiveLineChart({
124
124
  return responsiveLine;
125
125
  }
126
126
  return (
127
- // the top-surface-main class is used to make the chart background olor fill the available height
127
+ // the top-surface-main class is used to make the chart background color fill the available height
128
128
  // otherwise the legend would be placed with a one pixel black line :sad:
129
129
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "d-flex flex-column h-100 top-surface-main", children: [
130
- responsiveLine,
130
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-grow-1 min-h-0", children: responsiveLine }),
131
131
  /* @__PURE__ */ jsxRuntimeExports.jsx(
132
132
  StatisticsLegend,
133
133
  {
@@ -3,10 +3,10 @@ import classnames from "classnames";
3
3
  import React__default from "react";
4
4
  import Col from "react-bootstrap/Col";
5
5
  import Row from "react-bootstrap/Row";
6
- import { f as findChildByComponent, b as findChildrenByComponent } from "../_shared/Utils-Bpj1pJRF.js";
6
+ import { f as findChildByComponent, b as findChildrenByComponent } from "../_shared/Utils-BrBNE2g6.js";
7
7
  import { T as Text } from "../_shared/Text-B4AyT0Tx.js";
8
8
  import { O as OniruCard } from "../_shared/OniruCard-g_9qIXxK.js";
9
- import { I as ItemImage } from "../_shared/ItemImage-Bhitkbw1.js";
9
+ import { I as ItemImage } from "../_shared/ItemImage-Cns4pr0R.js";
10
10
  import { T as Title } from "../_shared/Title-Bjj6BAK7.js";
11
11
  const ResultItemCardActions = (props) => {
12
12
  return (
package/RowCard/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R } from "../_shared/RowCard-DoBnimBD.js";
1
+ import { R } from "../_shared/RowCard-aVTtGpHA.js";
2
2
  export {
3
3
  R as RowCard
4
4
  };
@@ -5,8 +5,8 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
5
5
  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
- import { f as findChildByComponent, b as findChildrenByComponent } from "../_shared/Utils-Bpj1pJRF.js";
9
- import { E as EllipsableContent } from "../_shared/EllipsableContent-DA9bhZw-.js";
8
+ import { f as findChildByComponent, b as findChildrenByComponent } from "../_shared/Utils-BrBNE2g6.js";
9
+ import { E as EllipsableContent } from "../_shared/EllipsableContent-Dg7SmEC1.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
12
  import { T as Tooltip } from "../_shared/Tooltip-Ds1ht2gU.js";
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { LabelFormatter, ValueFormatter } from '@nivo/bar';
3
- import { DataPoint } from '../Utils/CommonTypes';
2
+ import { LabelFormatter } from '@nivo/bar';
3
+ import { DataPoint, NumberToStringFormatterType } from '../Utils/CommonTypes';
4
4
  interface StatisticsSVGLegendProps {
5
5
  data: Partial<DataPoint>[];
6
- valueFormat?: ValueFormatter;
6
+ valueFormat?: NumberToStringFormatterType;
7
7
  labelFormat?: LabelFormatter;
8
8
  x: number;
9
9
  y: number;
@@ -1,5 +1,5 @@
1
- import { a as StatisticsLegend } from "../_shared/StatisticsSVGLegend-hnWvsMts.js";
2
- import { S } from "../_shared/StatisticsSVGLegend-hnWvsMts.js";
1
+ import { a as StatisticsLegend } from "../_shared/StatisticsSVGLegend-DFifhIFN.js";
2
+ import { S } from "../_shared/StatisticsSVGLegend-DFifhIFN.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
@@ -1,5 +1,5 @@
1
- import { S } from "../_shared/StatisticsTooltip-pL9xXE3S.js";
2
- import { g } from "../_shared/helpers-Bg6unjPS.js";
1
+ import { S } from "../_shared/StatisticsTooltip-CCS8nRmU.js";
2
+ import { g } from "../_shared/helpers-NoMDjFuw.js";
3
3
  export {
4
4
  S as StatisticsTooltip,
5
5
  g as getRenderStatisticsTooltip
package/SunBurst/index.js CHANGED
@@ -2,11 +2,11 @@ import { j as jsxRuntimeExports } from "../_shared/jsx-runtime-CkWJgiG5.js";
2
2
  import React__default from "react";
3
3
  import { ResponsiveSunburst } from "@nivo/sunburst";
4
4
  import classnames from "classnames";
5
- import { d as deepEqual, g as generateStyledTheme } from "../_shared/Utils-Bpj1pJRF.js";
5
+ import { d as deepEqual, g as generateStyledTheme } from "../_shared/Utils-BrBNE2g6.js";
6
6
  import { a as blue100, v as purple, A as violet, u as pink200, t as pink100, x as salmon, y as themeColors } from "../_shared/Style-CSNnkrg3.js";
7
- import { c as createDataWithOtherSlice } from "../_shared/Statistics-Bm18tBPk.js";
8
- import "../_shared/StatisticsTooltip-pL9xXE3S.js";
9
- import { g as getRenderStatisticsTooltip } from "../_shared/helpers-Bg6unjPS.js";
7
+ import { c as createDataWithOtherSlice } from "../_shared/Statistics-DhyTVLxQ.js";
8
+ import "../_shared/StatisticsTooltip-CCS8nRmU.js";
9
+ import { g as getRenderStatisticsTooltip } from "../_shared/helpers-NoMDjFuw.js";
10
10
  class SunBurst extends React__default.Component {
11
11
  static displayName = "SunBurst";
12
12
  renderTooltip;
@@ -1,4 +1,4 @@
1
- import { T } from "../_shared/TabSwitcher-BwM8Io9E.js";
1
+ import { T } from "../_shared/TabSwitcher-B35_74Vv.js";
2
2
  export {
3
3
  T as TabSwitcher
4
4
  };