Skip to content

Commit ae575a1

Browse files
authored
Merge branch 'main' into feat/split-panel-header-custom
2 parents 345cc46 + 2c99e1a commit ae575a1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/__tests__/snapshot-tests/__snapshots__/documenter.test.ts.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11426,6 +11426,7 @@ When a user clicks on this button the \`onButtonClick\` handler is called.
1142611426
If the \`action\` property is set, this property is ignored. **Deprecated**, replaced by \`action\`.
1142711427
* \`onButtonClick\` (event => void) - Called when a user clicks on the action button. This is not called if you create a custom button
1142811428
using the \`action\` property. **Deprecated**, replaced by \`action\`.
11429+
* \`onDismiss\` (event => void) - (Optional) Called when a user clicks on the dismiss button.
1142911430
* \`id\` (string) - Specifies a unique flash message identifier. This property is used in two ways:
1143011431
1. As a [keys](https://reactjs.org/docs/lists-and-keys.html#keys) source for React rendering.
1143111432
2. To identify which flash message will be removed from the DOM when it is dismissed, to animate it out.
@@ -14126,7 +14127,7 @@ Each item has \`type\` prop, which might be either \`group\` or \`pair\`. Defaul
1412614127

1412714128
Each key-value pair definition has the following properties:
1412814129
* \`type\` (string) - (Optional) Item type (pair).
14129-
* \`label\` (string) - The key label.
14130+
* \`label\` (React.ReactNode) - The key label.
1413014131
* \`info\` (React.ReactNode) - (Optional) Area next to the key to display an info link.
1413114132
* \`value\` (React.ReactNode) - The corresponding value for the key.
1413214133

src/flashbar/interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ export interface FlashbarProps extends BaseComponentProps {
174174
* If the `action` property is set, this property is ignored. **Deprecated**, replaced by `action`.
175175
* * `onButtonClick` (event => void) - Called when a user clicks on the action button. This is not called if you create a custom button
176176
* using the `action` property. **Deprecated**, replaced by `action`.
177+
* * `onDismiss` (event => void) - (Optional) Called when a user clicks on the dismiss button.
177178
* * `id` (string) - Specifies a unique flash message identifier. This property is used in two ways:
178179
* 1. As a [keys](https://reactjs.org/docs/lists-and-keys.html#keys) source for React rendering.
179180
* 2. To identify which flash message will be removed from the DOM when it is dismissed, to animate it out.

src/key-value-pairs/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface KeyValuePairsProps extends BaseComponentProps {
1717
*
1818
* Each key-value pair definition has the following properties:
1919
* * `type` (string) - (Optional) Item type (pair).
20-
* * `label` (string) - The key label.
20+
* * `label` (React.ReactNode) - The key label.
2121
* * `info` (React.ReactNode) - (Optional) Area next to the key to display an info link.
2222
* * `value` (React.ReactNode) - The corresponding value for the key.
2323
*

0 commit comments

Comments
 (0)