@daren/button
Advanced tools
Comparing version 1.6.7 to 1.6.8
@@ -18,3 +18,3 @@ "use strict"; | ||
function getClassName(className) { | ||
return (0, _utils.cx)('group relative inline-flex text-base outline-none !no-underline opacity-100 transition focus:outline-none disabled:pointer-events-none disabled:opacity-50 active:scale-90 rounded-md', className); | ||
return (0, _utils.cx)('group relative inline-flex text-base outline-none !no-underline opacity-100 transition focus:outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 active:scale-90 rounded-md', className); | ||
} | ||
@@ -37,3 +37,3 @@ function ButtonInner(_ref) { | ||
className: (0, _utils.cx)('relative flex h-full w-full items-center justify-center whitespace-nowrap', { | ||
'text-gray-100 opacity-50': disabled, | ||
'cursor-not-allowed text-gray-100 opacity-50': disabled, | ||
'!text-white dark:!text-accent': variant === 'primary', | ||
@@ -40,0 +40,0 @@ '!text-black dark:!text-white': variant === 'secondary', |
@@ -10,3 +10,3 @@ var _excluded = ["children", "size", "variant", "className", "disabled"], | ||
function getClassName(className) { | ||
return cx('group relative inline-flex text-base outline-none !no-underline opacity-100 transition focus:outline-none disabled:pointer-events-none disabled:opacity-50 active:scale-90 rounded-md', className); | ||
return cx('group relative inline-flex text-base outline-none !no-underline opacity-100 transition focus:outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 active:scale-90 rounded-md', className); | ||
} | ||
@@ -29,3 +29,3 @@ function ButtonInner(_ref) { | ||
className: cx('relative flex h-full w-full items-center justify-center whitespace-nowrap', { | ||
'text-gray-100 opacity-50': disabled, | ||
'cursor-not-allowed text-gray-100 opacity-50': disabled, | ||
'!text-white dark:!text-accent': variant === 'primary', | ||
@@ -32,0 +32,0 @@ '!text-black dark:!text-white': variant === 'secondary', |
{ | ||
"name": "@daren/button", | ||
"version": "1.6.7", | ||
"version": "1.6.8", | ||
"repository": { | ||
@@ -54,3 +54,4 @@ "type": "git", | ||
"access": "public" | ||
} | ||
}, | ||
"gitHead": "8cad6767b2ef2b98c4e98e3c2d6e0e1ee3b835c0" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
59959