Comparing version 153.7.1 to 153.8.0
import { ComponentProps, ReactElement } from 'react'; | ||
import Button from './Button'; | ||
import ButtonLink from './ButtonLink'; | ||
type DismissButtonType = { | ||
accessibilityLabel?: string; | ||
onDismiss: () => void; | ||
}; | ||
type HelperLinkType = { | ||
@@ -36,9 +32,2 @@ accessibilityLabel: string; | ||
/** | ||
* Adds a dismiss button to BannerSlim. See the [Dismissible variant](https://gestalt.pinterest.systems/web/bannerslim#Dismissible) for more info. | ||
* The `accessibilityLabel` should follow the [Accessibility guidelines](https://gestalt.pinterest.systems/web/bannerslim#Accessibility). | ||
* | ||
* Note that compact ("___Bare" type) BannerSlims are not dismissable. | ||
*/ | ||
dismissButton?: DismissButtonType; | ||
/** | ||
* Helper [Link](https://gestalt.pinterest.systems/web/link) to be placed after the message. See the [Message variant](https://gestalt.pinterest.systems/web/bannerslim#Message) to learn more. | ||
@@ -57,2 +46,6 @@ */ | ||
/** | ||
* Adds a dismiss button to BannerSlim. Uses default accessibility label. See the [Dismiss button](https://gestalt.pinterest.systems/web/bannerslim#Dismiss-button) variant to learn more. | ||
*/ | ||
onDismiss?: () => void; | ||
/** | ||
* Main action for users to take on BannerSlim. If `href` is supplied, the action will serve as a link. See [GlobalEventsHandlerProvider](https://gestalt.pinterest.systems/web/utilities/globaleventshandlerprovider#Link-handlers) to learn more about link navigation. | ||
@@ -78,3 +71,3 @@ * If no `href` is supplied, the action will be a button. | ||
*/ | ||
declare function BannerSlim({ dismissButton, helperLink, iconAccessibilityLabel, message, primaryAction, type, }: Props): import("react/jsx-runtime").JSX.Element; | ||
declare function BannerSlim({ helperLink, iconAccessibilityLabel, message, onDismiss, primaryAction, type, }: Props): import("react/jsx-runtime").JSX.Element; | ||
declare namespace BannerSlim { | ||
@@ -81,0 +74,0 @@ var displayName: string; |
{ | ||
"name": "gestalt", | ||
"version": "153.7.1", | ||
"version": "153.8.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
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
9031294
82133