@newageerp/v3.widgets.alert-widget
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -14,3 +14,5 @@ import { ReactNode } from 'react'; | ||
isCompact?: boolean; | ||
style?: any; | ||
className?: string; | ||
}; | ||
export declare function AlertWidget(props: AlertWidgetProps): JSX.Element; |
@@ -18,9 +18,5 @@ "use strict"; | ||
function AlertWidget(props) { | ||
const { children, title, isCompact, } = props; | ||
const { children, title, isCompact, style, className, } = props; | ||
const color = props.color ? props.color : 'warning'; | ||
return (react_1.default.createElement("div", { className: (0, classnames_1.default)([ | ||
'tw3-rounded-md tw3-max-w-[420px]', | ||
isCompact ? 'tw3-p-[8px]' : 'tw3-p-[30px]', | ||
AlertWidgetColors[color], | ||
]) }, | ||
return (react_1.default.createElement("div", { className: (0, classnames_1.default)('tw3-rounded-md tw3-max-w-[420px]', { 'tw3-p-[8px]': isCompact }, { 'tw3-p-[30px]': !isCompact }, AlertWidgetColors[color], className), style: style }, | ||
title && react_1.default.createElement("p", { className: "tw3-mb-2 tw3-text-[22px]" }, title), | ||
@@ -27,0 +23,0 @@ react_1.default.createElement("p", { className: "tw3-font-light" }, children))); |
{ | ||
"name": "@newageerp/v3.widgets.alert-widget", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"homepage": "https://bit.dev/newageerp/v3/widgets/alert-widget", | ||
@@ -9,3 +9,3 @@ "main": "dist/index.js", | ||
"name": "v3/widgets/alert-widget", | ||
"version": "0.0.8" | ||
"version": "0.0.9" | ||
}, | ||
@@ -23,3 +23,3 @@ "dependencies": { | ||
"@types/node": "12.20.4", | ||
"@newageerp/extensions.sfs-react-env": "0.0.7" | ||
"@newageerp/extensions.sfs-react-env": "0.0.8" | ||
}, | ||
@@ -26,0 +26,0 @@ "peerDependencies": { |
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
30335
125