triafly-ui-kit 1.0.69 → 1.0.70

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,12 +1,12 @@
1
- import { jsx as s, Fragment as h, jsxs as m } from "react/jsx-runtime";
2
- import { createElement as f } from "react";
3
- import { createPortal as u } from "react-dom";
1
+ import { jsx as s, Fragment as h, jsxs as i } from "react/jsx-runtime";
2
+ import { createElement as u } from "react";
3
+ import { createPortal as f } from "react-dom";
4
4
  import '../../../assets/src/components/Ui/ModalWindow/ModalWindow.css';/* empty css */
5
5
  import { Button as v } from "../Button/Button.js";
6
6
  import { IconX as N } from "../Icons/Icons.js";
7
- const x = ({
8
- isOpen: l,
9
- onClose: i,
7
+ const j = ({
8
+ isOpen: m,
9
+ onClose: l,
10
10
  width: a,
11
11
  size: r = "md",
12
12
  iconHeader: o,
@@ -16,8 +16,8 @@ const x = ({
16
16
  foolHeight: c,
17
17
  position: p = "center"
18
18
  }) => {
19
- if (!l) return null;
20
- const w = (o == null ? void 0 : o.size) ?? 20, n = /* @__PURE__ */ s(h, { children: /* @__PURE__ */ s("div", { className: `modal-window overlay position-${p}`, onClick: () => i(!1), children: /* @__PURE__ */ m(
19
+ if (!m) return null;
20
+ const w = (o == null ? void 0 : o.size) ?? 20, n = /* @__PURE__ */ s(h, { children: /* @__PURE__ */ s("div", { className: `modal-window overlay position-${p}`, children: /* @__PURE__ */ i(
21
21
  "div",
22
22
  {
23
23
  className: `modal-window__body size-${r} ${c ? "foolHeight" : ""}`,
@@ -27,8 +27,8 @@ const x = ({
27
27
  pointerEvents: "auto"
28
28
  },
29
29
  children: [
30
- /* @__PURE__ */ m("div", { className: "modal-window__header", children: [
31
- (o == null ? void 0 : o.view) && /* @__PURE__ */ s("div", { className: `modal-window__header__icon status-${o.status}`, children: f(o.icon, { size: w }) }),
30
+ /* @__PURE__ */ i("div", { className: "modal-window__header", children: [
31
+ (o == null ? void 0 : o.view) && /* @__PURE__ */ s("div", { className: `modal-window__header__icon status-${o.status}`, children: u(o.icon, { size: w }) }),
32
32
  t != null && t.toString() ? /* @__PURE__ */ s("span", { className: "modal-window__header__title", children: t }) : t,
33
33
  /* @__PURE__ */ s(
34
34
  v,
@@ -36,7 +36,7 @@ const x = ({
36
36
  type: "button",
37
37
  icon: /* @__PURE__ */ s(N, { size: 24 }),
38
38
  className: "icon-button",
39
- onClick: () => i(!1)
39
+ onClick: () => l(!1)
40
40
  }
41
41
  )
42
42
  ] }),
@@ -44,8 +44,8 @@ const x = ({
44
44
  ]
45
45
  }
46
46
  ) }) });
47
- return e ? u(n, document.body) : n;
47
+ return e ? f(n, document.body) : n;
48
48
  };
49
49
  export {
50
- x as ModalWindow
50
+ j as ModalWindow
51
51
  };
package/dist/main.d.ts CHANGED
@@ -81,7 +81,7 @@ export declare interface ButtonsArrayProps {
81
81
  label?: string;
82
82
  onChange?: (key: string | number) => void;
83
83
  activeKey?: string | number | null | undefined;
84
- isDisabled: boolean;
84
+ isDisabled?: boolean;
85
85
  }
86
86
 
87
87
  declare interface ButtonTab {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triafly-ui-kit",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "description": "UI Kit from Triafly",
5
5
  "main": "./dist/main.js",
6
6
  "module": "./dist/main.js",