@sendgrid/ui-components
Advanced tools
Comparing version 1.42.5 to 1.43.0
@@ -5,2 +5,3 @@ import { FC } from 'react'; | ||
clearButtonLabel?: string; | ||
clearButtonID?: string; | ||
onClear?: (event?: any) => void; | ||
@@ -7,0 +8,0 @@ title: string; |
@@ -6,3 +6,3 @@ import React from 'react'; | ||
import cn from './utilities/classnames'; | ||
export const FilterHeader = ({ children, clearButtonLabel = 'Clear', titleDescriptor, onClear = () => { }, title, }) => { | ||
export const FilterHeader = ({ children, clearButtonLabel = 'Clear', clearButtonID = 'filter-clear-button', titleDescriptor, onClear = () => { }, title, }) => { | ||
return (React.createElement("div", { className: cn('filter-wrap', Styles['filter-wrap']) }, | ||
@@ -14,5 +14,5 @@ React.createElement("div", { className: cn('filter-header', Styles['filter-header']) }, | ||
children, | ||
React.createElement(ButtonList, { className: Styles['filter-clear-button'] }, | ||
React.createElement(ButtonList, { id: clearButtonID, className: Styles['filter-clear-button'] }, | ||
React.createElement(Button, { small: true, type: "secondary", onClick: onClear }, clearButtonLabel))))); | ||
}; | ||
export default FilterHeader; |
{ | ||
"name": "@sendgrid/ui-components", | ||
"version": "1.42.5", | ||
"version": "1.43.0", | ||
"description": "Reusable UI components for Sendgrid's applications.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
977271
9335