Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@newageerp/v3.widgets.alert-widget

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@newageerp/v3.widgets.alert-widget - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

6

dist/alert-widget.composition.js

@@ -26,3 +26,3 @@ "use strict";

return (react_1.default.createElement("div", { className: "tw3-bg-sky-900 tw3-p-10" },
react_1.default.createElement(alert_widget_1.AlertWidget, { color: alert_widget_1.AlertWidgetColors.danger, title: "Turnover" }, "Bibendum sem arcu, amet nisl sem consequat volutpat, amet nisl volutpat.")));
react_1.default.createElement(alert_widget_1.AlertWidget, { color: "danger", title: "Turnover" }, "Bibendum sem arcu, amet nisl sem consequat volutpat, amet nisl volutpat.")));
};

@@ -32,3 +32,3 @@ exports.DangerAlertWidget = DangerAlertWidget;

return (react_1.default.createElement("div", { className: "tw3-bg-sky-900 tw3-p-10" },
react_1.default.createElement(alert_widget_1.AlertWidget, { color: alert_widget_1.AlertWidgetColors.info, title: "Turnover" }, "Bibendum sem arcu, amet nisl sem consequat volutpat, amet nisl volutpat.")));
react_1.default.createElement(alert_widget_1.AlertWidget, { color: "info", title: "Turnover" }, "Bibendum sem arcu, amet nisl sem consequat volutpat, amet nisl volutpat.")));
};

@@ -38,5 +38,5 @@ exports.InfoAlertWidget = InfoAlertWidget;

return (react_1.default.createElement("div", { className: "tw3-bg-sky-900 tw3-p-10" },
react_1.default.createElement(alert_widget_1.AlertWidget, { color: alert_widget_1.AlertWidgetColors.success, title: "Turnover" }, "Bibendum sem arcu, amet nisl sem consequat volutpat, amet nisl volutpat.")));
react_1.default.createElement(alert_widget_1.AlertWidget, { color: "success", title: "Turnover" }, "Bibendum sem arcu, amet nisl sem consequat volutpat, amet nisl volutpat.")));
};
exports.SuccessAlertWidget = SuccessAlertWidget;
//# sourceMappingURL=alert-widget.composition.js.map
import { ReactNode } from 'react';
export declare enum AlertWidgetColors {
danger = "tw3-bg-red-50 tw3-text-red-700",
warning = "tw3-bg-amber-50 tw3-text-amber-600",
info = "tw3-bg-purple-50 tw3-text-purple-800",

@@ -11,5 +12,5 @@ success = "tw3-bg-teal-50 tw3-text-teal-700",

title?: string;
color?: AlertWidgetColors;
color?: keyof typeof AlertWidgetColors;
isCompact?: boolean;
};
export declare function AlertWidget({ children, title, isCompact, color, }: AlertWidgetProps): JSX.Element;
export declare function AlertWidget(props: AlertWidgetProps): JSX.Element;

@@ -12,2 +12,3 @@ "use strict";

AlertWidgetColors["danger"] = "tw3-bg-red-50 tw3-text-red-700";
AlertWidgetColors["warning"] = "tw3-bg-amber-50 tw3-text-amber-600";
AlertWidgetColors["info"] = "tw3-bg-purple-50 tw3-text-purple-800";

@@ -17,7 +18,9 @@ AlertWidgetColors["success"] = "tw3-bg-teal-50 tw3-text-teal-700";

})(AlertWidgetColors = exports.AlertWidgetColors || (exports.AlertWidgetColors = {}));
function AlertWidget({ children, title, isCompact, color = AlertWidgetColors.white, }) {
function AlertWidget(props) {
const { children, title, isCompact, } = 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]',
color,
AlertWidgetColors[color],
]) },

@@ -24,0 +27,0 @@ title && react_1.default.createElement("p", { className: "tw3-mb-2 tw3-text-[22px]" }, title),

{
"name": "@newageerp/v3.widgets.alert-widget",
"version": "0.0.7",
"version": "0.0.8",
"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.7"
"version": "0.0.8"
},

@@ -12,0 +12,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

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