@schemavaults/ui 0.42.2 → 0.43.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.
- package/dist/components/ui/gauge/gauge.d.ts +73 -0
- package/dist/components/ui/gauge/gauge.js +134 -0
- package/dist/components/ui/gauge/gauge.js.map +1 -0
- package/dist/components/ui/gauge/index.d.ts +3 -0
- package/dist/components/ui/gauge/index.js +3 -0
- package/dist/components/ui/gauge/index.js.map +1 -0
- package/dist/components/ui/index.d.ts +2 -0
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import type { HTMLAttributes, ReactElement, ReactNode } from "react";
|
|
3
|
+
export declare const gaugeSizeIds: readonly ["sm", "default", "lg", "xl"];
|
|
4
|
+
export type GaugeSizeId = (typeof gaugeSizeIds)[number];
|
|
5
|
+
export declare const gaugeColorIds: readonly ["default", "positive", "warning", "destructive"];
|
|
6
|
+
export type GaugeColorId = (typeof gaugeColorIds)[number];
|
|
7
|
+
export declare const gaugeVariants: (props?: ({
|
|
8
|
+
size?: "sm" | "default" | "lg" | "xl" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
export declare const gaugeIndicatorVariants: (props?: ({
|
|
11
|
+
color?: "default" | "destructive" | "warning" | "positive" | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
+
export declare const gaugeValueLabelVariants: (props?: ({
|
|
14
|
+
size?: "sm" | "default" | "lg" | "xl" | null | undefined;
|
|
15
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
+
/**
|
|
17
|
+
* A single color zone painted along the gauge arc.
|
|
18
|
+
*
|
|
19
|
+
* Zones are rendered in order, each filling the portion of the arc between
|
|
20
|
+
* `from` and `to` (both expressed in the gauge's value space, not as
|
|
21
|
+
* percentages — they are normalized against the gauge's `min`/`max`).
|
|
22
|
+
*/
|
|
23
|
+
export interface GaugeZone {
|
|
24
|
+
/** Start of the zone, in the gauge's value space. */
|
|
25
|
+
from: number;
|
|
26
|
+
/** End of the zone, in the gauge's value space. */
|
|
27
|
+
to: number;
|
|
28
|
+
/** One of the standard gauge colors. */
|
|
29
|
+
color: GaugeColorId;
|
|
30
|
+
}
|
|
31
|
+
export interface GaugeProps extends Omit<HTMLAttributes<HTMLDivElement>, "role" | "color">, VariantProps<typeof gaugeVariants>, VariantProps<typeof gaugeIndicatorVariants> {
|
|
32
|
+
/** Current value (clamped to [min, max]). */
|
|
33
|
+
value: number;
|
|
34
|
+
/** Accessible label describing what the gauge represents. */
|
|
35
|
+
label: string;
|
|
36
|
+
/** Minimum value (defaults to 0). */
|
|
37
|
+
min?: number;
|
|
38
|
+
/** Maximum value (defaults to 100). */
|
|
39
|
+
max?: number;
|
|
40
|
+
/** Override the SVG stroke width. Defaults are size-aware. */
|
|
41
|
+
strokeWidth?: number;
|
|
42
|
+
/** When true (default), shows the numeric value below the arc. */
|
|
43
|
+
showValue?: boolean;
|
|
44
|
+
/** When true, render min/max tick labels below the arc endpoints. */
|
|
45
|
+
showRange?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Optional color zones rendered behind the indicator. Use to highlight
|
|
48
|
+
* acceptable / warning / danger ranges (e.g. CPU thresholds).
|
|
49
|
+
*/
|
|
50
|
+
zones?: ReadonlyArray<GaugeZone>;
|
|
51
|
+
/**
|
|
52
|
+
* When true and `zones` is provided, the indicator + value label color is
|
|
53
|
+
* automatically chosen from whichever zone contains the current value,
|
|
54
|
+
* overriding the `color` prop.
|
|
55
|
+
*/
|
|
56
|
+
autoColorFromZones?: boolean;
|
|
57
|
+
/** When true (default), render a needle indicator on top of the arc. */
|
|
58
|
+
showNeedle?: boolean;
|
|
59
|
+
/** When provided, displayed beneath the value (e.g. "ms", "%", "req/s"). */
|
|
60
|
+
unit?: string;
|
|
61
|
+
/** Custom content rendered beneath the arc, replacing the default value display. */
|
|
62
|
+
children?: ReactNode;
|
|
63
|
+
/** Additional classes for the indicator (animated) arc. */
|
|
64
|
+
indicatorClassName?: string;
|
|
65
|
+
/** Additional classes for the track (background) arc. */
|
|
66
|
+
trackClassName?: string;
|
|
67
|
+
/** Additional classes for the value label. */
|
|
68
|
+
valueLabelClassName?: string;
|
|
69
|
+
}
|
|
70
|
+
export declare function Gauge({ value, label, min, max, size, color, strokeWidth, showValue, showRange, showNeedle, zones, autoColorFromZones, unit, children, className, indicatorClassName, trackClassName, valueLabelClassName, ...props }: GaugeProps): ReactElement;
|
|
71
|
+
export declare namespace Gauge {
|
|
72
|
+
var displayName: string;
|
|
73
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { m } from "../../../framer-motion";
|
|
5
|
+
import { cn } from "../../../lib/utils";
|
|
6
|
+
export const gaugeSizeIds = ["sm", "default", "lg", "xl"];
|
|
7
|
+
export const gaugeColorIds = [
|
|
8
|
+
"default",
|
|
9
|
+
"positive",
|
|
10
|
+
"warning",
|
|
11
|
+
"destructive",
|
|
12
|
+
];
|
|
13
|
+
export const gaugeVariants = cva("relative inline-flex shrink-0 flex-col items-center justify-end", {
|
|
14
|
+
variants: {
|
|
15
|
+
size: {
|
|
16
|
+
sm: "w-32",
|
|
17
|
+
default: "w-48",
|
|
18
|
+
lg: "w-64",
|
|
19
|
+
xl: "w-80",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: {
|
|
23
|
+
size: "default",
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
export const gaugeIndicatorVariants = cva("transition-colors duration-300", {
|
|
27
|
+
variants: {
|
|
28
|
+
color: {
|
|
29
|
+
default: "stroke-schemavaults-brand-blue",
|
|
30
|
+
positive: "stroke-emerald-500 dark:stroke-emerald-400",
|
|
31
|
+
warning: "stroke-warning",
|
|
32
|
+
destructive: "stroke-destructive",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
defaultVariants: {
|
|
36
|
+
color: "default",
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
const gaugeNeedleVariants = cva("transition-colors duration-300", {
|
|
40
|
+
variants: {
|
|
41
|
+
color: {
|
|
42
|
+
default: "fill-foreground stroke-foreground",
|
|
43
|
+
positive: "fill-emerald-500 stroke-emerald-500 dark:fill-emerald-400 dark:stroke-emerald-400",
|
|
44
|
+
warning: "fill-warning stroke-warning",
|
|
45
|
+
destructive: "fill-destructive stroke-destructive",
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
defaultVariants: {
|
|
49
|
+
color: "default",
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
export const gaugeValueLabelVariants = cva("font-semibold tabular-nums leading-none text-foreground", {
|
|
53
|
+
variants: {
|
|
54
|
+
size: {
|
|
55
|
+
sm: "text-base",
|
|
56
|
+
default: "text-2xl",
|
|
57
|
+
lg: "text-3xl",
|
|
58
|
+
xl: "text-4xl",
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
defaultVariants: {
|
|
62
|
+
size: "default",
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
const SIZE_TO_STROKE_WIDTH = {
|
|
66
|
+
sm: 12,
|
|
67
|
+
default: 14,
|
|
68
|
+
lg: 16,
|
|
69
|
+
xl: 18,
|
|
70
|
+
};
|
|
71
|
+
const VIEWBOX_WIDTH = 200;
|
|
72
|
+
const ARC_RADIUS = 80;
|
|
73
|
+
const ARC_CENTER_X = 100;
|
|
74
|
+
const ARC_CENTER_Y = 100;
|
|
75
|
+
const ARC_START_X = ARC_CENTER_X - ARC_RADIUS;
|
|
76
|
+
const ARC_END_X = ARC_CENTER_X + ARC_RADIUS;
|
|
77
|
+
const ARC_PATH = `M ${ARC_START_X} ${ARC_CENTER_Y} A ${ARC_RADIUS} ${ARC_RADIUS} 0 0 1 ${ARC_END_X} ${ARC_CENTER_Y}`;
|
|
78
|
+
const ZONE_STROKE_CLASSES = {
|
|
79
|
+
default: "stroke-schemavaults-brand-blue/60",
|
|
80
|
+
positive: "stroke-emerald-500/60 dark:stroke-emerald-400/60",
|
|
81
|
+
warning: "stroke-warning/70",
|
|
82
|
+
destructive: "stroke-destructive/60",
|
|
83
|
+
};
|
|
84
|
+
function clampValue(value, min, max) {
|
|
85
|
+
return Math.min(max, Math.max(min, value));
|
|
86
|
+
}
|
|
87
|
+
function valueToPercentage(value, min, max) {
|
|
88
|
+
if (max === min) {
|
|
89
|
+
return 0;
|
|
90
|
+
}
|
|
91
|
+
return ((value - min) / (max - min)) * 100;
|
|
92
|
+
}
|
|
93
|
+
function valueToNeedleAngle(percentage) {
|
|
94
|
+
// Map 0% → -90deg (pointing left) and 100% → +90deg (pointing right),
|
|
95
|
+
// so the needle rotates through the top of the dial.
|
|
96
|
+
return -90 + (percentage / 100) * 180;
|
|
97
|
+
}
|
|
98
|
+
function resolveAutoColor(value, zones, fallback) {
|
|
99
|
+
if (!zones || zones.length === 0) {
|
|
100
|
+
return fallback;
|
|
101
|
+
}
|
|
102
|
+
for (const zone of zones) {
|
|
103
|
+
const lo = Math.min(zone.from, zone.to);
|
|
104
|
+
const hi = Math.max(zone.from, zone.to);
|
|
105
|
+
if (value >= lo && value <= hi) {
|
|
106
|
+
return zone.color;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return fallback;
|
|
110
|
+
}
|
|
111
|
+
export function Gauge({ value, label, min = 0, max = 100, size, color, strokeWidth, showValue = true, showRange = false, showNeedle = true, zones, autoColorFromZones = false, unit, children, className, indicatorClassName, trackClassName, valueLabelClassName, ...props }) {
|
|
112
|
+
const resolvedSize = size ?? "default";
|
|
113
|
+
const resolvedStrokeWidth = strokeWidth ?? SIZE_TO_STROKE_WIDTH[resolvedSize];
|
|
114
|
+
const clamped = clampValue(value, min, max);
|
|
115
|
+
const percentage = valueToPercentage(clamped, min, max);
|
|
116
|
+
const fallbackColor = color ?? "default";
|
|
117
|
+
const indicatorColor = autoColorFromZones
|
|
118
|
+
? resolveAutoColor(clamped, zones, fallbackColor)
|
|
119
|
+
: fallbackColor;
|
|
120
|
+
const needleAngle = valueToNeedleAngle(percentage);
|
|
121
|
+
return (_jsxs("div", { role: "meter", "aria-valuenow": clamped, "aria-valuemin": min, "aria-valuemax": max, "aria-label": label, className: cn(gaugeVariants({ size }), className), ...props, children: [_jsxs("svg", { viewBox: `0 0 ${VIEWBOX_WIDTH} ${ARC_CENTER_Y + resolvedStrokeWidth + 4}`, className: "w-full", "aria-hidden": "true", children: [_jsx("path", { d: ARC_PATH, fill: "none", strokeWidth: resolvedStrokeWidth, strokeLinecap: "round", className: cn("stroke-secondary", trackClassName), pathLength: 1 }), zones?.map((zone, index) => {
|
|
122
|
+
const zoneLo = clampValue(Math.min(zone.from, zone.to), min, max);
|
|
123
|
+
const zoneHi = clampValue(Math.max(zone.from, zone.to), min, max);
|
|
124
|
+
const startPct = valueToPercentage(zoneLo, min, max) / 100;
|
|
125
|
+
const endPct = valueToPercentage(zoneHi, min, max) / 100;
|
|
126
|
+
const span = Math.max(0, endPct - startPct);
|
|
127
|
+
if (span === 0) {
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
return (_jsx("path", { d: ARC_PATH, fill: "none", strokeWidth: resolvedStrokeWidth, strokeLinecap: "butt", pathLength: 1, strokeDasharray: `${span} ${1 - span}`, strokeDashoffset: -startPct, className: ZONE_STROKE_CLASSES[zone.color] }, `zone-${index.toString()}`));
|
|
131
|
+
}), _jsx(m.path, { d: ARC_PATH, fill: "none", strokeWidth: resolvedStrokeWidth, strokeLinecap: "round", pathLength: 1, strokeDasharray: 1, initial: { strokeDashoffset: 1 }, animate: { strokeDashoffset: 1 - percentage / 100 }, transition: { duration: 0.5, ease: "easeOut" }, className: cn(gaugeIndicatorVariants({ color: indicatorColor }), indicatorClassName) }), showNeedle && (_jsxs(m.g, { initial: { rotate: valueToNeedleAngle(0) }, animate: { rotate: needleAngle }, transition: { duration: 0.5, ease: "easeOut" }, style: { transformOrigin: `${ARC_CENTER_X}px ${ARC_CENTER_Y}px` }, children: [_jsx("line", { x1: ARC_CENTER_X, y1: ARC_CENTER_Y, x2: ARC_CENTER_X, y2: ARC_CENTER_Y - (ARC_RADIUS - resolvedStrokeWidth / 2 - 2), strokeWidth: 3, strokeLinecap: "round", className: gaugeNeedleVariants({ color: indicatorColor }) }), _jsx("circle", { cx: ARC_CENTER_X, cy: ARC_CENTER_Y, r: 6, className: cn(gaugeNeedleVariants({ color: indicatorColor }), "stroke-background"), strokeWidth: 2 })] }))] }), showRange && (_jsxs("div", { className: "flex w-[88%] justify-between text-xs tabular-nums text-muted-foreground -mt-1", children: [_jsx("span", { children: min }), _jsx("span", { children: max })] })), (children || showValue) && (_jsx("div", { className: cn("mt-1 flex flex-col items-center gap-0.5", valueLabelClassName), children: children ?? (_jsxs(_Fragment, { children: [_jsx("span", { className: gaugeValueLabelVariants({ size: resolvedSize }), children: Math.round(clamped) }), unit && (_jsx("span", { className: "text-xs uppercase tracking-wide text-muted-foreground", children: unit }))] })) }))] }));
|
|
132
|
+
}
|
|
133
|
+
Gauge.displayName = "Gauge";
|
|
134
|
+
//# sourceMappingURL=gauge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gauge.js","sourceRoot":"","sources":["../../../../src/components/ui/gauge/gauge.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAGlE,OAAO,EAAE,CAAC,EAAE,MAAM,iBAAiB,CAAC;AACpC,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,SAAS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E,EAC9C,KAAK,EAAE,EAAE,eAAe,EAAE,GAAG,YAAY,MAAM,YAAY,IAAI,EAAE,aAEjE,eACE,EAAE,EAAE,YAAY,EAChB,EAAE,EAAE,YAAY,EAChB,EAAE,EAAE,YAAY,EAChB,EAAE,EAAE,YAAY,GAAG,CAAC,UAAU,GAAG,mBAAmB,GAAG,CAAC,GAAG,CAAC,CAAC,EAC7D,WAAW,EAAE,CAAC,EACd,aAAa,EAAC,OAAO,EACrB,SAAS,EAAE,mBAAmB,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC,GACzD,EACF,iBACE,EAAE,EAAE,YAAY,EAChB,EAAE,EAAE,YAAY,EAChB,CAAC,EAAE,CAAC,EACJ,SAAS,EAAE,EAAE,CACX,mBAAmB,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC,EAC9C,mBAAmB,CACpB,EACD,WAAW,EAAE,CAAC,GACd,IACE,CACP,IACG,EACL,SAAS,IAAI,CACZ,eAAK,SAAS,EAAC,+EAA+E,aAC5F,yBAAO,GAAG,GAAQ,EAClB,yBAAO,GAAG,GAAQ,IACd,CACP,EACA,CAAC,QAAQ,IAAI,SAAS,CAAC,IAAI,CAC1B,cACE,SAAS,EAAE,EAAE,CACX,yCAAyC,EACzC,mBAAmB,CACpB,YAEA,QAAQ,IAAI,CACX,8BACE,eAAM,SAAS,EAAE,uBAAuB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,YAC7D,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GACf,EACN,IAAI,IAAI,CACP,eAAM,SAAS,EAAC,uDAAuD,YACpE,IAAI,GACA,CACR,IACA,CACJ,GACG,CACP,IACG,CACP,CAAC;AACJ,CAAC;AAED,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ui/gauge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,aAAa,EACb,sBAAsB,EACtB,uBAAuB,EACvB,YAAY,EACZ,aAAa,GACd,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -104,6 +104,8 @@ export * from "./progress-bar";
|
|
|
104
104
|
export type * from "./progress-bar";
|
|
105
105
|
export * from "./circular-progress";
|
|
106
106
|
export type * from "./circular-progress";
|
|
107
|
+
export * from "./gauge";
|
|
108
|
+
export type * from "./gauge";
|
|
107
109
|
export * from "./breadcrumb";
|
|
108
110
|
export type * from "./breadcrumb";
|
|
109
111
|
export * from "./pagination";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AAGzB,cAAc,aAAa,CAAC;AAG5B,cAAc,SAAS,CAAC;AAGxB,cAAc,WAAW,CAAC;AAG1B,cAAc,SAAS,CAAC;AAGxB,cAAc,mBAAmB,CAAC;AAGlC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,UAAU,CAAC;AAGzB,cAAc,SAAS,CAAC;AAGxB,cAAc,kBAAkB,CAAC;AAGjC,cAAc,aAAa,CAAC;AAG5B,cAAc,kCAAkC,CAAC;AAGjD,cAAc,cAAc,CAAC;AAG7B,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAExB,cAAc,WAAW,CAAC;AAG1B,cAAc,YAAY,CAAC;AAG3B,cAAc,QAAQ,CAAC;AAGvB,cAAc,QAAQ,CAAC;AAGvB,cAAc,aAAa,CAAC;AAG5B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,WAAW,CAAC;AAG1B,cAAc,mBAAmB,CAAC;AAGlC,cAAc,UAAU,CAAC;AAGzB,cAAc,WAAW,CAAC;AAG1B,cAAc,WAAW,CAAC;AAG1B,cAAc,YAAY,CAAC;AAG3B,cAAc,SAAS,CAAC;A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