stone-kit 0.0.373 → 0.0.374

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,16 +1,16 @@
1
- import { jsx as e, jsxs as c, Fragment as o } from "react/jsx-runtime";
2
- import { c as k } from "../../../index-rKuIKazb.js";
1
+ import { jsx as t, jsxs as m, Fragment as d } from "react/jsx-runtime";
2
+ import { c as b } from "../../../index-rKuIKazb.js";
3
3
  import { NewIcon as y } from "../../NewIcon/ui/NewIcon.js";
4
- const w = "_btnCommon_acr66_1", f = "_btnLoading_acr66_20", C = "_isHidden_acr66_24", N = "_blue_acr66_68", H = "_sokolniki_acr66_82", L = "_black_acr66_96", S = "_gray_acr66_110", p = "_whiteStroke_acr66_124", $ = "_whiteFilled_acr66_136", x = "_shade_acr66_150", F = "_transparent_acr66_156", v = "_volodiyaLight_acr66_177", j = "_loader_acr66_183", B = "_LoaderSpin_acr66_1", _ = {
4
+ const w = "_btnCommon_1gtkl_1", f = "_btnLoading_1gtkl_20", C = "_isHidden_1gtkl_24", N = "_blue_1gtkl_68", H = "_sokolniki_1gtkl_82", L = "_black_1gtkl_96", S = "_gray_1gtkl_110", p = "_whiteStroke_1gtkl_124", $ = "_whiteFilled_1gtkl_136", x = "_shade_1gtkl_150", F = "_transparent_1gtkl_156", v = "_volodiyaLight_1gtkl_177", j = "_loader_1gtkl_183", B = "_LoaderSpin_1gtkl_1", l = {
5
5
  btnCommon: w,
6
6
  btnLoading: f,
7
7
  isHidden: C,
8
- "auto-width": "_auto-width_acr66_28",
9
- "full-width": "_full-width_acr66_32",
10
- "tiny-size": "_tiny-size_acr66_36",
11
- "small-size": "_small-size_acr66_44",
12
- "medium-size": "_medium-size_acr66_52",
13
- "large-size": "_large-size_acr66_60",
8
+ "auto-width": "_auto-width_1gtkl_28",
9
+ "full-width": "_full-width_1gtkl_32",
10
+ "tiny-size": "_tiny-size_1gtkl_36",
11
+ "small-size": "_small-size_1gtkl_44",
12
+ "medium-size": "_medium-size_1gtkl_52",
13
+ "large-size": "_large-size_1gtkl_60",
14
14
  blue: N,
15
15
  sokolniki: H,
16
16
  black: L,
@@ -22,66 +22,65 @@ const w = "_btnCommon_acr66_1", f = "_btnLoading_acr66_20", C = "_isHidden_acr66
22
22
  volodiyaLight: v,
23
23
  loader: j,
24
24
  LoaderSpin: B,
25
- "tiny-size_m": "_tiny-size_m_acr66_189",
26
- "small-size_m": "_small-size_m_acr66_196",
27
- "medium-size_m": "_medium-size_m_acr66_203",
28
- "large-size_m": "_large-size_m_acr66_210",
29
- "tiny-size_l": "_tiny-size_l_acr66_219",
30
- "small-size_l": "_small-size_l_acr66_226",
31
- "medium-size_l": "_medium-size_l_acr66_233",
32
- "large-size_l": "_large-size_l_acr66_240"
33
- }, i = k.bind(_), D = ({
34
- size: m = "medium",
35
- size_m: d,
36
- size_l: z,
37
- pre: s = !1,
38
- children: h = "",
39
- post: n = !1,
40
- variant: u = "blue",
41
- width: b = "auto",
42
- additionalClass: g = "",
43
- isLoading: a = !1,
44
- ...l
25
+ "tiny-size_m": "_tiny-size_m_1gtkl_189",
26
+ "small-size_m": "_small-size_m_1gtkl_196",
27
+ "medium-size_m": "_medium-size_m_1gtkl_203",
28
+ "large-size_l": "_large-size_l_1gtkl_210",
29
+ "tiny-size_l": "_tiny-size_l_1gtkl_219",
30
+ "small-size_l": "_small-size_l_1gtkl_226",
31
+ "medium-size_l": "_medium-size_l_1gtkl_233"
32
+ }, e = b.bind(l), D = ({
33
+ size: r = "medium",
34
+ size_m: k,
35
+ size_l: c,
36
+ pre: i = !1,
37
+ children: g = "",
38
+ post: s = !1,
39
+ variant: z = "blue",
40
+ width: h = "auto",
41
+ additionalClass: u = "",
42
+ isLoading: _ = !1,
43
+ ...n
45
44
  }) => {
46
- const r = i(
47
- _.btnCommon,
48
- _[`${m}-size`],
49
- _[`${d}-size_m`],
50
- _[`${z}-size_l`],
51
- _[`${u}`],
52
- { [_.btnLoading]: a },
53
- { [_.btnCommonInline]: s || n },
54
- _[`${b}-width`],
55
- g
56
- ), t = () => /* @__PURE__ */ c(o, { children: [
57
- a && /* @__PURE__ */ e(
45
+ const a = e(
46
+ l.btnCommon,
47
+ l[`${r}-size`],
48
+ l[`${k}-size_m`],
49
+ l[`${c}-size_l`],
50
+ l[`${z}`],
51
+ { [l.btnLoading]: _ },
52
+ { [l.btnCommonInline]: i || s },
53
+ l[`${h}-width`],
54
+ u
55
+ ), o = () => /* @__PURE__ */ m(d, { children: [
56
+ _ && /* @__PURE__ */ t(
58
57
  y,
59
58
  {
60
59
  name: "loader",
61
60
  size: "24",
62
61
  color: "currentColor",
63
- additionalClass: _.loader
62
+ additionalClass: l.loader
64
63
  }
65
64
  ),
66
- /* @__PURE__ */ c(o, { children: [
67
- s && /* @__PURE__ */ e("span", { className: i({ [_.isHidden]: a }), children: s }),
68
- /* @__PURE__ */ e("span", { className: i({ [_.isHidden]: a }), children: h }),
69
- n && /* @__PURE__ */ e("span", { className: i({ [_.isHidden]: a }), children: n })
65
+ /* @__PURE__ */ m(d, { children: [
66
+ i && /* @__PURE__ */ t("span", { className: e({ [l.isHidden]: _ }), children: i }),
67
+ /* @__PURE__ */ t("span", { className: e({ [l.isHidden]: _ }), children: g }),
68
+ s && /* @__PURE__ */ t("span", { className: e({ [l.isHidden]: _ }), children: s })
70
69
  ] })
71
70
  ] });
72
- return l.as === "link" ? /* @__PURE__ */ e(
71
+ return n.as === "link" ? /* @__PURE__ */ t(
73
72
  "a",
74
73
  {
75
- className: r,
76
- ...l,
77
- children: t()
74
+ className: a,
75
+ ...n,
76
+ children: o()
78
77
  }
79
- ) : /* @__PURE__ */ e(
78
+ ) : /* @__PURE__ */ t(
80
79
  "button",
81
80
  {
82
- className: r,
83
- ...l,
84
- children: t()
81
+ className: a,
82
+ ...n,
83
+ children: o()
85
84
  }
86
85
  );
87
86
  };
@@ -1,8 +1,4 @@
1
1
  interface IModalFormProps {
2
- createPortalObj?: {
3
- domNode: HTMLElement | null;
4
- key?: string | null | undefined;
5
- };
6
2
  isFormOpen: boolean;
7
3
  setIsFormOpen: (isOpen: boolean) => void;
8
4
  submitHandler: (data: IFormPageInputs) => void;
@@ -34,5 +30,5 @@ type IFormPageInputs = {
34
30
  advCheckBox?: boolean;
35
31
  textarea?: string;
36
32
  };
37
- export declare const ModalForm: ({ createPortalObj, isFormOpen, setIsFormOpen, title, isEmail, isPhone, isTextArea, isRequiredPhone, isRequiredEmail, isRequiredPhoneOrEmail, textAreaPlaceholder, subTitle, submitHandler, modalWidth, rowsTextArea, personalCheckBox, advCheckBox, }: IModalFormProps) => import("react/jsx-runtime").JSX.Element | null;
33
+ export declare const ModalForm: ({ isFormOpen, setIsFormOpen, title, isEmail, isPhone, isTextArea, isRequiredPhone, isRequiredEmail, isRequiredPhoneOrEmail, textAreaPlaceholder, subTitle, submitHandler, modalWidth, rowsTextArea, personalCheckBox, advCheckBox, }: IModalFormProps) => import("react/jsx-runtime").JSX.Element | null;
38
34
  export {};