Socket
Socket
Sign inDemoInstall

gestalt

Package Overview
Dependencies
Maintainers
4
Versions
2666
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gestalt - npm Package Compare versions

Comparing version 153.7.1 to 153.8.0

17

dist/BannerSlim.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc