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.
@@ -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;
@@ -5,4 +5,5 @@ export interface ButtonInterface {
5
5
  title: string;
6
6
  classIcon?: string;
7
7
  positionicon?: number;
8
+ disabled?: boolean;
8
9
  }
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 s = (c) => {
656
- t && t(c);
656
+ const c = (l) => {
657
+ t && t(l);
657
658
  };
658
- return /* @__PURE__ */ i.jsxs("button", { type: "submit", onClick: (c) => s(c), className: e, children: [
659
- n && a == 1 && /* @__PURE__ */ i.jsx("span", { className: "mr-2", children: /* @__PURE__ */ i.jsx(W, { classIcon: n }) }),
660
- /* @__PURE__ */ i.jsx("span", { children: r }),
661
- n && a == 2 && /* @__PURE__ */ i.jsx("span", { className: "ml-2", children: /* @__PURE__ */ i.jsx(W, { classIcon: n }) })
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
  {