@karakuri-ui/react 0.1.2 → 0.2.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.
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/ui/chart.tsx","../src/lib/utils.ts"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport * as RechartsPrimitive from 'recharts'\nimport { cn } from '@/lib/utils'\n\n// Format: { THEME_NAME: CSS_SELECTOR }\nconst THEMES = { light: '', dark: '.dark' } as const\n\nexport type ChartConfig = {\n [k in string]: {\n label?: React.ReactNode\n icon?: React.ComponentType\n } & (\n | { color?: string; theme?: never }\n | { color?: never; theme: Record<keyof typeof THEMES, string> }\n )\n}\n\ntype ChartContextProps = {\n config: ChartConfig\n // Hover fade state\n hoverFade: boolean\n activeIndex: number | null\n setActiveIndex: (index: number | null) => void\n // Series-level hover fade (used by ChartLine)\n activeDataKey: string | null\n setActiveDataKey: (key: string | null) => void\n}\n\nconst ChartContext = React.createContext<ChartContextProps | null>(null)\n\nfunction useChart() {\n const context = React.useContext(ChartContext)\n if (!context) {\n throw new Error('useChart must be used within a <ChartContainer />')\n }\n return context\n}\n\nfunction ChartContainer({\n id,\n className,\n children,\n config,\n hoverFade = false,\n ...props\n}: React.ComponentProps<'div'> & {\n config: ChartConfig\n /** Enable hover-to-highlight: hovered bar group stays full opacity, others fade. */\n hoverFade?: boolean\n children: React.ComponentProps<\n typeof RechartsPrimitive.ResponsiveContainer\n >['children']\n}) {\n const uniqueId = React.useId()\n const chartId = `chart-${id || uniqueId.replace(/:/g, '')}`\n const [activeIndex, setActiveIndex] = React.useState<number | null>(null)\n const [activeDataKey, setActiveDataKey] = React.useState<string | null>(null)\n\n return (\n <ChartContext.Provider value={{ config, hoverFade, activeIndex, setActiveIndex, activeDataKey, setActiveDataKey }}>\n <div\n data-slot=\"chart\"\n data-chart={chartId}\n onMouseLeave={hoverFade ? () => { setActiveIndex(null); setActiveDataKey(null) } : undefined}\n className={cn(\n 'flex aspect-video w-full justify-center text-xs outline-none [&_*]:outline-none',\n // Responsive axis tick font-size — consumed by ChartXAxis / ChartYAxis via var()\n '[--chart-axis-fs:var(--font-size-2xs)] sm:[--chart-axis-fs:var(--font-size-xs)]',\n // Recharts element overrides — use arbitrary properties for v3/v4 compat\n '[&_.recharts-cartesian-axis-tick_text]:[fill:var(--color-text-muted)]',\n \"[&_.recharts-cartesian-grid_line[stroke='#ccc']]:[stroke:var(--color-border)]\",\n '[&_.recharts-cartesian-grid_line]:[stroke-dasharray:3_3]',\n '[&_.recharts-curve.recharts-tooltip-cursor]:[stroke:var(--color-border)]',\n \"[&_.recharts-dot[stroke='#fff']]:stroke-transparent\",\n '[&_.recharts-layer]:outline-none',\n \"[&_.recharts-polar-grid_[stroke='#ccc']]:[stroke:var(--color-border)]\",\n '[&_.recharts-radial-bar-background-sector]:[fill:var(--color-background-muted)]',\n '[&_.recharts-rectangle.recharts-tooltip-cursor]:[fill:transparent]',\n \"[&_.recharts-reference-line_[stroke='#ccc']]:[stroke:var(--color-border)]\",\n '[&_.recharts-sector]:outline-none',\n \"[&_.recharts-sector[stroke='#fff']]:stroke-transparent\",\n '[&_.recharts-surface]:outline-none',\n className\n )}\n {...props}\n >\n <ChartStyle id={chartId} config={config} />\n <RechartsPrimitive.ResponsiveContainer>\n {children}\n </RechartsPrimitive.ResponsiveContainer>\n </div>\n </ChartContext.Provider>\n )\n}\n\n// Tooltip fade-in keyframe — injected once per chart via ChartStyle\nconst CHART_TOOLTIP_KEYFRAME = '@keyframes chart-tooltip-in{from{opacity:0}to{opacity:1}}'\n\nconst ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => {\n const colorConfig = Object.entries(config).filter(\n ([, config]) => config.theme || config.color\n )\n\n const colorCss = colorConfig.length\n ? Object.entries(THEMES)\n .map(\n ([theme, prefix]) => `\n${prefix} [data-chart=${id}] {\n${colorConfig\n .map(([key, itemConfig]) => {\n const color =\n itemConfig.theme?.[theme as keyof typeof itemConfig.theme] ||\n itemConfig.color\n return color ? ` --color-${key}: ${color};` : null\n })\n .join('\\n')}\n}\n`\n )\n .join('\\n')\n : ''\n\n return (\n <style\n dangerouslySetInnerHTML={{\n __html: CHART_TOOLTIP_KEYFRAME + colorCss,\n }}\n />\n )\n}\n\n// ─── ChartBar ─────────────────────────────────────────────────────────────────\n\nexport type ChartBarRadius = 'none' | 'sm' | 'base' | 'md' | 'lg'\nexport type ChartBarVariant = 'solid' | 'outline'\n\n// TOKEN-EXCEPTION: SVG fillOpacity requires numeric value.\n// Matches --opacity-35 token (0.35).\nconst CHART_HOVER_FADE_OPACITY = 0.35\n\n// Fade transition for hover effect — uses --duration-fast token via CSS variable\nconst CHART_FADE_TRANSITION = { transition: 'fill-opacity var(--duration-fast) ease-out, stroke-opacity var(--duration-fast) ease-out' } as const\n\n// TOKEN-EXCEPTION: Recharts Bar radius is an SVG attribute — CSS variables not supported.\n// Values mirror --radius-* tokens from variables.css.\nconst CHART_BAR_RADIUS_MAP: Record<ChartBarRadius, number> = {\n none: 0, // --radius-none: 0px\n sm: 2, // --radius-sm: 2px\n base: 4, // --radius-base: 4px\n md: 6, // --radius-md: 6px\n lg: 8, // --radius-lg: 8px\n}\n\ntype ChartBarProps = Omit<React.ComponentProps<typeof RechartsPrimitive.Bar>, 'radius'> & {\n /** Named radius token. Auto-adapts corners based on layout and stack position. */\n radius?: ChartBarRadius\n /** 'horizontal' rounds the right side (away from Y-axis). Default: 'vertical' */\n layout?: 'vertical' | 'horizontal'\n /** 'bottom' rounds the bottom corners (base of a stack). Default: 'top' */\n stackPosition?: 'top' | 'bottom'\n /** 'outline' renders a thick border with a semi-transparent fill. Default: 'solid' */\n variant?: ChartBarVariant\n}\n\nfunction ChartBar({\n radius = 'none',\n layout = 'vertical',\n stackPosition = 'top',\n variant = 'solid',\n fill,\n stackId,\n ...props\n}: ChartBarProps) {\n const { hoverFade, activeIndex, setActiveIndex } = useChart()\n const r = CHART_BAR_RADIUS_MAP[radius]\n const isStacked = !!stackId || stackPosition === 'bottom'\n const appliedRadius: number | [number, number, number, number] =\n r === 0 ? 0\n : variant === 'outline' && !isStacked ? r // outline standalone: all 4 corners (works for negative bars too)\n : layout === 'horizontal' && stackPosition === 'bottom' ? 0 // stacked horiz inner: all flat (connects to next bar)\n : layout === 'horizontal' ? [0, r, r, 0] // horiz tip: right corners\n : stackPosition === 'bottom' ? 0 // vertical stacked base: all flat (sits on axis, top connects to next bar)\n : [r, r, 0, 0] // default vertical: top corners only\n\n // TOKEN-EXCEPTION: SVG stroke is centered by default (half inside, half outside).\n // Custom shape renders an inset rect so the stroke stays fully inside the bar bounds.\n const outlineShape = React.useCallback((shapeProps: RechartsPrimitive.BarShapeProps & { x?: number; y?: number; width?: number; height?: number; index?: number }) => {\n const x = shapeProps.x ?? 0\n const y = shapeProps.y ?? 0\n const width = shapeProps.width ?? 0\n const height = shapeProps.height ?? 0\n if (!width || !height || width <= 0 || height <= 0) return <g />\n const sw = 2\n const inset = sw / 2\n const rx = typeof appliedRadius === 'number' ? Math.max(0, appliedRadius - inset) : 0\n // Hover fade: modulate base outline opacity (fill: 0.4, stroke: 1.0)\n const fadeMultiplier = hoverFade && activeIndex !== null && shapeProps.index !== activeIndex ? CHART_HOVER_FADE_OPACITY : 1\n return (\n <rect\n x={x + inset}\n y={y + inset}\n width={Math.max(0, width - sw)}\n height={Math.max(0, height - sw)}\n rx={rx}\n fill={fill}\n fillOpacity={0.4 * fadeMultiplier}\n stroke={fill}\n strokeOpacity={fadeMultiplier}\n strokeWidth={sw}\n style={hoverFade ? CHART_FADE_TRANSITION : undefined}\n />\n )\n }, [appliedRadius, fill, hoverFade, activeIndex])\n\n // Solid variant hover-fade shape: renders Rectangle with per-bar opacity\n const solidHoverShape = React.useCallback((shapeProps: any) => {\n const opacity = activeIndex === null ? 1 : shapeProps.index === activeIndex ? 1 : CHART_HOVER_FADE_OPACITY\n return (\n <RechartsPrimitive.Rectangle\n {...shapeProps}\n fillOpacity={opacity}\n style={CHART_FADE_TRANSITION}\n />\n )\n }, [activeIndex])\n\n // Determine which shape function to use\n const useOutline = variant === 'outline' && !isStacked\n const needsHoverShape = hoverFade && variant === 'solid' && !useOutline\n\n return (\n <RechartsPrimitive.Bar\n radius={appliedRadius}\n fill={fill}\n stackId={stackId}\n // Disable Recharts animation to prevent label/total flicker on hover\n {...(hoverFade && { isAnimationActive: false })}\n {...(useOutline && { shape: outlineShape as any })}\n {...(needsHoverShape && { shape: solidHoverShape as any })}\n {...(hoverFade && { onMouseEnter: (_: unknown, index: number) => setActiveIndex(index) })}\n {...props}\n />\n )\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n\n// Wrapper: kill position-slide so tooltip appears at the hovered bar instantly.\n// Smooth appearance is handled by CSS fade on ChartTooltipContent instead.\nfunction ChartTooltip(props: React.ComponentProps<typeof RechartsPrimitive.Tooltip>) {\n return <RechartsPrimitive.Tooltip animationDuration={0} {...props} />\n}\n\n// Recharts 3.x injects these props at runtime via content render prop.\n// We define explicit types instead of deriving from RechartsPrimitive.Tooltip.\ntype TooltipPayloadItem = {\n dataKey?: string | number\n name?: string\n value?: number | string\n type?: string\n color?: string\n payload?: Record<string, unknown>\n fill?: string\n}\n\ntype ChartTooltipContentProps = React.ComponentProps<'div'> & {\n active?: boolean\n payload?: TooltipPayloadItem[]\n label?: string\n labelFormatter?: (value: unknown, payload: TooltipPayloadItem[]) => React.ReactNode\n labelClassName?: string\n formatter?: (value: unknown, name: string, item: TooltipPayloadItem, index: number, payload: Record<string, unknown>) => React.ReactNode\n color?: string\n hideLabel?: boolean\n hideIndicator?: boolean\n indicator?: 'line' | 'dot' | 'dashed'\n nameKey?: string\n labelKey?: string\n}\n\nfunction ChartTooltipContent({\n active,\n payload,\n className,\n indicator = 'dot',\n hideLabel = false,\n hideIndicator = false,\n label,\n labelFormatter,\n labelClassName,\n formatter,\n color,\n nameKey,\n labelKey,\n}: ChartTooltipContentProps) {\n const { config } = useChart()\n\n const tooltipLabel = React.useMemo(() => {\n if (hideLabel || !payload?.length) {\n return null\n }\n\n const [item] = payload\n const key = `${labelKey || item?.dataKey || item?.name || 'value'}`\n const itemConfig = getPayloadConfigFromPayload(config, item, key)\n const value =\n !labelKey && typeof label === 'string'\n ? config[label as keyof typeof config]?.label || label\n : itemConfig?.label\n\n if (labelFormatter) {\n return (\n <div className={cn('font-semibold', labelClassName)}>\n {labelFormatter(value, payload)}\n </div>\n )\n }\n\n if (!value) {\n return null\n }\n\n return <div className={cn('font-semibold', labelClassName)}>{value}</div>\n }, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey])\n\n if (!active || !payload?.length) {\n return null\n }\n\n const nestLabel = payload.length === 1 && indicator !== 'dot'\n\n return (\n <div\n className={cn(\n 'grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border bg-background px-2.5 py-1.5 text-xs shadow-xl',\n className\n )}\n style={{ animation: 'chart-tooltip-in var(--duration-slow) ease-out' }}\n >\n {!nestLabel ? tooltipLabel : null}\n <div className=\"grid gap-1.5\">\n {payload\n .filter((item: TooltipPayloadItem) => item.type !== 'none')\n .map((item: TooltipPayloadItem, index: number) => {\n const key = `${nameKey || item.name || item.dataKey || 'value'}`\n const itemConfig = getPayloadConfigFromPayload(config, item, key)\n const indicatorColor = color || (item.payload as Record<string, unknown>)?.fill as string || item.color\n\n return (\n <div\n key={item.dataKey}\n className={cn(\n 'flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-text-muted',\n indicator === 'dot' && 'items-center'\n )}\n >\n {formatter && item?.value !== undefined && item.name ? (\n formatter(item.value, item.name, item, index, item.payload as Record<string, unknown>)\n ) : (\n <>\n {itemConfig?.icon ? (\n <itemConfig.icon />\n ) : (\n !hideIndicator && (\n <div\n className={cn(\n 'shrink-0 rounded-sm',\n {\n 'h-2.5 w-2.5': indicator === 'dot',\n 'w-1': indicator === 'line',\n 'w-0 border-[1.5px] border-dashed bg-transparent':\n indicator === 'dashed',\n 'my-0.5': nestLabel && indicator === 'dashed',\n }\n )}\n style={{\n backgroundColor: indicator === 'dashed' ? 'transparent' : indicatorColor,\n borderColor: indicatorColor,\n }}\n />\n )\n )}\n <div\n className={cn(\n 'flex flex-1 justify-between leading-none',\n nestLabel ? 'items-end' : 'items-center'\n )}\n >\n <div className=\"grid gap-1.5\">\n {nestLabel ? tooltipLabel : null}\n <span className=\"text-text-muted\">\n {itemConfig?.label || item.name}\n </span>\n </div>\n {item.value && (\n <span className=\"font-mono font-semibold text-foreground tabular-nums\">\n {item.value.toLocaleString()}\n </span>\n )}\n </div>\n </>\n )}\n </div>\n )\n })}\n </div>\n </div>\n )\n}\n\nconst ChartLegend = RechartsPrimitive.Legend\n\n// Recharts 3.x legend payload type\ntype LegendPayloadItem = {\n value?: string\n type?: string\n color?: string\n dataKey?: string\n}\n\ntype ChartLegendContentProps = React.ComponentProps<'div'> & {\n payload?: LegendPayloadItem[]\n verticalAlign?: 'top' | 'middle' | 'bottom'\n align?: 'left' | 'center' | 'right'\n /** Recharts passes layout when Legend uses layout prop */\n layout?: 'horizontal' | 'vertical'\n hideIcon?: boolean\n nameKey?: string\n}\n\nfunction ChartLegendContent({\n className,\n hideIcon = false,\n payload,\n verticalAlign = 'bottom',\n align = 'center',\n layout = 'horizontal',\n nameKey,\n}: ChartLegendContentProps) {\n const { config } = useChart()\n\n if (!payload?.length) {\n return null\n }\n\n const isVertical = layout === 'vertical'\n\n return (\n <div\n className={cn(\n 'flex gap-4',\n isVertical\n ? 'flex-col items-start gap-1.5'\n : [\n 'items-center',\n align === 'left' ? 'justify-start' : align === 'right' ? 'justify-end' : 'justify-center',\n verticalAlign === 'top' ? 'pb-3' : 'pt-3',\n ],\n className\n )}\n >\n {payload\n .filter((item: LegendPayloadItem) => item.type !== 'none')\n .map((item: LegendPayloadItem) => {\n const key = `${nameKey || item.dataKey || 'value'}`\n const itemConfig = getPayloadConfigFromPayload(config, item, key)\n\n return (\n <div\n key={item.value}\n className=\"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-text-muted\"\n >\n {itemConfig?.icon && !hideIcon ? (\n <itemConfig.icon />\n ) : (\n <div\n className=\"h-2 w-2 shrink-0 rounded-sm\"\n style={{\n backgroundColor: item.color,\n }}\n />\n )}\n <span className=\"text-foreground\">{itemConfig?.label}</span>\n </div>\n )\n })}\n </div>\n )\n}\n\n// Helper to extract item config from a payload\nfunction getPayloadConfigFromPayload(\n config: ChartConfig,\n payload: unknown,\n key: string\n) {\n if (typeof payload !== 'object' || payload === null) {\n return undefined\n }\n\n const payloadPayload =\n 'payload' in payload &&\n typeof payload.payload === 'object' &&\n payload.payload !== null\n ? payload.payload\n : undefined\n\n let configLabelKey: string = key\n\n if (\n key in payload &&\n typeof payload[key as keyof typeof payload] === 'string'\n ) {\n configLabelKey = payload[key as keyof typeof payload] as string\n } else if (\n payloadPayload &&\n key in payloadPayload &&\n typeof payloadPayload[key as keyof typeof payloadPayload] === 'string'\n ) {\n configLabelKey = payloadPayload[\n key as keyof typeof payloadPayload\n ] as string\n }\n\n return configLabelKey in config\n ? config[configLabelKey]\n : config[key as keyof typeof config]\n}\n\n// ─── ChartXAxis / ChartYAxis ──────────────────────────────────────────────────\n\n// TOKEN-EXCEPTION: Recharts ignores CSS overrides on axis tick text.\n// Wrapper components apply design-token styles via inline style to ensure override.\nconst CHART_AXIS_TICK_STYLE = { style: { fontSize: 'var(--chart-axis-fs)', fill: 'var(--color-text-subtle)' } } as const\n\ntype ChartXAxisProps = React.ComponentProps<typeof RechartsPrimitive.XAxis>\ntype ChartYAxisProps = React.ComponentProps<typeof RechartsPrimitive.YAxis>\n\nconst CHART_XAXIS_PADDING = { left: 16, right: 16 } as const\n\nfunction ChartXAxis({ tick, padding, ...props }: ChartXAxisProps) {\n return <RechartsPrimitive.XAxis tick={tick ?? CHART_AXIS_TICK_STYLE} padding={padding ?? CHART_XAXIS_PADDING} {...props} />\n}\n\nfunction ChartYAxis({ tick, width = 'auto', ...props }: ChartYAxisProps) {\n return <RechartsPrimitive.YAxis tick={tick ?? CHART_AXIS_TICK_STYLE} width={width} {...props} />\n}\n\n// ─── ChartLine ───────────────────────────────────────────────────────────────\n\nexport type ChartLineType = 'linear' | 'monotone' | 'step' | 'natural'\nexport type ChartLineVariant = 'solid' | 'dashed'\n\n// TOKEN-EXCEPTION: SVG strokeDasharray requires numeric values — CSS variables not supported.\nconst CHART_LINE_DASH = '5 5' as const\n\n// TOKEN-EXCEPTION: SVG r / strokeWidth are geometric attributes — CSS variables not supported.\n// Dot: r=3 strokeWidth=2, ActiveDot: r=5 strokeWidth=2\nconst CHART_DOT_PROPS = { r: 3, strokeWidth: 2 } as const\nconst CHART_ACTIVE_DOT_PROPS = { r: 5, strokeWidth: 2 } as const\n\ntype ChartLineProps = Omit<React.ComponentProps<typeof RechartsPrimitive.Line>, 'type' | 'dot' | 'activeDot'> & {\n /** Curve interpolation type. Default: 'monotone' */\n type?: ChartLineType\n /** Line style. 'dashed' applies stroke-dasharray. Default: 'solid' */\n variant?: ChartLineVariant\n /** Show data point dots. Default: true */\n dot?: boolean\n /** Show highlighted dot on hover. Default: true */\n activeDot?: boolean\n}\n\nfunction ChartLine({\n type = 'monotone',\n variant = 'solid',\n dot: showDot = true,\n activeDot: showActiveDot = true,\n stroke,\n dataKey,\n ...props\n}: ChartLineProps) {\n const { hoverFade, activeDataKey, setActiveDataKey } = useChart()\n\n const isFaded = hoverFade && activeDataKey !== null && activeDataKey !== dataKey\n const opacity = isFaded ? CHART_HOVER_FADE_OPACITY : 1\n\n // When dashed, override strokeDasharray on dots so they remain solid circles.\n const dotProps = showDot\n ? variant === 'dashed' ? { ...CHART_DOT_PROPS, strokeDasharray: '0' } : CHART_DOT_PROPS\n : false\n const activeDotProps = showActiveDot\n ? variant === 'dashed' ? { ...CHART_ACTIVE_DOT_PROPS, strokeDasharray: '0' } : CHART_ACTIVE_DOT_PROPS\n : false\n\n return (\n <RechartsPrimitive.Line\n type={type}\n dataKey={dataKey}\n stroke={stroke}\n strokeWidth={2}\n strokeDasharray={variant === 'dashed' ? CHART_LINE_DASH : undefined}\n dot={dotProps}\n activeDot={activeDotProps}\n strokeOpacity={opacity}\n // Disable Recharts animation to prevent flicker on hover\n {...(hoverFade && { isAnimationActive: false })}\n {...(hoverFade && { onMouseEnter: () => setActiveDataKey(dataKey as string) })}\n style={hoverFade ? { transition: 'stroke-opacity var(--duration-fast) ease-out' } : undefined}\n {...props}\n />\n )\n}\n\n// ─── ChartArea ───────────────────────────────────────────────────────────────\n\nexport type ChartAreaType = 'linear' | 'monotone' | 'step' | 'natural'\nexport type ChartAreaVariant = 'solid' | 'gradient'\n\n// TOKEN-EXCEPTION: SVG fillOpacity requires numeric value.\nconst CHART_AREA_DEFAULT_OPACITY = 0.4\n\ntype ChartAreaProps = Omit<React.ComponentProps<typeof RechartsPrimitive.Area>, 'type' | 'dot' | 'activeDot'> & {\n /** Curve interpolation type. Default: 'monotone' */\n type?: ChartAreaType\n /** Fill style. 'gradient' auto-generates an SVG linearGradient. Default: 'solid' */\n variant?: ChartAreaVariant\n /** Show data point dots. Default: true */\n dot?: boolean\n /** Show highlighted dot on hover. Default: true */\n activeDot?: boolean\n /** Fill opacity for this area (0–1). Default: 0.4 */\n fillOpacity?: number\n}\n\nfunction ChartArea({\n type = 'monotone',\n variant = 'solid',\n dot: showDot = true,\n activeDot: showActiveDot = true,\n fillOpacity = CHART_AREA_DEFAULT_OPACITY,\n stroke,\n fill,\n dataKey,\n ...props\n}: ChartAreaProps) {\n const { hoverFade, activeDataKey, setActiveDataKey } = useChart()\n\n const isFaded = hoverFade && activeDataKey !== null && activeDataKey !== dataKey\n const opacity = isFaded ? CHART_HOVER_FADE_OPACITY : 1\n\n const dotProps = showDot\n ? CHART_DOT_PROPS\n : false\n const activeDotProps = showActiveDot\n ? CHART_ACTIVE_DOT_PROPS\n : false\n\n // Gradient variant: use unique ID referencing dataKey\n const gradientId = `area-gradient-${String(dataKey)}`\n const effectiveFill = variant === 'gradient' ? `url(#${gradientId})` : (fill || stroke)\n const effectiveFillOpacity = variant === 'gradient' ? 1 : fillOpacity\n\n return (\n <>\n {variant === 'gradient' && (\n <defs>\n <linearGradient id={gradientId} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n {/* TOKEN-EXCEPTION: SVG stop attributes require inline values */}\n <stop offset=\"5%\" stopColor={fill || stroke} stopOpacity={0.8} />\n <stop offset=\"95%\" stopColor={fill || stroke} stopOpacity={0} />\n </linearGradient>\n </defs>\n )}\n <RechartsPrimitive.Area\n type={type}\n dataKey={dataKey}\n stroke={stroke}\n fill={effectiveFill}\n fillOpacity={effectiveFillOpacity * opacity}\n strokeWidth={2}\n dot={dotProps}\n activeDot={activeDotProps}\n strokeOpacity={opacity}\n // Disable Recharts animation to prevent flicker on hover\n {...(hoverFade && { isAnimationActive: false })}\n {...(hoverFade && { onMouseEnter: () => setActiveDataKey(dataKey as string) })}\n style={hoverFade ? { transition: 'fill-opacity var(--duration-fast) ease-out, stroke-opacity var(--duration-fast) ease-out' } : undefined}\n {...props}\n />\n </>\n )\n}\n\n// ─── ChartPie ────────────────────────────────────────────────────────────────\n\nexport type ChartPieVariant = 'pie' | 'donut'\nexport type ChartPieLabel = 'none' | 'outside' | 'inside'\nexport type ChartPieLabelContent = 'value' | 'percent'\n\n// TOKEN-EXCEPTION: SVG outerRadius expansion on hover — numeric constant.\nconst CHART_PIE_ACTIVE_OFFSET = 8\n\n// TOKEN-EXCEPTION: SVG innerRadius for donut variant — numeric constant.\nconst CHART_PIE_DONUT_INNER_RADIUS = 60\n\n// TOKEN-EXCEPTION: SVG outside label line — numeric constants.\nconst CHART_PIE_LABEL_RADIAL = 16 // radial segment length from slice edge\nconst CHART_PIE_LABEL_HORIZ = 20 // horizontal segment length\n\n// TOKEN-EXCEPTION: SVG inside label skip angle — numeric constant.\nconst CHART_PIE_SKIP_ANGLE = 15 // hide label for slices smaller than this (degrees)\n\ntype ChartPieProps = Omit<React.ComponentProps<typeof RechartsPrimitive.Pie>, 'label' | 'labelLine' | 'activeShape'> & {\n /** 'donut' applies innerRadius automatically. Default: 'pie' */\n variant?: ChartPieVariant\n /** Label position. Default: 'none' */\n label?: ChartPieLabel\n /** Label display content. Default: 'value' */\n labelContent?: ChartPieLabelContent\n /** Hover expand effect. Default: true */\n activeShape?: boolean\n /** Override inner radius (default: 0 for pie, 60 for donut) */\n innerRadius?: number\n /** Padding angle between slices (degrees). Default: 0 */\n paddingAngle?: number\n /** Corner radius for slices. Default: 0 */\n cornerRadius?: number\n}\n\nfunction ChartPie({\n variant = 'pie',\n label: labelMode = 'none',\n labelContent = 'value',\n activeShape: showActiveShape = true,\n innerRadius,\n paddingAngle = 0,\n cornerRadius = 0,\n startAngle = 90,\n endAngle = -270,\n ...props\n}: ChartPieProps) {\n // Resolve inner radius: explicit prop > variant default\n const resolvedInnerRadius = innerRadius ?? (variant === 'donut' ? CHART_PIE_DONUT_INNER_RADIUS : 0)\n\n // Active shape: render Sector with expanded outer radius on hover\n const activeShapeConfig = showActiveShape\n ? (props: any) => (\n <RechartsPrimitive.Sector\n {...props}\n outerRadius={props.outerRadius + CHART_PIE_ACTIVE_OFFSET}\n />\n )\n : undefined\n\n // Resolve display text from labelContent\n const getDisplayText = (entry: any) =>\n labelContent === 'percent'\n ? `${(entry.percent * 100).toFixed(0)}%`\n : entry.value\n\n // Label rendering\n const labelConfig = labelMode === 'outside'\n ? (entry: any) => {\n const RADIAN = Math.PI / 180\n const { cx, cy, midAngle, outerRadius, fill } = entry\n\n // Point on slice edge\n const sx = cx + outerRadius * Math.cos(-midAngle * RADIAN)\n const sy = cy + outerRadius * Math.sin(-midAngle * RADIAN)\n\n // End of radial segment\n const mx = cx + (outerRadius + CHART_PIE_LABEL_RADIAL) * Math.cos(-midAngle * RADIAN)\n const my = cy + (outerRadius + CHART_PIE_LABEL_RADIAL) * Math.sin(-midAngle * RADIAN)\n\n // Horizontal elbow direction\n const isRight = mx > cx\n const ex = mx + (isRight ? CHART_PIE_LABEL_HORIZ : -CHART_PIE_LABEL_HORIZ)\n\n return (\n <g>\n <polyline\n points={`${sx},${sy} ${mx},${my} ${ex},${my}`}\n fill=\"none\"\n stroke={fill}\n strokeWidth={1}\n strokeOpacity={0.5}\n />\n <text\n x={ex + (isRight ? 4 : -4)}\n y={my}\n textAnchor={isRight ? 'start' : 'end'}\n dominantBaseline=\"central\"\n style={{ fontSize: 'var(--font-size-xs)', fill: 'var(--color-text-muted)' }}\n >\n {getDisplayText(entry)}\n </text>\n </g>\n )\n }\n : labelMode === 'inside'\n ? (entry: any) => {\n // Skip label for small slices\n const angle = Math.abs(entry.endAngle - entry.startAngle)\n if (angle < CHART_PIE_SKIP_ANGLE) return null\n\n const RADIAN = Math.PI / 180\n const { cx, cy, innerRadius: ir, outerRadius: or, midAngle } = entry\n // Pie: push toward outer edge (0.65). Donut ring: use midpoint (0.5)\n const ratio = ir > 0 ? 0.5 : 0.65\n const radius = ir + (or - ir) * ratio\n const x = cx + radius * Math.cos(-midAngle * RADIAN)\n const y = cy + radius * Math.sin(-midAngle * RADIAN)\n\n return (\n <text\n x={x}\n y={y}\n textAnchor=\"middle\"\n dominantBaseline=\"central\"\n style={{ fontSize: 'var(--font-size-xs)', fill: 'white', fontWeight: 600 }}\n >\n {getDisplayText(entry)}\n </text>\n )\n }\n : false\n\n return (\n <RechartsPrimitive.Pie\n innerRadius={resolvedInnerRadius}\n paddingAngle={paddingAngle}\n cornerRadius={cornerRadius}\n startAngle={startAngle}\n endAngle={endAngle}\n label={labelConfig as any}\n labelLine={false}\n activeShape={activeShapeConfig as any}\n {...props}\n />\n )\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n\n// ─── Namespace ──────────────────────────────────────────\nconst Chart = Object.assign(ChartContainer, {\n Bar: ChartBar,\n Line: ChartLine,\n Area: ChartArea,\n Pie: ChartPie,\n Tooltip: ChartTooltip,\n TooltipContent: ChartTooltipContent,\n Legend: ChartLegend,\n LegendContent: ChartLegendContent,\n XAxis: ChartXAxis,\n YAxis: ChartYAxis,\n Style: ChartStyle,\n})\n\nexport {\n Chart,\n ChartContainer,\n ChartBar,\n ChartLine,\n ChartArea,\n ChartPie,\n ChartTooltip,\n ChartTooltipContent,\n ChartLegend,\n ChartLegendContent,\n ChartXAxis,\n ChartYAxis,\n ChartStyle,\n useChart,\n}\n","import { type ClassValue, clsx } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\n/**\n * Combines class names with Tailwind CSS class merging\n * @param inputs - Class values to combine\n * @returns Merged class string\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n"],"mappings":";;;AAEA,YAAY,WAAW;AACvB,YAAY,uBAAuB;;;ACHnC,SAA0B,YAAY;AACtC,SAAS,eAAe;AAOjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;;;ADHA,IAAM,SAAS,EAAE,OAAO,IAAI,MAAM,QAAQ;AAuB1C,IAAM,eAAqB,oBAAwC,IAAI;AAEvE,SAAS,WAAW;AAClB,QAAM,UAAgB,iBAAW,YAAY;AAC7C,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,mDAAmD;AAAA,EACrE;AACA,SAAO;AACT;AAEA,SAAS,eAAe;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ,GAAG;AACL,GAOG;AACD,QAAM,WAAiB,YAAM;AAC7B,QAAM,UAAU,SAAS,MAAM,SAAS,QAAQ,MAAM,EAAE,CAAC;AACzD,QAAM,CAAC,aAAa,cAAc,IAAU,eAAwB,IAAI;AACxE,QAAM,CAAC,eAAe,gBAAgB,IAAU,eAAwB,IAAI;AAE5E,SACE,oCAAC,aAAa,UAAb,EAAsB,OAAO,EAAE,QAAQ,WAAW,aAAa,gBAAgB,eAAe,iBAAiB,KAC9G;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,cAAY;AAAA,MACZ,cAAc,YAAY,MAAM;A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ED
@@ -12,7 +12,6 @@ import * as SliderPrimitive from '@radix-ui/react-slider';
12
12
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
13
13
  import * as SelectPrimitive from '@radix-ui/react-select';
14
14
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
15
- import * as RechartsPrimitive from 'recharts';
16
15
  import * as TabsPrimitive from '@radix-ui/react-tabs';
17
16
  import * as DialogPrimitive from '@radix-ui/react-dialog';
18
17
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
@@ -742,165 +741,6 @@ declare namespace Avatar {
742
741
  type GroupProps = AvatarGroupProps;
743
742
  }
744
743
 
745
- declare const THEMES: {
746
- readonly light: "";
747
- readonly dark: ".dark";
748
- };
749
- type ChartConfig = {
750
- [k in string]: {
751
- label?: React.ReactNode;
752
- icon?: React.ComponentType;
753
- } & ({
754
- color?: string;
755
- theme?: never;
756
- } | {
757
- color?: never;
758
- theme: Record<keyof typeof THEMES, string>;
759
- });
760
- };
761
- type ChartContextProps = {
762
- config: ChartConfig;
763
- hoverFade: boolean;
764
- activeIndex: number | null;
765
- setActiveIndex: (index: number | null) => void;
766
- activeDataKey: string | null;
767
- setActiveDataKey: (key: string | null) => void;
768
- };
769
- declare function useChart(): ChartContextProps;
770
- declare function ChartContainer({ id, className, children, config, hoverFade, ...props }: React.ComponentProps<'div'> & {
771
- config: ChartConfig;
772
- /** Enable hover-to-highlight: hovered bar group stays full opacity, others fade. */
773
- hoverFade?: boolean;
774
- children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>['children'];
775
- }): React.JSX.Element;
776
- declare const ChartStyle: ({ id, config }: {
777
- id: string;
778
- config: ChartConfig;
779
- }) => React.JSX.Element;
780
- type ChartBarRadius = 'none' | 'sm' | 'base' | 'md' | 'lg';
781
- type ChartBarVariant = 'solid' | 'outline';
782
- type ChartBarProps = Omit<React.ComponentProps<typeof RechartsPrimitive.Bar>, 'radius'> & {
783
- /** Named radius token. Auto-adapts corners based on layout and stack position. */
784
- radius?: ChartBarRadius;
785
- /** 'horizontal' rounds the right side (away from Y-axis). Default: 'vertical' */
786
- layout?: 'vertical' | 'horizontal';
787
- /** 'bottom' rounds the bottom corners (base of a stack). Default: 'top' */
788
- stackPosition?: 'top' | 'bottom';
789
- /** 'outline' renders a thick border with a semi-transparent fill. Default: 'solid' */
790
- variant?: ChartBarVariant;
791
- };
792
- declare function ChartBar({ radius, layout, stackPosition, variant, fill, stackId, ...props }: ChartBarProps): React.JSX.Element;
793
- declare function ChartTooltip(props: React.ComponentProps<typeof RechartsPrimitive.Tooltip>): React.JSX.Element;
794
- type TooltipPayloadItem = {
795
- dataKey?: string | number;
796
- name?: string;
797
- value?: number | string;
798
- type?: string;
799
- color?: string;
800
- payload?: Record<string, unknown>;
801
- fill?: string;
802
- };
803
- type ChartTooltipContentProps = React.ComponentProps<'div'> & {
804
- active?: boolean;
805
- payload?: TooltipPayloadItem[];
806
- label?: string;
807
- labelFormatter?: (value: unknown, payload: TooltipPayloadItem[]) => React.ReactNode;
808
- labelClassName?: string;
809
- formatter?: (value: unknown, name: string, item: TooltipPayloadItem, index: number, payload: Record<string, unknown>) => React.ReactNode;
810
- color?: string;
811
- hideLabel?: boolean;
812
- hideIndicator?: boolean;
813
- indicator?: 'line' | 'dot' | 'dashed';
814
- nameKey?: string;
815
- labelKey?: string;
816
- };
817
- declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: ChartTooltipContentProps): React.JSX.Element | null;
818
- declare const ChartLegend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
819
- type LegendPayloadItem = {
820
- value?: string;
821
- type?: string;
822
- color?: string;
823
- dataKey?: string;
824
- };
825
- type ChartLegendContentProps = React.ComponentProps<'div'> & {
826
- payload?: LegendPayloadItem[];
827
- verticalAlign?: 'top' | 'middle' | 'bottom';
828
- align?: 'left' | 'center' | 'right';
829
- /** Recharts passes layout when Legend uses layout prop */
830
- layout?: 'horizontal' | 'vertical';
831
- hideIcon?: boolean;
832
- nameKey?: string;
833
- };
834
- declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, align, layout, nameKey, }: ChartLegendContentProps): React.JSX.Element | null;
835
- type ChartXAxisProps = React.ComponentProps<typeof RechartsPrimitive.XAxis>;
836
- type ChartYAxisProps = React.ComponentProps<typeof RechartsPrimitive.YAxis>;
837
- declare function ChartXAxis({ tick, padding, ...props }: ChartXAxisProps): React.JSX.Element;
838
- declare function ChartYAxis({ tick, width, ...props }: ChartYAxisProps): React.JSX.Element;
839
- type ChartLineType = 'linear' | 'monotone' | 'step' | 'natural';
840
- type ChartLineVariant = 'solid' | 'dashed';
841
- type ChartLineProps = Omit<React.ComponentProps<typeof RechartsPrimitive.Line>, 'type' | 'dot' | 'activeDot'> & {
842
- /** Curve interpolation type. Default: 'monotone' */
843
- type?: ChartLineType;
844
- /** Line style. 'dashed' applies stroke-dasharray. Default: 'solid' */
845
- variant?: ChartLineVariant;
846
- /** Show data point dots. Default: true */
847
- dot?: boolean;
848
- /** Show highlighted dot on hover. Default: true */
849
- activeDot?: boolean;
850
- };
851
- declare function ChartLine({ type, variant, dot: showDot, activeDot: showActiveDot, stroke, dataKey, ...props }: ChartLineProps): React.JSX.Element;
852
- type ChartAreaType = 'linear' | 'monotone' | 'step' | 'natural';
853
- type ChartAreaVariant = 'solid' | 'gradient';
854
- type ChartAreaProps = Omit<React.ComponentProps<typeof RechartsPrimitive.Area>, 'type' | 'dot' | 'activeDot'> & {
855
- /** Curve interpolation type. Default: 'monotone' */
856
- type?: ChartAreaType;
857
- /** Fill style. 'gradient' auto-generates an SVG linearGradient. Default: 'solid' */
858
- variant?: ChartAreaVariant;
859
- /** Show data point dots. Default: true */
860
- dot?: boolean;
861
- /** Show highlighted dot on hover. Default: true */
862
- activeDot?: boolean;
863
- /** Fill opacity for this area (0–1). Default: 0.4 */
864
- fillOpacity?: number;
865
- };
866
- declare function ChartArea({ type, variant, dot: showDot, activeDot: showActiveDot, fillOpacity, stroke, fill, dataKey, ...props }: ChartAreaProps): React.JSX.Element;
867
- type ChartPieVariant = 'pie' | 'donut';
868
- type ChartPieLabel = 'none' | 'outside' | 'inside';
869
- type ChartPieLabelContent = 'value' | 'percent';
870
- type ChartPieProps = Omit<React.ComponentProps<typeof RechartsPrimitive.Pie>, 'label' | 'labelLine' | 'activeShape'> & {
871
- /** 'donut' applies innerRadius automatically. Default: 'pie' */
872
- variant?: ChartPieVariant;
873
- /** Label position. Default: 'none' */
874
- label?: ChartPieLabel;
875
- /** Label display content. Default: 'value' */
876
- labelContent?: ChartPieLabelContent;
877
- /** Hover expand effect. Default: true */
878
- activeShape?: boolean;
879
- /** Override inner radius (default: 0 for pie, 60 for donut) */
880
- innerRadius?: number;
881
- /** Padding angle between slices (degrees). Default: 0 */
882
- paddingAngle?: number;
883
- /** Corner radius for slices. Default: 0 */
884
- cornerRadius?: number;
885
- };
886
- declare function ChartPie({ variant, label: labelMode, labelContent, activeShape: showActiveShape, innerRadius, paddingAngle, cornerRadius, startAngle, endAngle, ...props }: ChartPieProps): React.JSX.Element;
887
- declare const Chart: typeof ChartContainer & {
888
- Bar: typeof ChartBar;
889
- Line: typeof ChartLine;
890
- Area: typeof ChartArea;
891
- Pie: typeof ChartPie;
892
- Tooltip: typeof ChartTooltip;
893
- TooltipContent: typeof ChartTooltipContent;
894
- Legend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
895
- LegendContent: typeof ChartLegendContent;
896
- XAxis: typeof ChartXAxis;
897
- YAxis: typeof ChartYAxis;
898
- Style: ({ id, config }: {
899
- id: string;
900
- config: ChartConfig;
901
- }) => React.JSX.Element;
902
- };
903
-
904
744
  declare const metricCardVariants: (props?: ({
905
745
  variant?: "default" | "ghost" | "elevated" | null | undefined;
906
746
  size?: "default" | "sm" | "lg" | null | undefined;
@@ -1793,4 +1633,4 @@ interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement>, VariantPro
1793
1633
  }
1794
1634
  declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
1795
1635
 
1796
- export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, type AlertColor, AlertDescription, type AlertDescriptionProps, AlertModal, AlertModalAction, AlertModalBody, AlertModalCancel, AlertModalContent, type AlertModalContentProps, AlertModalDescription, AlertModalFooter, AlertModalHeader, AlertModalOverlay, AlertModalPortal, AlertModalTitle, AlertModalTrigger, AlertRoot, type AlertRootProps, type AlertSize, AlertTitle, type AlertTitleProps, type AlertVariant, Avatar, type AvatarColorVariant, AvatarFallback, type AvatarFallbackProps, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarStatus, Badge, type BadgeColor, type BadgeProps, type BadgeRadius, type BadgeSize, type BadgeVariant, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, type BreadcrumbProps, BreadcrumbSeparator, Button, type ButtonColor, ButtonGroup, type ButtonGroupProps, type ButtonProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, type CardProps, type CardRadius, CardTitle, type CardTitleProps, type CardVariant, Chart, ChartArea, type ChartAreaType, type ChartAreaVariant, ChartBar, type ChartBarRadius, type ChartBarVariant, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartLine, type ChartLineType, type ChartLineVariant, ChartPie, type ChartPieLabel, type ChartPieLabelContent, type ChartPieVariant, ChartStyle, ChartTooltip, ChartTooltipContent, ChartXAxis, ChartYAxis, Checkbox, type CheckboxColor, type CheckboxProps, Divider, type DividerProps, Drawer, DrawerBody, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerRoot, type DrawerSide, type DrawerSize, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadius, DropdownMenuSeparator, DropdownMenuShortcut, type DropdownMenuSize, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, FieldCharCount, FieldError, FieldLabel, type FieldLabelProps, type FieldProps, IconButton, type IconButtonProps, Input, type InputProps, MetricCard, MetricCardDescription, type MetricCardDescriptionProps, MetricCardHeader, type MetricCardHeaderProps, type MetricCardProps, type MetricCardRadius, type MetricCardSize, MetricCardSymbol, type MetricCardSymbolProps, MetricCardTitle, type MetricCardTitleProps, MetricCardTrend, type MetricCardTrendDirection, type MetricCardTrendProps, MetricCardValue, type MetricCardValueProps, type MetricCardVariant, Modal, ModalBody, ModalClose, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, NavigationMenu, NavigationMenuContent, type NavigationMenuContentProps, NavigationMenuGroup, type NavigationMenuGroupProps, NavigationMenuIndicator, type NavigationMenuIndicatorProps, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkProps, NavigationMenuList, type NavigationMenuListProps, type NavigationMenuProps, type NavigationMenuRadius, NavigationMenuTrigger, type NavigationMenuTriggerProps, NavigationMenuViewport, type NavigationMenuViewportProps, type OrbitStyle, Pagination, type PaginationColor, PaginationContent, PaginationEllipsis, PaginationFirst, type PaginationFirstProps, PaginationItem, PaginationItems, PaginationLast, type PaginationLastProps, PaginationLink, type PaginationLinkProps, PaginationNext, type PaginationNextProps, PaginationPrevious, type PaginationPreviousProps, type PaginationProps, type PaginationRadius, type PaginationRange, type PaginationSize, type PaginationVariant, Popover, PopoverAnchor, PopoverArrow, PopoverClose, PopoverContent, type PopoverContentProps, PopoverPortal, PopoverRoot, type PopoverRootProps, type PopoverSide, PopoverTrigger, Progress, type ProgressProps, type PromiseOptions, type RadioColor, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Segmented, SegmentedItem, type SegmentedItemProps, type SegmentedProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectRadius, SelectSeparator, type SelectSize, SelectTrigger, SelectValue, Skeleton, type SkeletonProps, Slider, type SliderColor, type SliderProps, type SortDirection, type SortIconSet, Spinner, type SpinnerProps, Switch, type SwitchColor, type SwitchLabelPosition, type SwitchProps, Table, TableBody, TableCaption, TableCell, type TableCellProps, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, type TableRowProps, type TableSize, type TableVariant, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, type ToastAction, type ToastData, type ToastOptions, type ToastPosition, type ToastSize, type ToastType, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipPortal, TooltipProvider, TooltipRoot, type TooltipRootProps, type TooltipSide, TooltipTrigger, type UsePaginationProps, accordionTriggerVariants, accordionVariants, alertModalContentVariants, alertVariants, avatarColors, avatarVariants, badgeVariants, breadcrumbSizeMap, buttonVariants, cardVariants, checkboxVariants, dividerVariants, drawerSizeHorizontal, drawerSizeVertical, getAvatarColor, getAvatarInitials, iconButtonVariants, inputVariants, linearTrackVariants, metricCardVariants, modalContentVariants, navigationMenuSizeMap, paginationItemVariants, paginationSizeMap, popoverContentVariants, radioGroupVariants, radioItemVariants, segmentedItemVariants, segmentedVariants, skeletonVariants, sliderVariants, spinnerVariants, switchVariants, tabsListVariants, tabsTriggerVariants, textareaVariants, toast, toastVariants, toggleGroupItemVariants, toggleGroupVariants, toggleVariants, tooltipContentVariants, useButtonGroup, useChart, useFieldContext, usePagination };
1636
+ export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, type AlertColor, AlertDescription, type AlertDescriptionProps, AlertModal, AlertModalAction, AlertModalBody, AlertModalCancel, AlertModalContent, type AlertModalContentProps, AlertModalDescription, AlertModalFooter, AlertModalHeader, AlertModalOverlay, AlertModalPortal, AlertModalTitle, AlertModalTrigger, AlertRoot, type AlertRootProps, type AlertSize, AlertTitle, type AlertTitleProps, type AlertVariant, Avatar, type AvatarColorVariant, AvatarFallback, type AvatarFallbackProps, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarStatus, Badge, type BadgeColor, type BadgeProps, type BadgeRadius, type BadgeSize, type BadgeVariant, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, type BreadcrumbProps, BreadcrumbSeparator, Button, type ButtonColor, ButtonGroup, type ButtonGroupProps, type ButtonProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, type CardProps, type CardRadius, CardTitle, type CardTitleProps, type CardVariant, Checkbox, type CheckboxColor, type CheckboxProps, Divider, type DividerProps, Drawer, DrawerBody, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerRoot, type DrawerSide, type DrawerSize, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadius, DropdownMenuSeparator, DropdownMenuShortcut, type DropdownMenuSize, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, FieldCharCount, FieldError, FieldLabel, type FieldLabelProps, type FieldProps, IconButton, type IconButtonProps, Input, type InputProps, MetricCard, MetricCardDescription, type MetricCardDescriptionProps, MetricCardHeader, type MetricCardHeaderProps, type MetricCardProps, type MetricCardRadius, type MetricCardSize, MetricCardSymbol, type MetricCardSymbolProps, MetricCardTitle, type MetricCardTitleProps, MetricCardTrend, type MetricCardTrendDirection, type MetricCardTrendProps, MetricCardValue, type MetricCardValueProps, type MetricCardVariant, Modal, ModalBody, ModalClose, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, NavigationMenu, NavigationMenuContent, type NavigationMenuContentProps, NavigationMenuGroup, type NavigationMenuGroupProps, NavigationMenuIndicator, type NavigationMenuIndicatorProps, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkProps, NavigationMenuList, type NavigationMenuListProps, type NavigationMenuProps, type NavigationMenuRadius, NavigationMenuTrigger, type NavigationMenuTriggerProps, NavigationMenuViewport, type NavigationMenuViewportProps, type OrbitStyle, Pagination, type PaginationColor, PaginationContent, PaginationEllipsis, PaginationFirst, type PaginationFirstProps, PaginationItem, PaginationItems, PaginationLast, type PaginationLastProps, PaginationLink, type PaginationLinkProps, PaginationNext, type PaginationNextProps, PaginationPrevious, type PaginationPreviousProps, type PaginationProps, type PaginationRadius, type PaginationRange, type PaginationSize, type PaginationVariant, Popover, PopoverAnchor, PopoverArrow, PopoverClose, PopoverContent, type PopoverContentProps, PopoverPortal, PopoverRoot, type PopoverRootProps, type PopoverSide, PopoverTrigger, Progress, type ProgressProps, type PromiseOptions, type RadioColor, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Segmented, SegmentedItem, type SegmentedItemProps, type SegmentedProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectRadius, SelectSeparator, type SelectSize, SelectTrigger, SelectValue, Skeleton, type SkeletonProps, Slider, type SliderColor, type SliderProps, type SortDirection, type SortIconSet, Spinner, type SpinnerProps, Switch, type SwitchColor, type SwitchLabelPosition, type SwitchProps, Table, TableBody, TableCaption, TableCell, type TableCellProps, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, type TableRowProps, type TableSize, type TableVariant, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, type ToastAction, type ToastData, type ToastOptions, type ToastPosition, type ToastSize, type ToastType, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipPortal, TooltipProvider, TooltipRoot, type TooltipRootProps, type TooltipSide, TooltipTrigger, type UsePaginationProps, accordionTriggerVariants, accordionVariants, alertModalContentVariants, alertVariants, avatarColors, avatarVariants, badgeVariants, breadcrumbSizeMap, buttonVariants, cardVariants, checkboxVariants, dividerVariants, drawerSizeHorizontal, drawerSizeVertical, getAvatarColor, getAvatarInitials, iconButtonVariants, inputVariants, linearTrackVariants, metricCardVariants, modalContentVariants, navigationMenuSizeMap, paginationItemVariants, paginationSizeMap, popoverContentVariants, radioGroupVariants, radioItemVariants, segmentedItemVariants, segmentedVariants, skeletonVariants, sliderVariants, spinnerVariants, switchVariants, tabsListVariants, tabsTriggerVariants, textareaVariants, toast, toastVariants, toggleGroupItemVariants, toggleGroupVariants, toggleVariants, tooltipContentVariants, useButtonGroup, useFieldContext, usePagination };
package/dist/index.d.ts CHANGED
@@ -12,7 +12,6 @@ import * as SliderPrimitive from '@radix-ui/react-slider';
12
12
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
13
13
  import * as SelectPrimitive from '@radix-ui/react-select';
14
14
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
15
- import * as RechartsPrimitive from 'recharts';
16
15
  import * as TabsPrimitive from '@radix-ui/react-tabs';
17
16
  import * as DialogPrimitive from '@radix-ui/react-dialog';
18
17
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
@@ -742,165 +741,6 @@ declare namespace Avatar {
742
741
  type GroupProps = AvatarGroupProps;
743
742
  }
744
743
 
745
- declare const THEMES: {
746
- readonly light: "";
747
- readonly dark: ".dark";
748
- };
749
- type ChartConfig = {
750
- [k in string]: {
751
- label?: React.ReactNode;
752
- icon?: React.ComponentType;
753
- } & ({
754
- color?: string;
755
- theme?: never;
756
- } | {
757
- color?: never;
758
- theme: Record<keyof typeof THEMES, string>;
759
- });
760
- };
761
- type ChartContextProps = {
762
- config: ChartConfig;
763
- hoverFade: boolean;
764
- activeIndex: number | null;
765
- setActiveIndex: (index: number | null) => void;
766
- activeDataKey: string | null;
767
- setActiveDataKey: (key: string | null) => void;
768
- };
769
- declare function useChart(): ChartContextProps;
770
- declare function ChartContainer({ id, className, children, config, hoverFade, ...props }: React.ComponentProps<'div'> & {
771
- config: ChartConfig;
772
- /** Enable hover-to-highlight: hovered bar group stays full opacity, others fade. */
773
- hoverFade?: boolean;
774
- children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>['children'];
775
- }): React.JSX.Element;
776
- declare const ChartStyle: ({ id, config }: {
777
- id: string;
778
- config: ChartConfig;
779
- }) => React.JSX.Element;
780
- type ChartBarRadius = 'none' | 'sm' | 'base' | 'md' | 'lg';
781
- type ChartBarVariant = 'solid' | 'outline';
782
- type ChartBarProps = Omit<React.ComponentProps<typeof RechartsPrimitive.Bar>, 'radius'> & {
783
- /** Named radius token. Auto-adapts corners based on layout and stack position. */
784
- radius?: ChartBarRadius;
785
- /** 'horizontal' rounds the right side (away from Y-axis). Default: 'vertical' */
786
- layout?: 'vertical' | 'horizontal';
787
- /** 'bottom' rounds the bottom corners (base of a stack). Default: 'top' */
788
- stackPosition?: 'top' | 'bottom';
789
- /** 'outline' renders a thick border with a semi-transparent fill. Default: 'solid' */
790
- variant?: ChartBarVariant;
791
- };
792
- declare function ChartBar({ radius, layout, stackPosition, variant, fill, stackId, ...props }: ChartBarProps): React.JSX.Element;
793
- declare function ChartTooltip(props: React.ComponentProps<typeof RechartsPrimitive.Tooltip>): React.JSX.Element;
794
- type TooltipPayloadItem = {
795
- dataKey?: string | number;
796
- name?: string;
797
- value?: number | string;
798
- type?: string;
799
- color?: string;
800
- payload?: Record<string, unknown>;
801
- fill?: string;
802
- };
803
- type ChartTooltipContentProps = React.ComponentProps<'div'> & {
804
- active?: boolean;
805
- payload?: TooltipPayloadItem[];
806
- label?: string;
807
- labelFormatter?: (value: unknown, payload: TooltipPayloadItem[]) => React.ReactNode;
808
- labelClassName?: string;
809
- formatter?: (value: unknown, name: string, item: TooltipPayloadItem, index: number, payload: Record<string, unknown>) => React.ReactNode;
810
- color?: string;
811
- hideLabel?: boolean;
812
- hideIndicator?: boolean;
813
- indicator?: 'line' | 'dot' | 'dashed';
814
- nameKey?: string;
815
- labelKey?: string;
816
- };
817
- declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: ChartTooltipContentProps): React.JSX.Element | null;
818
- declare const ChartLegend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
819
- type LegendPayloadItem = {
820
- value?: string;
821
- type?: string;
822
- color?: string;
823
- dataKey?: string;
824
- };
825
- type ChartLegendContentProps = React.ComponentProps<'div'> & {
826
- payload?: LegendPayloadItem[];
827
- verticalAlign?: 'top' | 'middle' | 'bottom';
828
- align?: 'left' | 'center' | 'right';
829
- /** Recharts passes layout when Legend uses layout prop */
830
- layout?: 'horizontal' | 'vertical';
831
- hideIcon?: boolean;
832
- nameKey?: string;
833
- };
834
- declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, align, layout, nameKey, }: ChartLegendContentProps): React.JSX.Element | null;
835
- type ChartXAxisProps = React.ComponentProps<typeof RechartsPrimitive.XAxis>;
836
- type ChartYAxisProps = React.ComponentProps<typeof RechartsPrimitive.YAxis>;
837
- declare function ChartXAxis({ tick, padding, ...props }: ChartXAxisProps): React.JSX.Element;
838
- declare function ChartYAxis({ tick, width, ...props }: ChartYAxisProps): React.JSX.Element;
839
- type ChartLineType = 'linear' | 'monotone' | 'step' | 'natural';
840
- type ChartLineVariant = 'solid' | 'dashed';
841
- type ChartLineProps = Omit<React.ComponentProps<typeof RechartsPrimitive.Line>, 'type' | 'dot' | 'activeDot'> & {
842
- /** Curve interpolation type. Default: 'monotone' */
843
- type?: ChartLineType;
844
- /** Line style. 'dashed' applies stroke-dasharray. Default: 'solid' */
845
- variant?: ChartLineVariant;
846
- /** Show data point dots. Default: true */
847
- dot?: boolean;
848
- /** Show highlighted dot on hover. Default: true */
849
- activeDot?: boolean;
850
- };
851
- declare function ChartLine({ type, variant, dot: showDot, activeDot: showActiveDot, stroke, dataKey, ...props }: ChartLineProps): React.JSX.Element;
852
- type ChartAreaType = 'linear' | 'monotone' | 'step' | 'natural';
853
- type ChartAreaVariant = 'solid' | 'gradient';
854
- type ChartAreaProps = Omit<React.ComponentProps<typeof RechartsPrimitive.Area>, 'type' | 'dot' | 'activeDot'> & {
855
- /** Curve interpolation type. Default: 'monotone' */
856
- type?: ChartAreaType;
857
- /** Fill style. 'gradient' auto-generates an SVG linearGradient. Default: 'solid' */
858
- variant?: ChartAreaVariant;
859
- /** Show data point dots. Default: true */
860
- dot?: boolean;
861
- /** Show highlighted dot on hover. Default: true */
862
- activeDot?: boolean;
863
- /** Fill opacity for this area (0–1). Default: 0.4 */
864
- fillOpacity?: number;
865
- };
866
- declare function ChartArea({ type, variant, dot: showDot, activeDot: showActiveDot, fillOpacity, stroke, fill, dataKey, ...props }: ChartAreaProps): React.JSX.Element;
867
- type ChartPieVariant = 'pie' | 'donut';
868
- type ChartPieLabel = 'none' | 'outside' | 'inside';
869
- type ChartPieLabelContent = 'value' | 'percent';
870
- type ChartPieProps = Omit<React.ComponentProps<typeof RechartsPrimitive.Pie>, 'label' | 'labelLine' | 'activeShape'> & {
871
- /** 'donut' applies innerRadius automatically. Default: 'pie' */
872
- variant?: ChartPieVariant;
873
- /** Label position. Default: 'none' */
874
- label?: ChartPieLabel;
875
- /** Label display content. Default: 'value' */
876
- labelContent?: ChartPieLabelContent;
877
- /** Hover expand effect. Default: true */
878
- activeShape?: boolean;
879
- /** Override inner radius (default: 0 for pie, 60 for donut) */
880
- innerRadius?: number;
881
- /** Padding angle between slices (degrees). Default: 0 */
882
- paddingAngle?: number;
883
- /** Corner radius for slices. Default: 0 */
884
- cornerRadius?: number;
885
- };
886
- declare function ChartPie({ variant, label: labelMode, labelContent, activeShape: showActiveShape, innerRadius, paddingAngle, cornerRadius, startAngle, endAngle, ...props }: ChartPieProps): React.JSX.Element;
887
- declare const Chart: typeof ChartContainer & {
888
- Bar: typeof ChartBar;
889
- Line: typeof ChartLine;
890
- Area: typeof ChartArea;
891
- Pie: typeof ChartPie;
892
- Tooltip: typeof ChartTooltip;
893
- TooltipContent: typeof ChartTooltipContent;
894
- Legend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
895
- LegendContent: typeof ChartLegendContent;
896
- XAxis: typeof ChartXAxis;
897
- YAxis: typeof ChartYAxis;
898
- Style: ({ id, config }: {
899
- id: string;
900
- config: ChartConfig;
901
- }) => React.JSX.Element;
902
- };
903
-
904
744
  declare const metricCardVariants: (props?: ({
905
745
  variant?: "default" | "ghost" | "elevated" | null | undefined;
906
746
  size?: "default" | "sm" | "lg" | null | undefined;
@@ -1793,4 +1633,4 @@ interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement>, VariantPro
1793
1633
  }
1794
1634
  declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
1795
1635
 
1796
- export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, type AlertColor, AlertDescription, type AlertDescriptionProps, AlertModal, AlertModalAction, AlertModalBody, AlertModalCancel, AlertModalContent, type AlertModalContentProps, AlertModalDescription, AlertModalFooter, AlertModalHeader, AlertModalOverlay, AlertModalPortal, AlertModalTitle, AlertModalTrigger, AlertRoot, type AlertRootProps, type AlertSize, AlertTitle, type AlertTitleProps, type AlertVariant, Avatar, type AvatarColorVariant, AvatarFallback, type AvatarFallbackProps, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarStatus, Badge, type BadgeColor, type BadgeProps, type BadgeRadius, type BadgeSize, type BadgeVariant, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, type BreadcrumbProps, BreadcrumbSeparator, Button, type ButtonColor, ButtonGroup, type ButtonGroupProps, type ButtonProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, type CardProps, type CardRadius, CardTitle, type CardTitleProps, type CardVariant, Chart, ChartArea, type ChartAreaType, type ChartAreaVariant, ChartBar, type ChartBarRadius, type ChartBarVariant, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartLine, type ChartLineType, type ChartLineVariant, ChartPie, type ChartPieLabel, type ChartPieLabelContent, type ChartPieVariant, ChartStyle, ChartTooltip, ChartTooltipContent, ChartXAxis, ChartYAxis, Checkbox, type CheckboxColor, type CheckboxProps, Divider, type DividerProps, Drawer, DrawerBody, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerRoot, type DrawerSide, type DrawerSize, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadius, DropdownMenuSeparator, DropdownMenuShortcut, type DropdownMenuSize, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, FieldCharCount, FieldError, FieldLabel, type FieldLabelProps, type FieldProps, IconButton, type IconButtonProps, Input, type InputProps, MetricCard, MetricCardDescription, type MetricCardDescriptionProps, MetricCardHeader, type MetricCardHeaderProps, type MetricCardProps, type MetricCardRadius, type MetricCardSize, MetricCardSymbol, type MetricCardSymbolProps, MetricCardTitle, type MetricCardTitleProps, MetricCardTrend, type MetricCardTrendDirection, type MetricCardTrendProps, MetricCardValue, type MetricCardValueProps, type MetricCardVariant, Modal, ModalBody, ModalClose, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, NavigationMenu, NavigationMenuContent, type NavigationMenuContentProps, NavigationMenuGroup, type NavigationMenuGroupProps, NavigationMenuIndicator, type NavigationMenuIndicatorProps, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkProps, NavigationMenuList, type NavigationMenuListProps, type NavigationMenuProps, type NavigationMenuRadius, NavigationMenuTrigger, type NavigationMenuTriggerProps, NavigationMenuViewport, type NavigationMenuViewportProps, type OrbitStyle, Pagination, type PaginationColor, PaginationContent, PaginationEllipsis, PaginationFirst, type PaginationFirstProps, PaginationItem, PaginationItems, PaginationLast, type PaginationLastProps, PaginationLink, type PaginationLinkProps, PaginationNext, type PaginationNextProps, PaginationPrevious, type PaginationPreviousProps, type PaginationProps, type PaginationRadius, type PaginationRange, type PaginationSize, type PaginationVariant, Popover, PopoverAnchor, PopoverArrow, PopoverClose, PopoverContent, type PopoverContentProps, PopoverPortal, PopoverRoot, type PopoverRootProps, type PopoverSide, PopoverTrigger, Progress, type ProgressProps, type PromiseOptions, type RadioColor, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Segmented, SegmentedItem, type SegmentedItemProps, type SegmentedProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectRadius, SelectSeparator, type SelectSize, SelectTrigger, SelectValue, Skeleton, type SkeletonProps, Slider, type SliderColor, type SliderProps, type SortDirection, type SortIconSet, Spinner, type SpinnerProps, Switch, type SwitchColor, type SwitchLabelPosition, type SwitchProps, Table, TableBody, TableCaption, TableCell, type TableCellProps, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, type TableRowProps, type TableSize, type TableVariant, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, type ToastAction, type ToastData, type ToastOptions, type ToastPosition, type ToastSize, type ToastType, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipPortal, TooltipProvider, TooltipRoot, type TooltipRootProps, type TooltipSide, TooltipTrigger, type UsePaginationProps, accordionTriggerVariants, accordionVariants, alertModalContentVariants, alertVariants, avatarColors, avatarVariants, badgeVariants, breadcrumbSizeMap, buttonVariants, cardVariants, checkboxVariants, dividerVariants, drawerSizeHorizontal, drawerSizeVertical, getAvatarColor, getAvatarInitials, iconButtonVariants, inputVariants, linearTrackVariants, metricCardVariants, modalContentVariants, navigationMenuSizeMap, paginationItemVariants, paginationSizeMap, popoverContentVariants, radioGroupVariants, radioItemVariants, segmentedItemVariants, segmentedVariants, skeletonVariants, sliderVariants, spinnerVariants, switchVariants, tabsListVariants, tabsTriggerVariants, textareaVariants, toast, toastVariants, toggleGroupItemVariants, toggleGroupVariants, toggleVariants, tooltipContentVariants, useButtonGroup, useChart, useFieldContext, usePagination };
1636
+ export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, type AlertColor, AlertDescription, type AlertDescriptionProps, AlertModal, AlertModalAction, AlertModalBody, AlertModalCancel, AlertModalContent, type AlertModalContentProps, AlertModalDescription, AlertModalFooter, AlertModalHeader, AlertModalOverlay, AlertModalPortal, AlertModalTitle, AlertModalTrigger, AlertRoot, type AlertRootProps, type AlertSize, AlertTitle, type AlertTitleProps, type AlertVariant, Avatar, type AvatarColorVariant, AvatarFallback, type AvatarFallbackProps, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarStatus, Badge, type BadgeColor, type BadgeProps, type BadgeRadius, type BadgeSize, type BadgeVariant, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, type BreadcrumbProps, BreadcrumbSeparator, Button, type ButtonColor, ButtonGroup, type ButtonGroupProps, type ButtonProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, type CardProps, type CardRadius, CardTitle, type CardTitleProps, type CardVariant, Checkbox, type CheckboxColor, type CheckboxProps, Divider, type DividerProps, Drawer, DrawerBody, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerRoot, type DrawerSide, type DrawerSize, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadius, DropdownMenuSeparator, DropdownMenuShortcut, type DropdownMenuSize, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, FieldCharCount, FieldError, FieldLabel, type FieldLabelProps, type FieldProps, IconButton, type IconButtonProps, Input, type InputProps, MetricCard, MetricCardDescription, type MetricCardDescriptionProps, MetricCardHeader, type MetricCardHeaderProps, type MetricCardProps, type MetricCardRadius, type MetricCardSize, MetricCardSymbol, type MetricCardSymbolProps, MetricCardTitle, type MetricCardTitleProps, MetricCardTrend, type MetricCardTrendDirection, type MetricCardTrendProps, MetricCardValue, type MetricCardValueProps, type MetricCardVariant, Modal, ModalBody, ModalClose, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, NavigationMenu, NavigationMenuContent, type NavigationMenuContentProps, NavigationMenuGroup, type NavigationMenuGroupProps, NavigationMenuIndicator, type NavigationMenuIndicatorProps, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkProps, NavigationMenuList, type NavigationMenuListProps, type NavigationMenuProps, type NavigationMenuRadius, NavigationMenuTrigger, type NavigationMenuTriggerProps, NavigationMenuViewport, type NavigationMenuViewportProps, type OrbitStyle, Pagination, type PaginationColor, PaginationContent, PaginationEllipsis, PaginationFirst, type PaginationFirstProps, PaginationItem, PaginationItems, PaginationLast, type PaginationLastProps, PaginationLink, type PaginationLinkProps, PaginationNext, type PaginationNextProps, PaginationPrevious, type PaginationPreviousProps, type PaginationProps, type PaginationRadius, type PaginationRange, type PaginationSize, type PaginationVariant, Popover, PopoverAnchor, PopoverArrow, PopoverClose, PopoverContent, type PopoverContentProps, PopoverPortal, PopoverRoot, type PopoverRootProps, type PopoverSide, PopoverTrigger, Progress, type ProgressProps, type PromiseOptions, type RadioColor, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Segmented, SegmentedItem, type SegmentedItemProps, type SegmentedProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectRadius, SelectSeparator, type SelectSize, SelectTrigger, SelectValue, Skeleton, type SkeletonProps, Slider, type SliderColor, type SliderProps, type SortDirection, type SortIconSet, Spinner, type SpinnerProps, Switch, type SwitchColor, type SwitchLabelPosition, type SwitchProps, Table, TableBody, TableCaption, TableCell, type TableCellProps, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, type TableRowProps, type TableSize, type TableVariant, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, type ToastAction, type ToastData, type ToastOptions, type ToastPosition, type ToastSize, type ToastType, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipPortal, TooltipProvider, TooltipRoot, type TooltipRootProps, type TooltipSide, TooltipTrigger, type UsePaginationProps, accordionTriggerVariants, accordionVariants, alertModalContentVariants, alertVariants, avatarColors, avatarVariants, badgeVariants, breadcrumbSizeMap, buttonVariants, cardVariants, checkboxVariants, dividerVariants, drawerSizeHorizontal, drawerSizeVertical, getAvatarColor, getAvatarInitials, iconButtonVariants, inputVariants, linearTrackVariants, metricCardVariants, modalContentVariants, navigationMenuSizeMap, paginationItemVariants, paginationSizeMap, popoverContentVariants, radioGroupVariants, radioItemVariants, segmentedItemVariants, segmentedVariants, skeletonVariants, sliderVariants, spinnerVariants, switchVariants, tabsListVariants, tabsTriggerVariants, textareaVariants, toast, toastVariants, toggleGroupItemVariants, toggleGroupVariants, toggleVariants, tooltipContentVariants, useButtonGroup, useFieldContext, usePagination };