Socket
Socket
Sign inDemoInstall

@newageerp/v3.widgets.status-widget

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.11 to 0.0.12

4

dist/status-widget.composition.js

@@ -10,7 +10,7 @@ "use strict";

const RedStatusWidget = () => {
return react_1.default.createElement(v3_widgets_status_widget_1.StatusWidget, null, "Status 1");
return react_1.default.createElement(v3_widgets_status_widget_1.StatusWidget, { color: "red" }, "Status 1");
};
exports.RedStatusWidget = RedStatusWidget;
const IsCompactStatusWidget = () => {
return react_1.default.createElement(v3_widgets_status_widget_1.StatusWidget, { isCompact: true }, "Status 1");
return react_1.default.createElement(v3_widgets_status_widget_1.StatusWidget, { color: "red", isCompact: true }, "Status 1");
};

@@ -17,0 +17,0 @@ exports.IsCompactStatusWidget = IsCompactStatusWidget;

@@ -16,5 +16,7 @@ import { ReactNode } from 'react';

children: ReactNode;
color?: keyof typeof StatusWidgetColors;
color: keyof typeof StatusWidgetColors;
isCompact?: boolean;
className?: string;
title?: string;
};
export declare function StatusWidget({ children, color, isCompact, }: StatusWidgetProps): JSX.Element;
export declare function StatusWidget({ children, color, isCompact, className, title, }: StatusWidgetProps): JSX.Element;

@@ -22,10 +22,6 @@ "use strict";

})(StatusWidgetColors = exports.StatusWidgetColors || (exports.StatusWidgetColors = {}));
function StatusWidget({ children, color, isCompact, }) {
return (react_1.default.createElement("div", { className: (0, classnames_1.default)([
'tw3-py-[5px] tw3-font-light tw3-rounded-lg tw3-inline-block',
isCompact ? 'tw3-px-[15px]' : 'tw3-px-[10px]',
color ? StatusWidgetColors[color] : StatusWidgetColors['red'],
]) }, children && isCompact ? children[0] : children));
function StatusWidget({ children, color, isCompact, className, title, }) {
return (react_1.default.createElement("div", { className: (0, classnames_1.default)('tw3-py-[5px] tw3-font-light tw3-rounded-lg tw3-inline-block', { 'tw3-px-[15px]': isCompact }, { 'tw3-px-[10px]': !isCompact }, StatusWidgetColors[color], className), title: title }, children && isCompact ? children[0] : children));
}
exports.StatusWidget = StatusWidget;
//# sourceMappingURL=status-widget.js.map
{
"name": "@newageerp/v3.widgets.status-widget",
"version": "0.0.11",
"version": "0.0.12",
"homepage": "https://bit.dev/newageerp/v3/widgets/status-widget",

@@ -9,3 +9,3 @@ "main": "dist/index.js",

"name": "v3/widgets/status-widget",
"version": "0.0.11"
"version": "0.0.12"
},

@@ -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