@ai-matrx/design-system 0.5.2 → 0.6.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/index.d.cts CHANGED
@@ -66,8 +66,8 @@ interface BottomSheetFooterProps {
66
66
  declare function BottomSheetFooter({ children, className, }: BottomSheetFooterProps): React.JSX.Element;
67
67
 
68
68
  declare const buttonVariants: (props?: ({
69
- variant?: "default" | "secondary" | "destructive" | "outline" | "link" | "ghost" | "subtle" | null | undefined;
70
- size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | null | undefined;
69
+ variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "link" | "primary" | "ghost" | "subtle" | null | undefined;
70
+ size?: "default" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "icon" | "icon-sm" | "roundIcon" | null | undefined;
71
71
  } & class_variance_authority_types.ClassProp) | undefined) => string;
72
72
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
73
73
  asChild?: boolean;
package/dist/index.d.ts CHANGED
@@ -66,8 +66,8 @@ interface BottomSheetFooterProps {
66
66
  declare function BottomSheetFooter({ children, className, }: BottomSheetFooterProps): React.JSX.Element;
67
67
 
68
68
  declare const buttonVariants: (props?: ({
69
- variant?: "default" | "secondary" | "destructive" | "outline" | "link" | "ghost" | "subtle" | null | undefined;
70
- size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | null | undefined;
69
+ variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "link" | "primary" | "ghost" | "subtle" | null | undefined;
70
+ size?: "default" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "icon" | "icon-sm" | "roundIcon" | null | undefined;
71
71
  } & class_variance_authority_types.ClassProp) | undefined) => string;
72
72
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
73
73
  asChild?: boolean;
package/dist/index.js CHANGED
@@ -357,19 +357,43 @@ var buttonVariants = cva2(
357
357
  variants: {
358
358
  variant: {
359
359
  default: "bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",
360
+ /**
361
+ * An explicit spelling of `default`, identical by construction. It is
362
+ * not decoration: matrx-frontend's `ButtonMine` fork carried it, ~17
363
+ * call sites say `variant="primary"`, and the alternative to keeping
364
+ * the word was a host shim translating a prop — the massage C22 bans.
365
+ */
366
+ primary: "bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",
360
367
  destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
368
+ /** The affirmative twin of `destructive` — confirm, approve, publish. */
369
+ success: "bg-success text-success-foreground shadow-sm hover:bg-success/90",
361
370
  outline: "border border-border bg-card shadow-sm hover:bg-accent hover:text-accent-foreground",
362
371
  secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
363
372
  ghost: "hover:bg-accent hover:text-accent-foreground",
364
373
  link: "text-primary underline-offset-4 hover:underline",
365
374
  subtle: "border border-transparent bg-muted/50 text-foreground hover:border-border hover:bg-muted"
366
375
  },
376
+ /**
377
+ * ONE size scale, xs → 3xl, plus the two icon boxes. The top and bottom
378
+ * of the scale came in from matrx-frontend's `ButtonMine` fork (2026-09-07):
379
+ * a dense toolbar needs `xs`, and a marketing/hero call to action needs
380
+ * `xl`+. A host that has to reach outside this scale forks the button,
381
+ * which is exactly how `ButtonMine` was born.
382
+ */
367
383
  size: {
368
- default: "h-9 px-4 py-2",
384
+ xs: "h-6 rounded-md px-1 text-xs",
369
385
  sm: "h-8 rounded-md px-3 text-xs",
386
+ default: "h-9 px-4 py-2",
387
+ /** An explicit spelling of `default` (the fork's middle rung). */
388
+ md: "h-9 px-4 py-2",
370
389
  lg: "h-10 rounded-md px-6",
390
+ xl: "h-12 px-8 py-3 text-base",
391
+ "2xl": "h-14 px-10 py-3 text-base",
392
+ "3xl": "h-16 px-12 py-3 text-base",
371
393
  icon: "h-9 w-9",
372
- "icon-sm": "h-7 w-7"
394
+ "icon-sm": "h-7 w-7",
395
+ /** A circular icon box — an avatar-shaped control, not a square one. */
396
+ roundIcon: "h-8 w-8 rounded-full p-0"
373
397
  }
374
398
  },
375
399
  defaultVariants: {