Compare commits

...

2 Commits

Author SHA1 Message Date
f40845723d Update prop expansion on components 2026-02-12 21:30:04 -05:00
45ff84b106 Update message blocks 2026-02-12 21:29:48 -05:00
44 changed files with 44 additions and 44 deletions

View File

@@ -19,7 +19,6 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>(({
data-testid="mattrixwv-button" data-testid="mattrixwv-button"
ref={ref} ref={ref}
type={type} type={type}
{...buttonProps}
disabled={disabled} disabled={disabled}
className={clsx( className={clsx(
className, className,
@@ -57,6 +56,7 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>(({
"cursor-not-allowed opacity-75": disabled "cursor-not-allowed opacity-75": disabled
} }
)} )}
{...buttonProps}
/> />
); );
}); });

View File

@@ -14,7 +14,6 @@ const DangerButton = forwardRef<HTMLButtonElement, ButtonProps>(({
return ( return (
<Button <Button
data-testid="mattrixwv-danger-button" data-testid="mattrixwv-danger-button"
{...buttonProps}
ref={ref} ref={ref}
variant={variant} variant={variant}
disabled={disabled} disabled={disabled}
@@ -42,6 +41,7 @@ const DangerButton = forwardRef<HTMLButtonElement, ButtonProps>(({
"text-danger hover:text-white active:text-white": (variant === "ghost" || variant === "outline-ghost") && (!disabled) "text-danger hover:text-white active:text-white": (variant === "ghost" || variant === "outline-ghost") && (!disabled)
} }
)} )}
{...buttonProps}
/> />
); );
}); });

View File

@@ -13,7 +13,6 @@ const DarkButton = forwardRef<HTMLButtonElement, ButtonProps>(({
return ( return (
<Button <Button
data-testid="mattrixwv-dark-button" data-testid="mattrixwv-dark-button"
{...buttonProps}
ref={ref} ref={ref}
variant={variant} variant={variant}
disabled={disabled} disabled={disabled}
@@ -41,6 +40,7 @@ const DarkButton = forwardRef<HTMLButtonElement, ButtonProps>(({
"text-dark hover:text-white active:text-white": (variant === "ghost" || variant === "outline-ghost") && (!disabled) "text-dark hover:text-white active:text-white": (variant === "ghost" || variant === "outline-ghost") && (!disabled)
} }
)} )}
{...buttonProps}
/> />
); );
}); });

View File

@@ -13,7 +13,6 @@ const InfoButton = forwardRef<HTMLButtonElement, ButtonProps>(({
return ( return (
<Button <Button
data-testid="mattrixwv-info-button" data-testid="mattrixwv-info-button"
{...buttonProps}
variant={variant} variant={variant}
disabled={disabled} disabled={disabled}
ref={ref} ref={ref}
@@ -41,6 +40,7 @@ const InfoButton = forwardRef<HTMLButtonElement, ButtonProps>(({
"text-info hover:text-black active:text-black": (variant === "ghost" || variant === "outline-ghost") && (!disabled) "text-info hover:text-black active:text-black": (variant === "ghost" || variant === "outline-ghost") && (!disabled)
} }
)} )}
{...buttonProps}
/> />
); );
}); });

View File

@@ -13,7 +13,6 @@ const LightButton = forwardRef<HTMLButtonElement, ButtonProps>(({
return ( return (
<Button <Button
data-testid="mattrixwv-light-button" data-testid="mattrixwv-light-button"
{...buttonProps}
ref={ref} ref={ref}
variant={variant} variant={variant}
disabled={disabled} disabled={disabled}
@@ -41,6 +40,7 @@ const LightButton = forwardRef<HTMLButtonElement, ButtonProps>(({
"text-light hover:text-black active:text-black": (variant === "ghost" || variant === "outline-ghost") && (!disabled) "text-light hover:text-black active:text-black": (variant === "ghost" || variant === "outline-ghost") && (!disabled)
} }
)} )}
{...buttonProps}
/> />
); );
}); });

View File

@@ -13,7 +13,6 @@ const MoltenButton = forwardRef<HTMLButtonElement, ButtonProps>(({
return ( return (
<Button <Button
data-testid="mattrixwv-molten-button" data-testid="mattrixwv-molten-button"
{...buttonProps}
ref={ref} ref={ref}
variant={variant} variant={variant}
disabled={disabled} disabled={disabled}
@@ -41,6 +40,7 @@ const MoltenButton = forwardRef<HTMLButtonElement, ButtonProps>(({
"text-molten hover:text-black active:text-black": (variant === "ghost" || variant === "outline-ghost") && (!disabled) "text-molten hover:text-black active:text-black": (variant === "ghost" || variant === "outline-ghost") && (!disabled)
} }
)} )}
{...buttonProps}
/> />
); );
}); });

View File

@@ -13,7 +13,6 @@ const PrimaryButton = forwardRef<HTMLButtonElement, ButtonProps>(({
return ( return (
<Button <Button
data-testid="mattrixwv-primary-button" data-testid="mattrixwv-primary-button"
{...buttonProps}
ref={ref} ref={ref}
variant={variant} variant={variant}
disabled={disabled} disabled={disabled}
@@ -41,6 +40,7 @@ const PrimaryButton = forwardRef<HTMLButtonElement, ButtonProps>(({
"text-primary hover:text-white active:text-white": (variant === "ghost" || variant === "outline-ghost") && (!disabled) "text-primary hover:text-white active:text-white": (variant === "ghost" || variant === "outline-ghost") && (!disabled)
} }
)} )}
{...buttonProps}
/> />
); );
}); });

View File

@@ -13,7 +13,6 @@ const SecondaryButton = forwardRef<HTMLButtonElement, ButtonProps>(({
return ( return (
<Button <Button
data-testid="mattrixwv-secondary-button" data-testid="mattrixwv-secondary-button"
{...buttonProps}
ref={ref} ref={ref}
variant={variant} variant={variant}
disabled={disabled} disabled={disabled}
@@ -41,6 +40,7 @@ const SecondaryButton = forwardRef<HTMLButtonElement, ButtonProps>(({
"text-secondary hover:text-white active:text-white": (variant === "ghost" || variant === "outline-ghost") && (!disabled) "text-secondary hover:text-white active:text-white": (variant === "ghost" || variant === "outline-ghost") && (!disabled)
} }
)} )}
{...buttonProps}
/> />
); );
}); });

View File

@@ -13,7 +13,6 @@ const SuccessButton = forwardRef<HTMLButtonElement, ButtonProps>(({
return ( return (
<Button <Button
data-testid="mattrixwv-success-button" data-testid="mattrixwv-success-button"
{...buttonProps}
ref={ref} ref={ref}
variant={variant} variant={variant}
disabled={disabled} disabled={disabled}
@@ -41,6 +40,7 @@ const SuccessButton = forwardRef<HTMLButtonElement, ButtonProps>(({
"text-success hover:text-black active:text-black": (variant === "ghost" || variant === "outline-ghost") && (!disabled) "text-success hover:text-black active:text-black": (variant === "ghost" || variant === "outline-ghost") && (!disabled)
} }
)} )}
{...buttonProps}
/> />
); );
}); });

View File

@@ -13,7 +13,6 @@ const TertiaryButton = forwardRef<HTMLButtonElement, ButtonProps>(({
return ( return (
<Button <Button
data-testid="mattrixwv-tertiary-button" data-testid="mattrixwv-tertiary-button"
{...buttonProps}
ref={ref} ref={ref}
variant={variant} variant={variant}
disabled={disabled} disabled={disabled}
@@ -41,6 +40,7 @@ const TertiaryButton = forwardRef<HTMLButtonElement, ButtonProps>(({
"text-tertiary hover:text-white active:text-white": (variant === "ghost" || variant === "outline-ghost") && (!disabled) "text-tertiary hover:text-white active:text-white": (variant === "ghost" || variant === "outline-ghost") && (!disabled)
} }
)} )}
{...buttonProps}
/> />
); );
}); });

View File

@@ -13,7 +13,6 @@ const WarningButton = forwardRef<HTMLButtonElement, ButtonProps>(({
return ( return (
<Button <Button
data-testid="mattrixwv-warning-button" data-testid="mattrixwv-warning-button"
{...buttonProps}
ref={ref} ref={ref}
variant={variant} variant={variant}
disabled={disabled} disabled={disabled}
@@ -41,6 +40,7 @@ const WarningButton = forwardRef<HTMLButtonElement, ButtonProps>(({
"text-warning hover:text-black active:text-black": (variant === "ghost" || variant === "outline-ghost") && (!disabled) "text-warning hover:text-black active:text-black": (variant === "ghost" || variant === "outline-ghost") && (!disabled)
} }
)} )}
{...buttonProps}
/> />
); );
}); });

View File

@@ -19,8 +19,8 @@ const DangerCheckbox = forwardRef<HTMLInputElement, CheckboxProps>(({
} }
)} )}
showBox={showBox} showBox={showBox}
{...props}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -19,8 +19,8 @@ const DarkCheckbox = forwardRef<HTMLInputElement, CheckboxProps>(({
} }
)} )}
showBox={showBox} showBox={showBox}
{...props}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -19,8 +19,8 @@ const InfoCheckbox = forwardRef<HTMLInputElement, CheckboxProps>(({
} }
)} )}
showBox={showBox} showBox={showBox}
{...props}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -19,8 +19,8 @@ const LightCheckbox = forwardRef<HTMLInputElement, CheckboxProps>(({
} }
)} )}
showBox={showBox} showBox={showBox}
{...props}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -19,8 +19,8 @@ const MoltenCheckbox = forwardRef<HTMLInputElement, CheckboxProps>(({
} }
)} )}
showBox={showBox} showBox={showBox}
{...props}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -19,8 +19,8 @@ const PrimaryCheckbox = forwardRef<HTMLInputElement, CheckboxProps>(({
} }
)} )}
showBox={showBox} showBox={showBox}
{...props}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -19,8 +19,8 @@ const SecondaryCheckbox = forwardRef<HTMLInputElement, CheckboxProps>(({
} }
)} )}
showBox={showBox} showBox={showBox}
{...props}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -19,8 +19,8 @@ const SuccessCheckbox = forwardRef<HTMLInputElement, CheckboxProps>(({
} }
)} )}
showBox={showBox} showBox={showBox}
{...props}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -19,8 +19,8 @@ const TertiaryCheckbox = forwardRef<HTMLInputElement, CheckboxProps>(({
} }
)} )}
showBox={showBox} showBox={showBox}
{...props}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -19,8 +19,8 @@ const WarningCheckbox = forwardRef<HTMLInputElement, CheckboxProps>(({
} }
)} )}
showBox={showBox} showBox={showBox}
{...props}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -14,8 +14,8 @@ const DarkRadioButton = forwardRef<HTMLInputElement, RadioButtonProps>(({
"group-data-checked:bg-dark", "group-data-checked:bg-dark",
className className
)} )}
{...props}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -12,7 +12,6 @@ const DangerSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
}, ref ) => { }, ref ) => {
return ( return (
<MattrixwvSwitch <MattrixwvSwitch
{...props}
className={clsx( className={clsx(
"bg-neutral-mid", "bg-neutral-mid",
className, className,
@@ -30,6 +29,7 @@ const DangerSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
)} )}
disabled={disabled} disabled={disabled}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -12,7 +12,6 @@ const DarkSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
}, ref ) => { }, ref ) => {
return ( return (
<MattrixwvSwitch <MattrixwvSwitch
{...props}
className={clsx( className={clsx(
"bg-neutral-mid", "bg-neutral-mid",
className, className,
@@ -30,6 +29,7 @@ const DarkSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
)} )}
disabled={disabled} disabled={disabled}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -12,7 +12,6 @@ const InfoSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
}, ref ) => { }, ref ) => {
return ( return (
<MattrixwvSwitch <MattrixwvSwitch
{...props}
className={clsx( className={clsx(
"bg-gray-400", "bg-gray-400",
className, className,
@@ -30,6 +29,7 @@ const InfoSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
)} )}
disabled={disabled} disabled={disabled}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -12,7 +12,6 @@ const LightSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
}, ref ) => { }, ref ) => {
return ( return (
<MattrixwvSwitch <MattrixwvSwitch
{...props}
className={clsx( className={clsx(
"bg-neutral-mid", "bg-neutral-mid",
className, className,
@@ -30,6 +29,7 @@ const LightSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
)} )}
disabled={disabled} disabled={disabled}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -12,7 +12,6 @@ const MoltenSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
}, ref ) => { }, ref ) => {
return ( return (
<MattrixwvSwitch <MattrixwvSwitch
{...props}
className={clsx( className={clsx(
"bg-neutral-mid", "bg-neutral-mid",
className, className,
@@ -30,6 +29,7 @@ const MoltenSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
)} )}
disabled={disabled} disabled={disabled}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -12,7 +12,6 @@ const PrimarySwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
}, ref ) => { }, ref ) => {
return ( return (
<MattrixwvSwitch <MattrixwvSwitch
{...props}
className={clsx( className={clsx(
"bg-neutral-mid", "bg-neutral-mid",
className, className,
@@ -30,6 +29,7 @@ const PrimarySwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
)} )}
disabled={disabled} disabled={disabled}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -12,7 +12,6 @@ const SecondarySwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
}, ref ) => { }, ref ) => {
return ( return (
<MattrixwvSwitch <MattrixwvSwitch
{...props}
className={clsx( className={clsx(
"bg-neutral-mid", "bg-neutral-mid",
className, className,
@@ -30,6 +29,7 @@ const SecondarySwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
)} )}
disabled={disabled} disabled={disabled}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -12,7 +12,6 @@ const SuccessDangerSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(
}, ref ) => { }, ref ) => {
return ( return (
<MattrixwvSwitch <MattrixwvSwitch
{...props}
className={clsx( className={clsx(
className, className,
{ {
@@ -29,6 +28,7 @@ const SuccessDangerSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(
)} )}
disabled={disabled} disabled={disabled}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -12,7 +12,6 @@ const SuccessSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
}, ref ) => { }, ref ) => {
return ( return (
<MattrixwvSwitch <MattrixwvSwitch
{...props}
className={clsx( className={clsx(
"bg-neutral-mid", "bg-neutral-mid",
className, className,
@@ -30,6 +29,7 @@ const SuccessSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
)} )}
disabled={disabled} disabled={disabled}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -12,7 +12,6 @@ const TertiarySwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
}, ref ) => { }, ref ) => {
return ( return (
<MattrixwvSwitch <MattrixwvSwitch
{...props}
className={clsx( className={clsx(
"bg-gray-400", "bg-gray-400",
className, className,
@@ -30,6 +29,7 @@ const TertiarySwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
)} )}
disabled={disabled} disabled={disabled}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -12,7 +12,6 @@ const WarningSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
}, ref ) => { }, ref ) => {
return ( return (
<MattrixwvSwitch <MattrixwvSwitch
{...props}
className={clsx( className={clsx(
"bg-neutral-mid", "bg-neutral-mid",
className, className,
@@ -30,6 +29,7 @@ const WarningSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
)} )}
disabled={disabled} disabled={disabled}
ref={ref} ref={ref}
{...props}
/> />
); );
}); });

View File

@@ -11,12 +11,12 @@ const DangerMessageBlock = forwardRef<HTMLDivElement, MessageBlockProps>(({
return ( return (
<MessageBlock <MessageBlock
data-testid="mattrixwv-danger-message-block" data-testid="mattrixwv-danger-message-block"
{...messageProps}
className={clsx( className={clsx(
className, className,
"bg-danger-xlight text-danger-dark" "bg-danger-xlight text-danger-dark"
)} )}
ref={ref} ref={ref}
{...messageProps}
/> />
); );
}); });

View File

@@ -11,12 +11,12 @@ const DarkMessageBlock = forwardRef<HTMLDivElement, MessageBlockProps>(({
return ( return (
<MessageBlock <MessageBlock
data-testid="mattrixwv-dark-message-block" data-testid="mattrixwv-dark-message-block"
{...messageProps}
className={clsx( className={clsx(
className, className,
"bg-dark text-dark-xlight" "bg-dark text-dark-xlight"
)} )}
ref={ref} ref={ref}
{...messageProps}
/> />
); );
}); });

View File

@@ -11,12 +11,12 @@ const InfoMessageBlock = forwardRef<HTMLDivElement, MessageBlockProps>(({
return ( return (
<MessageBlock <MessageBlock
data-testid="mattrixwv-info-message-block" data-testid="mattrixwv-info-message-block"
{...messageProps}
className={clsx( className={clsx(
className, className,
"bg-info-xlight text-info-xdark" "bg-info-xlight text-info-xdark"
)} )}
ref={ref} ref={ref}
{...messageProps}
/> />
); );
}); });

View File

@@ -11,12 +11,12 @@ const LightMessageBlock = forwardRef<HTMLDivElement, MessageBlockProps>(({
return ( return (
<MessageBlock <MessageBlock
data-testid="mattrixwv-light-message-block" data-testid="mattrixwv-light-message-block"
{...messageProps}
className={clsx( className={clsx(
className, className,
"bg-white text-black" "bg-white text-black"
)} )}
ref={ref} ref={ref}
{...messageProps}
/> />
); );
}); });

View File

@@ -12,7 +12,6 @@ const MessageBlock = forwardRef<HTMLDivElement, MessageBlockProps>(({
return ( return (
<div <div
data-testid="mattrixwv-message-block" data-testid="mattrixwv-message-block"
{...messageProps}
className={clsx( className={clsx(
className, className,
"px-4 py-2", "px-4 py-2",
@@ -32,6 +31,7 @@ const MessageBlock = forwardRef<HTMLDivElement, MessageBlockProps>(({
} }
)} )}
ref={ref} ref={ref}
{...messageProps}
/> />
); );
}); });

View File

@@ -11,12 +11,12 @@ const MoltenMessageBlock = forwardRef<HTMLDivElement, MessageBlockProps>(({
return ( return (
<MessageBlock <MessageBlock
data-testid="mattrixwv-molten-message-block" data-testid="mattrixwv-molten-message-block"
{...messageProps}
className={clsx( className={clsx(
className, className,
"bg-molten-xlight text-molten-mid" "bg-molten-xlight text-molten-mid"
)} )}
ref={ref} ref={ref}
{...messageProps}
/> />
); );
}); });

View File

@@ -11,12 +11,12 @@ const PrimaryMessageBlock = forwardRef<HTMLDivElement, MessageBlockProps>(({
return ( return (
<MessageBlock <MessageBlock
data-testid="mattrixwv-primary-message-block" data-testid="mattrixwv-primary-message-block"
{...messageProps}
className={clsx( className={clsx(
className, className,
"bg-primary-xlight text-primary-dark" "bg-primary-xlight text-primary-dark"
)} )}
ref={ref} ref={ref}
{...messageProps}
/> />
); );
}); });

View File

@@ -11,12 +11,12 @@ const SecondaryMessageBlock = forwardRef<HTMLDivElement, MessageBlockProps>(({
return ( return (
<MessageBlock <MessageBlock
data-testid="mattrixwv-secondary-message-block" data-testid="mattrixwv-secondary-message-block"
{...messageProps}
className={clsx( className={clsx(
className, className,
"bg-secondary-xlight text-secondary-mid" "bg-secondary-xlight text-secondary-mid"
)} )}
ref={ref} ref={ref}
{...messageProps}
/> />
); );
}); });

View File

@@ -11,12 +11,12 @@ const SuccessMessageBlock = forwardRef<HTMLDivElement, MessageBlockProps>(({
return ( return (
<MessageBlock <MessageBlock
data-testid="mattrixwv-success-message-block" data-testid="mattrixwv-success-message-block"
{...messageProps}
className={clsx( className={clsx(
className, className,
"bg-success-xlight text-success-mid" "bg-success-xlight text-success-mid"
)} )}
ref={ref} ref={ref}
{...messageProps}
/> />
); );
}); });

View File

@@ -11,12 +11,12 @@ const TertiaryMessageBlock = forwardRef<HTMLDivElement, MessageBlockProps>(({
return ( return (
<MessageBlock <MessageBlock
data-testid="mattrixwv-tertiary-message-block" data-testid="mattrixwv-tertiary-message-block"
{...messageProps}
className={clsx( className={clsx(
className, className,
"bg-tertiary-xlight text-tertiary-mid" "bg-tertiary-xlight text-tertiary-mid"
)} )}
ref={ref} ref={ref}
{...messageProps}
/> />
); );
}); });

View File

@@ -11,12 +11,12 @@ const WarningMessageBlock = forwardRef<HTMLDivElement, MessageBlockProps>(({
return ( return (
<MessageBlock <MessageBlock
data-testid="mattrixwv-warning-message-block" data-testid="mattrixwv-warning-message-block"
{...messageProps}
className={clsx( className={clsx(
className, className,
"bg-warning-xlight text-warning-dark" "bg-warning-xlight text-warning-dark"
)} )}
ref={ref} ref={ref}
{...messageProps}
/> />
); );
}); });