@almadar/ui 4.51.14 → 4.51.16
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/avl/index.cjs +807 -154
- package/dist/avl/index.js +807 -154
- package/dist/components/atoms/Sparkline.d.ts +30 -0
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/components/index.cjs +797 -153
- package/dist/components/index.js +798 -154
- package/dist/components/molecules/DateRangePicker.d.ts +56 -0
- package/dist/components/molecules/FilterGroup.d.ts +3 -3
- package/dist/components/molecules/StatDisplay.d.ts +9 -1
- package/dist/components/molecules/index.d.ts +1 -0
- package/dist/components/organisms/Chart.d.ts +32 -12
- package/dist/providers/index.cjs +795 -153
- package/dist/providers/index.js +795 -153
- package/dist/runtime/index.cjs +795 -153
- package/dist/runtime/index.js +795 -153
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sparkline Atom Component
|
|
3
|
+
*
|
|
4
|
+
* Minimal inline trend chart. Pure SVG polyline over a numeric series.
|
|
5
|
+
* Extracted from StatCard's sparkline path so any KPI or list row can
|
|
6
|
+
* include a trend visualization without compositing the whole card.
|
|
7
|
+
*/
|
|
8
|
+
import React from "react";
|
|
9
|
+
export type SparklineColor = "auto" | "primary" | "success" | "warning" | "error" | "info" | "muted";
|
|
10
|
+
export interface SparklineProps {
|
|
11
|
+
/** Numeric series to plot. Length < 2 renders nothing. */
|
|
12
|
+
data: readonly number[];
|
|
13
|
+
/**
|
|
14
|
+
* Stroke color.
|
|
15
|
+
* `auto` (default): success when the series trends up (last ≥ first),
|
|
16
|
+
* error when it trends down.
|
|
17
|
+
*/
|
|
18
|
+
color?: SparklineColor;
|
|
19
|
+
/** SVG width in px. Default 80. */
|
|
20
|
+
width?: number;
|
|
21
|
+
/** SVG height in px. Default 32. */
|
|
22
|
+
height?: number;
|
|
23
|
+
/** Stroke width in px. Default 2. */
|
|
24
|
+
strokeWidth?: number;
|
|
25
|
+
/** Fill the area under the line with the stroke color at low opacity. */
|
|
26
|
+
fill?: boolean;
|
|
27
|
+
/** Additional CSS classes. */
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const Sparkline: React.FC<SparklineProps>;
|
|
@@ -16,6 +16,7 @@ export { Divider, type DividerProps, type DividerOrientation } from "./Divider";
|
|
|
16
16
|
export { Icon, type IconProps, type IconSize, type IconAnimation, } from "./Icon";
|
|
17
17
|
export { ProgressBar, type ProgressBarProps, type ProgressBarVariant, type ProgressBarColor, } from "./ProgressBar";
|
|
18
18
|
export { Radio, type RadioProps } from "./Radio";
|
|
19
|
+
export { Sparkline, type SparklineProps, type SparklineColor } from "./Sparkline";
|
|
19
20
|
export { Switch, type SwitchProps } from "./Switch";
|
|
20
21
|
export { Spacer, type SpacerProps, type SpacerSize } from "./Spacer";
|
|
21
22
|
export { Stack, VStack, HStack, type StackProps, type VStackProps, type HStackProps, type StackDirection, type StackGap, type StackAlign, type StackJustify, } from "./Stack";
|