@usetheo/ui 0.14.0 → 0.15.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.
@@ -26,7 +26,7 @@ export interface MetricCardDelta {
26
26
  /** Trend direction — drives icon and color (subject to `invertTrend`). */
27
27
  trend: MetricCardTrend;
28
28
  }
29
- export interface MetricCardProps extends HTMLAttributes<HTMLDivElement> {
29
+ export interface MetricCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
30
30
  /** Metric label (e.g., "Revenue", "Active Users"). */
31
31
  title: string;
32
32
  /** Headline value (e.g., "$12,345", "1,234"). */
@@ -20,7 +20,7 @@ import type { HTMLAttributes, ReactNode } from "react";
20
20
  * />
21
21
  */
22
22
  export type AlertIntent = "info" | "success" | "warning" | "destructive";
23
- export interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, "title" | "role"> {
23
+ export interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, "title" | "role" | "children"> {
24
24
  intent?: AlertIntent;
25
25
  title?: ReactNode;
26
26
  description?: ReactNode;
@@ -1,6 +1,6 @@
1
1
  import type { HTMLAttributes, ReactNode } from "react";
2
2
  import type { IconComponent } from "../../../lib/types.js";
3
- interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
3
+ interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, "title" | "children"> {
4
4
  /** Icon shown above the title. */
5
5
  icon?: IconComponent;
6
6
  title: ReactNode;
@@ -23,7 +23,7 @@ import type { HTMLAttributes } from "react";
23
23
  * Used by `<AccountMenu>` inline with the user name; usable standalone.
24
24
  */
25
25
  export type PlanTier = "free" | "hobby" | "pro" | "team" | "enterprise";
26
- export interface PlanBadgeProps extends HTMLAttributes<HTMLSpanElement> {
26
+ export interface PlanBadgeProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children"> {
27
27
  /** Plan tier identifier. */
28
28
  plan: PlanTier;
29
29
  /** Override the display label. Defaults to the capitalized tier name. */
@@ -15,7 +15,7 @@ import type { ButtonHTMLAttributes, ElementType, ReactNode } from "react";
15
15
  * <StatTile value="$1,234" label="MRR" icon={DollarSign}
16
16
  * delta={{ value: "+12%", trend: "up" }} onClick={openBilling} />
17
17
  */
18
- export interface StatTileProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type" | "value"> {
18
+ export interface StatTileProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type" | "value" | "children"> {
19
19
  value: ReactNode;
20
20
  label: ReactNode;
21
21
  icon?: ElementType;
@@ -5,7 +5,7 @@ import { type HTMLAttributes } from "react";
5
5
  * Controlled. Dismiss persistence (localStorage/cookie/etc) is the consumer's
6
6
  * responsibility (per EC-16 DOCUMENT). Component just fires `onDismiss`.
7
7
  */
8
- export interface UpdateBannerProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
8
+ export interface UpdateBannerProps extends Omit<HTMLAttributes<HTMLDivElement>, "title" | "children"> {
9
9
  currentVersion: string;
10
10
  latestVersion: string;
11
11
  onUpdate: () => void;
package/dist/index.js CHANGED
@@ -2480,7 +2480,7 @@ var TREND = {
2480
2480
  flat: { icon: Minus, color: "text-muted-foreground" }
2481
2481
  };
2482
2482
  var StatTile = forwardRef(
2483
- ({ className, value, label, icon: Icon2, delta, onClick, children: _children, ...props }, ref) => {
2483
+ ({ className, value, label, icon: Icon2, delta, onClick, ...props }, ref) => {
2484
2484
  const isInteractive = onClick !== void 0;
2485
2485
  const TrendIcon2 = delta !== void 0 ? TREND[delta.trend].icon : null;
2486
2486
  const trendColor2 = delta !== void 0 ? TREND[delta.trend].color : "";
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@usetheo/ui",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
+ "packageManager": "pnpm@10.32.1+sha512.a706938f0e89ac1456b6563eab4edf1d1faf3368d1191fc5c59790e96dc918e4456ab2e67d613de1043d2e8c81f87303e6b40d4ffeca9df15ef1ad567348f2be",
4
5
  "type": "module",
5
6
  "license": "Apache-2.0",
6
7
  "description": "Violet Forge design system — generic React components + primitives (the non-AI foundation of @theokit/ui).",