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,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as a, Fragment as m, jsx as
|
|
1
|
+
import { jsxs as a, Fragment as m, jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as x } from "react";
|
|
3
3
|
import { c as k } from "../../../index-rKuIKazb.js";
|
|
4
4
|
const f = "_inputWrapper_1ice0_10", P = "_inputWrapperPost_1ice0_37", g = "_inputWrapperPre_1ice0_38", w = "_light_1ice0_54", $ = "_dark_1ice0_92", B = "_inputWrapperError_1ice0_133", E = "_checkBox_1ice0_147", r = {
|
|
@@ -21,11 +21,11 @@ const f = "_inputWrapper_1ice0_10", P = "_inputWrapperPost_1ice0_37", g = "_inpu
|
|
|
21
21
|
variant: l = "light",
|
|
22
22
|
width: h = "auto",
|
|
23
23
|
error: d,
|
|
24
|
-
type:
|
|
24
|
+
type: i,
|
|
25
25
|
additionalClass: W = "",
|
|
26
26
|
...c
|
|
27
27
|
}, n) => /* @__PURE__ */ a(m, { children: [
|
|
28
|
-
|
|
28
|
+
i !== "checkbox" && /* @__PURE__ */ a(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
31
|
className: o(
|
|
@@ -41,20 +41,20 @@ const f = "_inputWrapper_1ice0_10", P = "_inputWrapperPost_1ice0_37", g = "_inpu
|
|
|
41
41
|
W
|
|
42
42
|
),
|
|
43
43
|
children: [
|
|
44
|
-
e && /* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
44
|
+
e && /* @__PURE__ */ p("div", { children: e }),
|
|
45
|
+
/* @__PURE__ */ p(
|
|
46
46
|
"input",
|
|
47
47
|
{
|
|
48
48
|
ref: n,
|
|
49
|
-
type:
|
|
49
|
+
type: i,
|
|
50
50
|
...c
|
|
51
51
|
}
|
|
52
52
|
),
|
|
53
|
-
t && /* @__PURE__ */
|
|
53
|
+
t && /* @__PURE__ */ p("div", { children: t })
|
|
54
54
|
]
|
|
55
55
|
}
|
|
56
56
|
),
|
|
57
|
-
|
|
57
|
+
i === "checkbox" && /* @__PURE__ */ p("input", { className: o(r.checkBox), ref: n, type: i, ...c })
|
|
58
58
|
] })
|
|
59
59
|
);
|
|
60
60
|
N.displayName = "Input";
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as d, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { c as u } from "../../../index-rKuIKazb.js";
|
|
3
|
-
const w = "_btnCommon_1act6_1", r = "_whiteFilled_1act6_34",
|
|
3
|
+
const w = "_btnCommon_1act6_1", r = "_whiteFilled_1act6_34", t = {
|
|
4
4
|
btnCommon: w,
|
|
5
5
|
"auto-width": "_auto-width_1act6_18",
|
|
6
6
|
"full-width": "_full-width_1act6_22",
|
|
7
7
|
"small-size": "_small-size_1act6_26",
|
|
8
8
|
whiteFilled: r
|
|
9
|
-
},
|
|
10
|
-
size:
|
|
11
|
-
pre:
|
|
12
|
-
children:
|
|
13
|
-
post:
|
|
14
|
-
variant:
|
|
15
|
-
width:
|
|
16
|
-
additionalClass:
|
|
17
|
-
...
|
|
9
|
+
}, _ = u.bind(t), F = ({
|
|
10
|
+
size: m = "small",
|
|
11
|
+
pre: n = !1,
|
|
12
|
+
children: o = "",
|
|
13
|
+
post: i = !1,
|
|
14
|
+
variant: s = "whiteFilled",
|
|
15
|
+
width: c = "auto",
|
|
16
|
+
additionalClass: a = "",
|
|
17
|
+
...e
|
|
18
18
|
}) => {
|
|
19
|
-
if (
|
|
20
|
-
const { as: C, ...b } =
|
|
21
|
-
return /* @__PURE__ */
|
|
19
|
+
if (e.as === "link") {
|
|
20
|
+
const { as: C, ...b } = e;
|
|
21
|
+
return /* @__PURE__ */ d(
|
|
22
22
|
"a",
|
|
23
23
|
{
|
|
24
|
-
className:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
{ [
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
className: _(
|
|
25
|
+
t.btnCommon,
|
|
26
|
+
t[`${m}-size`],
|
|
27
|
+
t[`${s}`],
|
|
28
|
+
{ [t.btnCommonInline]: n || i },
|
|
29
|
+
t[`${c}-width`],
|
|
30
|
+
a
|
|
31
31
|
),
|
|
32
32
|
...b,
|
|
33
33
|
children: [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
n && /* @__PURE__ */ l("div", { children: n }),
|
|
35
|
+
o,
|
|
36
|
+
i && /* @__PURE__ */ l("div", { children: i })
|
|
37
37
|
]
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
const { as: f, ...
|
|
42
|
-
return /* @__PURE__ */
|
|
41
|
+
const { as: f, ...h } = e;
|
|
42
|
+
return /* @__PURE__ */ d(
|
|
43
43
|
"button",
|
|
44
44
|
{
|
|
45
|
-
className:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
{ [
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
className: _(
|
|
46
|
+
t.btnCommon,
|
|
47
|
+
t[`${m}-size`],
|
|
48
|
+
t[`${s}`],
|
|
49
|
+
{ [t.btnCommonInline]: n || i },
|
|
50
|
+
t[`${c}-width`],
|
|
51
|
+
a
|
|
52
52
|
),
|
|
53
|
-
...
|
|
53
|
+
...h,
|
|
54
54
|
children: [
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
n && /* @__PURE__ */ l("div", { children: n }),
|
|
56
|
+
o,
|
|
57
|
+
i && /* @__PURE__ */ l("div", { children: i })
|
|
58
58
|
]
|
|
59
59
|
}
|
|
60
60
|
);
|