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

@ltht-react/admin-actions

Package Overview
Dependencies
Maintainers
13
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ltht-react/admin-actions - npm Package Compare versions

Comparing version 1.0.116 to 1.0.117

0

lib/atoms/admin-action-button.d.ts

@@ -0,0 +0,0 @@ import { Maybe, Task } from '@ltht-react/types';

8

lib/atoms/admin-action-button.js

@@ -13,4 +13,4 @@ "use strict";

var button_1 = require("@ltht-react/button");
var icon_1 = require("@ltht-react/icon");
var styles_1 = require("@ltht-react/styles");
var icon_1 = __importDefault(require("@ltht-react/icon"));
var SuccessButton = styled_1.default(button_1.Button)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n cursor: auto;\n :hover {\n background-color: ", ";\n cursor: auto !important;\n }\n"], ["\n background-color: ", ";\n cursor: auto;\n :hover {\n background-color: ", ";\n cursor: auto !important;\n }\n"])), styles_1.BTN_COLOURS.WORKFLOW.VALUE, styles_1.BTN_COLOURS.WORKFLOW.VALUE);

@@ -21,8 +21,8 @@ var FailButton = styled_1.default(button_1.Button)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n cursor: auto;\n :hover {\n background-color: ", ";\n cursor: auto !important;\n }\n"], ["\n background-color: ", ";\n cursor: auto;\n :hover {\n background-color: ", ";\n cursor: auto !important;\n }\n"])), styles_1.BTN_COLOURS.DANGER.VALUE, styles_1.BTN_COLOURS.DANGER.VALUE);

if (adminAction.isSuccess === true) {
return jsx_runtime_1.jsx(SuccessButton, { type: "button", value: "Done", icon: jsx_runtime_1.jsx(icon_1.CheckIcon, { size: "medium" }, void 0) }, void 0);
return jsx_runtime_1.jsx(SuccessButton, { type: "button", value: "Done", icon: jsx_runtime_1.jsx(icon_1.default, { type: "check", size: "medium" }, void 0) }, void 0);
}
if (adminAction.isSuccess === false) {
return jsx_runtime_1.jsx(FailButton, { type: "button", value: adminAction.failText, icon: jsx_runtime_1.jsx(icon_1.CrossIcon, { size: "medium" }, void 0) }, void 0);
return (jsx_runtime_1.jsx(FailButton, { type: "button", value: adminAction.failText, icon: jsx_runtime_1.jsx(icon_1.default, { type: "cross", size: "medium", color: "grey" }, void 0) }, void 0));
}
return (jsx_runtime_1.jsx(button_1.Button, { type: "button", title: "Perform Action", value: !adminAction.isLoading ? 'Perform Action' : 'Loading', icon: adminAction.isLoading && jsx_runtime_1.jsx(icon_1.SpinnerIcon, { size: "medium" }, void 0), onClick: adminAction.isLoading ? function () { return undefined; } : function () { return actionClickHandler(adminAction); } }, void 0));
return (jsx_runtime_1.jsx(button_1.Button, { type: "button", title: "Perform Action", value: !adminAction.isLoading ? 'Perform Action' : 'Loading', icon: adminAction.isLoading && jsx_runtime_1.jsx(icon_1.default, { type: "spinner", size: "medium" }, void 0), onClick: adminAction.isLoading ? function () { return undefined; } : function () { return actionClickHandler(adminAction); } }, void 0));
};

@@ -29,0 +29,0 @@ exports.default = ActionButton;

@@ -0,0 +0,0 @@ import { FC } from 'react';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import AdminAction from './organisms/admin-action';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { FC } from 'react';

@@ -0,0 +0,0 @@ "use strict";

{
"name": "@ltht-react/admin-actions",
"version": "1.0.116",
"version": "1.0.117",
"description": "ltht-react clinical AdminActions component.",

@@ -30,12 +30,12 @@ "author": "LTHT",

"@emotion/styled": "^11.0.0",
"@ltht-react/button": "^1.3.231",
"@ltht-react/hooks": "^1.0.221",
"@ltht-react/icon": "^1.3.231",
"@ltht-react/styles": "^1.3.223",
"@ltht-react/type-summary": "^1.3.231",
"@ltht-react/types": "^1.0.227",
"@ltht-react/utils": "^1.1.229",
"@ltht-react/button": "^1.3.232",
"@ltht-react/hooks": "^1.0.222",
"@ltht-react/icon": "^1.3.232",
"@ltht-react/styles": "^1.3.224",
"@ltht-react/type-summary": "^1.3.232",
"@ltht-react/types": "^1.0.228",
"@ltht-react/utils": "^1.1.230",
"react": "^17.0.0"
},
"gitHead": "4da792f7d14cfffb94006643bfab6a09fba75d04"
"gitHead": "509a9a4f06eabf917b4839cd7e9cee75fb97f38e"
}

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