@srimandir/pitru-paksh-common 3.1.6 → 3.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -77,6 +77,8 @@ export interface ServiceOfferCardProps extends Omit<React.HTMLAttributes<HTMLDiv
|
|
|
77
77
|
sheetSavedLabel?: React.ReactNode;
|
|
78
78
|
/** Accessible name for the sheet dialog. */
|
|
79
79
|
sheetAriaLabel?: string;
|
|
80
|
+
/** Forwarded to the sheet's `squareImage`: a 1:1 image instead of the 198px banner. */
|
|
81
|
+
sheetSquareImage?: boolean;
|
|
80
82
|
/**
|
|
81
83
|
* Fired when the inline "Read more"/"Read less" toggle is tapped —
|
|
82
84
|
* `isExpanded` is the state it just switched to. Also fires (as `true`) when
|
|
@@ -6,6 +6,8 @@ export interface ServiceOfferSheetProps {
|
|
|
6
6
|
/** Full-width illustration/photo at the top of the sheet. */
|
|
7
7
|
image: string;
|
|
8
8
|
imageAlt?: string;
|
|
9
|
+
/** Show the image as a 1:1 square (cropped to fill) instead of the fixed 198px-tall banner. */
|
|
10
|
+
squareImage?: boolean;
|
|
9
11
|
/**
|
|
10
12
|
* Flush banner rendered under the image, e.g. "Contribute to cow service".
|
|
11
13
|
* Accepts any React node — pass an icon + label for a custom banner. Use
|