@newageerp/v3.buttons.main-button
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -41,13 +41,5 @@ "use strict"; | ||
return (react_1.default.createElement(react_1.default.Fragment, null, | ||
react_1.default.createElement("button", { title: title, onClick: currentFunc, className: (0, classnames_1.default)([ | ||
'tw3-flex tw3-py-[9px] tw3-px-[9px] tw3-rounded-md tw3-items-center', | ||
color ? MainButtonColors[color] : 'tw3-bg-teal-600 tw3-text-white', | ||
disabled | ||
? 'tw3-text-slate-300 tw3-cursor-not-allowed' | ||
: 'tw3-duration-150 hover:tw3-text-sky-200', | ||
className, | ||
!iconName && 'tw3-min-w-[80px] tw3-justify-center', | ||
]) }, | ||
react_1.default.createElement("button", { title: title, onClick: currentFunc, className: (0, classnames_1.default)({ 'tw3-bg-teal-600 tw3-text-white': !color }, { [MainButtonColors[color]]: !!color }, { 'tw3-text-slate-300 tw3-cursor-not-allowed': disabled }, { 'tw3-duration-150': !disabled }, { 'hover:tw3-text-sky-200': !disabled && color !== 'white' }, { 'hover:tw3-text-sky-900': !disabled && color === 'white' }, 'tw3-flex tw3-py-[9px] tw3-px-[9px] tw3-rounded-md tw3-items-center', className, { 'tw3-min-w-[80px] tw3-justify-center': !iconName }) }, | ||
iconName && (react_1.default.createElement("span", { className: (0, classnames_1.default)('tw3-leading-5', [`fa-fw fa-light fa-${iconName}`]) })), | ||
children && (react_1.default.createElement("span", { className: (0, classnames_1.default)('tw3-leading-5', ['tw3-font-medium', iconName && 'tw3-ml-1']) }, children))), | ||
children && (react_1.default.createElement("span", { className: (0, classnames_1.default)('tw3-leading-5', { 'tw3-font-medium': color !== "white" }, { 'tw3-ml-1': !!iconName }) }, children))), | ||
confirmation && (react_1.default.createElement(react_1.default.Fragment, null, | ||
@@ -54,0 +46,0 @@ react_1.default.createElement(v3_popups_confirmation_popup_1.ConfirmationPopup, { onClick: () => setIsPopup(!isPopup), isPopup: isPopup, title: confirmation.title, onYes: confirmation.onYes }, confirmation.children))))); |
{ | ||
"name": "@newageerp/v3.buttons.main-button", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"homepage": "https://bit.dev/newageerp/v3/buttons/main-button", | ||
@@ -9,3 +9,3 @@ "main": "dist/index.js", | ||
"name": "v3/buttons/main-button", | ||
"version": "0.0.7" | ||
"version": "0.0.8" | ||
}, | ||
@@ -15,3 +15,3 @@ "dependencies": { | ||
"core-js": "^3.0.0", | ||
"@newageerp/v3.popups.confirmation-popup": "0.0.3" | ||
"@newageerp/v3.popups.confirmation-popup": "0.0.4" | ||
}, | ||
@@ -25,3 +25,3 @@ "devDependencies": { | ||
"@types/node": "12.20.4", | ||
"@newageerp/extensions.sfs-react-env": "0.0.5" | ||
"@newageerp/extensions.sfs-react-env": "0.0.6" | ||
}, | ||
@@ -28,0 +28,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
37984
203
+ Added@newageerp/v3.popups.confirmation-popup@0.0.4(transitive)
+ Added@newageerp/v3.popups.popup@0.0.6(transitive)
- Removed@newageerp/v3.popups.confirmation-popup@0.0.3(transitive)
- Removed@newageerp/v3.popups.popup@0.0.5(transitive)