@trading-game/design-intelligence-layer 0.12.2 → 0.12.4

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
@@ -29,7 +29,7 @@ declare function AlertTitle({ className, ...props }: React$1.ComponentProps<"div
29
29
  declare function AlertDescription({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
30
30
 
31
31
  declare const buttonVariants: (props?: ({
32
- variant?: "primary" | "secondary" | "tertiary" | null | undefined;
32
+ variant?: "primary" | "primary-inverse" | "secondary" | "secondary-inverse" | "tertiary" | null | undefined;
33
33
  size?: "lg" | "md" | "sm" | "xs" | "icon" | "icon-lg" | "icon-md" | "icon-sm" | "icon-xs" | null | undefined;
34
34
  } & class_variance_authority_types.ClassProp) | undefined) => string;
35
35
  declare function Button({ className, variant, size, asChild, loading, children, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
package/dist/index.d.ts CHANGED
@@ -29,7 +29,7 @@ declare function AlertTitle({ className, ...props }: React$1.ComponentProps<"div
29
29
  declare function AlertDescription({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
30
30
 
31
31
  declare const buttonVariants: (props?: ({
32
- variant?: "primary" | "secondary" | "tertiary" | null | undefined;
32
+ variant?: "primary" | "primary-inverse" | "secondary" | "secondary-inverse" | "tertiary" | null | undefined;
33
33
  size?: "lg" | "md" | "sm" | "xs" | "icon" | "icon-lg" | "icon-md" | "icon-sm" | "icon-xs" | null | undefined;
34
34
  } & class_variance_authority_types.ClassProp) | undefined) => string;
35
35
  declare function Button({ className, variant, size, asChild, loading, children, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
package/dist/index.js CHANGED
@@ -228,7 +228,11 @@ var buttonVariants = cva2(
228
228
  variant: {
229
229
  // Primary brand blue (#2323FF)
230
230
  primary: "bg-primary text-on-prominent-static-inverse hover:bg-primary-hover",
231
+ // Primary Inverse — white bg + blue text; for use on dark/coloured surfaces
232
+ "primary-inverse": "bg-on-prominent-static-inverse text-primary hover:bg-on-prominent-static-inverse/80",
231
233
  secondary: "bg-transparent border-[1.5px] border-border-prominent text-on-prominent hover:bg-secondary-hover",
234
+ // Secondary Inverse — white border + white text; for use on dark/coloured surfaces
235
+ "secondary-inverse": "bg-transparent border-[1.5px] border-on-prominent-static-inverse text-on-prominent-static-inverse hover:bg-on-prominent-static-inverse/10",
232
236
  tertiary: "bg-transparent text-primary hover:bg-primary/[0.08]"
233
237
  },
234
238
  size: {
@@ -239,7 +243,7 @@ var buttonVariants = cva2(
239
243
  icon: "size-12 rounded-xs [&_svg:not([class*='size-'])]:size-4",
240
244
  "icon-lg": "size-12 rounded-xs [&_svg:not([class*='size-'])]:size-4",
241
245
  "icon-md": "size-10 rounded-xs [&_svg:not([class*='size-'])]:size-4",
242
- "icon-sm": "size-7 rounded-xs [&_svg:not([class*='size-'])]:size-4",
246
+ "icon-sm": "size-8 rounded-xs [&_svg:not([class*='size-'])]:size-[14px]",
243
247
  "icon-xs": "size-6 rounded-xs [&_svg:not([class*='size-'])]:size-3"
244
248
  }
245
249
  },