@sesionario/blocks 1.29.0 → 1.30.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.
package/dist/charts.d.cts CHANGED
@@ -546,6 +546,25 @@ declare namespace Bar {
546
546
  var displayName: string;
547
547
  }
548
548
 
549
+ interface SeriesBarProps {
550
+ /** Key in data for bar height (y value) */
551
+ dataKey: string;
552
+ /** Fill color. Default: var(--chart-line-primary) */
553
+ fill?: string;
554
+ /** Tooltip dot color when fill is gradient/pattern. Default: fill */
555
+ stroke?: string;
556
+ /** Corner radius for bar top corners. Default: 0 (square tops, similar to Bar lineCap="butt") */
557
+ radius?: number;
558
+ /** Animate grow from baseline. Default: true */
559
+ animate?: boolean;
560
+ /** Opacity for non-hovered bars when another point is hovered (matches BarChart). Default: 0.3 */
561
+ fadedOpacity?: number;
562
+ }
563
+ declare function SeriesBar({ dataKey, fill, radius, animate, fadedOpacity, }: SeriesBarProps): React$1.JSX.Element | null;
564
+ declare namespace SeriesBar {
565
+ var displayName: string;
566
+ }
567
+
549
568
  interface ComposedChartProps {
550
569
  /** Data array — each row typically has a date and multiple numeric series */
551
570
  data: Record<string, unknown>[];
@@ -1447,4 +1466,4 @@ declare function toChartPoints(rows: Array<{
1447
1466
  value: number;
1448
1467
  }>): ChartPoint[];
1449
1468
 
1450
- export { Area, AreaChart, type AreaChartProps, type AreaProps, Bar, BarChart, type BarChartProps, type BarProps, type ChartPoint, ChartProvider, ChartStatFlow, type ChartStatFlowFormat, type ChartStatFlowProps, ChartTooltip, ComposedChart, type ComposedChartProps, type FillSeriesGapsOptions, FunnelChart, type FunnelChartProps, Gauge, type GaugeLabelAlign, type GaugeLabelPlacement, type GaugeOrientation, type GaugeProps, Grid, HeatmapCells, HeatmapChart, type HeatmapChartProps, HeatmapLegend, HeatmapTooltip, HeatmapXAxis, HeatmapYAxis, Line, LineChart, type LineChartProps, type LineConfig, type LineProps, LiveLine, LiveLineChart, type LiveLineChartProps, type LiveLineProps, type Margin, Ring, RingCenter, type RingCenterProps, RingChart, type RingChartProps, type RingContextValue, type RingData, type RingHoverContextValue, type RingLineCap, type RingProps, RingProvider, type RingStableContextValue, StatCardArea, StatCardLine, TrendBadge, type TrendDelta, XAxis, YAxis, chartCssVars, defaultChartStatFlowFormat, defaultRingColors, fillSeriesGaps, formatChartDate, formatChartNumber, ringCssVars, toChartPoints, trendDelta, useChart, useChartStable, useRing, useRingHover, useRingStable };
1469
+ export { Area, AreaChart, type AreaChartProps, type AreaProps, Bar, BarChart, type BarChartProps, type BarProps, type ChartPoint, ChartProvider, ChartStatFlow, type ChartStatFlowFormat, type ChartStatFlowProps, ChartTooltip, ComposedChart, type ComposedChartProps, type FillSeriesGapsOptions, FunnelChart, type FunnelChartProps, Gauge, type GaugeLabelAlign, type GaugeLabelPlacement, type GaugeOrientation, type GaugeProps, Grid, HeatmapCells, HeatmapChart, type HeatmapChartProps, HeatmapLegend, HeatmapTooltip, HeatmapXAxis, HeatmapYAxis, Line, LineChart, type LineChartProps, type LineConfig, type LineProps, LiveLine, LiveLineChart, type LiveLineChartProps, type LiveLineProps, type Margin, Ring, RingCenter, type RingCenterProps, RingChart, type RingChartProps, type RingContextValue, type RingData, type RingHoverContextValue, type RingLineCap, type RingProps, RingProvider, type RingStableContextValue, SeriesBar, StatCardArea, StatCardLine, TrendBadge, type TrendDelta, XAxis, YAxis, chartCssVars, defaultChartStatFlowFormat, defaultRingColors, fillSeriesGaps, formatChartDate, formatChartNumber, ringCssVars, toChartPoints, trendDelta, useChart, useChartStable, useRing, useRingHover, useRingStable };
package/dist/charts.d.ts CHANGED
@@ -546,6 +546,25 @@ declare namespace Bar {
546
546
  var displayName: string;
547
547
  }
548
548
 
549
+ interface SeriesBarProps {
550
+ /** Key in data for bar height (y value) */
551
+ dataKey: string;
552
+ /** Fill color. Default: var(--chart-line-primary) */
553
+ fill?: string;
554
+ /** Tooltip dot color when fill is gradient/pattern. Default: fill */
555
+ stroke?: string;
556
+ /** Corner radius for bar top corners. Default: 0 (square tops, similar to Bar lineCap="butt") */
557
+ radius?: number;
558
+ /** Animate grow from baseline. Default: true */
559
+ animate?: boolean;
560
+ /** Opacity for non-hovered bars when another point is hovered (matches BarChart). Default: 0.3 */
561
+ fadedOpacity?: number;
562
+ }
563
+ declare function SeriesBar({ dataKey, fill, radius, animate, fadedOpacity, }: SeriesBarProps): React$1.JSX.Element | null;
564
+ declare namespace SeriesBar {
565
+ var displayName: string;
566
+ }
567
+
549
568
  interface ComposedChartProps {
550
569
  /** Data array — each row typically has a date and multiple numeric series */
551
570
  data: Record<string, unknown>[];
@@ -1447,4 +1466,4 @@ declare function toChartPoints(rows: Array<{
1447
1466
  value: number;
1448
1467
  }>): ChartPoint[];
1449
1468
 
1450
- export { Area, AreaChart, type AreaChartProps, type AreaProps, Bar, BarChart, type BarChartProps, type BarProps, type ChartPoint, ChartProvider, ChartStatFlow, type ChartStatFlowFormat, type ChartStatFlowProps, ChartTooltip, ComposedChart, type ComposedChartProps, type FillSeriesGapsOptions, FunnelChart, type FunnelChartProps, Gauge, type GaugeLabelAlign, type GaugeLabelPlacement, type GaugeOrientation, type GaugeProps, Grid, HeatmapCells, HeatmapChart, type HeatmapChartProps, HeatmapLegend, HeatmapTooltip, HeatmapXAxis, HeatmapYAxis, Line, LineChart, type LineChartProps, type LineConfig, type LineProps, LiveLine, LiveLineChart, type LiveLineChartProps, type LiveLineProps, type Margin, Ring, RingCenter, type RingCenterProps, RingChart, type RingChartProps, type RingContextValue, type RingData, type RingHoverContextValue, type RingLineCap, type RingProps, RingProvider, type RingStableContextValue, StatCardArea, StatCardLine, TrendBadge, type TrendDelta, XAxis, YAxis, chartCssVars, defaultChartStatFlowFormat, defaultRingColors, fillSeriesGaps, formatChartDate, formatChartNumber, ringCssVars, toChartPoints, trendDelta, useChart, useChartStable, useRing, useRingHover, useRingStable };
1469
+ export { Area, AreaChart, type AreaChartProps, type AreaProps, Bar, BarChart, type BarChartProps, type BarProps, type ChartPoint, ChartProvider, ChartStatFlow, type ChartStatFlowFormat, type ChartStatFlowProps, ChartTooltip, ComposedChart, type ComposedChartProps, type FillSeriesGapsOptions, FunnelChart, type FunnelChartProps, Gauge, type GaugeLabelAlign, type GaugeLabelPlacement, type GaugeOrientation, type GaugeProps, Grid, HeatmapCells, HeatmapChart, type HeatmapChartProps, HeatmapLegend, HeatmapTooltip, HeatmapXAxis, HeatmapYAxis, Line, LineChart, type LineChartProps, type LineConfig, type LineProps, LiveLine, LiveLineChart, type LiveLineChartProps, type LiveLineProps, type Margin, Ring, RingCenter, type RingCenterProps, RingChart, type RingChartProps, type RingContextValue, type RingData, type RingHoverContextValue, type RingLineCap, type RingProps, RingProvider, type RingStableContextValue, SeriesBar, StatCardArea, StatCardLine, TrendBadge, type TrendDelta, XAxis, YAxis, chartCssVars, defaultChartStatFlowFormat, defaultRingColors, fillSeriesGaps, formatChartDate, formatChartNumber, ringCssVars, toChartPoints, trendDelta, useChart, useChartStable, useRing, useRingHover, useRingStable };
package/dist/charts.js CHANGED
@@ -18,7 +18,7 @@ import { createPortal } from 'react-dom';
18
18
  import { GridRows, GridColumns } from '@visx/grid';
19
19
  import NumberFlow from '@number-flow/react';
20
20
  import { LinearGradient } from '@visx/gradient';
21
- import { CentralIcon } from '@central-icons-react/all';
21
+ import { ArrowUp, ArrowDown } from 'lucide-react';
22
22
  import { cva } from 'class-variance-authority';
23
23
  import { Slot } from 'radix-ui';
24
24
 
@@ -13500,6 +13500,7 @@ function TrendBadge({
13500
13500
  className
13501
13501
  }) {
13502
13502
  const positive = value >= 0;
13503
+ const Icon = positive ? ArrowUp : ArrowDown;
13503
13504
  return /* @__PURE__ */ jsxs(
13504
13505
  Badge,
13505
13506
  {
@@ -13509,18 +13510,7 @@ function TrendBadge({
13509
13510
  ),
13510
13511
  variant: positive ? "outline" : "destructive",
13511
13512
  children: [
13512
- /* @__PURE__ */ jsx(
13513
- CentralIcon,
13514
- {
13515
- className: "size-3",
13516
- "data-icon": "inline-start",
13517
- fill: "outlined",
13518
- join: "round",
13519
- name: positive ? "IconArrowUp" : "IconArrowDown",
13520
- radius: "0",
13521
- stroke: "1.5"
13522
- }
13523
- ),
13513
+ /* @__PURE__ */ jsx(Icon, { className: "size-3", "data-icon": "inline-start" }),
13524
13514
  positive ? "+" : "",
13525
13515
  value.toFixed(1),
13526
13516
  "%"
@@ -13744,6 +13734,6 @@ function toChartPoints(rows) {
13744
13734
  }));
13745
13735
  }
13746
13736
 
13747
- export { Area, AreaChart, Bar, BarChart, ChartProvider, ChartStatFlow, ChartTooltip, ComposedChart, FunnelChart, Gauge, Grid, HeatmapCells, HeatmapChart, HeatmapLegend, HeatmapTooltip, HeatmapXAxis, HeatmapYAxis, Line, LineChart, LiveLine, LiveLineChart, Ring, RingCenter, RingChart, RingProvider, StatCardArea, StatCardLine, TrendBadge, XAxis, YAxis, chartCssVars, defaultChartStatFlowFormat, defaultRingColors, fillSeriesGaps, formatChartDate, formatChartNumber, ringCssVars, toChartPoints, trendDelta, useChart, useChartStable, useRing, useRingHover, useRingStable };
13737
+ export { Area, AreaChart, Bar, BarChart, ChartProvider, ChartStatFlow, ChartTooltip, ComposedChart, FunnelChart, Gauge, Grid, HeatmapCells, HeatmapChart, HeatmapLegend, HeatmapTooltip, HeatmapXAxis, HeatmapYAxis, Line, LineChart, LiveLine, LiveLineChart, Ring, RingCenter, RingChart, RingProvider, SeriesBar, StatCardArea, StatCardLine, TrendBadge, XAxis, YAxis, chartCssVars, defaultChartStatFlowFormat, defaultRingColors, fillSeriesGaps, formatChartDate, formatChartNumber, ringCssVars, toChartPoints, trendDelta, useChart, useChartStable, useRing, useRingHover, useRingStable };
13748
13738
  //# sourceMappingURL=charts.js.map
13749
13739
  //# sourceMappingURL=charts.js.map