@srimandir/pitru-paksh-common 2.2.4 → 2.4.4
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.
|
@@ -35,12 +35,21 @@ export interface SelectorCardProps extends Omit<React.ButtonHTMLAttributes<HTMLB
|
|
|
35
35
|
/** Extra classes for the corner ribbon, e.g. to change its color/theme. */
|
|
36
36
|
tagClassName?: string;
|
|
37
37
|
/**
|
|
38
|
-
* Extra content rendered below the header row
|
|
39
|
-
*
|
|
40
|
-
* `selected` is true, but that's left to the caller so both
|
|
41
|
-
* visible" and "reveal on select" patterns are supported.
|
|
38
|
+
* Extra content rendered below the header row, nested inside the card's own
|
|
39
|
+
* border: an editable value, an info row, or any custom node. Typically shown
|
|
40
|
+
* only while `selected` is true, but that's left to the caller so both
|
|
41
|
+
* "always visible" and "reveal on select" patterns are supported.
|
|
42
42
|
*/
|
|
43
43
|
children?: React.ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* An explainer note rendered as its own surface *behind* the card, instead of
|
|
46
|
+
* nested inside it like `children` — pulled up behind the card via negative
|
|
47
|
+
* margin so the card's higher stacking order covers the seam between them.
|
|
48
|
+
* Typically shown only while `selected` is true; that's left to the caller.
|
|
49
|
+
*/
|
|
50
|
+
note?: React.ReactNode;
|
|
51
|
+
/** Extra classes for the `note` surface, e.g. to change its text color. */
|
|
52
|
+
noteClassName?: string;
|
|
44
53
|
}
|
|
45
54
|
/**
|
|
46
55
|
* A selectable option row/card used across Pitru Paksha flows: an icon or
|