stone-kit 0.0.1028 → 0.0.1029

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.
Files changed (82) hide show
  1. package/dist/App.js +4 -4
  2. package/dist/{Option-rFBMQAPk.js → Option-CtwUzW8a.js} +1 -1
  3. package/dist/Router.js +1 -1
  4. package/dist/chunk-4WY6JWTD-BeveLKf_.js +1582 -0
  5. package/dist/components/Button/ui/Button.js +1 -1
  6. package/dist/components/CheckBoxNew/CheckBoxNew.js +1 -1
  7. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +1 -1
  8. package/dist/components/CommercialLotCard/CommercialLotCard.js +1 -1
  9. package/dist/components/CommercialLotCard/components/Price/Price.js +1 -1
  10. package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +1 -1
  11. package/dist/components/DestinationTab/ui/DestinationTab.js +1 -1
  12. package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +1 -1
  13. package/dist/components/FilterWithSave/ui/FilterWithSave.js +9 -14
  14. package/dist/components/Flex/ui/Flex.js +1 -1
  15. package/dist/components/FormModal/ui/ModalForm.js +656 -641
  16. package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
  17. package/dist/components/Input/ui/Input.js +1 -22
  18. package/dist/components/Logo/ui/Logo.js +1 -1
  19. package/dist/components/LotCard/hooks/useLotCard.js +2 -2
  20. package/dist/components/LotCard/ui/LotCard.js +2 -2
  21. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
  22. package/dist/components/MetroLabel/ui/MetroLabel.js +1 -1
  23. package/dist/components/MetroTag/ui/MetroTag.js +1 -1
  24. package/dist/components/NewIcon/ui/NewIcon.js +3 -3
  25. package/dist/components/RoundButton/ui/RoundButton.js +1 -1
  26. package/dist/components/Select/ui/Category.js +2 -2
  27. package/dist/components/Select/ui/Option.js +2 -2
  28. package/dist/components/Select/ui/Select.js +2 -2
  29. package/dist/components/SliderNavigation/ui/SliderNavigation.js +1 -1
  30. package/dist/components/SortSelect/hooks/useSortSelect.d.ts +1 -1
  31. package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
  32. package/dist/components/SortSelect/ui/SortSelect.js +12 -12
  33. package/dist/components/Switcher/ui/Switcher.js +1 -1
  34. package/dist/components/TabSelect/ui/TabSelect.d.ts +12 -7
  35. package/dist/components/TabSelect/ui/TabSelect.js +43 -38
  36. package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +4 -3
  37. package/dist/components/TabSwitcher/ui/TabSwitcher.js +75 -73
  38. package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +1 -1
  39. package/dist/components/Tag/ui/Tag.js +1 -1
  40. package/dist/components/Text/ui/Text.js +1 -1
  41. package/dist/components/TextArea/TextArea.d.ts +8 -0
  42. package/dist/components/TextArea/TextArea.js +18 -12
  43. package/dist/components/mobileButton/ui/MobileButton.js +1 -1
  44. package/dist/{index-3E04UaC2.js → index-BJwl9stn.js} +785 -784
  45. package/dist/{index-B2JRaoNz.js → index-YnD2EP-S.js} +0 -5
  46. package/dist/layout/components/Header/Header.js +1 -1
  47. package/dist/layout/components/Menu.js +107 -4
  48. package/dist/pages/ButtonsPage/Buttons.js +49 -60
  49. package/dist/stone-kit.css +1 -1
  50. package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +1 -1
  51. package/dist/stories/shared/ui/Button/Button.stories.js +1 -1
  52. package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
  53. package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
  54. package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
  55. package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
  56. package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
  57. package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +1 -1
  58. package/dist/stories/shared/ui/FormModal/FormModal.stories.js +1 -1
  59. package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
  60. package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
  61. package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
  62. package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
  63. package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
  64. package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
  65. package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
  66. package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
  67. package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +1 -1
  68. package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
  69. package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
  70. package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
  71. package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +1 -1
  72. package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
  73. package/dist/{useLotCard-DG9doKCX.js → useLotCard-CYcRSogE.js} +1 -1
  74. package/dist/{useSortSelect-C72ddcYI.js → useSortSelect-Cy3od4ig.js} +6 -6
  75. package/package.json +22 -31
  76. package/dist/ButtonState.module-DtW3aevR.js +0 -8
  77. package/dist/Menu-CdJTzN7T.js +0 -494
  78. package/dist/components/TextArea/TextArea.types.d.ts +0 -10
  79. package/dist/components/TextArea/TextArea.types.js +0 -1
  80. package/dist/index-CBdtKu-u.js +0 -891
  81. package/dist/pages/ButtonsPage/ButtonState/ButtonState.d.ts +0 -6
  82. package/dist/pages/ButtonsPage/ButtonState/ButtonState.js +0 -121
@@ -2,11 +2,6 @@ function c(e) {
2
2
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
3
  }
4
4
  var o = { exports: {} };
5
- /*!
6
- Copyright (c) 2018 Jed Watson.
7
- Licensed under the MIT License (MIT), see
8
- http://jedwatson.github.io/classnames
9
- */
10
5
  var i;
11
6
  function p() {
12
7
  return i || (i = 1, (function(e) {
@@ -1,5 +1,5 @@
1
1
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
- import { M as w } from "../../../Menu-CdJTzN7T.js";
2
+ import { Menu as w } from "../Menu.js";
3
3
  import { useState as r } from "react";
4
4
  import { NewIcon as a } from "../../../components/NewIcon/ui/NewIcon.js";
5
5
  const m = "_root_15wfn_1", _ = "_wrap_15wfn_12", g = "_search_15wfn_32", x = "_searchInp_15wfn_47", y = "_searchIcon_15wfn_67", I = "_closeBtn_15wfn_73", t = {
@@ -1,6 +1,109 @@
1
- import "react/jsx-runtime";
2
- import { M as t } from "../../Menu-CdJTzN7T.js";
3
- import "../../components/NewIcon/ui/NewIcon.js";
1
+ import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
+ import { L as r } from "../../chunk-4WY6JWTD-BeveLKf_.js";
3
+ import { NewIcon as s } from "../../components/NewIcon/ui/NewIcon.js";
4
+ const c = "_root_9577c_1", a = "_linkWrap_9577c_8", i = {
5
+ root: c,
6
+ linkWrap: a
7
+ }, _ = () => {
8
+ const o = ({ to: l, title: n }) => /* @__PURE__ */ e(
9
+ r,
10
+ {
11
+ to: l,
12
+ className: i.linkWrap,
13
+ children: [
14
+ n,
15
+ /* @__PURE__ */ t(
16
+ s,
17
+ {
18
+ size: "24",
19
+ name: "play2",
20
+ deg: "90",
21
+ color: "white"
22
+ }
23
+ )
24
+ ]
25
+ }
26
+ );
27
+ return /* @__PURE__ */ e("div", { className: i.root, children: [
28
+ /* @__PURE__ */ t(
29
+ o,
30
+ {
31
+ to: "/buttons",
32
+ title: "КНОПКИ"
33
+ }
34
+ ),
35
+ /* @__PURE__ */ t(
36
+ o,
37
+ {
38
+ to: "/modals",
39
+ title: "МОДАЛКИ"
40
+ }
41
+ ),
42
+ /* @__PURE__ */ t(
43
+ o,
44
+ {
45
+ to: "/tabs",
46
+ title: "ТАБЫ"
47
+ }
48
+ ),
49
+ /* @__PURE__ */ t(
50
+ o,
51
+ {
52
+ to: "/icons",
53
+ title: "ИКОНКИ"
54
+ }
55
+ ),
56
+ /* @__PURE__ */ t(
57
+ o,
58
+ {
59
+ to: "/lots",
60
+ title: "ЛОТЫ"
61
+ }
62
+ ),
63
+ /* @__PURE__ */ t(
64
+ o,
65
+ {
66
+ to: "/tags",
67
+ title: "ТЭГИ"
68
+ }
69
+ ),
70
+ /* @__PURE__ */ t(
71
+ o,
72
+ {
73
+ to: "/select",
74
+ title: "СЕЛЕКТ"
75
+ }
76
+ ),
77
+ /* @__PURE__ */ t(
78
+ o,
79
+ {
80
+ to: "/forms",
81
+ title: "ФОРМЫ"
82
+ }
83
+ ),
84
+ /* @__PURE__ */ t(
85
+ o,
86
+ {
87
+ to: "/logo",
88
+ title: "ЛОГО"
89
+ }
90
+ ),
91
+ /* @__PURE__ */ t(
92
+ o,
93
+ {
94
+ to: "/input",
95
+ title: "ИНПУТЫ"
96
+ }
97
+ ),
98
+ /* @__PURE__ */ t(
99
+ o,
100
+ {
101
+ to: "/checkbox",
102
+ title: "ЧЕКБОКСЫ"
103
+ }
104
+ )
105
+ ] });
106
+ };
4
107
  export {
5
- t as Menu
108
+ _ as Menu
6
109
  };
@@ -1,76 +1,65 @@
1
- import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
- import W, { useState as n } from "react";
3
- import { s as a } from "../../ButtonState.module-DtW3aevR.js";
4
- import { BUTTON_VARIANTS as w } from "../../components/Button/ui/Button.types.js";
5
- import { NewIcon as d, iconTypes as A } from "../../components/NewIcon/ui/NewIcon.js";
6
- import { Button as B } from "../../components/Button/ui/Button.js";
7
- import { RoundButton as g } from "../../components/RoundButton/ui/RoundButton.js";
8
- import { ZoomControls as y } from "../../components/ZoomControls/ui/ZoomControls.js";
9
- import { SliderNavigation as j } from "../../components/SliderNavigation/ui/SliderNavigation.js";
10
- import { Switcher as b } from "../../components/Switcher/ui/Switcher.js";
11
- const O = "_root_iex42_1", T = "_buttonsWrapper_iex42_11", c = {
12
- root: O,
13
- buttonsWrapper: T
14
- }, V = ({ children: o }) => {
15
- const [l, r] = n("auto"), [s, f] = n("blue"), [h, z] = n(!1), [m, I] = n(null), [p, S] = n(null), [N, C] = n(null), [k, P] = n(null), u = ["12", "16", "20", "24"], _ = W.cloneElement(o, {
16
- width: l,
17
- variant: s,
18
- isLoading: h,
19
- pre: m ? t(d, { name: m, size: N ?? "24" }) : null,
20
- post: p ? t(d, { name: p, size: k ?? "24" }) : null
21
- }), x = ["auto", "full"], L = Object.values(w), v = Object.keys(A);
22
- return i("div", { className: a.root, children: [_, i("div", { className: a.optionsWrapper, children: [t("div", { children: i("label", { children: ["Width:", t("select", { onChange: (e) => r(e.target.value), children: x.map((e) => t("option", { value: e, children: e }, e)) })] }) }), t("div", { children: i("label", { children: ["Variants:", t("select", { onChange: (e) => f(e.target.value), children: L.map((e) => t("option", { value: e, children: e }, e)) })] }) }), t("div", { children: i("label", { children: ["Pre Icon:", t("select", { onChange: (e) => I(e.target.value), children: v.map((e) => t("option", { value: e, children: e }, e)) })] }) }), t("div", { children: i("label", { children: ["Post Icon:", t("select", { onChange: (e) => S(e.target.value), children: v.map((e) => t("option", { value: e, children: e }, e)) })] }) }), t("div", { children: i("label", { children: ["Pre Icon Size:", t("select", { onChange: (e) => C(e.target.value), children: u.map((e) => t("option", { value: e, children: e }, e)) })] }) }), t("div", { children: i("label", { children: ["Post Icon Size:", t("select", { onChange: (e) => P(e.target.value), children: u.map((e) => t("option", { value: e, children: e }, e)) })] }) }), i("label", { className: a.isLoading, children: ["isLoading", t("input", { type: "checkbox", onChange: () => z(!h) })] })] })] });
23
- }, J = () => {
24
- const [o, l] = n(!0), [r, s] = n(!1);
25
- return /* @__PURE__ */ i("div", { className: c.root, children: [
26
- /* @__PURE__ */ i("div", { className: c.clearButton, children: [
27
- /* @__PURE__ */ t("h2", { children: "Обычная" }),
28
- /* @__PURE__ */ t("div", { className: c.buttonsWrapper, children: /* @__PURE__ */ t(V, { children: /* @__PURE__ */ t(
29
- B,
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import { useState as s } from "react";
3
+ import { Button as m } from "../../components/Button/ui/Button.js";
4
+ import { RoundButton as c } from "../../components/RoundButton/ui/RoundButton.js";
5
+ import { NewIcon as d } from "../../components/NewIcon/ui/NewIcon.js";
6
+ import { ZoomControls as h } from "../../components/ZoomControls/ui/ZoomControls.js";
7
+ import { SliderNavigation as p } from "../../components/SliderNavigation/ui/SliderNavigation.js";
8
+ import { Switcher as l } from "../../components/Switcher/ui/Switcher.js";
9
+ const u = "_root_iex42_1", v = "_buttonsWrapper_iex42_11", t = {
10
+ root: u,
11
+ buttonsWrapper: v
12
+ }, S = () => {
13
+ const [i, r] = s(!0), [n, a] = s(!1);
14
+ return /* @__PURE__ */ o("div", { className: t.root, children: [
15
+ /* @__PURE__ */ o("div", { className: t.clearButton, children: [
16
+ /* @__PURE__ */ e("h2", { children: "Обычная" }),
17
+ /* @__PURE__ */ e("div", { className: t.buttonsWrapper, children: /* @__PURE__ */ e(
18
+ m,
30
19
  {
31
20
  as: "button",
32
21
  size: "large",
33
22
  variant: "blue",
34
23
  children: "Приветики"
35
24
  }
36
- ) }) })
25
+ ) })
37
26
  ] }),
38
- /* @__PURE__ */ i("div", { className: c.clearButton, children: [
39
- /* @__PURE__ */ t("h2", { children: "Круглая" }),
40
- /* @__PURE__ */ i("div", { className: c.buttonsWrapper, children: [
41
- /* @__PURE__ */ t(
42
- g,
27
+ /* @__PURE__ */ o("div", { className: t.clearButton, children: [
28
+ /* @__PURE__ */ e("h2", { children: "Круглая" }),
29
+ /* @__PURE__ */ o("div", { className: t.buttonsWrapper, children: [
30
+ /* @__PURE__ */ e(
31
+ c,
43
32
  {
44
- variant: o ? "blackFill" : "whiteStroke",
33
+ variant: i ? "blackFill" : "whiteStroke",
45
34
  size: "tiny",
46
- onClick: () => l(!o),
47
- children: /* @__PURE__ */ t(
35
+ onClick: () => r(!i),
36
+ children: /* @__PURE__ */ e(
48
37
  d,
49
38
  {
50
39
  name: "close",
51
40
  size: "12",
52
- color: o ? "#fff" : "#000"
41
+ color: i ? "#fff" : "#000"
53
42
  }
54
43
  )
55
44
  }
56
45
  ),
57
- /* @__PURE__ */ t(
58
- g,
46
+ /* @__PURE__ */ e(
47
+ c,
59
48
  {
60
49
  iconName: "close",
61
- variant: o ? "blackFill" : "whiteStroke",
50
+ variant: i ? "blackFill" : "whiteStroke",
62
51
  deg: "90",
63
52
  size: "tiny",
64
53
  size_l: "small",
65
- onClick: () => l(!o)
54
+ onClick: () => r(!i)
66
55
  }
67
56
  )
68
57
  ] })
69
58
  ] }),
70
- /* @__PURE__ */ i("div", { children: [
71
- /* @__PURE__ */ t("h2", { children: "Зум" }),
72
- /* @__PURE__ */ t(
73
- y,
59
+ /* @__PURE__ */ o("div", { children: [
60
+ /* @__PURE__ */ e("h2", { children: "Зум" }),
61
+ /* @__PURE__ */ e(
62
+ h,
74
63
  {
75
64
  size: "medium",
76
65
  zoomIn: () => {
@@ -80,10 +69,10 @@ const O = "_root_iex42_1", T = "_buttonsWrapper_iex42_11", c = {
80
69
  }
81
70
  )
82
71
  ] }),
83
- /* @__PURE__ */ i("div", { children: [
84
- /* @__PURE__ */ t("h2", { children: "Слайдер" }),
85
- /* @__PURE__ */ t(
86
- j,
72
+ /* @__PURE__ */ o("div", { children: [
73
+ /* @__PURE__ */ e("h2", { children: "Слайдер" }),
74
+ /* @__PURE__ */ e(
75
+ p,
87
76
  {
88
77
  goNext: () => {
89
78
  },
@@ -94,24 +83,24 @@ const O = "_root_iex42_1", T = "_buttonsWrapper_iex42_11", c = {
94
83
  }
95
84
  )
96
85
  ] }),
97
- /* @__PURE__ */ t(
98
- b,
86
+ /* @__PURE__ */ e(
87
+ l,
99
88
  {
100
- isActive: o,
101
- onClick: () => l(!o),
89
+ isActive: i,
90
+ onClick: () => r(!i),
102
91
  children: "В продаже"
103
92
  }
104
93
  ),
105
- /* @__PURE__ */ t(
106
- b,
94
+ /* @__PURE__ */ e(
95
+ l,
107
96
  {
108
- isActive: r,
109
- onClick: () => s(!r),
97
+ isActive: n,
98
+ onClick: () => a(!n),
110
99
  children: "В продаже"
111
100
  }
112
101
  )
113
102
  ] });
114
103
  };
115
104
  export {
116
- J as ButtonsPage
105
+ S as ButtonsPage
117
106
  };