@newageerp/v3.widgets.status-widget
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -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
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
31379
147