From 568fc1ca23334a261de30d26e1fe6cb89bc8119a Mon Sep 17 00:00:00 2001 From: atomiks Date: Fri, 21 Feb 2025 19:58:49 +1100 Subject: [PATCH] [docs] Fix `actionsRef` propTypes (#1460) --- docs/reference/generated/alert-dialog-root.json | 2 +- docs/reference/generated/dialog-root.json | 2 +- docs/reference/generated/menu-root.json | 2 +- docs/reference/generated/popover-root.json | 2 +- docs/reference/generated/preview-card-root.json | 2 +- docs/reference/generated/tooltip-root.json | 2 +- packages/react/src/alert-dialog/root/AlertDialogRoot.tsx | 2 +- packages/react/src/dialog/root/DialogRoot.tsx | 2 +- packages/react/src/menu/root/MenuRoot.tsx | 2 +- packages/react/src/popover/root/PopoverRoot.tsx | 2 +- packages/react/src/preview-card/root/PreviewCardRoot.tsx | 2 +- packages/react/src/tooltip/root/TooltipRoot.tsx | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/reference/generated/alert-dialog-root.json b/docs/reference/generated/alert-dialog-root.json index f3e936c936..8457b68adf 100644 --- a/docs/reference/generated/alert-dialog-root.json +++ b/docs/reference/generated/alert-dialog-root.json @@ -15,7 +15,7 @@ "type": "(open, event, reason) => void", "description": "Event handler called when the dialog is opened or closed." }, - "action": { + "actionsRef": { "type": "{ current: { unmount: func } }", "description": "A ref to imperative actions." }, diff --git a/docs/reference/generated/dialog-root.json b/docs/reference/generated/dialog-root.json index c5f439d8ca..55279effdb 100644 --- a/docs/reference/generated/dialog-root.json +++ b/docs/reference/generated/dialog-root.json @@ -15,7 +15,7 @@ "type": "(open, event, reason) => void", "description": "Event handler called when the dialog is opened or closed." }, - "action": { + "actionsRef": { "type": "{ current: { unmount: func } }", "description": "A ref to imperative actions." }, diff --git a/docs/reference/generated/menu-root.json b/docs/reference/generated/menu-root.json index 1f80366659..0379693706 100644 --- a/docs/reference/generated/menu-root.json +++ b/docs/reference/generated/menu-root.json @@ -15,7 +15,7 @@ "type": "(open, event) => void", "description": "Event handler called when the menu is opened or closed." }, - "action": { + "actionsRef": { "type": "{ current: { unmount: func } }", "description": "A ref to imperative actions." }, diff --git a/docs/reference/generated/popover-root.json b/docs/reference/generated/popover-root.json index dafc147344..b2d582c26c 100644 --- a/docs/reference/generated/popover-root.json +++ b/docs/reference/generated/popover-root.json @@ -15,7 +15,7 @@ "type": "(open, event, reason) => void", "description": "Event handler called when the popover is opened or closed." }, - "action": { + "actionsRef": { "type": "{ current: { unmount: func } }", "description": "A ref to imperative actions." }, diff --git a/docs/reference/generated/preview-card-root.json b/docs/reference/generated/preview-card-root.json index ada1698505..2bb0f12fbc 100644 --- a/docs/reference/generated/preview-card-root.json +++ b/docs/reference/generated/preview-card-root.json @@ -15,7 +15,7 @@ "type": "(open, event, reason) => void", "description": "Event handler called when the preview card is opened or closed." }, - "action": { + "actionsRef": { "type": "{ current: { unmount: func } }", "description": "A ref to imperative actions." }, diff --git a/docs/reference/generated/tooltip-root.json b/docs/reference/generated/tooltip-root.json index 9915a30f70..a43f394c5f 100644 --- a/docs/reference/generated/tooltip-root.json +++ b/docs/reference/generated/tooltip-root.json @@ -15,7 +15,7 @@ "type": "(open, event, reason) => void", "description": "Event handler called when the tooltip is opened or closed." }, - "action": { + "actionsRef": { "type": "{ current: { unmount: func } }", "description": "A ref to imperative actions." }, diff --git a/packages/react/src/alert-dialog/root/AlertDialogRoot.tsx b/packages/react/src/alert-dialog/root/AlertDialogRoot.tsx index 47fc6fd191..0a144cfd66 100644 --- a/packages/react/src/alert-dialog/root/AlertDialogRoot.tsx +++ b/packages/react/src/alert-dialog/root/AlertDialogRoot.tsx @@ -67,7 +67,7 @@ AlertDialogRoot.propTypes /* remove-proptypes */ = { /** * A ref to imperative actions. */ - action: PropTypes.shape({ + actionsRef: PropTypes.shape({ current: PropTypes.shape({ unmount: PropTypes.func.isRequired, }).isRequired, diff --git a/packages/react/src/dialog/root/DialogRoot.tsx b/packages/react/src/dialog/root/DialogRoot.tsx index d7c5c0b909..e8f2ffb76a 100644 --- a/packages/react/src/dialog/root/DialogRoot.tsx +++ b/packages/react/src/dialog/root/DialogRoot.tsx @@ -74,7 +74,7 @@ DialogRoot.propTypes /* remove-proptypes */ = { /** * A ref to imperative actions. */ - action: PropTypes.shape({ + actionsRef: PropTypes.shape({ current: PropTypes.shape({ unmount: PropTypes.func.isRequired, }).isRequired, diff --git a/packages/react/src/menu/root/MenuRoot.tsx b/packages/react/src/menu/root/MenuRoot.tsx index 1201ed2376..4b9b9b2403 100644 --- a/packages/react/src/menu/root/MenuRoot.tsx +++ b/packages/react/src/menu/root/MenuRoot.tsx @@ -168,7 +168,7 @@ MenuRoot.propTypes /* remove-proptypes */ = { /** * A ref to imperative actions. */ - action: PropTypes.shape({ + actionsRef: PropTypes.shape({ current: PropTypes.shape({ unmount: PropTypes.func.isRequired, }).isRequired, diff --git a/packages/react/src/popover/root/PopoverRoot.tsx b/packages/react/src/popover/root/PopoverRoot.tsx index 1f49a613ef..2cf67a2c5a 100644 --- a/packages/react/src/popover/root/PopoverRoot.tsx +++ b/packages/react/src/popover/root/PopoverRoot.tsx @@ -70,7 +70,7 @@ PopoverRoot.propTypes /* remove-proptypes */ = { /** * A ref to imperative actions. */ - action: PropTypes.shape({ + actionsRef: PropTypes.shape({ current: PropTypes.shape({ unmount: PropTypes.func.isRequired, }).isRequired, diff --git a/packages/react/src/preview-card/root/PreviewCardRoot.tsx b/packages/react/src/preview-card/root/PreviewCardRoot.tsx index d89cde19e6..78cc104ccc 100644 --- a/packages/react/src/preview-card/root/PreviewCardRoot.tsx +++ b/packages/react/src/preview-card/root/PreviewCardRoot.tsx @@ -61,7 +61,7 @@ PreviewCardRoot.propTypes /* remove-proptypes */ = { /** * A ref to imperative actions. */ - action: PropTypes.shape({ + actionsRef: PropTypes.shape({ current: PropTypes.shape({ unmount: PropTypes.func.isRequired, }).isRequired, diff --git a/packages/react/src/tooltip/root/TooltipRoot.tsx b/packages/react/src/tooltip/root/TooltipRoot.tsx index 0cc48704b2..1f8d26683a 100644 --- a/packages/react/src/tooltip/root/TooltipRoot.tsx +++ b/packages/react/src/tooltip/root/TooltipRoot.tsx @@ -73,7 +73,7 @@ TooltipRoot.propTypes /* remove-proptypes */ = { /** * A ref to imperative actions. */ - action: PropTypes.shape({ + actionsRef: PropTypes.shape({ current: PropTypes.shape({ unmount: PropTypes.func.isRequired, }).isRequired,