diff --git a/src/Button.tsx b/src/Button.tsx index 578aeabc..e44c457b 100644 --- a/src/Button.tsx +++ b/src/Button.tsx @@ -12,7 +12,6 @@ export interface ButtonProps { loading?: boolean onClick?: (e?: React.MouseEvent) => void className?: { - override?: string root?: string active?: string } @@ -54,7 +53,6 @@ export function Button({ ...props }: ButtonProps) { const computedClassName = twMerge( - className?.override, !basic && 'border rounded px-[0.75em] py-[0.25em] shadow bg-white', 'inline-flex flex-row items-center font-sans gap-2 cursor-pointer', fluid && 'w-full justify-center', diff --git a/src/Checkbox.tsx b/src/Checkbox.tsx index ac1ab48a..47dbd741 100644 --- a/src/Checkbox.tsx +++ b/src/Checkbox.tsx @@ -18,7 +18,6 @@ export interface CheckboxProps { label?: string | React.ReactNode size?: 'sm' | 'md' | 'lg' | 'xl' className?: { - override?: string root?: string label?: string } @@ -80,7 +79,6 @@ export function Checkbox({ defaultChecked checked={checked || partial} className={twMerge( - className?.override, 'border-grey-80 align-center my-auto flex justify-center rounded-md border border-solid bg-white p-0', (checked || partial) && 'border-black', disabled && 'cursor-not-allowed', diff --git a/src/Collapsible.tsx b/src/Collapsible.tsx index f8d57c59..57348cbd 100644 --- a/src/Collapsible.tsx +++ b/src/Collapsible.tsx @@ -21,7 +21,6 @@ export interface CollapsibleProps { secondary?: string | React.ReactNode onSecondaryClick?: () => void className?: { - override?: string root?: string staticContent?: string closedContent?: string @@ -71,11 +70,7 @@ export function Collapsible({ children, }: CollapsibleProps) { return ( - +
any isMaxVisible?: boolean className?: { - override?: string root?: string indicator?: string } @@ -61,11 +60,7 @@ export function Progress({ id={id} data-cy={data?.cy} data-test={data?.test} - className={twMerge( - className?.override, - 'relative h-7 rounded text-sm', - className?.root - )} + className={twMerge('relative h-7 rounded text-sm', className?.root)} value={internalValue} max={max} {...props} diff --git a/src/Select.tsx b/src/Select.tsx index 5ab63d31..8b55cc33 100644 --- a/src/Select.tsx +++ b/src/Select.tsx @@ -9,9 +9,6 @@ import React, { useState } from 'react' import { twMerge } from 'tailwind-merge' export interface SelectClassName { - triggerOverride?: string - contentOverride?: string - itemOverride?: string root?: string trigger?: string content?: string @@ -115,7 +112,6 @@ export function Select({ borderColorMap?: Record className?: { - override?: string - rangeOverride?: string - thumbOverride?: string root?: string icons?: string labels?: string @@ -91,7 +88,6 @@ export function Slider({ data-cy={data?.cy} data-test={data?.test} className={twMerge( - className?.override, 'relative flex h-24 w-full select-none items-center', className?.root )} @@ -130,7 +126,6 @@ export function Slider({ { @@ -126,7 +125,6 @@ export function StepProgress({