kelt-ui-kit-react 0.2.3 → 0.2.5
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.
- package/dist/button/Button.d.ts +1 -1
- package/dist/button/button.interface.d.ts +1 -0
- package/dist/index.js +18 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/button/Button.tsx +7 -1
- package/src/button/button.css +4 -1
- package/src/button/button.interface.tsx +1 -0
- package/src/toaster/toaster.css +24 -12
package/dist/button/Button.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ButtonInterface } from './button.interface';
|
|
2
2
|
|
|
3
|
-
export declare const Button: ({ className, onClick, title, classIcon, positionicon, }: ButtonInterface) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const Button: ({ className, onClick, title, classIcon, positionicon, disabled, }: ButtonInterface) => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -650,16 +650,26 @@ const na = ({
|
|
|
650
650
|
onClick: t,
|
|
651
651
|
title: r,
|
|
652
652
|
classIcon: n,
|
|
653
|
-
positionicon: a
|
|
653
|
+
positionicon: a,
|
|
654
|
+
disabled: s = !1
|
|
654
655
|
}) => {
|
|
655
|
-
const
|
|
656
|
-
t && t(
|
|
656
|
+
const c = (l) => {
|
|
657
|
+
t && t(l);
|
|
657
658
|
};
|
|
658
|
-
return /* @__PURE__ */ i.jsxs(
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
659
|
+
return /* @__PURE__ */ i.jsxs(
|
|
660
|
+
"button",
|
|
661
|
+
{
|
|
662
|
+
disabled: s,
|
|
663
|
+
type: "submit",
|
|
664
|
+
onClick: (l) => c(l),
|
|
665
|
+
className: e,
|
|
666
|
+
children: [
|
|
667
|
+
n && a == 1 && /* @__PURE__ */ i.jsx("span", { className: "mr-2", children: /* @__PURE__ */ i.jsx(W, { classIcon: n }) }),
|
|
668
|
+
/* @__PURE__ */ i.jsx("span", { children: r }),
|
|
669
|
+
n && a == 2 && /* @__PURE__ */ i.jsx("span", { className: "ml-2", children: /* @__PURE__ */ i.jsx(W, { classIcon: n }) })
|
|
670
|
+
]
|
|
671
|
+
}
|
|
672
|
+
);
|
|
663
673
|
}, Tn = (e) => /* @__PURE__ */ i.jsx(
|
|
664
674
|
"div",
|
|
665
675
|
{
|