stone-kit 0.0.1009 → 0.0.1011
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/README.md +89 -59
- package/dist/components/Button/ui/Button.js +49 -47
- package/dist/components/CheckBoxNew/CheckBoxNew.js +7 -7
- package/dist/components/ModalSuccess/index.d.ts +1 -0
- package/dist/components/ModalSuccess/index.js +4 -0
- package/dist/components/NewIcon/index.d.ts +1 -1
- package/dist/components/NewIcon/index.js +3 -2
- package/dist/components/Switcher/ui/Switcher.d.ts +1 -1
- package/dist/components/Switcher/ui/Switcher.js +21 -20
- package/dist/components/Switcher/ui/Switcher.types.d.ts +1 -0
- package/dist/components/ZoomControls/ui/ZoomControls.js +9 -7
- package/dist/{index-DQgqDqGf.js → index-DvCs2JPX.js} +2927 -3002
- package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +166 -0
- package/dist/stories/entities/index.js +4 -0
- package/dist/stories/shared/ui/Button/Button.stories.js +118 -0
- package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +71 -0
- package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +45 -0
- package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +114 -0
- package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +89 -0
- package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +31 -0
- package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +44 -0
- package/dist/stories/shared/ui/Flex/Flex.stories.js +74 -0
- package/dist/stories/shared/ui/FormModal/FormModal.stories.js +65 -0
- package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +68 -0
- package/dist/stories/shared/ui/Input/Input.stories.js +82 -0
- package/dist/stories/shared/ui/Logo/Logo.stories.js +75 -0
- package/dist/stories/shared/ui/MetroLabel/MetroLabel.stories.js +91 -0
- package/dist/stories/shared/ui/MetroTag/MetroTag.stories.js +96 -0
- package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +77 -0
- package/dist/stories/shared/ui/Modal/Modal.stories.js +77 -0
- package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +34 -0
- package/dist/stories/shared/ui/NewIcon/NewIcon.stories.js +38 -0
- package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +83 -0
- package/dist/stories/shared/ui/Select/Select.stories.js +81 -0
- package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +82 -0
- package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +87 -0
- package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +85 -0
- package/dist/stories/shared/ui/Switcher/Switcher.stories.js +77 -0
- package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +76 -0
- package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +76 -0
- package/dist/stories/shared/ui/Tag/Tag.stories.js +51 -0
- package/dist/stories/shared/ui/Text/Text.stories.js +22 -0
- package/dist/stories/shared/ui/TextArea/TextArea.stories.js +37 -0
- package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +91 -0
- package/dist/stories/shared/ui/index.js +62 -0
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/dist/stories/Button.js +0 -23
- package/dist/stories/Button.stories.js +0 -50
- package/dist/stories/Header.js +0 -44
- package/dist/stories/Header.stories.js +0 -28
- package/dist/stories/Page.js +0 -58
- package/dist/stories/Page.stories.js +0 -22
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsxs as r, Fragment as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Flex as l } from "../../../../components/Flex/ui/Flex.js";
|
|
3
|
+
const d = {
|
|
4
|
+
title: "shared/ui/Flex",
|
|
5
|
+
component: l,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: "centered"
|
|
8
|
+
},
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
argTypes: {
|
|
11
|
+
jc: {
|
|
12
|
+
control: {
|
|
13
|
+
type: "select",
|
|
14
|
+
options: ["start", "end", "center", "between", "around", "evenly"]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
ai: {
|
|
18
|
+
control: {
|
|
19
|
+
type: "select",
|
|
20
|
+
options: ["start", "end", "center", "stretch"]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
gap: {
|
|
24
|
+
control: {
|
|
25
|
+
type: "select",
|
|
26
|
+
options: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
fd: {
|
|
30
|
+
control: {
|
|
31
|
+
type: "select",
|
|
32
|
+
options: ["row", "row-reverse", "column", "column-reverse"]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
w: {
|
|
36
|
+
control: {
|
|
37
|
+
type: "select",
|
|
38
|
+
options: ["nowrap", "wrap", "wrap-reverse"]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}, o = {
|
|
43
|
+
args: {
|
|
44
|
+
children: /* @__PURE__ */ r(t, { children: [
|
|
45
|
+
/* @__PURE__ */ e("div", { children: "Child 1" }),
|
|
46
|
+
/* @__PURE__ */ e("div", { children: "Child 2" }),
|
|
47
|
+
/* @__PURE__ */ e("div", { children: "Child 3" })
|
|
48
|
+
] })
|
|
49
|
+
}
|
|
50
|
+
}, c = {
|
|
51
|
+
args: {
|
|
52
|
+
fd: "column",
|
|
53
|
+
children: /* @__PURE__ */ r(t, { children: [
|
|
54
|
+
/* @__PURE__ */ e("div", { children: "Child 1" }),
|
|
55
|
+
/* @__PURE__ */ e("div", { children: "Child 2" }),
|
|
56
|
+
/* @__PURE__ */ e("div", { children: "Child 3" })
|
|
57
|
+
] })
|
|
58
|
+
}
|
|
59
|
+
}, s = {
|
|
60
|
+
args: {
|
|
61
|
+
gap: "4",
|
|
62
|
+
children: /* @__PURE__ */ r(t, { children: [
|
|
63
|
+
/* @__PURE__ */ e("div", { children: "Child 1" }),
|
|
64
|
+
/* @__PURE__ */ e("div", { children: "Child 2" }),
|
|
65
|
+
/* @__PURE__ */ e("div", { children: "Child 3" })
|
|
66
|
+
] })
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
c as Column,
|
|
71
|
+
o as Default,
|
|
72
|
+
s as WithGap,
|
|
73
|
+
d as default
|
|
74
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { l as i } from "../../../../index-DvCs2JPX.js";
|
|
3
|
+
import { M as o } from "../../../../FilterWithSave-RTTlxtU3.js";
|
|
4
|
+
const r = {
|
|
5
|
+
title: "shared/ui/FormModal",
|
|
6
|
+
component: o,
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: "centered"
|
|
9
|
+
},
|
|
10
|
+
tags: ["autodocs"],
|
|
11
|
+
argTypes: {
|
|
12
|
+
isOpen: {
|
|
13
|
+
control: "boolean"
|
|
14
|
+
},
|
|
15
|
+
onClose: {
|
|
16
|
+
action: "closed"
|
|
17
|
+
},
|
|
18
|
+
onSubmit: {
|
|
19
|
+
action: "submitted"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
args: {
|
|
23
|
+
isOpen: !0,
|
|
24
|
+
onClose: i(),
|
|
25
|
+
onSubmit: i()
|
|
26
|
+
}
|
|
27
|
+
}, s = {
|
|
28
|
+
args: {
|
|
29
|
+
isOpen: !0,
|
|
30
|
+
title: "Form Modal",
|
|
31
|
+
children: /* @__PURE__ */ e("div", { children: "Modal content goes here" })
|
|
32
|
+
}
|
|
33
|
+
}, d = {
|
|
34
|
+
args: {
|
|
35
|
+
isOpen: !0,
|
|
36
|
+
title: "Contact Form",
|
|
37
|
+
children: /* @__PURE__ */ t("form", { children: [
|
|
38
|
+
/* @__PURE__ */ t("div", { style: { marginBottom: "16px" }, children: [
|
|
39
|
+
/* @__PURE__ */ e("label", { children: "Name:" }),
|
|
40
|
+
/* @__PURE__ */ e("input", { type: "text", style: { width: "100%", padding: "8px", marginTop: "4px" } })
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ t("div", { style: { marginBottom: "16px" }, children: [
|
|
43
|
+
/* @__PURE__ */ e("label", { children: "Email:" }),
|
|
44
|
+
/* @__PURE__ */ e("input", { type: "email", style: { width: "100%", padding: "8px", marginTop: "4px" } })
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ t("div", { style: { marginBottom: "16px" }, children: [
|
|
47
|
+
/* @__PURE__ */ e("label", { children: "Message:" }),
|
|
48
|
+
/* @__PURE__ */ e("textarea", { style: { width: "100%", padding: "8px", marginTop: "4px", height: "100px" } })
|
|
49
|
+
] }),
|
|
50
|
+
/* @__PURE__ */ e("button", { type: "submit", style: { padding: "8px 16px" }, children: "Submit" })
|
|
51
|
+
] })
|
|
52
|
+
}
|
|
53
|
+
}, p = {
|
|
54
|
+
args: {
|
|
55
|
+
isOpen: !1,
|
|
56
|
+
title: "Closed Modal",
|
|
57
|
+
children: /* @__PURE__ */ e("div", { children: "This modal is closed" })
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
p as Closed,
|
|
62
|
+
s as Default,
|
|
63
|
+
d as WithForm,
|
|
64
|
+
r as default
|
|
65
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { l as e } from "../../../../index-DvCs2JPX.js";
|
|
2
|
+
import { GroupedInputs as r } from "../../../../components/GroupedInput/ui/GroupedInputs.js";
|
|
3
|
+
const a = {
|
|
4
|
+
title: "shared/ui/GroupedInput",
|
|
5
|
+
component: r,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: "centered"
|
|
8
|
+
},
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
argTypes: {
|
|
11
|
+
variant: {
|
|
12
|
+
control: {
|
|
13
|
+
type: "select",
|
|
14
|
+
options: ["light", "dark", "gray", "transparent"]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
control: {
|
|
19
|
+
type: "select",
|
|
20
|
+
options: ["large", "medium", "small", "tiny"]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
args: {
|
|
25
|
+
onChange: e(),
|
|
26
|
+
onBlur: e(),
|
|
27
|
+
onFocus: e()
|
|
28
|
+
}
|
|
29
|
+
}, o = {
|
|
30
|
+
args: {
|
|
31
|
+
placeholder: "Enter text",
|
|
32
|
+
label: "Grouped Input"
|
|
33
|
+
}
|
|
34
|
+
}, s = {
|
|
35
|
+
args: {
|
|
36
|
+
placeholder: "Enter text",
|
|
37
|
+
label: "Grouped Input",
|
|
38
|
+
error: !0,
|
|
39
|
+
errorText: "This field is required"
|
|
40
|
+
}
|
|
41
|
+
}, n = {
|
|
42
|
+
args: {
|
|
43
|
+
placeholder: "Enter amount",
|
|
44
|
+
label: "Amount",
|
|
45
|
+
pre: "$",
|
|
46
|
+
post: "USD"
|
|
47
|
+
}
|
|
48
|
+
}, p = {
|
|
49
|
+
args: {
|
|
50
|
+
placeholder: "Disabled input",
|
|
51
|
+
label: "Disabled Input",
|
|
52
|
+
disabled: !0
|
|
53
|
+
}
|
|
54
|
+
}, i = {
|
|
55
|
+
args: {
|
|
56
|
+
placeholder: "Enter your email",
|
|
57
|
+
label: "Email",
|
|
58
|
+
helperText: "We will never share your email"
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
o as Default,
|
|
63
|
+
p as Disabled,
|
|
64
|
+
s as WithError,
|
|
65
|
+
i as WithHelperText,
|
|
66
|
+
n as WithPreAndPost,
|
|
67
|
+
a as default
|
|
68
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Input as e, INPUT_VARIANTS as t } from "../../../../components/Input/ui/Input.js";
|
|
2
|
+
const r = {
|
|
3
|
+
title: "shared/ui/Input",
|
|
4
|
+
component: e,
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: "centered"
|
|
7
|
+
},
|
|
8
|
+
tags: ["autodocs"],
|
|
9
|
+
argTypes: {
|
|
10
|
+
variant: {
|
|
11
|
+
control: {
|
|
12
|
+
type: "select",
|
|
13
|
+
options: Object.keys(t)
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
size_s: {
|
|
17
|
+
control: {
|
|
18
|
+
type: "select",
|
|
19
|
+
options: ["large", "medium", "small", "tiny"]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
width: {
|
|
23
|
+
control: {
|
|
24
|
+
type: "select",
|
|
25
|
+
options: ["auto", "full"]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, o = {
|
|
30
|
+
args: {
|
|
31
|
+
variant: "light",
|
|
32
|
+
placeholder: "Placeholder"
|
|
33
|
+
}
|
|
34
|
+
}, l = {
|
|
35
|
+
args: {
|
|
36
|
+
variant: "dark",
|
|
37
|
+
placeholder: "Placeholder"
|
|
38
|
+
}
|
|
39
|
+
}, s = {
|
|
40
|
+
args: {
|
|
41
|
+
variant: "gray",
|
|
42
|
+
placeholder: "Placeholder"
|
|
43
|
+
}
|
|
44
|
+
}, n = {
|
|
45
|
+
args: {
|
|
46
|
+
variant: "transparent",
|
|
47
|
+
placeholder: "Placeholder"
|
|
48
|
+
}
|
|
49
|
+
}, c = {
|
|
50
|
+
args: {
|
|
51
|
+
variant: "light",
|
|
52
|
+
placeholder: "Placeholder",
|
|
53
|
+
error: !0
|
|
54
|
+
}
|
|
55
|
+
}, i = {
|
|
56
|
+
args: {
|
|
57
|
+
variant: "light",
|
|
58
|
+
placeholder: "Placeholder",
|
|
59
|
+
pre: "$"
|
|
60
|
+
}
|
|
61
|
+
}, h = {
|
|
62
|
+
args: {
|
|
63
|
+
variant: "light",
|
|
64
|
+
placeholder: "Placeholder",
|
|
65
|
+
post: "USD"
|
|
66
|
+
}
|
|
67
|
+
}, p = {
|
|
68
|
+
args: {
|
|
69
|
+
isPhoneIMask: !0
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
l as Dark,
|
|
74
|
+
s as Gray,
|
|
75
|
+
o as Light,
|
|
76
|
+
p as PhoneMask,
|
|
77
|
+
n as Transparent,
|
|
78
|
+
c as WithError,
|
|
79
|
+
h as WithPost,
|
|
80
|
+
i as WithPre,
|
|
81
|
+
r as default
|
|
82
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { l as a } from "../../../../index-DvCs2JPX.js";
|
|
2
|
+
import { Logo as t } from "../../../../components/Logo/ui/Logo.js";
|
|
3
|
+
const r = {
|
|
4
|
+
title: "shared/ui/Logo",
|
|
5
|
+
component: t,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: "centered"
|
|
8
|
+
},
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
argTypes: {
|
|
11
|
+
variant: {
|
|
12
|
+
control: {
|
|
13
|
+
type: "select",
|
|
14
|
+
options: ["black", "white", "value", "dom", "office", "newOffice", "newDom", "realty", "realtyBlack"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
args: {
|
|
19
|
+
onClick: a()
|
|
20
|
+
}
|
|
21
|
+
}, n = {
|
|
22
|
+
args: {
|
|
23
|
+
variant: "black"
|
|
24
|
+
}
|
|
25
|
+
}, s = {
|
|
26
|
+
args: {
|
|
27
|
+
variant: "white"
|
|
28
|
+
}
|
|
29
|
+
}, c = {
|
|
30
|
+
args: {
|
|
31
|
+
variant: "value"
|
|
32
|
+
}
|
|
33
|
+
}, i = {
|
|
34
|
+
args: {
|
|
35
|
+
variant: "dom"
|
|
36
|
+
}
|
|
37
|
+
}, l = {
|
|
38
|
+
args: {
|
|
39
|
+
variant: "office"
|
|
40
|
+
}
|
|
41
|
+
}, f = {
|
|
42
|
+
args: {
|
|
43
|
+
variant: "newOffice"
|
|
44
|
+
}
|
|
45
|
+
}, g = {
|
|
46
|
+
args: {
|
|
47
|
+
variant: "newDom"
|
|
48
|
+
}
|
|
49
|
+
}, m = {
|
|
50
|
+
args: {
|
|
51
|
+
variant: "realty"
|
|
52
|
+
}
|
|
53
|
+
}, v = {
|
|
54
|
+
args: {
|
|
55
|
+
variant: "realtyBlack"
|
|
56
|
+
}
|
|
57
|
+
}, k = {
|
|
58
|
+
args: {
|
|
59
|
+
variant: "black",
|
|
60
|
+
uk: !0
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
n as Black,
|
|
65
|
+
i as Dom,
|
|
66
|
+
g as NewDom,
|
|
67
|
+
f as NewOffice,
|
|
68
|
+
l as Office,
|
|
69
|
+
m as Realty,
|
|
70
|
+
v as RealtyBlack,
|
|
71
|
+
c as Value,
|
|
72
|
+
s as White,
|
|
73
|
+
k as WithUk,
|
|
74
|
+
r as default
|
|
75
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { MetroLabel as e } from "../../../../components/MetroLabel/ui/MetroLabel.js";
|
|
3
|
+
const s = {
|
|
4
|
+
title: "shared/ui/MetroLabel",
|
|
5
|
+
component: e,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: "centered"
|
|
8
|
+
},
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
argTypes: {
|
|
11
|
+
width: {
|
|
12
|
+
control: {
|
|
13
|
+
type: "select",
|
|
14
|
+
options: ["full", "auto"]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
justifyContent: {
|
|
18
|
+
control: {
|
|
19
|
+
type: "select",
|
|
20
|
+
options: ["flex-start", "flex-end", "center", "space-between", "space-around", "space-evenly"]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
colorIcon: {
|
|
24
|
+
control: "color"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}, n = {
|
|
28
|
+
args: {
|
|
29
|
+
metro: {
|
|
30
|
+
name: "Сокольники",
|
|
31
|
+
color: "#FF6B35",
|
|
32
|
+
routes: [
|
|
33
|
+
{ timeTo: "5", iconName: "metro" },
|
|
34
|
+
{ timeTo: "3", iconName: "bus" }
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}, c = {
|
|
39
|
+
args: {
|
|
40
|
+
metro: {
|
|
41
|
+
name: "Парк Культуры",
|
|
42
|
+
color: "#FF6B35",
|
|
43
|
+
routes: [
|
|
44
|
+
{ timeTo: "2", iconName: "metro" },
|
|
45
|
+
{ timeTo: "7", iconName: "bus" }
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, i = {
|
|
50
|
+
args: {
|
|
51
|
+
metro: {
|
|
52
|
+
name: "Кропоткинская",
|
|
53
|
+
color: "#FF6B35"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}, l = {
|
|
57
|
+
args: {
|
|
58
|
+
metro: {
|
|
59
|
+
name: "Библиотека им. Ленина",
|
|
60
|
+
color: "#FF6B35",
|
|
61
|
+
routes: [
|
|
62
|
+
{ timeTo: "1", iconName: "metro" },
|
|
63
|
+
{ timeTo: "3", iconName: "bus" },
|
|
64
|
+
{ timeTo: "5", iconName: "tram" }
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}, u = {
|
|
69
|
+
args: {
|
|
70
|
+
metro: {
|
|
71
|
+
name: "Охотный Ряд",
|
|
72
|
+
color: "#FF6B35",
|
|
73
|
+
routes: [
|
|
74
|
+
{ timeTo: "2", iconName: "metro" }
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
render: (t) => /* @__PURE__ */ r("div", { style: { display: "flex", gap: "8px", flexWrap: "wrap" }, children: [
|
|
79
|
+
/* @__PURE__ */ o(e, { ...t }),
|
|
80
|
+
/* @__PURE__ */ o(e, { metro: { name: "Театральная", color: "#00A651", routes: [{ timeTo: "3", iconName: "metro" }] } }),
|
|
81
|
+
/* @__PURE__ */ o(e, { metro: { name: "Площадь Революции", color: "#00A651", routes: [{ timeTo: "1", iconName: "metro" }] } })
|
|
82
|
+
] })
|
|
83
|
+
};
|
|
84
|
+
export {
|
|
85
|
+
n as Default,
|
|
86
|
+
u as DifferentStations,
|
|
87
|
+
l as MultipleRoutes,
|
|
88
|
+
c as WithRoutes,
|
|
89
|
+
i as WithoutRoutes,
|
|
90
|
+
s as default
|
|
91
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { MetroTag as t } from "../../../../components/MetroTag/ui/MetroTag.js";
|
|
3
|
+
const m = {
|
|
4
|
+
title: "shared/ui/MetroTag",
|
|
5
|
+
component: t,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: "centered"
|
|
8
|
+
},
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
argTypes: {
|
|
11
|
+
variant: {
|
|
12
|
+
control: {
|
|
13
|
+
type: "select",
|
|
14
|
+
options: ["default", "transparent", "mini"]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
width: {
|
|
18
|
+
control: {
|
|
19
|
+
type: "select",
|
|
20
|
+
options: ["full", "auto"]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
withBg: {
|
|
24
|
+
control: "boolean"
|
|
25
|
+
},
|
|
26
|
+
withWhiteBg: {
|
|
27
|
+
control: "boolean"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}, i = {
|
|
31
|
+
args: {
|
|
32
|
+
metro: {
|
|
33
|
+
name: "Сокольники",
|
|
34
|
+
station: "Сокольническая",
|
|
35
|
+
color: "#FF6B35",
|
|
36
|
+
timeTo: 5,
|
|
37
|
+
mode: "metro"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, s = {
|
|
41
|
+
args: {
|
|
42
|
+
metro: {
|
|
43
|
+
name: "Парк Культуры",
|
|
44
|
+
station: "Сокольническая",
|
|
45
|
+
color: "#FF6B35",
|
|
46
|
+
timeTo: 3,
|
|
47
|
+
mode: "metro"
|
|
48
|
+
},
|
|
49
|
+
variant: "transparent"
|
|
50
|
+
}
|
|
51
|
+
}, l = {
|
|
52
|
+
args: {
|
|
53
|
+
metro: {
|
|
54
|
+
name: "Кропоткинская",
|
|
55
|
+
station: "Сокольническая",
|
|
56
|
+
color: "#FF6B35",
|
|
57
|
+
timeTo: 2,
|
|
58
|
+
mode: "metro"
|
|
59
|
+
},
|
|
60
|
+
variant: "mini"
|
|
61
|
+
}
|
|
62
|
+
}, c = {
|
|
63
|
+
args: {
|
|
64
|
+
metro: {
|
|
65
|
+
name: "Библиотека им. Ленина",
|
|
66
|
+
station: "Сокольническая",
|
|
67
|
+
color: "#FF6B35",
|
|
68
|
+
timeTo: 7,
|
|
69
|
+
mode: "metro"
|
|
70
|
+
},
|
|
71
|
+
withBg: !0
|
|
72
|
+
}
|
|
73
|
+
}, p = {
|
|
74
|
+
args: {
|
|
75
|
+
metro: {
|
|
76
|
+
name: "Охотный Ряд",
|
|
77
|
+
station: "Сокольническая",
|
|
78
|
+
color: "#FF6B35",
|
|
79
|
+
timeTo: 2,
|
|
80
|
+
mode: "metro"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
render: (e) => /* @__PURE__ */ r("div", { style: { display: "flex", gap: "8px", flexWrap: "wrap" }, children: [
|
|
84
|
+
/* @__PURE__ */ o(t, { ...e }),
|
|
85
|
+
/* @__PURE__ */ o(t, { metro: { name: "Театральная", station: "Замоскворецкая", color: "#00A651", timeTo: 3, mode: "metro" } }),
|
|
86
|
+
/* @__PURE__ */ o(t, { metro: { name: "Площадь Революции", station: "Арбатско-Покровская", color: "#00A651", timeTo: 1, mode: "metro" } })
|
|
87
|
+
] })
|
|
88
|
+
};
|
|
89
|
+
export {
|
|
90
|
+
i as Default,
|
|
91
|
+
l as Mini,
|
|
92
|
+
p as MultipleTags,
|
|
93
|
+
s as Transparent,
|
|
94
|
+
c as WithBackground,
|
|
95
|
+
m as default
|
|
96
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { l as t } from "../../../../index-DvCs2JPX.js";
|
|
2
|
+
import { MobileButton as e } from "../../../../components/mobileButton/ui/MobileButton.js";
|
|
3
|
+
const r = {
|
|
4
|
+
title: "shared/ui/MobileButton",
|
|
5
|
+
component: e,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: "centered"
|
|
8
|
+
},
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
argTypes: {
|
|
11
|
+
variant: {
|
|
12
|
+
control: {
|
|
13
|
+
type: "select",
|
|
14
|
+
options: ["primary", "secondary", "outline"]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
control: {
|
|
19
|
+
type: "select",
|
|
20
|
+
options: ["small", "medium", "large"]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
args: {
|
|
25
|
+
onClick: t()
|
|
26
|
+
}
|
|
27
|
+
}, a = {
|
|
28
|
+
args: {
|
|
29
|
+
children: "Mobile Button"
|
|
30
|
+
}
|
|
31
|
+
}, i = {
|
|
32
|
+
args: {
|
|
33
|
+
children: "Primary Button",
|
|
34
|
+
variant: "primary"
|
|
35
|
+
}
|
|
36
|
+
}, l = {
|
|
37
|
+
args: {
|
|
38
|
+
children: "Secondary Button",
|
|
39
|
+
variant: "secondary"
|
|
40
|
+
}
|
|
41
|
+
}, s = {
|
|
42
|
+
args: {
|
|
43
|
+
children: "Outline Button",
|
|
44
|
+
variant: "outline"
|
|
45
|
+
}
|
|
46
|
+
}, c = {
|
|
47
|
+
args: {
|
|
48
|
+
children: "Small Button",
|
|
49
|
+
size: "small"
|
|
50
|
+
}
|
|
51
|
+
}, d = {
|
|
52
|
+
args: {
|
|
53
|
+
children: "Large Button",
|
|
54
|
+
size: "large"
|
|
55
|
+
}
|
|
56
|
+
}, u = {
|
|
57
|
+
args: {
|
|
58
|
+
children: "Disabled Button",
|
|
59
|
+
disabled: !0
|
|
60
|
+
}
|
|
61
|
+
}, m = {
|
|
62
|
+
args: {
|
|
63
|
+
children: "Button with Icon",
|
|
64
|
+
icon: "🔥"
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
a as Default,
|
|
69
|
+
u as Disabled,
|
|
70
|
+
d as Large,
|
|
71
|
+
s as Outline,
|
|
72
|
+
i as Primary,
|
|
73
|
+
l as Secondary,
|
|
74
|
+
c as Small,
|
|
75
|
+
m as WithIcon,
|
|
76
|
+
r as default
|
|
77
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { l as t } from "../../../../index-DvCs2JPX.js";
|
|
3
|
+
import { Modal as i } from "../../../../components/Modal/ui/Modal.js";
|
|
4
|
+
const n = {
|
|
5
|
+
title: "shared/ui/Modal",
|
|
6
|
+
component: i,
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: "centered"
|
|
9
|
+
},
|
|
10
|
+
tags: ["autodocs"],
|
|
11
|
+
argTypes: {
|
|
12
|
+
isOpen: {
|
|
13
|
+
control: "boolean"
|
|
14
|
+
},
|
|
15
|
+
size: {
|
|
16
|
+
control: {
|
|
17
|
+
type: "select",
|
|
18
|
+
options: ["small", "medium", "large", "fullscreen"]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
args: {
|
|
23
|
+
isOpen: !0,
|
|
24
|
+
onClose: t()
|
|
25
|
+
}
|
|
26
|
+
}, r = {
|
|
27
|
+
args: {
|
|
28
|
+
isOpen: !0,
|
|
29
|
+
title: "Modal Title",
|
|
30
|
+
children: /* @__PURE__ */ e("div", { children: "Modal content goes here" })
|
|
31
|
+
}
|
|
32
|
+
}, d = {
|
|
33
|
+
args: {
|
|
34
|
+
isOpen: !0,
|
|
35
|
+
title: "Small Modal",
|
|
36
|
+
size: "small",
|
|
37
|
+
children: /* @__PURE__ */ e("div", { children: "This is a small modal" })
|
|
38
|
+
}
|
|
39
|
+
}, c = {
|
|
40
|
+
args: {
|
|
41
|
+
isOpen: !0,
|
|
42
|
+
title: "Medium Modal",
|
|
43
|
+
size: "medium",
|
|
44
|
+
children: /* @__PURE__ */ e("div", { children: "This is a medium modal with more content" })
|
|
45
|
+
}
|
|
46
|
+
}, m = {
|
|
47
|
+
args: {
|
|
48
|
+
isOpen: !0,
|
|
49
|
+
title: "Large Modal",
|
|
50
|
+
size: "large",
|
|
51
|
+
children: /* @__PURE__ */ l("div", { children: [
|
|
52
|
+
/* @__PURE__ */ e("p", { children: "This is a large modal with lots of content." }),
|
|
53
|
+
/* @__PURE__ */ e("p", { children: "It can contain multiple paragraphs and other elements." }),
|
|
54
|
+
/* @__PURE__ */ e("button", { children: "Action Button" })
|
|
55
|
+
] })
|
|
56
|
+
}
|
|
57
|
+
}, h = {
|
|
58
|
+
args: {
|
|
59
|
+
isOpen: !0,
|
|
60
|
+
children: /* @__PURE__ */ e("div", { children: "Modal without title" })
|
|
61
|
+
}
|
|
62
|
+
}, p = {
|
|
63
|
+
args: {
|
|
64
|
+
isOpen: !1,
|
|
65
|
+
title: "Closed Modal",
|
|
66
|
+
children: /* @__PURE__ */ e("div", { children: "This modal is closed" })
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
p as Closed,
|
|
71
|
+
r as Default,
|
|
72
|
+
m as Large,
|
|
73
|
+
c as Medium,
|
|
74
|
+
d as Small,
|
|
75
|
+
h as WithoutTitle,
|
|
76
|
+
n as default
|
|
77
|
+
};
|