stone-kit 0.0.34 → 0.0.35
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 +2 -2
- package/dist/components/DestinationTab/ui/DestinationTab.js +4 -4
- package/dist/components/Flex/ui/Flex.d.ts +1 -1
- package/dist/components/Flex/ui/Flex.js +19 -9
- package/dist/components/Flex/ui/Flex.types.d.ts +1 -0
- package/dist/components/Input/ui/Input.js +1 -1
- package/dist/components/MobileButton/ui/MobileButton.js +5 -5
- package/dist/components/NewIcon/ui/NewIcon.d.ts +9 -3
- package/dist/components/NewIcon/ui/NewIcon.js +1 -1
- package/dist/components/RoundButton/ui/RoundButton.js +5 -5
- package/dist/components/Tag/ui/Tag.js +2 -2
- package/dist/components/Text/ui/Text.d.ts +1 -1
- package/dist/components/Text/ui/Text.js +8 -8
- package/dist/components/Text/ui/Text.types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@ const w = "_btnCommon_2h1hm_1", y = "_blue_2h1hm_58", g = "_sokolniki_2h1hm_72",
|
|
|
35
35
|
post: m = !1,
|
|
36
36
|
variant: z = "blue",
|
|
37
37
|
width: u = "auto",
|
|
38
|
-
additionalClass: b,
|
|
38
|
+
additionalClass: b = "",
|
|
39
39
|
isLoading: l = !1,
|
|
40
40
|
...s
|
|
41
41
|
}) => {
|
|
@@ -55,7 +55,7 @@ const w = "_btnCommon_2h1hm_1", y = "_blue_2h1hm_58", g = "_sokolniki_2h1hm_72",
|
|
|
55
55
|
name: "loader",
|
|
56
56
|
size: "24",
|
|
57
57
|
color: "#fff",
|
|
58
|
-
|
|
58
|
+
additionalClass: _.loader
|
|
59
59
|
}
|
|
60
60
|
),
|
|
61
61
|
!l && /* @__PURE__ */ t(o, { children: [
|
|
@@ -14,7 +14,7 @@ const x = "_destination_1c7de_1", n = "_destinationName_1c7de_40", w = "_routeTe
|
|
|
14
14
|
"large-size_m": "_large-size_m_1c7de_122",
|
|
15
15
|
"medium-size_l": "_medium-size_l_1c7de_137",
|
|
16
16
|
"large-size_l": "_large-size_l_1c7de_150"
|
|
17
|
-
},
|
|
17
|
+
}, b = N.bind(_), f = ({
|
|
18
18
|
size: m = "medium",
|
|
19
19
|
size_m: c,
|
|
20
20
|
size_l: a,
|
|
@@ -24,19 +24,19 @@ const x = "_destination_1c7de_1", n = "_destinationName_1c7de_40", w = "_routeTe
|
|
|
24
24
|
routes: l = [],
|
|
25
25
|
checked: o,
|
|
26
26
|
onChange: u,
|
|
27
|
-
additionalClass: p,
|
|
27
|
+
additionalClass: p = "",
|
|
28
28
|
...h
|
|
29
29
|
}) => /* @__PURE__ */ t(
|
|
30
30
|
"label",
|
|
31
31
|
{
|
|
32
|
-
className:
|
|
32
|
+
className: b(
|
|
33
33
|
_.destination,
|
|
34
34
|
_[`${m}-size`],
|
|
35
35
|
_[`${c}-size_m`],
|
|
36
36
|
_[`${a}-size_l`],
|
|
37
37
|
_[`${d}`],
|
|
38
38
|
_[`${i}-width`],
|
|
39
|
-
|
|
39
|
+
p
|
|
40
40
|
),
|
|
41
41
|
...h,
|
|
42
42
|
htmlFor: e.destName,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IFlexProps } from './Flex.types';
|
|
2
2
|
|
|
3
|
-
export declare const Flex: ({ className, children, jc, ai, gap, fd, w, }: IFlexProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const Flex: ({ className, children, jc, ai, gap, fd, w, additionalClass, }: IFlexProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
const
|
|
4
|
-
root:
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import { c as s } from "../../../index-DIxK0V-G.js";
|
|
3
|
+
const t = "_root_fi64k_1", _ = {
|
|
4
|
+
root: t,
|
|
5
5
|
"gap-1": "_gap-1_fi64k_5",
|
|
6
6
|
"gap-2": "_gap-2_fi64k_9",
|
|
7
7
|
"gap-3": "_gap-3_fi64k_13",
|
|
@@ -36,21 +36,31 @@ const s = "_root_fi64k_1", _ = {
|
|
|
36
36
|
"ai-flex-end": "_ai-flex-end_fi64k_129",
|
|
37
37
|
"ai-center": "_ai-center_fi64k_133",
|
|
38
38
|
"ai-baseline": "_ai-baseline_fi64k_137"
|
|
39
|
-
},
|
|
39
|
+
}, o = s.bind(_), l = ({
|
|
40
40
|
className: a,
|
|
41
41
|
children: e,
|
|
42
42
|
jc: f = "start",
|
|
43
43
|
ai: i = "center",
|
|
44
44
|
gap: p,
|
|
45
45
|
fd: r = "row",
|
|
46
|
-
w: c = "nowrap"
|
|
47
|
-
|
|
46
|
+
w: c = "nowrap",
|
|
47
|
+
additionalClass: k = ""
|
|
48
|
+
}) => /* @__PURE__ */ g(
|
|
48
49
|
"div",
|
|
49
50
|
{
|
|
50
|
-
className:
|
|
51
|
+
className: o(
|
|
52
|
+
_.root,
|
|
53
|
+
a,
|
|
54
|
+
_[`w-${c}`],
|
|
55
|
+
_[`jc-${f}`],
|
|
56
|
+
_[`ai-${i}`],
|
|
57
|
+
_[`gap-${p}`],
|
|
58
|
+
_[`fd-${r}`],
|
|
59
|
+
k
|
|
60
|
+
),
|
|
51
61
|
children: e
|
|
52
62
|
}
|
|
53
63
|
);
|
|
54
64
|
export {
|
|
55
|
-
|
|
65
|
+
l as Flex
|
|
56
66
|
};
|
|
@@ -13,11 +13,11 @@ const w = "_btnCommon_1act6_1", r = "_whiteFilled_1act6_34", n = {
|
|
|
13
13
|
post: l = !1,
|
|
14
14
|
variant: m = "whiteFilled",
|
|
15
15
|
width: o = "auto",
|
|
16
|
-
additionalClass: c,
|
|
16
|
+
additionalClass: c = "",
|
|
17
17
|
...i
|
|
18
18
|
}) => {
|
|
19
19
|
if (i.as === "link") {
|
|
20
|
-
const { as:
|
|
20
|
+
const { as: C, ...b } = i;
|
|
21
21
|
return /* @__PURE__ */ _(
|
|
22
22
|
"a",
|
|
23
23
|
{
|
|
@@ -27,7 +27,7 @@ const w = "_btnCommon_1act6_1", r = "_whiteFilled_1act6_34", n = {
|
|
|
27
27
|
n[`${m}`],
|
|
28
28
|
{ [n.btnCommonInline]: t || l },
|
|
29
29
|
n[`${o}-width`],
|
|
30
|
-
|
|
30
|
+
c
|
|
31
31
|
),
|
|
32
32
|
...b,
|
|
33
33
|
children: [
|
|
@@ -38,7 +38,7 @@ const w = "_btnCommon_1act6_1", r = "_whiteFilled_1act6_34", n = {
|
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
const { as:
|
|
41
|
+
const { as: f, ...d } = i;
|
|
42
42
|
return /* @__PURE__ */ _(
|
|
43
43
|
"button",
|
|
44
44
|
{
|
|
@@ -48,7 +48,7 @@ const w = "_btnCommon_1act6_1", r = "_whiteFilled_1act6_34", n = {
|
|
|
48
48
|
n[`${m}`],
|
|
49
49
|
{ [n.btnCommonInline]: t || l },
|
|
50
50
|
n[`${o}-width`],
|
|
51
|
-
|
|
51
|
+
c
|
|
52
52
|
),
|
|
53
53
|
...d,
|
|
54
54
|
children: [
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import { ReactSVGComponent } from './NewIcon.types';
|
|
2
|
+
|
|
1
3
|
type IconComponentProps = {
|
|
2
|
-
name:
|
|
4
|
+
name: keyof typeof iconTypes;
|
|
3
5
|
size?: string;
|
|
4
6
|
color?: string;
|
|
5
|
-
|
|
7
|
+
additionalClass?: string;
|
|
6
8
|
deg?: string;
|
|
7
9
|
};
|
|
8
|
-
|
|
10
|
+
type IconTypes = {
|
|
11
|
+
[name: string]: ReactSVGComponent;
|
|
12
|
+
};
|
|
13
|
+
declare const iconTypes: IconTypes;
|
|
14
|
+
export declare const NewIcon: ({ name, size, color, additionalClass, deg }: IconComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
15
|
export {};
|
|
@@ -197,7 +197,7 @@ const m = ({
|
|
|
197
197
|
building: () => /* @__PURE__ */ n(R1, {}),
|
|
198
198
|
case: () => /* @__PURE__ */ n(S1, {}),
|
|
199
199
|
sport: () => /* @__PURE__ */ n(H1, {})
|
|
200
|
-
}, P1 = ({ name: t, size: l = "24", color: r,
|
|
200
|
+
}, P1 = ({ name: t, size: l = "24", color: r, additionalClass: a, deg: c }) => {
|
|
201
201
|
const s = $1[t];
|
|
202
202
|
return /* @__PURE__ */ n(
|
|
203
203
|
"div",
|
|
@@ -3,12 +3,12 @@ import { useState as f, useEffect as S } from "react";
|
|
|
3
3
|
import { c as R } from "../../../index-DIxK0V-G.js";
|
|
4
4
|
import { NewIcon as p } from "../../NewIcon/ui/NewIcon.js";
|
|
5
5
|
import { sizeMap as s } from "./RoundButton.types.js";
|
|
6
|
-
const
|
|
7
|
-
btnRound:
|
|
6
|
+
const k = "_btnRound_4g1ag_1", $ = "_whiteStroke_4g1ag_31", e = {
|
|
7
|
+
btnRound: k,
|
|
8
8
|
"small-size": "_small-size_4g1ag_14",
|
|
9
9
|
"medium-size": "_medium-size_4g1ag_19",
|
|
10
10
|
"large-size": "_large-size_4g1ag_25",
|
|
11
|
-
whiteStroke:
|
|
11
|
+
whiteStroke: $,
|
|
12
12
|
"small-size_m": "_small-size_m_4g1ag_43",
|
|
13
13
|
"medium-size_m": "_medium-size_m_4g1ag_47",
|
|
14
14
|
"large-size_m": "_large-size_m_4g1ag_52",
|
|
@@ -22,7 +22,7 @@ const $ = "_btnRound_4g1ag_1", k = "_whiteStroke_4g1ag_31", e = {
|
|
|
22
22
|
children: r = "",
|
|
23
23
|
iconName: o = "",
|
|
24
24
|
variant: g = "whiteStroke",
|
|
25
|
-
additionalClass: d,
|
|
25
|
+
additionalClass: d = "",
|
|
26
26
|
deg: z,
|
|
27
27
|
...l
|
|
28
28
|
}) => {
|
|
@@ -44,7 +44,7 @@ const $ = "_btnRound_4g1ag_1", k = "_whiteStroke_4g1ag_31", e = {
|
|
|
44
44
|
e[`${t}-size_m`],
|
|
45
45
|
e[`${i}-size_l`],
|
|
46
46
|
e[`${g}`],
|
|
47
|
-
|
|
47
|
+
d
|
|
48
48
|
),
|
|
49
49
|
...l,
|
|
50
50
|
children: /* @__PURE__ */ a(b, { children: o ? /* @__PURE__ */ a(
|
|
@@ -20,7 +20,7 @@ const z = "_tagCommon_96we6_1", r = "_red_96we6_40", u = "_gray_96we6_46", c = "
|
|
|
20
20
|
children: s = "",
|
|
21
21
|
variant: t = "gray",
|
|
22
22
|
width: o = "auto",
|
|
23
|
-
additionalClass: a,
|
|
23
|
+
additionalClass: a = "",
|
|
24
24
|
...d
|
|
25
25
|
}) => /* @__PURE__ */ n(
|
|
26
26
|
"div",
|
|
@@ -32,7 +32,7 @@ const z = "_tagCommon_96we6_1", r = "_red_96we6_40", u = "_gray_96we6_46", c = "
|
|
|
32
32
|
_[`${m}-size_l`],
|
|
33
33
|
_[`${t}`],
|
|
34
34
|
_[`${o}-width`],
|
|
35
|
-
|
|
35
|
+
a
|
|
36
36
|
),
|
|
37
37
|
...d,
|
|
38
38
|
children: s
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ITextProps } from './Text.types';
|
|
2
2
|
|
|
3
|
-
export declare const Text: ({ children, className, html, ...rest }: ITextProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const Text: ({ children, className, additionalClass, html, ...rest }: ITextProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
const o = {},
|
|
2
|
+
import { c as i } from "../../../index-DIxK0V-G.js";
|
|
3
|
+
const o = {}, c = i.bind(o), f = ({ children: m, className: r, additionalClass: t = "", html: s, ...e }) => s ? /* @__PURE__ */ n(
|
|
4
4
|
"div",
|
|
5
5
|
{
|
|
6
|
-
className:
|
|
7
|
-
...
|
|
6
|
+
className: c(o.root, r, t),
|
|
7
|
+
...e,
|
|
8
8
|
dangerouslySetInnerHTML: { __html: s }
|
|
9
9
|
}
|
|
10
10
|
) : /* @__PURE__ */ n(
|
|
11
11
|
"div",
|
|
12
12
|
{
|
|
13
|
-
className:
|
|
14
|
-
...
|
|
15
|
-
children:
|
|
13
|
+
className: c(o.root, r, t),
|
|
14
|
+
...e,
|
|
15
|
+
children: m
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
f as Text
|
|
20
20
|
};
|