@marcoschwartz/lite-ui 0.26.0 → 0.26.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -5949,6 +5949,7 @@ function useBreakpoint() {
5949
5949
  function useResponsiveChart({
5950
5950
  responsive = false,
5951
5951
  aspectRatio,
5952
+ maxHeight,
5952
5953
  providedWidth,
5953
5954
  providedHeight,
5954
5955
  defaultWidth = 800,
@@ -5967,7 +5968,7 @@ function useResponsiveChart({
5967
5968
  height = providedHeight || defaultHeight;
5968
5969
  effectiveAspectRatio = width / height;
5969
5970
  }
5970
- const containerStyle = responsive ? { width: "100%", aspectRatio: `${effectiveAspectRatio}` } : { width, height: "auto" };
5971
+ const containerStyle = responsive ? maxHeight !== void 0 ? { width: "100%", height: maxHeight } : { width: "100%", aspectRatio: `${effectiveAspectRatio}` } : { width, height: "auto" };
5971
5972
  const svgStyle = responsive ? { width: "100%", height: "100%", display: "block" } : {};
5972
5973
  const svgWidth = responsive ? "100%" : width;
5973
5974
  const svgHeight = responsive ? "100%" : height;
@@ -6848,6 +6849,7 @@ var LineChart = ({
6848
6849
  height: providedHeight,
6849
6850
  responsive = false,
6850
6851
  aspectRatio = 2,
6852
+ maxHeight,
6851
6853
  _isResizing = false,
6852
6854
  padding: customPadding,
6853
6855
  showGrid = true,
@@ -6892,6 +6894,7 @@ var LineChart = ({
6892
6894
  } = useResponsiveChart({
6893
6895
  responsive,
6894
6896
  aspectRatio,
6897
+ maxHeight,
6895
6898
  providedWidth,
6896
6899
  providedHeight
6897
6900
  });
@@ -7341,6 +7344,7 @@ var BarChart = ({
7341
7344
  height: providedHeight,
7342
7345
  responsive = false,
7343
7346
  aspectRatio = 2,
7347
+ maxHeight,
7344
7348
  _isResizing = false,
7345
7349
  padding: customPadding,
7346
7350
  showGrid = true,
@@ -7383,6 +7387,7 @@ var BarChart = ({
7383
7387
  } = useResponsiveChart({
7384
7388
  responsive,
7385
7389
  aspectRatio,
7390
+ maxHeight,
7386
7391
  providedWidth,
7387
7392
  providedHeight
7388
7393
  });
@@ -7765,6 +7770,7 @@ var AreaChart = ({
7765
7770
  height: providedHeight,
7766
7771
  responsive = false,
7767
7772
  aspectRatio = 2,
7773
+ maxHeight,
7768
7774
  _isResizing = false,
7769
7775
  padding: customPadding,
7770
7776
  showGrid = true,
@@ -7806,6 +7812,7 @@ var AreaChart = ({
7806
7812
  } = useResponsiveChart({
7807
7813
  responsive,
7808
7814
  aspectRatio,
7815
+ maxHeight,
7809
7816
  providedWidth,
7810
7817
  providedHeight
7811
7818
  });
@@ -8236,6 +8243,7 @@ var PieChart = ({
8236
8243
  height: providedHeight,
8237
8244
  responsive = false,
8238
8245
  aspectRatio = 1,
8246
+ maxHeight,
8239
8247
  _isResizing = false,
8240
8248
  innerRadius: providedInnerRadius,
8241
8249
  outerRadius: providedOuterRadius,
@@ -8276,6 +8284,7 @@ var PieChart = ({
8276
8284
  } = useResponsiveChart({
8277
8285
  responsive,
8278
8286
  aspectRatio,
8287
+ maxHeight,
8279
8288
  providedWidth,
8280
8289
  providedHeight,
8281
8290
  defaultWidth: 400,
@@ -8626,6 +8635,7 @@ var ScatterChart = ({
8626
8635
  height: providedHeight,
8627
8636
  responsive = false,
8628
8637
  aspectRatio = 2,
8638
+ maxHeight,
8629
8639
  _isResizing = false,
8630
8640
  padding: customPadding,
8631
8641
  showGrid = true,
@@ -8670,6 +8680,7 @@ var ScatterChart = ({
8670
8680
  } = useResponsiveChart({
8671
8681
  responsive,
8672
8682
  aspectRatio,
8683
+ maxHeight,
8673
8684
  providedWidth,
8674
8685
  providedHeight
8675
8686
  });