@@ -37,7 +37,7 @@ interface CardRenderProps {
37
37
size : 'XS' | 'S' | 'M' | 'L' | 'XL'
38
38
}
39
39
40
- export interface CardProps extends Omit < GridListItemProps , 'className' | 'style' | 'children' > , StyleProps {
40
+ export interface CardProps extends Omit < GridListItemProps , 'className' | 'style' | 'children' | 'onHoverChange' | 'onHoverStart' | 'onHoverEnd' > , StyleProps {
41
41
/** The children of the Card. */
42
42
children : ReactNode | ( ( renderProps : CardRenderProps ) => ReactNode ) ,
43
43
/**
@@ -438,9 +438,9 @@ export const Card = forwardRef(function Card(props: CardProps, ref: DOMRef<HTMLD
438
438
{ ...props }
439
439
ref = { domRef }
440
440
className = { renderProps => UNSAFE_className + card ( { ...renderProps , isCardView : true , isLink : ! ! props . href , size, density, variant} , styles ) }
441
- style = { renderProps =>
441
+ style = { renderProps =>
442
442
// Only the preview in quiet cards scales down on press
443
- variant === 'quiet' ? UNSAFE_style : press ( renderProps )
443
+ variant === 'quiet' ? UNSAFE_style : press ( renderProps )
444
444
} >
445
445
{ ( { selectionMode, selectionBehavior, isHovered, isFocusVisible, isSelected, isPressed} ) => (
446
446
< InternalCardContext . Provider value = { { size, isQuiet, isCheckboxSelection : selectionMode !== 'none' && selectionBehavior === 'toggle' , isHovered, isFocusVisible, isSelected, isPressed} } >
@@ -466,7 +466,7 @@ function SelectionIndicator() {
466
466
className = { selectionIndicator ( {
467
467
size,
468
468
isSelected,
469
- // Add an inner stroke only for quiet cards with no checkbox to
469
+ // Add an inner stroke only for quiet cards with no checkbox to
470
470
// help distinguish the selected state from the preview.
471
471
isStrokeInner : isQuiet && ! isCheckboxSelection
472
472
} ) } />
0 commit comments