()
| 574 | } |
| 575 | |
| 576 | function CardCheckbox() { |
| 577 | let {size} = useContext(InternalCardContext); |
| 578 | return ( |
| 579 | <div |
| 580 | className={style({ |
| 581 | position: 'absolute', |
| 582 | top: '--card-spacing', |
| 583 | insetStart: '--card-spacing', |
| 584 | zIndex: 2, |
| 585 | padding: 4, |
| 586 | backgroundColor: lightDark('transparent-white-600', 'transparent-black-600'), |
| 587 | borderRadius: 'default', |
| 588 | boxShadow: 'emphasized' |
| 589 | })}> |
| 590 | <Checkbox slot="selection" excludeFromTabOrder size={size === 'XS' ? 'S' : size} /> |
| 591 | </div> |
| 592 | ); |
| 593 | } |
| 594 | |
| 595 | export interface CardPreviewProps extends UnsafeStyles, DOMProps { |
| 596 | children: ReactNode; |
nothing calls this directly
no test coverage detected