@@ -37,7 +37,7 @@ interface CardRenderProps {
3737 size : 'XS' | 'S' | 'M' | 'L' | 'XL'
3838}
3939
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 {
4141 /** The children of the Card. */
4242 children : ReactNode | ( ( renderProps : CardRenderProps ) => ReactNode ) ,
4343 /**
@@ -438,9 +438,9 @@ export const Card = forwardRef(function Card(props: CardProps, ref: DOMRef<HTMLD
438438 { ...props }
439439 ref = { domRef }
440440 className = { renderProps => UNSAFE_className + card ( { ...renderProps , isCardView : true , isLink : ! ! props . href , size, density, variant} , styles ) }
441- style = { renderProps =>
441+ style = { renderProps =>
442442 // Only the preview in quiet cards scales down on press
443- variant === 'quiet' ? UNSAFE_style : press ( renderProps )
443+ variant === 'quiet' ? UNSAFE_style : press ( renderProps )
444444 } >
445445 { ( { selectionMode, selectionBehavior, isHovered, isFocusVisible, isSelected, isPressed} ) => (
446446 < InternalCardContext . Provider value = { { size, isQuiet, isCheckboxSelection : selectionMode !== 'none' && selectionBehavior === 'toggle' , isHovered, isFocusVisible, isSelected, isPressed} } >
@@ -466,7 +466,7 @@ function SelectionIndicator() {
466466 className = { selectionIndicator ( {
467467 size,
468468 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
470470 // help distinguish the selected state from the preview.
471471 isStrokeInner : isQuiet && ! isCheckboxSelection
472472 } ) } />
0 commit comments