@lendi-ui/alert
Advanced tools
Comparing version 2.2.2 to 2.3.0
@@ -0,1 +1,5 @@ | ||
## [2.3.0] - 2019-09-11 - [HUB-488-alert](https://creditandfinance.atlassian.net/browse/HUB-488-alert) | ||
### Changed | ||
- Change Alert children type to React.ReactNode instead of string. | ||
## [2.2.2] - 2019-05-29 - [HUB-144](https://creditandfinance.atlassian.net/browse/HUB-144) | ||
@@ -2,0 +6,0 @@ ### Changed |
@@ -18,4 +18,6 @@ "use strict"; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) | ||
t[p[i]] = s[p[i]]; | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
@@ -22,0 +24,0 @@ }; |
@@ -1,10 +0,10 @@ | ||
/// <reference types="react" /> | ||
import { AlertVariant } from './index.style'; | ||
import * as React from 'react'; | ||
import { LUIGlobalProps } from '@lendi-ui/utils'; | ||
export declare type AlertVariant = 'error' | 'info' | 'success' | 'warn'; | ||
export interface AlertProps extends LUIGlobalProps { | ||
variant: AlertVariant; | ||
heading?: string; | ||
children?: string; | ||
children?: React.ReactNode; | ||
} | ||
declare const Alert: ({ variant, heading, children, ...otherProps }: AlertProps) => JSX.Element; | ||
export default Alert; |
/// <reference types="react" /> | ||
export declare type AlertVariant = 'error' | 'info' | 'success' | 'warn'; | ||
import { AlertVariant } from './index'; | ||
interface WrapperProps { | ||
@@ -4,0 +4,0 @@ variant: AlertVariant; |
{ | ||
"name": "@lendi-ui/alert", | ||
"version": "2.2.2", | ||
"version": "2.3.0", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "source": "src/index.tsx", |
@@ -17,5 +17,5 @@ # @lendi-ui/alert | ||
``` | ||
## Properties | ||
``` | ||
<PropTable> | ||
@@ -27,5 +27,2 @@ <PropTable.Entry name='children' type='string' description='Alert content'/> | ||
### Notes | ||
<b>Support for native props like Aria attributes, Standard HTML Attributes like title, classname, id, role, itemProp, itemID, itemRef</b> | ||
``` |
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
16295
9
133
27