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.
- package/dist/App.js +4 -4
- package/dist/{Option-rFBMQAPk.js → Option-CtwUzW8a.js} +1 -1
- package/dist/Router.js +1 -1
- package/dist/chunk-4WY6JWTD-BeveLKf_.js +1582 -0
- package/dist/components/Button/ui/Button.js +1 -1
- package/dist/components/CheckBoxNew/CheckBoxNew.js +1 -1
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +1 -1
- package/dist/components/CommercialLotCard/CommercialLotCard.js +1 -1
- package/dist/components/CommercialLotCard/components/Price/Price.js +1 -1
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +1 -1
- package/dist/components/DestinationTab/ui/DestinationTab.js +1 -1
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +1 -1
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +9 -14
- package/dist/components/Flex/ui/Flex.js +1 -1
- package/dist/components/FormModal/ui/ModalForm.js +656 -641
- package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
- package/dist/components/Input/ui/Input.js +1 -22
- package/dist/components/Logo/ui/Logo.js +1 -1
- package/dist/components/LotCard/hooks/useLotCard.js +2 -2
- package/dist/components/LotCard/ui/LotCard.js +2 -2
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
- package/dist/components/MetroLabel/ui/MetroLabel.js +1 -1
- package/dist/components/MetroTag/ui/MetroTag.js +1 -1
- package/dist/components/NewIcon/ui/NewIcon.js +3 -3
- package/dist/components/RoundButton/ui/RoundButton.js +1 -1
- package/dist/components/Select/ui/Category.js +2 -2
- package/dist/components/Select/ui/Option.js +2 -2
- package/dist/components/Select/ui/Select.js +2 -2
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +1 -1
- package/dist/components/SortSelect/hooks/useSortSelect.d.ts +1 -1
- package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
- package/dist/components/SortSelect/ui/SortSelect.js +12 -12
- package/dist/components/Switcher/ui/Switcher.js +1 -1
- package/dist/components/TabSelect/ui/TabSelect.d.ts +12 -7
- package/dist/components/TabSelect/ui/TabSelect.js +43 -38
- package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +4 -3
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +75 -73
- package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +1 -1
- package/dist/components/Tag/ui/Tag.js +1 -1
- package/dist/components/Text/ui/Text.js +1 -1
- package/dist/components/TextArea/TextArea.d.ts +8 -0
- package/dist/components/TextArea/TextArea.js +18 -12
- package/dist/components/mobileButton/ui/MobileButton.js +1 -1
- package/dist/{index-3E04UaC2.js → index-BJwl9stn.js} +785 -784
- package/dist/{index-B2JRaoNz.js → index-YnD2EP-S.js} +0 -5
- package/dist/layout/components/Header/Header.js +1 -1
- package/dist/layout/components/Menu.js +107 -4
- package/dist/pages/ButtonsPage/Buttons.js +49 -60
- package/dist/stone-kit.css +1 -1
- package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +1 -1
- package/dist/stories/shared/ui/Button/Button.stories.js +1 -1
- package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
- package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
- package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
- package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
- package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
- package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +1 -1
- package/dist/stories/shared/ui/FormModal/FormModal.stories.js +1 -1
- package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
- package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
- package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
- package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
- package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
- package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
- package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
- package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
- package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +1 -1
- package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
- package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
- package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
- package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +1 -1
- package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
- package/dist/{useLotCard-DG9doKCX.js → useLotCard-CYcRSogE.js} +1 -1
- package/dist/{useSortSelect-C72ddcYI.js → useSortSelect-Cy3od4ig.js} +6 -6
- package/package.json +22 -31
- package/dist/ButtonState.module-DtW3aevR.js +0 -8
- package/dist/Menu-CdJTzN7T.js +0 -494
- package/dist/components/TextArea/TextArea.types.d.ts +0 -10
- package/dist/components/TextArea/TextArea.types.js +0 -1
- package/dist/index-CBdtKu-u.js +0 -891
- package/dist/pages/ButtonsPage/ButtonState/ButtonState.d.ts +0 -6
- package/dist/pages/ButtonsPage/ButtonState/ButtonState.js +0 -121
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { jsx as l, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import y, { useState as o } from "react";
|
|
3
|
-
import { s as i } from "../../../ButtonState.module-DtW3aevR.js";
|
|
4
|
-
import { BUTTON_VARIANTS as T } from "../../../components/Button/ui/Button.types.js";
|
|
5
|
-
import { NewIcon as d, iconTypes as V } from "../../../components/NewIcon/ui/NewIcon.js";
|
|
6
|
-
const _ = ({ children: h }) => {
|
|
7
|
-
const [p, u] = o("auto"), [m, g] = o("blue"), [t, b] = o(!1), [I, v] = o(!1), [s, f] = o(null), [c, S] = o(null), [z, C] = o(null), [L, P] = o(null), a = ["12", "16", "20", "24"], N = y.cloneElement(h, {
|
|
8
|
-
width: p,
|
|
9
|
-
variant: m,
|
|
10
|
-
isLoading: t,
|
|
11
|
-
pre: s ? /* @__PURE__ */ l(
|
|
12
|
-
d,
|
|
13
|
-
{
|
|
14
|
-
name: s,
|
|
15
|
-
size: z ?? "24"
|
|
16
|
-
}
|
|
17
|
-
) : null,
|
|
18
|
-
post: c ? /* @__PURE__ */ l(
|
|
19
|
-
d,
|
|
20
|
-
{
|
|
21
|
-
name: c,
|
|
22
|
-
size: L ?? "24"
|
|
23
|
-
}
|
|
24
|
-
) : null,
|
|
25
|
-
disabled: I
|
|
26
|
-
}), x = ["auto", "full"], j = Object.values(T), r = Object.keys(V);
|
|
27
|
-
return /* @__PURE__ */ n("div", { className: i.root, children: [
|
|
28
|
-
N,
|
|
29
|
-
/* @__PURE__ */ n("div", { className: i.optionsWrapper, children: [
|
|
30
|
-
/* @__PURE__ */ l("div", { children: /* @__PURE__ */ n("label", { children: [
|
|
31
|
-
"Width:",
|
|
32
|
-
/* @__PURE__ */ l("select", { onChange: (e) => u(e.target.value), children: x.map((e) => /* @__PURE__ */ l(
|
|
33
|
-
"option",
|
|
34
|
-
{
|
|
35
|
-
value: e,
|
|
36
|
-
children: e
|
|
37
|
-
},
|
|
38
|
-
e
|
|
39
|
-
)) })
|
|
40
|
-
] }) }),
|
|
41
|
-
/* @__PURE__ */ l("div", { children: /* @__PURE__ */ n("label", { children: [
|
|
42
|
-
"Variants:",
|
|
43
|
-
/* @__PURE__ */ l("select", { onChange: (e) => g(e.target.value), children: j.map((e) => /* @__PURE__ */ l(
|
|
44
|
-
"option",
|
|
45
|
-
{
|
|
46
|
-
value: e,
|
|
47
|
-
children: e
|
|
48
|
-
},
|
|
49
|
-
e
|
|
50
|
-
)) })
|
|
51
|
-
] }) }),
|
|
52
|
-
/* @__PURE__ */ l("div", { children: /* @__PURE__ */ n("label", { children: [
|
|
53
|
-
"Pre Icon:",
|
|
54
|
-
/* @__PURE__ */ l("select", { onChange: (e) => f(e.target.value), children: r.map((e) => /* @__PURE__ */ l(
|
|
55
|
-
"option",
|
|
56
|
-
{
|
|
57
|
-
value: e,
|
|
58
|
-
children: e
|
|
59
|
-
},
|
|
60
|
-
e
|
|
61
|
-
)) })
|
|
62
|
-
] }) }),
|
|
63
|
-
/* @__PURE__ */ l("div", { children: /* @__PURE__ */ n("label", { children: [
|
|
64
|
-
"Post Icon:",
|
|
65
|
-
/* @__PURE__ */ l("select", { onChange: (e) => S(e.target.value), children: r.map((e) => /* @__PURE__ */ l(
|
|
66
|
-
"option",
|
|
67
|
-
{
|
|
68
|
-
value: e,
|
|
69
|
-
children: e
|
|
70
|
-
},
|
|
71
|
-
e
|
|
72
|
-
)) })
|
|
73
|
-
] }) }),
|
|
74
|
-
/* @__PURE__ */ l("div", { children: /* @__PURE__ */ n("label", { children: [
|
|
75
|
-
"Pre Icon Size:",
|
|
76
|
-
/* @__PURE__ */ l("select", { onChange: (e) => C(e.target.value), children: a.map((e) => /* @__PURE__ */ l(
|
|
77
|
-
"option",
|
|
78
|
-
{
|
|
79
|
-
value: e,
|
|
80
|
-
children: e
|
|
81
|
-
},
|
|
82
|
-
e
|
|
83
|
-
)) })
|
|
84
|
-
] }) }),
|
|
85
|
-
/* @__PURE__ */ l("div", { children: /* @__PURE__ */ n("label", { children: [
|
|
86
|
-
"Post Icon Size:",
|
|
87
|
-
/* @__PURE__ */ l("select", { onChange: (e) => P(e.target.value), children: a.map((e) => /* @__PURE__ */ l(
|
|
88
|
-
"option",
|
|
89
|
-
{
|
|
90
|
-
value: e,
|
|
91
|
-
children: e
|
|
92
|
-
},
|
|
93
|
-
e
|
|
94
|
-
)) })
|
|
95
|
-
] }) }),
|
|
96
|
-
/* @__PURE__ */ n("label", { className: i.isLoading, children: [
|
|
97
|
-
"isLoading",
|
|
98
|
-
/* @__PURE__ */ l(
|
|
99
|
-
"input",
|
|
100
|
-
{
|
|
101
|
-
type: "checkbox",
|
|
102
|
-
onChange: () => b(!t)
|
|
103
|
-
}
|
|
104
|
-
)
|
|
105
|
-
] }),
|
|
106
|
-
/* @__PURE__ */ n("label", { className: i.isLoading, children: [
|
|
107
|
-
"isDisable",
|
|
108
|
-
/* @__PURE__ */ l(
|
|
109
|
-
"input",
|
|
110
|
-
{
|
|
111
|
-
type: "checkbox",
|
|
112
|
-
onChange: () => v(!t)
|
|
113
|
-
}
|
|
114
|
-
)
|
|
115
|
-
] })
|
|
116
|
-
] })
|
|
117
|
-
] });
|
|
118
|
-
};
|
|
119
|
-
export {
|
|
120
|
-
_ as ButtonState
|
|
121
|
-
};
|