@nomos-ui/uanela-redux-next 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,7 @@ const tailwind_merge_1 = require("tailwind-merge");
|
|
|
6
6
|
const core_1 = require("@nomos-ui/core");
|
|
7
7
|
function ActionButton({ item, Icon, children, onClick, className, href, ...props }) {
|
|
8
8
|
const content = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Icon, { size: 16 }), (0, jsx_runtime_1.jsx)("span", { children: children })] }));
|
|
9
|
-
const commonClassName = (0, tailwind_merge_1.twMerge)("bg-transparent hover:bg-zinc-100/80 text-zinc-700 justify-start flex items-center p-1.5 px-4 gap-4 w-[200px]", className);
|
|
9
|
+
const commonClassName = (0, tailwind_merge_1.twMerge)("bg-transparent hover:bg-zinc-100/80 text-zinc-700 justify-start flex items-center p-1.5 px-4 gap-4 w-[200px] disabled:bg-zinc-100", className);
|
|
10
10
|
if (href) {
|
|
11
11
|
return ((0, jsx_runtime_1.jsx)(core_1.Link, { href: href, className: commonClassName, ...(onClick && {
|
|
12
12
|
onClick: (e) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-button.js","sourceRoot":"","sources":["../../../../../src/components/pages/list-page/table/action-button.tsx"],"names":[],"mappings":";;AAiBA,+BAmDC;;AAjED,mDAAyC;AACzC,yCAAsC;AAatC,SAAwB,YAAY,CAAqB,EACvD,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,SAAS,EACT,IAAI,EACJ,GAAG,KAAK,EACa;IACrB,MAAM,OAAO,GAAG,CACd,6DACE,uBAAC,IAAI,IAAC,IAAI,EAAE,EAAE,GAAI,EAClB,2CAAO,QAAQ,GAAQ,IACtB,CACJ,CAAC;IAEF,MAAM,eAAe,GAAG,IAAA,wBAAO,EAC7B,
|
|
1
|
+
{"version":3,"file":"action-button.js","sourceRoot":"","sources":["../../../../../src/components/pages/list-page/table/action-button.tsx"],"names":[],"mappings":";;AAiBA,+BAmDC;;AAjED,mDAAyC;AACzC,yCAAsC;AAatC,SAAwB,YAAY,CAAqB,EACvD,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,SAAS,EACT,IAAI,EACJ,GAAG,KAAK,EACa;IACrB,MAAM,OAAO,GAAG,CACd,6DACE,uBAAC,IAAI,IAAC,IAAI,EAAE,EAAE,GAAI,EAClB,2CAAO,QAAQ,GAAQ,IACtB,CACJ,CAAC;IAEF,MAAM,eAAe,GAAG,IAAA,wBAAO,EAC7B,mIAAmI,EACnI,SAAS,CACV,CAAC;IAEF,IAAI,IAAI,EAAE,CAAC;QACT,OAAO,CACL,uBAAC,WAAI,IACH,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,eAAe,KACtB,CAAC,OAAO,IAAI;gBACd,OAAO,EAAE,CAAC,CAAM,EAAE,EAAE;oBAClB,OAAO,CAAC,IAAS,EAAE,CAAC,CAAC,CAAC;gBACxB,CAAC;aACF,CAAC,YAED,OAAO,GACH,CACR,CAAC;IACJ,CAAC;IAED,OAAO,CACL,sCACM,KAAK,EACT,SAAS,EAAE,eAAe,KACtB,CAAC,OAAO,IAAI;YACd,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;gBACb,CAAC,CAAC,cAAc,EAAE,CAAC;gBACnB,OAAO,CAAC,IAAS,EAAE,CAAC,CAAC,CAAC;YACxB,CAAC;SACF,CAAC,YAED,OAAO,GACD,CACV,CAAC;AACJ,CAAC"}
|