stone-kit 0.0.16 → 0.0.18
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/index.d.ts +1 -3
- package/dist/components/Button/index.js +2 -2
- package/dist/components/Button/ui/Button.d.ts +1 -2
- package/dist/components/Button/ui/Button.js +74 -89
- package/dist/components/Button/ui/Button.types.d.ts +4 -2
- package/dist/components/MobileButton/index.d.ts +1 -0
- package/dist/components/MobileButton/index.js +4 -0
- package/dist/components/MobileButton/ui/MobileButton.d.ts +5 -0
- package/dist/components/MobileButton/ui/MobileButton.js +65 -0
- package/dist/components/MobileButton/ui/MobileButton.types.d.ts +24 -0
- package/dist/components/MobileButton/ui/MobileButton.types.js +6 -0
- package/dist/components/NewIcon/index.d.ts +1 -0
- package/dist/components/NewIcon/index.js +4 -0
- package/dist/components/NewIcon/ui/NewIcon.d.ts +8 -0
- package/dist/components/NewIcon/ui/NewIcon.js +108 -0
- package/dist/components/NewIcon/ui/NewIcon.types.d.ts +8 -0
- package/dist/components/NewIcon/ui/NewIcon.types.js +1 -0
- package/dist/components/Tag/index.d.ts +1 -0
- package/dist/components/Tag/index.js +4 -0
- package/dist/components/Tag/ui/Tag.d.ts +4 -0
- package/dist/components/Tag/ui/Tag.js +34 -0
- package/dist/components/Tag/ui/Tag.types.d.ts +18 -0
- package/dist/components/Tag/ui/Tag.types.js +7 -0
- package/dist/index-DIxK0V-G.js +44 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +6 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ComponentProps } from './Button.types';
|
|
3
3
|
|
|
4
|
-
declare const Button: ({ size, pre, children, post, variant, width, additionalClass, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export default Button;
|
|
4
|
+
export declare const Button: ({ size, pre, children, post, variant, width, additionalClass, isLoading, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,111 +1,96 @@
|
|
|
1
|
-
import { jsxs as _, jsx as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var f = { exports: {} };
|
|
6
|
-
/*!
|
|
7
|
-
Copyright (c) 2018 Jed Watson.
|
|
8
|
-
Licensed under the MIT License (MIT), see
|
|
9
|
-
http://jedwatson.github.io/classnames
|
|
10
|
-
*/
|
|
11
|
-
(function(e) {
|
|
12
|
-
(function() {
|
|
13
|
-
var i = {}.hasOwnProperty;
|
|
14
|
-
function c() {
|
|
15
|
-
for (var t = "", n = 0; n < arguments.length; n++) {
|
|
16
|
-
var o = arguments[n];
|
|
17
|
-
o && (t = l(t, r(o)));
|
|
18
|
-
}
|
|
19
|
-
return t;
|
|
20
|
-
}
|
|
21
|
-
function r(t) {
|
|
22
|
-
if (typeof t == "string" || typeof t == "number")
|
|
23
|
-
return t;
|
|
24
|
-
if (typeof t != "object")
|
|
25
|
-
return "";
|
|
26
|
-
if (Array.isArray(t))
|
|
27
|
-
return c.apply(null, t);
|
|
28
|
-
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
|
|
29
|
-
return t.toString();
|
|
30
|
-
var n = "";
|
|
31
|
-
for (var o in t)
|
|
32
|
-
i.call(t, o) && t[o] && (n = l(n, o));
|
|
33
|
-
return n;
|
|
34
|
-
}
|
|
35
|
-
function l(t, n) {
|
|
36
|
-
return n ? t ? t + " " + n : t + n : t;
|
|
37
|
-
}
|
|
38
|
-
e.exports ? (c.default = c, e.exports = c) : window.classNames = c;
|
|
39
|
-
})();
|
|
40
|
-
})(f);
|
|
41
|
-
var d = f.exports;
|
|
42
|
-
const h = /* @__PURE__ */ b(d), w = "_btnCommon_4cp41_1", k = "_blue_4cp41_57", y = "_sokolniki_4cp41_71", z = "_black_4cp41_85", x = "_gray_4cp41_99", S = "_whiteStroke_4cp41_113", $ = "_whiteFilled_4cp41_125", s = {
|
|
1
|
+
import { jsxs as _, jsx as n, Fragment as d } from "react/jsx-runtime";
|
|
2
|
+
import { c as k } from "../../../index-DIxK0V-G.js";
|
|
3
|
+
import { NewIcon as h } from "../../NewIcon/ui/NewIcon.js";
|
|
4
|
+
const w = "_btnCommon_15ot8_1", z = "_blue_15ot8_57", $ = "_sokolniki_15ot8_71", C = "_black_15ot8_85", S = "_gray_15ot8_99", y = "_whiteStroke_15ot8_113", g = "_whiteFilled_15ot8_125", x = "_loader_15ot8_147", F = "_LoaderSpin_15ot8_1", o = {
|
|
43
5
|
btnCommon: w,
|
|
44
|
-
"auto-width": "_auto-
|
|
45
|
-
"full-width": "_full-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
blue:
|
|
51
|
-
sokolniki:
|
|
52
|
-
black:
|
|
53
|
-
gray:
|
|
54
|
-
whiteStroke:
|
|
55
|
-
whiteFilled:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
6
|
+
"auto-width": "_auto-width_15ot8_17",
|
|
7
|
+
"full-width": "_full-width_15ot8_21",
|
|
8
|
+
"large-size": "_large-size_15ot8_25",
|
|
9
|
+
"medium-size": "_medium-size_15ot8_33",
|
|
10
|
+
"small-size": "_small-size_15ot8_41",
|
|
11
|
+
"tiny-size": "_tiny-size_15ot8_49",
|
|
12
|
+
blue: z,
|
|
13
|
+
sokolniki: $,
|
|
14
|
+
black: C,
|
|
15
|
+
gray: S,
|
|
16
|
+
whiteStroke: y,
|
|
17
|
+
whiteFilled: g,
|
|
18
|
+
loader: x,
|
|
19
|
+
LoaderSpin: F
|
|
20
|
+
}, b = k.bind(o), A = ({
|
|
21
|
+
size: i = "large",
|
|
22
|
+
pre: t = !1,
|
|
23
|
+
children: a = "",
|
|
24
|
+
post: e = !1,
|
|
25
|
+
variant: r = "blue",
|
|
26
|
+
width: c = "auto",
|
|
27
|
+
additionalClass: m,
|
|
28
|
+
isLoading: l = !1,
|
|
29
|
+
...s
|
|
65
30
|
}) => {
|
|
66
|
-
if (
|
|
67
|
-
const { as:
|
|
31
|
+
if (s.as === "link") {
|
|
32
|
+
const { as: I, ...u } = s;
|
|
68
33
|
return /* @__PURE__ */ _(
|
|
69
34
|
"a",
|
|
70
35
|
{
|
|
71
|
-
className:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
{ [
|
|
76
|
-
|
|
77
|
-
`${
|
|
36
|
+
className: b(
|
|
37
|
+
o.btnCommon,
|
|
38
|
+
o[`${i}-size`],
|
|
39
|
+
o[`${r}`],
|
|
40
|
+
{ [o.btnCommonInline]: t || e },
|
|
41
|
+
o[`${c}-width`],
|
|
42
|
+
`${m ?? ""}`
|
|
78
43
|
),
|
|
79
|
-
...
|
|
44
|
+
...u,
|
|
80
45
|
children: [
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
46
|
+
l && /* @__PURE__ */ n(
|
|
47
|
+
h,
|
|
48
|
+
{
|
|
49
|
+
name: "loader",
|
|
50
|
+
color: "#fff"
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
!l && /* @__PURE__ */ _(d, { children: [
|
|
54
|
+
t && /* @__PURE__ */ n("span", { children: t }),
|
|
55
|
+
a,
|
|
56
|
+
e && /* @__PURE__ */ n("span", { children: e })
|
|
57
|
+
] })
|
|
84
58
|
]
|
|
85
59
|
}
|
|
86
60
|
);
|
|
87
61
|
}
|
|
88
|
-
const { as:
|
|
62
|
+
const { as: N, ...f } = s;
|
|
89
63
|
return /* @__PURE__ */ _(
|
|
90
64
|
"button",
|
|
91
65
|
{
|
|
92
|
-
className:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
{ [
|
|
97
|
-
|
|
98
|
-
`${
|
|
66
|
+
className: b(
|
|
67
|
+
o.btnCommon,
|
|
68
|
+
o[`${i}-size`],
|
|
69
|
+
o[`${r}`],
|
|
70
|
+
{ [o.btnCommonInline]: t || e },
|
|
71
|
+
o[`${c}-width`],
|
|
72
|
+
`${m ?? ""}`
|
|
99
73
|
),
|
|
100
|
-
...
|
|
74
|
+
...f,
|
|
101
75
|
children: [
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
76
|
+
l && /* @__PURE__ */ n(
|
|
77
|
+
h,
|
|
78
|
+
{
|
|
79
|
+
name: "loader",
|
|
80
|
+
size: "24",
|
|
81
|
+
color: "#fff",
|
|
82
|
+
addClass: o.loader
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
!l && /* @__PURE__ */ _(d, { children: [
|
|
86
|
+
t && /* @__PURE__ */ n("span", { children: t }),
|
|
87
|
+
a,
|
|
88
|
+
e && /* @__PURE__ */ n("span", { children: e })
|
|
89
|
+
] })
|
|
105
90
|
]
|
|
106
91
|
}
|
|
107
92
|
);
|
|
108
93
|
};
|
|
109
94
|
export {
|
|
110
|
-
|
|
95
|
+
A as Button
|
|
111
96
|
};
|
|
@@ -10,14 +10,16 @@ export declare const BUTTON_VARIANTS: {
|
|
|
10
10
|
whiteFilled: string;
|
|
11
11
|
};
|
|
12
12
|
export type btnVariant = keyof typeof BUTTON_VARIANTS;
|
|
13
|
+
type btnSizes = 'large' | 'medium' | 'small' | 'tiny';
|
|
13
14
|
interface ButtonProps {
|
|
14
|
-
size?:
|
|
15
|
+
size?: btnSizes;
|
|
15
16
|
pre?: ReactNode;
|
|
16
17
|
post?: ReactNode;
|
|
17
|
-
children?: string;
|
|
18
|
+
children?: string | ReactNode;
|
|
18
19
|
variant?: btnVariant;
|
|
19
20
|
width?: btnWidth;
|
|
20
21
|
additionalClass?: string;
|
|
22
|
+
isLoading?: boolean;
|
|
21
23
|
as?: 'button' | 'link';
|
|
22
24
|
}
|
|
23
25
|
export type ComponentProps = ButtonProps & ((React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MobileButton } from './ui/MobileButton.tsx';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ComponentProps } from './MobileButton.types.ts';
|
|
3
|
+
|
|
4
|
+
export declare const MobileButton: ({ size, pre, children, post, variant, width, additionalClass, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default MobileButton;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { jsxs as u, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c as f } from "../../../index-DIxK0V-G.js";
|
|
3
|
+
const b = "_btnCommon_uvpf8_1", w = "_whiteFilled_uvpf8_34", n = {
|
|
4
|
+
btnCommon: b,
|
|
5
|
+
"auto-width": "_auto-width_uvpf8_18",
|
|
6
|
+
"full-width": "_full-width_uvpf8_22",
|
|
7
|
+
"small-size": "_small-size_uvpf8_26",
|
|
8
|
+
whiteFilled: w
|
|
9
|
+
}, _ = f.bind(n), x = ({
|
|
10
|
+
size: e = "small",
|
|
11
|
+
pre: l = !1,
|
|
12
|
+
children: m = "",
|
|
13
|
+
post: t = !1,
|
|
14
|
+
variant: o = "whiteFilled",
|
|
15
|
+
width: a = "auto",
|
|
16
|
+
additionalClass: c,
|
|
17
|
+
...i
|
|
18
|
+
}) => {
|
|
19
|
+
if (i.as === "link") {
|
|
20
|
+
const { as: $, ...h } = i;
|
|
21
|
+
return /* @__PURE__ */ u(
|
|
22
|
+
"a",
|
|
23
|
+
{
|
|
24
|
+
className: _(
|
|
25
|
+
n.btnCommon,
|
|
26
|
+
n[`${e}-size`],
|
|
27
|
+
n[`${o}`],
|
|
28
|
+
{ [n.btnCommonInline]: l || t },
|
|
29
|
+
n[`${a}-width`],
|
|
30
|
+
`${c ?? ""}`
|
|
31
|
+
),
|
|
32
|
+
...h,
|
|
33
|
+
children: [
|
|
34
|
+
l && /* @__PURE__ */ s("span", { children: l }),
|
|
35
|
+
m,
|
|
36
|
+
t && /* @__PURE__ */ s("span", { children: t })
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
const { as: r, ...d } = i;
|
|
42
|
+
return /* @__PURE__ */ u(
|
|
43
|
+
"button",
|
|
44
|
+
{
|
|
45
|
+
className: _(
|
|
46
|
+
n.btnCommon,
|
|
47
|
+
n[`${e}-size`],
|
|
48
|
+
n[`${o}`],
|
|
49
|
+
{ [n.btnCommonInline]: l || t },
|
|
50
|
+
n[`${a}-width`],
|
|
51
|
+
`${c ?? ""}`
|
|
52
|
+
),
|
|
53
|
+
...d,
|
|
54
|
+
children: [
|
|
55
|
+
l && /* @__PURE__ */ s("span", { children: l }),
|
|
56
|
+
m,
|
|
57
|
+
t && /* @__PURE__ */ s("span", { children: t })
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
x as MobileButton,
|
|
64
|
+
x as default
|
|
65
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type btnWidth = 'auto' | 'full';
|
|
4
|
+
export declare const MOBILE_BUTTON_VARIANTS: {
|
|
5
|
+
whiteFilled: string;
|
|
6
|
+
};
|
|
7
|
+
export type mobileBtnVariant = keyof typeof MOBILE_BUTTON_VARIANTS;
|
|
8
|
+
type btnSizes = 'small';
|
|
9
|
+
interface MobileButtonProps {
|
|
10
|
+
size?: btnSizes;
|
|
11
|
+
pre?: ReactNode;
|
|
12
|
+
post?: ReactNode;
|
|
13
|
+
children?: string;
|
|
14
|
+
variant?: mobileBtnVariant;
|
|
15
|
+
width?: btnWidth;
|
|
16
|
+
additionalClass?: string;
|
|
17
|
+
as?: 'button' | 'link';
|
|
18
|
+
}
|
|
19
|
+
export type ComponentProps = MobileButtonProps & ((React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
20
|
+
as?: 'button';
|
|
21
|
+
}) | (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
22
|
+
as: 'link';
|
|
23
|
+
} & Required<Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>>));
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NewIcon } from './ui/NewIcon';
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
import { forwardRef as a } from "react";
|
|
4
|
+
const s = ({
|
|
5
|
+
title: t,
|
|
6
|
+
titleId: r,
|
|
7
|
+
...l
|
|
8
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M11.9999 2V6.44444M19.071 4.92893L15.9283 8.07163M22 12.0002H17.5555M19.071 19.071L15.9283 15.9283M11.9999 17.5556V22M8.07154 15.9284L4.92883 19.0711M6.44446 12.0002H2", stroke: "currentColor", strokeLinecap: "round" })), w = a(s), m = ({
|
|
9
|
+
title: t,
|
|
10
|
+
titleId: r,
|
|
11
|
+
...l
|
|
12
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("g", { clipPath: "url(#clip0_116_47)" }, /* @__PURE__ */ e.createElement("rect", { x: 10.5078, y: 3.5, width: 5, height: 5, rx: 2.5, transform: "rotate(90 10.5078 3.5)", stroke: "currentColor" }), /* @__PURE__ */ e.createElement("path", { d: "M3.00015 6H5.00015", stroke: "currentColor", strokeLinecap: "square" }), /* @__PURE__ */ e.createElement("path", { d: "M10.5335 6L21 6", stroke: "currentColor", strokeLinecap: "square" }), /* @__PURE__ */ e.createElement("rect", { x: 13.4922, y: 14.5, width: 5, height: 5, rx: 2.5, transform: "rotate(-90 13.4922 14.5)", stroke: "currentColor" }), /* @__PURE__ */ e.createElement("path", { d: "M21.0001 12L19.0001 12", stroke: "currentColor", strokeLinecap: "square" }), /* @__PURE__ */ e.createElement("path", { d: "M13.4665 12L3 12", stroke: "currentColor", strokeLinecap: "square" }), /* @__PURE__ */ e.createElement("rect", { x: 10.5078, y: 15.5001, width: 5, height: 5, rx: 2.5, transform: "rotate(90 10.5078 15.5001)", stroke: "currentColor" }), /* @__PURE__ */ e.createElement("path", { d: "M3.00013 18H5.00013", stroke: "currentColor", strokeLinecap: "square" }), /* @__PURE__ */ e.createElement("path", { d: "M10.5335 18.0001L21 18.0001", stroke: "currentColor", strokeLinecap: "square" })), /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("clipPath", { id: "clip0_116_47" }, /* @__PURE__ */ e.createElement("rect", { width: 24, height: 24, fill: "none" })))), i = a(m), d = ({
|
|
13
|
+
title: t,
|
|
14
|
+
titleId: r,
|
|
15
|
+
...l
|
|
16
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M12 5H19V12", stroke: "currentColor" }), /* @__PURE__ */ e.createElement("path", { d: "M12 19L5 19L5 12", stroke: "currentColor" })), u = a(d), g = ({
|
|
17
|
+
title: t,
|
|
18
|
+
titleId: r,
|
|
19
|
+
...l
|
|
20
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M7.42857 5L7.42857 19M7.42857 19L10.8571 15.2941M7.42857 19L4 15.2941", stroke: "currentColor" }), /* @__PURE__ */ e.createElement("path", { d: "M16.5714 19L16.5714 5M16.5714 5L13.1429 8.70588M16.5714 5L20 8.70588", stroke: "currentColor" })), h = a(g), v = ({
|
|
21
|
+
title: t,
|
|
22
|
+
titleId: r,
|
|
23
|
+
...l
|
|
24
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.9938 5.91615C10.1944 3.81913 7.19377 3.25504 4.93923 5.17528C2.68468 7.09552 2.36727 10.3061 4.13778 12.5771C5.60984 14.4654 10.0648 18.4478 11.5249 19.7368C11.6882 19.881 11.7699 19.9531 11.8652 19.9815C11.9483 20.0062 12.0393 20.0062 12.1225 19.9815C12.2178 19.9531 12.2994 19.881 12.4628 19.7368C13.9229 18.4478 18.3778 14.4654 19.8499 12.5771C21.6204 10.3061 21.3417 7.07532 19.0484 5.17528C16.7551 3.27524 13.7933 3.81913 11.9938 5.91615Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })), p = a(v), E = ({
|
|
25
|
+
title: t,
|
|
26
|
+
titleId: r,
|
|
27
|
+
...l
|
|
28
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M12 4V13M16 10L12.7071 13.2929C12.3166 13.6834 11.6834 13.6834 11.2929 13.2929L8 10M20 20H4", stroke: "currentColor", strokeLinecap: "round" })), C = a(E), M = ({
|
|
29
|
+
title: t,
|
|
30
|
+
titleId: r,
|
|
31
|
+
...l
|
|
32
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { fill: "currentColor", d: "M11.86 11.648c1.271 0 2.373-.456 3.273-1.356.9-.9 1.357-2.002 1.357-3.274 0-1.272-.457-2.374-1.357-3.274-.9-.9-2.002-1.356-3.274-1.356-1.272 0-2.374.456-3.274 1.356-.9.9-1.356 2.002-1.356 3.274 0 1.272.456 2.374 1.356 3.274.9.9 2.002 1.356 3.274 1.356ZM19.961 17.17a11.42 11.42 0 0 0-.156-1.215 9.577 9.577 0 0 0-.298-1.22 6.027 6.027 0 0 0-.503-1.14 4.296 4.296 0 0 0-.757-.987 3.339 3.339 0 0 0-1.087-.683 3.758 3.758 0 0 0-1.389-.251c-.196 0-.386.08-.752.319-.226.147-.49.317-.784.505-.252.16-.593.311-1.014.447a4.03 4.03 0 0 1-1.241.2c-.412 0-.83-.067-1.24-.2-.422-.136-.763-.286-1.015-.446-.291-.187-.555-.357-.784-.506-.366-.239-.556-.32-.753-.32-.5 0-.966.085-1.388.252a3.336 3.336 0 0 0-1.088.684c-.285.273-.54.605-.756.986-.21.367-.378.75-.502 1.14-.12.375-.221.786-.3 1.22A11.4 11.4 0 0 0 4 17.172c-.025.368-.038.75-.038 1.135 0 1.003.319 1.816.948 2.415.621.591 1.443.891 2.443.891h9.257c1 0 1.821-.3 2.443-.89.629-.6.948-1.412.948-2.416 0-.388-.013-.77-.039-1.136Z" })), f = a(M), L = ({
|
|
33
|
+
title: t,
|
|
34
|
+
titleId: r,
|
|
35
|
+
...l
|
|
36
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M7.11 17H6v-6.832h2.072l1.998 5.67h.296l1.999-5.67h2.072V17h-1.11v-5.602h-.296L11.033 17H9.404l-1.998-5.602H7.11V17ZM15.522 10.988v-.684l2.072-1.981c.158-.146.271-.278.34-.396a.826.826 0 0 0 .104-.424.72.72 0 0 0-.222-.533c-.148-.146-.345-.218-.592-.218-.267 0-.484.072-.651.218-.158.137-.237.337-.237.601h-.888c0-.446.167-.82.503-1.12.335-.3.76-.451 1.273-.451.513 0 .922.141 1.228.424.316.273.474.633.474 1.08 0 .282-.06.518-.178.71-.108.182-.296.4-.562.656l-1.332 1.298v.068H19v.752h-3.478Z", fill: "currentColor" })), k = a(L), x = ({
|
|
37
|
+
title: t,
|
|
38
|
+
titleId: r,
|
|
39
|
+
...l
|
|
40
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M19 7L9.66667 17L5 12", stroke: "currentColor", strokeLinecap: "square", strokeLinejoin: "round" })), b = a(x), y = ({
|
|
41
|
+
title: t,
|
|
42
|
+
titleId: r,
|
|
43
|
+
...l
|
|
44
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M5.99997 6L18 18.0001", stroke: "currentColor" }), /* @__PURE__ */ e.createElement("path", { d: "M18.0001 6L6.00003 18.0001", stroke: "currentColor" })), R = a(y), S = ({
|
|
45
|
+
title: t,
|
|
46
|
+
titleId: r,
|
|
47
|
+
...l
|
|
48
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "m16.25 10.366-4.06 2.043a.424.424 0 0 1-.38 0l-4.06-2.043m8.5 0 3.493-1.758a.427.427 0 0 0 0-.762l-7.552-3.8a.424.424 0 0 0-.382 0l-7.552 3.8a.427.427 0 0 0 0 .762l3.493 1.758m8.5 0 3.507 1.766a.41.41 0 0 1 0 .747l-3.507 1.766m-8.5-4.279-3.507 1.766a.41.41 0 0 0 0 .747l3.507 1.766m0 0L4.243 16.41a.41.41 0 0 0 0 .747l7.528 3.79a.516.516 0 0 0 .458 0l7.528-3.79a.41.41 0 0 0 0-.747l-3.507-1.765m-8.5 0 4.02 2.023a.515.515 0 0 0 .46 0l4.02-2.023", stroke: "currentColor" })), F = a(S), H = ({
|
|
49
|
+
title: t,
|
|
50
|
+
titleId: r,
|
|
51
|
+
...l
|
|
52
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M5 12H19", stroke: "currentColor" })), $ = a(H), B = ({
|
|
53
|
+
title: t,
|
|
54
|
+
titleId: r,
|
|
55
|
+
...l
|
|
56
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M20.0271 17.7683C19.4144 17.8984 18.7788 17.9669 18.1273 17.9669C13.1019 17.9669 9.02797 13.893 9.02797 8.86758C9.02797 6.63171 9.83439 4.58419 11.1722 3C7.05879 3.87373 3.97278 7.52682 3.97278 11.9007C3.97278 16.9261 8.04668 21 13.0721 21C15.8616 21 18.358 19.7447 20.0271 17.7683Z", stroke: "currentColor", strokeLinejoin: "round" })), V = a(B), q = ({
|
|
57
|
+
title: t,
|
|
58
|
+
titleId: r,
|
|
59
|
+
...l
|
|
60
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M5 12.5C5 9.13823 5 7.45734 5.71653 6.49727C6.35659 5.63964 7.34765 5.0959 8.43174 5.00756C9.64533 4.90868 11.119 5.78102 14.0664 7.52571C16.8259 9.15915 18.2056 9.97587 18.6811 11.0259C19.1063 11.9649 19.1063 13.0351 18.6811 13.9741C18.2056 15.0241 16.8259 15.8409 14.0664 17.4743C11.119 19.219 9.64533 20.0913 8.43174 19.9924C7.34765 19.9041 6.35659 19.3604 5.71653 18.5027C5 17.5427 5 15.8618 5 12.5Z", fill: "currentColor" })), Z = a(q), j = ({
|
|
61
|
+
title: t,
|
|
62
|
+
titleId: r,
|
|
63
|
+
...l
|
|
64
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M5 12H19", stroke: "currentColor" }), /* @__PURE__ */ e.createElement("path", { d: "M12.0001 5L12.0001 19", stroke: "currentColor" })), P = a(j), _ = ({
|
|
65
|
+
title: t,
|
|
66
|
+
titleId: r,
|
|
67
|
+
...l
|
|
68
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M9.52381 17.6V12.3111M9.52381 12.3111V6.40002H13.0444C14.6768 6.40002 16 7.72327 16 9.35558V9.35558C16 10.9879 14.6768 12.3111 13.0444 12.3111H9.52381ZM9.52381 12.3111H8", stroke: "currentColor" }), /* @__PURE__ */ e.createElement("path", { d: "M8 15.2001L12.5714 15.2001", stroke: "currentColor" })), A = a(_), N = ({
|
|
69
|
+
title: t,
|
|
70
|
+
titleId: r,
|
|
71
|
+
...l
|
|
72
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M12 13.6875V4.0625M12 4.0625L8.5 7.45438M12 4.0625L15.5 7.45438", stroke: "currentColor" }), /* @__PURE__ */ e.createElement("path", { d: "M7.25 7.5625L5 7.5625V18.9375H19V7.5625H16.8125", stroke: "currentColor" })), T = a(N), D = ({
|
|
73
|
+
title: t,
|
|
74
|
+
titleId: r,
|
|
75
|
+
...l
|
|
76
|
+
}, n) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, "aria-labelledby": r, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M12 2V4M19.0711 4.92893L17.6569 6.34315M22 12H20M19.0711 19.0711L17.6569 17.6569M12 20V22M6.34314 17.6569L4.92893 19.0711M4.00008 12.0001H2.00008M6.34311 6.34322L4.92889 4.92901M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z", stroke: "currentColor", strokeLinecap: "round" })), U = a(D), G = {
|
|
77
|
+
loader: () => /* @__PURE__ */ o(w, {}),
|
|
78
|
+
filter: () => /* @__PURE__ */ o(i, {}),
|
|
79
|
+
fullscreen: () => /* @__PURE__ */ o(u, {}),
|
|
80
|
+
twoArrows: () => /* @__PURE__ */ o(h, {}),
|
|
81
|
+
heart: () => /* @__PURE__ */ o(p, {}),
|
|
82
|
+
download: () => /* @__PURE__ */ o(C, {}),
|
|
83
|
+
user: () => /* @__PURE__ */ o(f, {}),
|
|
84
|
+
squareMeter: () => /* @__PURE__ */ o(k, {}),
|
|
85
|
+
check: () => /* @__PURE__ */ o(b, {}),
|
|
86
|
+
close: () => /* @__PURE__ */ o(R, {}),
|
|
87
|
+
layers: () => /* @__PURE__ */ o(F, {}),
|
|
88
|
+
minus: () => /* @__PURE__ */ o($, {}),
|
|
89
|
+
moon: () => /* @__PURE__ */ o(V, {}),
|
|
90
|
+
play: () => /* @__PURE__ */ o(Z, {}),
|
|
91
|
+
plus: () => /* @__PURE__ */ o(P, {}),
|
|
92
|
+
ruble: () => /* @__PURE__ */ o(A, {}),
|
|
93
|
+
share: () => /* @__PURE__ */ o(T, {}),
|
|
94
|
+
sun: () => /* @__PURE__ */ o(U, {})
|
|
95
|
+
}, O = ({ name: t, size: r = "24", color: l, addClass: n }) => {
|
|
96
|
+
const c = G[t];
|
|
97
|
+
return /* @__PURE__ */ o(
|
|
98
|
+
"div",
|
|
99
|
+
{
|
|
100
|
+
style: { color: l, width: r + "px", height: r + "px" },
|
|
101
|
+
className: n ?? "",
|
|
102
|
+
children: /* @__PURE__ */ o(c, {})
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
};
|
|
106
|
+
export {
|
|
107
|
+
O as NewIcon
|
|
108
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tag } from './ui/Tag';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as n } from "../../../index-DIxK0V-G.js";
|
|
3
|
+
const r = "_tagCommon_k1b5t_1", d = "_red_k1b5t_40", c = "_gray_k1b5t_46", t = {
|
|
4
|
+
tagCommon: r,
|
|
5
|
+
"auto-width": "_auto-width_k1b5t_16",
|
|
6
|
+
"full-width": "_full-width_k1b5t_20",
|
|
7
|
+
"medium-size": "_medium-size_k1b5t_24",
|
|
8
|
+
"tiny-size": "_tiny-size_k1b5t_32",
|
|
9
|
+
red: d,
|
|
10
|
+
gray: c
|
|
11
|
+
}, g = n.bind(t), k = ({
|
|
12
|
+
size: o = "medium",
|
|
13
|
+
children: _ = "",
|
|
14
|
+
variant: m = "gray",
|
|
15
|
+
width: i = "auto",
|
|
16
|
+
additionalClass: s,
|
|
17
|
+
...a
|
|
18
|
+
}) => /* @__PURE__ */ e(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
className: g(
|
|
22
|
+
t.tagCommon,
|
|
23
|
+
t[`${o}-size`],
|
|
24
|
+
t[`${m}`],
|
|
25
|
+
t[`${i}-width`],
|
|
26
|
+
`${s ?? ""}`
|
|
27
|
+
),
|
|
28
|
+
...a,
|
|
29
|
+
children: _
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
export {
|
|
33
|
+
k as Tag
|
|
34
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type btnWidth = 'auto' | 'full';
|
|
4
|
+
export declare const TAG_VARIANTS: {
|
|
5
|
+
red: string;
|
|
6
|
+
gray: string;
|
|
7
|
+
};
|
|
8
|
+
export type tagVariant = keyof typeof TAG_VARIANTS;
|
|
9
|
+
type tagSizes = 'medium' | 'tiny';
|
|
10
|
+
interface MobileButtonProps {
|
|
11
|
+
size?: tagSizes;
|
|
12
|
+
children?: string | ReactNode;
|
|
13
|
+
variant?: tagVariant;
|
|
14
|
+
width?: btnWidth;
|
|
15
|
+
additionalClass?: string;
|
|
16
|
+
}
|
|
17
|
+
export type ComponentProps = MobileButtonProps & React.HTMLAttributes<HTMLDivElement>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
function u(e) {
|
|
2
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3
|
+
}
|
|
4
|
+
var f = { exports: {} };
|
|
5
|
+
/*!
|
|
6
|
+
Copyright (c) 2018 Jed Watson.
|
|
7
|
+
Licensed under the MIT License (MIT), see
|
|
8
|
+
http://jedwatson.github.io/classnames
|
|
9
|
+
*/
|
|
10
|
+
(function(e) {
|
|
11
|
+
(function() {
|
|
12
|
+
var i = {}.hasOwnProperty;
|
|
13
|
+
function s() {
|
|
14
|
+
for (var t = "", r = 0; r < arguments.length; r++) {
|
|
15
|
+
var n = arguments[r];
|
|
16
|
+
n && (t = o(t, a(n)));
|
|
17
|
+
}
|
|
18
|
+
return t;
|
|
19
|
+
}
|
|
20
|
+
function a(t) {
|
|
21
|
+
if (typeof t == "string" || typeof t == "number")
|
|
22
|
+
return t;
|
|
23
|
+
if (typeof t != "object")
|
|
24
|
+
return "";
|
|
25
|
+
if (Array.isArray(t))
|
|
26
|
+
return s.apply(null, t);
|
|
27
|
+
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
|
|
28
|
+
return t.toString();
|
|
29
|
+
var r = "";
|
|
30
|
+
for (var n in t)
|
|
31
|
+
i.call(t, n) && t[n] && (r = o(r, n));
|
|
32
|
+
return r;
|
|
33
|
+
}
|
|
34
|
+
function o(t, r) {
|
|
35
|
+
return r ? t ? t + " " + r : t + r : t;
|
|
36
|
+
}
|
|
37
|
+
e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
|
|
38
|
+
})();
|
|
39
|
+
})(f);
|
|
40
|
+
var c = f.exports;
|
|
41
|
+
const p = /* @__PURE__ */ u(c);
|
|
42
|
+
export {
|
|
43
|
+
p as c
|
|
44
|
+
};
|
package/dist/main.d.ts
CHANGED
package/dist/main.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Button as r } from "./components/Button/ui/Button.js";
|
|
2
|
+
import { MobileButton as f } from "./components/MobileButton/ui/MobileButton.js";
|
|
3
|
+
import { NewIcon as n } from "./components/NewIcon/ui/NewIcon.js";
|
|
2
4
|
export {
|
|
3
|
-
|
|
5
|
+
r as Button,
|
|
6
|
+
f as MobileButton,
|
|
7
|
+
n as NewIcon
|
|
4
8
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._tagCommon_k1b5t_1{font-family:inherit;font-weight:500;display:flex;justify-content:center;align-items:center;box-sizing:border-box;text-align:center;border:1px solid transparent;border-radius:48px}._tagCommon_k1b5t_1:disabled{opacity:.2}._auto-width_k1b5t_16{width:auto}._full-width_k1b5t_20{width:100%}._medium-size_k1b5t_24{font-size:14px;line-height:20px;min-height:40px;padding:9px 15px;gap:8px}._tiny-size_k1b5t_32{font-size:10px;line-height:12px;min-height:24px;padding:5px;gap:4px}._red_k1b5t_40{background:#ec5353;border:1px solid #ec5353;color:#fff}._gray_k1b5t_46{background:#f4f5f6;border:1px solid #f4f5f6;color:#353945}._btnCommon_uvpf8_1{font-family:inherit;font-weight:500;display:flex;flex-direction:column;justify-content:center;align-items:center;box-sizing:border-box;text-align:center;border:1px solid transparent;border-radius:48px;cursor:pointer}._btnCommon_uvpf8_1:disabled{opacity:.2}._auto-width_uvpf8_18{width:auto}._full-width_uvpf8_22{width:100%}._small-size_uvpf8_26{font-size:10px;line-height:12px;min-height:56px;padding:7px 11px;gap:4px}._whiteFilled_uvpf8_34{background:#fff;border:1px solid #ffffff;color:#777e90}._whiteFilled_uvpf8_34:hover{background:#fcfcfd;border:1px solid #f4f5f6}._whiteFilled_uvpf8_34:active{background:#f4f5f6;border:1px solid #f4f5f6}._btnCommon_15ot8_1{font-family:inherit;font-weight:500;display:flex;justify-content:center;align-items:center;box-sizing:border-box;text-align:center;border:1px solid transparent;border-radius:48px;cursor:pointer}._btnCommon_15ot8_1:disabled{opacity:.2}._auto-width_15ot8_17{width:auto}._full-width_15ot8_21{width:100%}._large-size_15ot8_25{font-size:16px;line-height:24px;min-height:48px;padding:11px 23px;gap:8px}._medium-size_15ot8_33{font-size:14px;line-height:20px;min-height:40px;padding:9px 15px;gap:8px}._small-size_15ot8_41{font-size:12px;line-height:16px;min-height:32px;padding:7px 11px;gap:8px}._tiny-size_15ot8_49{font-size:10px;line-height:12px;min-height:24px;padding:5px 11px;gap:4px}._blue_15ot8_57{background:#015ff9;border:1px solid #015ff9;color:#fff}._blue_15ot8_57:hover{background:#024ac0;border:1px solid #024ac0}._blue_15ot8_57:active{background:#0645aa;border:1px solid #0645aa}._sokolniki_15ot8_71{background:#60663e;border:1px solid #60663e;color:#fff}._sokolniki_15ot8_71:hover{background:#494f29;border:1px solid #494f29}._sokolniki_15ot8_71:active{background:#303519;border:1px solid #303519}._black_15ot8_85{background:#141416;border:1px solid #141416;color:#fff}._black_15ot8_85:hover{background:#23262f;border:1px solid #353945}._black_15ot8_85:active{background:#353945;border:1px solid #777e90}._gray_15ot8_99{background:#f4f5f6;border:1px solid #f4f5f6;color:#777e90}._gray_15ot8_99:hover{background:#f4f5f6;border:1px solid #b1b5c3}._gray_15ot8_99:active{background:#e6e8ec;border:1px solid #b1b5c3}._whiteStroke_15ot8_113{background:#fff;border:1px solid #e6e8ec;color:#141416}._whiteStroke_15ot8_113:hover{border:1px solid #b1b5c3}._whiteStroke_15ot8_113:active{border:1px solid #141416}._whiteFilled_15ot8_125{background:#fff;border:1px solid #ffffff;color:#141416}._whiteFilled_15ot8_125:hover{background:#fcfcfd;border:1px solid #f4f5f6}._whiteFilled_15ot8_125:active{background:#f4f5f6;border:1px solid #f4f5f6}@keyframes _LoaderSpin_15ot8_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._loader_15ot8_147{animation:_LoaderSpin_15ot8_1 1.4s infinite linear}
|