stone-kit 0.0.38 → 0.0.40

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.
@@ -3,7 +3,7 @@ import { default as React, FC } from 'react';
3
3
  interface IModalProps {
4
4
  isOpen: boolean;
5
5
  emitIsOpen: (isOpen: boolean) => void;
6
- modifierClassesStyle?: string[];
6
+ additionalClass?: string;
7
7
  children?: React.ReactNode;
8
8
  }
9
9
  export declare const Modal: FC<IModalProps>;
@@ -1,30 +1,30 @@
1
- import { jsxs as d, jsx as o, Fragment as n } from "react/jsx-runtime";
2
- import { useEffect as m } from "react";
3
- const i = "_root_ykntu_1", s = {
4
- root: i
5
- }, b = ({ isOpen: l = !1, emitIsOpen: e, children: t }) => {
6
- const a = () => {
7
- e(!1);
1
+ import { jsxs as n, jsx as o, Fragment as m } from "react/jsx-runtime";
2
+ import { useEffect as i } from "react";
3
+ const _ = "_root_ykntu_1", s = {
4
+ root: _
5
+ }, u = ({ isOpen: l = !1, additionalClass: e, emitIsOpen: t, children: a }) => {
6
+ const c = () => {
7
+ t(!1);
8
8
  };
9
- return m(() => {
10
- const c = () => {
9
+ return i(() => {
10
+ const r = () => {
11
11
  document.body.classList.toggle("disable-scroll");
12
- }, r = () => {
12
+ }, d = () => {
13
13
  document.body.classList.remove("disable-scroll");
14
14
  };
15
15
  if (l)
16
- return c(), r;
17
- }, [l]), l ? /* @__PURE__ */ d("div", { className: `${s.root}`, children: [
16
+ return r(), d;
17
+ }, [l]), l ? /* @__PURE__ */ n("div", { className: `${s.root} ${e}`, children: [
18
18
  /* @__PURE__ */ o(
19
19
  "div",
20
20
  {
21
- onClick: a,
21
+ onClick: c,
22
22
  className: s.modal__overlay
23
23
  }
24
24
  ),
25
- /* @__PURE__ */ o("div", { className: s.modal__body, children: /* @__PURE__ */ o("div", { className: s.modal__contentWrap, children: /* @__PURE__ */ o("div", { className: s.modal__content, children: t }) }) })
26
- ] }) : /* @__PURE__ */ o(n, {});
25
+ /* @__PURE__ */ o("div", { className: s.modal__body, children: /* @__PURE__ */ o("div", { className: s.modal__contentWrap, children: /* @__PURE__ */ o("div", { className: s.modal__content, children: a }) }) })
26
+ ] }) : /* @__PURE__ */ o(m, {});
27
27
  };
28
28
  export {
29
- b as Modal
29
+ u as Modal
30
30
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "stone-kit",
3
3
  "description": "uikit for redesign",
4
4
  "private": false,
5
- "version": "0.0.38",
5
+ "version": "0.0.40",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",