);
}
// Test 4: Tearsheet with headerActions
function TearsheetWithHeaderActions() {
return (
{}}
title="With Header Actions"
label="Label"
headerActions={}>
Content
);
}
// Test 5: Tearsheet with deprecated slug prop
function TearsheetWithSlug() {
return (
{}}
title="With Slug"
slug={
Slug content
}>
Content
);
}
// Test 6: Tearsheet with all features
function CompleteTearsheet() {
return (
{}}
title="Complete Tearsheet"
label="All features"
description="This has everything"
decorator={
);
}
// Test 8: Tearsheet with deprecated influencerPosition (should be removed)
function TearsheetWithInfluencerPosition() {
return (
{}}
title="Test"
influencer={
>
);
}
// Test 10: Tearsheet with spread props
function TearsheetWithSpreadProps() {
const commonProps = {
open: true,
onClose: () => {},
variant: 'wide',
};
return (
Content
);
}
// Test 11: Tearsheet with complex children
function TearsheetWithComplexChildren() {
return (
{}}
title="Complex Children"
actions={[{ label: 'Submit', onClick: () => {} }]}>
);
}
// Test 12: Tearsheet with only decorator (no other header props)
function TearsheetWithOnlyDecorator() {
return (
{}} decorator={