Comparing version 153.2.0 to 153.3.0
@@ -72,7 +72,17 @@ import { ReactNode } from 'react'; | ||
onClick?: ((arg1: { | ||
event: import("react").KeyboardEvent<HTMLAnchorElement> | import("react").MouseEvent<HTMLAnchorElement, MouseEvent>; /** | ||
* The content shown in SideNavigation. See [subcomponents](https://gestalt.pinterest.systems/web/sidenavigation#Subcomponents). | ||
*/ | ||
event: import("react").KeyboardEvent<HTMLAnchorElement> | import("react").MouseEvent<HTMLAnchorElement, MouseEvent>; | ||
dangerouslyDisableOnNavigation: () => void; | ||
}) => void) | undefined; | ||
primaryAction?: { | ||
icon?: "edit" | "ellipsis" | "trash-can" | undefined; | ||
onClick?: ((arg1: { | ||
event: import("react").KeyboardEvent<HTMLDivElement> | import("react").MouseEvent<HTMLDivElement, MouseEvent>; | ||
}) => void) | undefined; | ||
tooltip: { | ||
accessibilityLabel?: string | undefined; | ||
text: string; | ||
zIndex?: import("./zIndex").Indexable | undefined; | ||
}; | ||
dropdownItems?: readonly import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>[] | undefined; | ||
} | undefined; | ||
ref?: HTMLLIElement | undefined; | ||
@@ -79,0 +89,0 @@ }, "ref"> & import("react").RefAttributes<HTMLLIElement>>; |
@@ -1,2 +0,3 @@ | ||
import { ReactNode } from 'react'; | ||
import { ReactElement, ReactNode } from 'react'; | ||
import { Indexable } from './zIndex'; | ||
type Props = { | ||
@@ -32,2 +33,17 @@ /** | ||
}) => void; | ||
/** | ||
* The primary action for each item. See the [primary action variant](https://gestalt.pinterest.systems/web/sidenavigation#Primary-action) to learn more. | ||
*/ | ||
primaryAction?: { | ||
icon?: 'ellipsis' | 'edit' | 'trash-can'; | ||
onClick?: (arg1: { | ||
event: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>; | ||
}) => void; | ||
tooltip: { | ||
accessibilityLabel?: string; | ||
text: string; | ||
zIndex?: Indexable; | ||
}; | ||
dropdownItems?: ReadonlyArray<ReactElement>; | ||
}; | ||
}; | ||
@@ -37,3 +53,3 @@ /** | ||
*/ | ||
declare function SideNavigationNestedGroup({ children, counter, display, expanded, label, onExpand, }: Props): import("react/jsx-runtime").JSX.Element; | ||
declare function SideNavigationNestedGroup({ children, counter, display, expanded, label, primaryAction, onExpand, }: Props): import("react/jsx-runtime").JSX.Element; | ||
declare namespace SideNavigationNestedGroup { | ||
@@ -40,0 +56,0 @@ var displayName: string; |
@@ -1,2 +0,3 @@ | ||
/// <reference types="react" /> | ||
import { ReactElement } from 'react'; | ||
import { Indexable } from './zIndex'; | ||
type Props = { | ||
@@ -30,2 +31,17 @@ /** | ||
/** | ||
* The primary action for each item. See the [primary action variant](https://gestalt.pinterest.systems/web/sidenavigation#Primary-action) to learn more. | ||
*/ | ||
primaryAction?: { | ||
icon?: 'ellipsis' | 'edit' | 'trash-can'; | ||
onClick?: (arg1: { | ||
event: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>; | ||
}) => void; | ||
tooltip: { | ||
accessibilityLabel?: string; | ||
text: string; | ||
zIndex?: Indexable; | ||
}; | ||
dropdownItems?: ReadonlyArray<ReactElement>; | ||
}; | ||
/** | ||
* Ref that is forwarded to the underlying `li` element. | ||
@@ -32,0 +48,0 @@ */ |
@@ -36,2 +36,6 @@ import { PureComponent, ReactNode } from 'react'; | ||
/** | ||
* Available for testing purposes, if needed. Consider [better queries](https://testing-library.com/docs/queries/about/#priority) before using this prop. | ||
*/ | ||
dataTestId?: string; | ||
/** | ||
* Disable remote playback. See [MDN Web Docs: disableRemotePlayback](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/disableRemotePlayback) for more info. | ||
@@ -38,0 +42,0 @@ */ |
{ | ||
"name": "gestalt", | ||
"version": "153.2.0", | ||
"version": "153.3.0", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "homepage": "https://gestalt.pinterest.systems/", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8292230
77398