stone-kit 0.0.675 → 0.0.680
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/components/Button/ui/Button.js +19 -19
- package/dist/components/FormModal/ui/ModalForm.d.ts +5 -1
- package/dist/components/FormModal/ui/ModalForm.js +494 -492
- package/dist/components/Input/ui/Input.js +8 -8
- package/dist/components/mobileButton/ui/MobileButton.js +37 -37
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as e, jsxs as o, Fragment as
|
|
1
|
+
import { jsx as e, jsxs as o, Fragment as d } from "react/jsx-runtime";
|
|
2
2
|
import { c as y } from "../../../index-rKuIKazb.js";
|
|
3
3
|
import { NewIcon as w } from "../../NewIcon/ui/NewIcon.js";
|
|
4
|
-
const f = "_btnCommon_acr66_1", C = "_btnLoading_acr66_20", N = "_isHidden_acr66_24",
|
|
4
|
+
const f = "_btnCommon_acr66_1", C = "_btnLoading_acr66_20", N = "_isHidden_acr66_24", v = "_blue_acr66_68", H = "_sokolniki_acr66_82", S = "_black_acr66_96", L = "_gray_acr66_110", $ = "_whiteStroke_acr66_124", x = "_whiteFilled_acr66_136", F = "_shade_acr66_150", j = "_transparent_acr66_156", p = "_volodiyaLight_acr66_177", B = "_loader_acr66_183", I = "_LoaderSpin_acr66_1", _ = {
|
|
5
5
|
btnCommon: f,
|
|
6
6
|
btnLoading: C,
|
|
7
7
|
isHidden: N,
|
|
@@ -11,15 +11,15 @@ const f = "_btnCommon_acr66_1", C = "_btnLoading_acr66_20", N = "_isHidden_acr66
|
|
|
11
11
|
"small-size": "_small-size_acr66_44",
|
|
12
12
|
"medium-size": "_medium-size_acr66_52",
|
|
13
13
|
"large-size": "_large-size_acr66_60",
|
|
14
|
-
blue:
|
|
15
|
-
sokolniki:
|
|
16
|
-
black:
|
|
14
|
+
blue: v,
|
|
15
|
+
sokolniki: H,
|
|
16
|
+
black: S,
|
|
17
17
|
gray: L,
|
|
18
18
|
whiteStroke: $,
|
|
19
19
|
whiteFilled: x,
|
|
20
20
|
shade: F,
|
|
21
|
-
transparent:
|
|
22
|
-
volodiyaLight:
|
|
21
|
+
transparent: j,
|
|
22
|
+
volodiyaLight: p,
|
|
23
23
|
loader: B,
|
|
24
24
|
LoaderSpin: I,
|
|
25
25
|
"tiny-size_m": "_tiny-size_m_acr66_189",
|
|
@@ -30,8 +30,8 @@ const f = "_btnCommon_acr66_1", C = "_btnLoading_acr66_20", N = "_isHidden_acr66
|
|
|
30
30
|
"small-size_l": "_small-size_l_acr66_226",
|
|
31
31
|
"medium-size_l": "_medium-size_l_acr66_233",
|
|
32
32
|
"large-size_l": "_large-size_l_acr66_240"
|
|
33
|
-
},
|
|
34
|
-
size:
|
|
33
|
+
}, a = y.bind(_), E = ({
|
|
34
|
+
size: m = "medium",
|
|
35
35
|
size_m: z,
|
|
36
36
|
size_l: h,
|
|
37
37
|
onCLick: r,
|
|
@@ -41,21 +41,21 @@ const f = "_btnCommon_acr66_1", C = "_btnLoading_acr66_20", N = "_isHidden_acr66
|
|
|
41
41
|
variant: b = "blue",
|
|
42
42
|
width: k = "auto",
|
|
43
43
|
additionalClass: g = "",
|
|
44
|
-
isLoading:
|
|
44
|
+
isLoading: i = !1,
|
|
45
45
|
...l
|
|
46
46
|
}) => {
|
|
47
|
-
const t =
|
|
47
|
+
const t = a(
|
|
48
48
|
_.btnCommon,
|
|
49
|
-
_[`${
|
|
49
|
+
_[`${m}-size`],
|
|
50
50
|
_[`${z}-size_m`],
|
|
51
51
|
_[`${h}-size_l`],
|
|
52
52
|
_[`${b}`],
|
|
53
|
-
{ [_.btnLoading]:
|
|
53
|
+
{ [_.btnLoading]: i },
|
|
54
54
|
{ [_.btnCommonInline]: s || n },
|
|
55
55
|
_[`${k}-width`],
|
|
56
56
|
g
|
|
57
|
-
), c = () => /* @__PURE__ */ o(
|
|
58
|
-
|
|
57
|
+
), c = () => /* @__PURE__ */ o(d, { children: [
|
|
58
|
+
i && /* @__PURE__ */ e(
|
|
59
59
|
w,
|
|
60
60
|
{
|
|
61
61
|
name: "loader",
|
|
@@ -64,10 +64,10 @@ const f = "_btnCommon_acr66_1", C = "_btnLoading_acr66_20", N = "_isHidden_acr66
|
|
|
64
64
|
additionalClass: _.loader
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
|
-
/* @__PURE__ */ o(
|
|
68
|
-
s && /* @__PURE__ */ e("
|
|
69
|
-
/* @__PURE__ */ e("
|
|
70
|
-
n && /* @__PURE__ */ e("
|
|
67
|
+
/* @__PURE__ */ o(d, { children: [
|
|
68
|
+
s && /* @__PURE__ */ e("div", { className: a({ [_.isHidden]: i }), children: s }),
|
|
69
|
+
/* @__PURE__ */ e("div", { className: a({ [_.isHidden]: i }), children: u }),
|
|
70
|
+
n && /* @__PURE__ */ e("div", { className: a({ [_.isHidden]: i }), children: n })
|
|
71
71
|
] })
|
|
72
72
|
] });
|
|
73
73
|
return l.as === "link" ? /* @__PURE__ */ e(
|
|
@@ -21,6 +21,10 @@ interface IModalFormProps {
|
|
|
21
21
|
isRequiredPhoneOrEmail?: boolean;
|
|
22
22
|
isAdvCheckBox?: boolean;
|
|
23
23
|
addTitleClassName?: string;
|
|
24
|
+
createPortalObj?: {
|
|
25
|
+
domNode: HTMLElement | null;
|
|
26
|
+
key?: string | null | undefined;
|
|
27
|
+
};
|
|
24
28
|
}
|
|
25
29
|
type IFormPageInputs = {
|
|
26
30
|
phone: string;
|
|
@@ -30,5 +34,5 @@ type IFormPageInputs = {
|
|
|
30
34
|
advCheckBox?: boolean;
|
|
31
35
|
textarea?: string;
|
|
32
36
|
};
|
|
33
|
-
export declare const ModalForm: ({ isFormOpen, setIsFormOpen, isNews, title, isEmail, isPhone, isTextArea, telegramLink, isRequiredPhone, isRequiredEmail, isRequiredPhoneOrEmail, textAreaPlaceholder, subTitle, submitHandler, modalWidth, rowsTextArea, advCheckBox, isAdvCheckBox, addTitleClassName }: IModalFormProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
37
|
+
export declare const ModalForm: ({ isFormOpen, setIsFormOpen, isNews, title, isEmail, isPhone, isTextArea, telegramLink, isRequiredPhone, isRequiredEmail, isRequiredPhoneOrEmail, textAreaPlaceholder, subTitle, submitHandler, modalWidth, rowsTextArea, advCheckBox, isAdvCheckBox, addTitleClassName, createPortalObj }: IModalFormProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
34
38
|
export {};
|