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,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "../../../index-
|
|
2
|
+
import { c } from "../../../index-YnD2EP-S.js";
|
|
3
3
|
const m = "_root_1dq3m_1", o = {
|
|
4
4
|
root: m
|
|
5
5
|
}, n = c.bind(o), p = ({ children: s, addClassName: t }) => /* @__PURE__ */ r("div", { className: n(o.root, t), children: s });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as et, jsxs as Vt, Fragment as ne } from "react/jsx-runtime";
|
|
2
2
|
import J, { forwardRef as ae } from "react";
|
|
3
|
-
import { g as ue, c as oe } from "../../../index-
|
|
3
|
+
import { g as ue, c as oe } from "../../../index-YnD2EP-S.js";
|
|
4
4
|
const le = "_inputWrapper_1ln65_10", he = "_inputIMask_1ln65_37", pe = "_inputWrapperPost_1ln65_41", ce = "_inputWrapperPre_1ln65_42", de = "_light_1ln65_58", fe = "_gray_1ln65_96", _e = "_dark_1ln65_128", me = "_transparent_1ln65_169", ge = "_inputWrapperError_1ln65_227", ke = "_inputWrapperErrorWithoutBorder_1ln65_241", ve = "_inputWrapperErrorDark_1ln65_252", Ee = "_checkBox_1ln65_266", M = {
|
|
5
5
|
"auto-width": "_auto-width_1ln65_1",
|
|
6
6
|
"full-width": "_full-width_1ln65_6",
|
|
@@ -2384,14 +2384,6 @@ try {
|
|
|
2384
2384
|
} catch {
|
|
2385
2385
|
}
|
|
2386
2386
|
var ut = { exports: {} }, ot = { exports: {} }, I = {};
|
|
2387
|
-
/** @license React v16.13.1
|
|
2388
|
-
* react-is.production.min.js
|
|
2389
|
-
*
|
|
2390
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2391
|
-
*
|
|
2392
|
-
* This source code is licensed under the MIT license found in the
|
|
2393
|
-
* LICENSE file in the root directory of this source tree.
|
|
2394
|
-
*/
|
|
2395
2387
|
var Nt;
|
|
2396
2388
|
function Be() {
|
|
2397
2389
|
if (Nt) return I;
|
|
@@ -2459,14 +2451,6 @@ function Be() {
|
|
|
2459
2451
|
}, I.typeOf = P, I;
|
|
2460
2452
|
}
|
|
2461
2453
|
var R = {};
|
|
2462
|
-
/** @license React v16.13.1
|
|
2463
|
-
* react-is.development.js
|
|
2464
|
-
*
|
|
2465
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2466
|
-
*
|
|
2467
|
-
* This source code is licensed under the MIT license found in the
|
|
2468
|
-
* LICENSE file in the root directory of this source tree.
|
|
2469
|
-
*/
|
|
2470
2454
|
var jt;
|
|
2471
2455
|
function Me() {
|
|
2472
2456
|
return jt || (jt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
@@ -2554,11 +2538,6 @@ var Ut;
|
|
|
2554
2538
|
function ee() {
|
|
2555
2539
|
return Ut || (Ut = 1, process.env.NODE_ENV === "production" ? ot.exports = Be() : ot.exports = Me()), ot.exports;
|
|
2556
2540
|
}
|
|
2557
|
-
/*
|
|
2558
|
-
object-assign
|
|
2559
|
-
(c) Sindre Sorhus
|
|
2560
|
-
@license MIT
|
|
2561
|
-
*/
|
|
2562
2541
|
var xt, zt;
|
|
2563
2542
|
function Oe() {
|
|
2564
2543
|
if (zt) return xt;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as u, jsx as _ } from "react/jsx-runtime";
|
|
2
|
-
import { c as f } from "../../../index-
|
|
2
|
+
import { c as f } from "../../../index-YnD2EP-S.js";
|
|
3
3
|
import { logoVariant as r } from "./Logo.types.js";
|
|
4
4
|
import { Text as w } from "../../Text/ui/Text.js";
|
|
5
5
|
const m = "_wrapper_dhuso_1", a = "_logo_dhuso_7", p = "_logoValue_dhuso_12", h = "_logoDom_dhuso_16", n = "_logoOffice_dhuso_21", d = "_logoNewOffice_dhuso_26", k = "_logoNewDom_dhuso_31", i = "_logoRealty_dhuso_36", N = "_wrapperBetween_dhuso_41", D = "_uk_dhuso_46", O = "_uk_black_dhuso_53", b = "_uk_white_dhuso_56", o = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { u as f } from "../../../useLotCard-
|
|
3
|
+
import { u as f } from "../../../useLotCard-CYcRSogE.js";
|
|
4
4
|
import "../utils/getTagsFeatures.js";
|
|
5
|
-
import "../../../index-
|
|
5
|
+
import "../../../index-YnD2EP-S.js";
|
|
6
6
|
import "../utils/checkBedroomsCount.js";
|
|
7
7
|
import "../utils/monthlyPayment.js";
|
|
8
8
|
import "../../../shared/useClientWidth.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as Y } from "../../../index-
|
|
2
|
+
import { c as Y } from "../../../index-YnD2EP-S.js";
|
|
3
3
|
import { checkLargeOffice as k } from "../../../shared/checkLargeOffice.js";
|
|
4
4
|
import { sclMillion as I } from "../../../shared/mlnRound.js";
|
|
5
|
-
import { s as e, u as K } from "../../../useLotCard-
|
|
5
|
+
import { s as e, u as K } from "../../../useLotCard-CYcRSogE.js";
|
|
6
6
|
import { formatPrice as m } from "../utils/formatPrice.js";
|
|
7
7
|
import { Tag as f } from "../../Tag/ui/Tag.js";
|
|
8
8
|
import { Button as w } from "../../Button/ui/Button.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "../../../index-
|
|
2
|
+
import { c } from "../../../index-YnD2EP-S.js";
|
|
3
3
|
const l = "_root_7lz45_12", s = "_projectRoot_7lz45_22", i = "_lotImageWrapper_7lz45_26", a = "_pulsing_7lz45_1", n = "_projectLotImageWrapper_7lz45_37", _ = "_lotInfoWrapper_7lz45_41", m = "_projectLotInfoWrapper_7lz45_48", P = "_infoHeader_7lz45_52", L = "_projectInfoHeader_7lz45_60", d = "_decor_7lz45_64", W = "_lotPropertyListMobile_7lz45_71", j = "_lotPropertyItem_7lz45_79", I = "_projectLotPropertyItem_7lz45_104", y = "_lotPropertyListDesktop_7lz45_109", z = "_lotPriceWrapper_7lz45_113", v = "_projectLotPriceWrapper_7lz45_117", D = "_discountWrapper_7lz45_121", f = "_lotPricePerMetr_7lz45_134", N = "_btnWrapper_7lz45_139", u = "_projectBtnWrapper_7lz45_155", M = "_projectDecor_7lz45_201", k = "_projectLotPropertyListMobile_7lz45_210", b = "_projectLotPropertyListDesktop_7lz45_218", g = "_lotPropertyItemDesktop_7lz45_221", h = "_projectDiscountWrapper_7lz45_232", H = "_discountPrice_7lz45_235", x = "_projectLotPricePerMetr_7lz45_255", t = {
|
|
4
4
|
root: l,
|
|
5
5
|
projectRoot: s,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { c as i } from "../../../index-
|
|
2
|
+
import { c as i } from "../../../index-YnD2EP-S.js";
|
|
3
3
|
import { NewIcon as _ } from "../../NewIcon/ui/NewIcon.js";
|
|
4
4
|
const f = "_root_1ml5t_1", d = "_metroColor_1ml5t_15", N = "_route_1ml5t_25", p = "_auto_1ml5t_35", x = "_full_1ml5t_39", t = {
|
|
5
5
|
root: f,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as e, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { c as M } from "../../../index-
|
|
2
|
+
import { c as M } from "../../../index-YnD2EP-S.js";
|
|
3
3
|
import { NewIcon as l } from "../../NewIcon/ui/NewIcon.js";
|
|
4
4
|
const w = "_root_16fjr_1", N = "_iconsWrapper_16fjr_17", W = "_metroColor_16fjr_27", x = "_route_16fjr_37", B = "_auto_16fjr_47", T = "_full_16fjr_51", $ = "_transparent_16fjr_55", C = "_long_16fjr_60", b = "_mini_16fjr_64", v = "_metroColorMini_16fjr_68", y = "_routeMini_16fjr_77", I = "_withBg_16fjr_90", z = "_withWhiteBg_16fjr_94", o = {
|
|
5
5
|
root: w,
|
|
@@ -3,7 +3,7 @@ import * as e from "react";
|
|
|
3
3
|
import { forwardRef as o } from "react";
|
|
4
4
|
import { F as m } from "../../../PinTrans-D6OZq76b.js";
|
|
5
5
|
import { F as h } from "../../../SmallFilter-C-VKnbkP.js";
|
|
6
|
-
import { c as d } from "../../../index-
|
|
6
|
+
import { c as d } from "../../../index-YnD2EP-S.js";
|
|
7
7
|
const C = ({
|
|
8
8
|
title: t,
|
|
9
9
|
titleId: l,
|
|
@@ -232,11 +232,11 @@ const C = ({
|
|
|
232
232
|
title: t,
|
|
233
233
|
titleId: l,
|
|
234
234
|
...r
|
|
235
|
-
}, a) => /* @__PURE__ */ e.createElement("svg", {
|
|
235
|
+
}, a) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M7.74919 7.75061H8.24919M7.74919 8.25061H8.24919M3.08252 7.75061H3.58252M3.08252 8.25061H3.58252M12.4159 7.75061H12.9159M12.4159 8.25061H12.9159M8.66602 8.00065C8.66602 8.36884 8.36754 8.66732 7.99935 8.66732C7.63116 8.66732 7.33268 8.36884 7.33268 8.00065C7.33268 7.63246 7.63116 7.33398 7.99935 7.33398C8.36754 7.33398 8.66602 7.63246 8.66602 8.00065ZM3.99935 8.00065C3.99935 8.36884 3.70087 8.66732 3.33268 8.66732C2.96449 8.66732 2.66602 8.36884 2.66602 8.00065C2.66602 7.63246 2.96449 7.33398 3.33268 7.33398C3.70087 7.33398 3.99935 7.63246 3.99935 8.00065ZM13.3327 8.00065C13.3327 8.36884 13.0342 8.66732 12.666 8.66732C12.2978 8.66732 11.9993 8.36884 11.9993 8.00065C11.9993 7.63246 12.2978 7.33398 12.666 7.33398C13.0342 7.33398 13.3327 7.63246 13.3327 8.00065Z", stroke: "currentColor", strokeLinecap: "round" })), p0 = o(E0), u0 = ({
|
|
236
236
|
title: t,
|
|
237
237
|
titleId: l,
|
|
238
238
|
...r
|
|
239
|
-
}, a) => /* @__PURE__ */ e.createElement("svg", {
|
|
239
|
+
}, a) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M8.33203 5L13.332 10L8.33203 15", stroke: "currentColor", strokeWidth: 1.5 })), x0 = o(u0), i = {}, M0 = {
|
|
240
240
|
arrowRight: () => /* @__PURE__ */ n(r0, {}),
|
|
241
241
|
loader: () => /* @__PURE__ */ n(v, {}),
|
|
242
242
|
filter: () => /* @__PURE__ */ n(f, {}),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n, Fragment as k } from "react/jsx-runtime";
|
|
2
2
|
import { useState as f, useEffect as S } from "react";
|
|
3
|
-
import { c as y } from "../../../index-
|
|
3
|
+
import { c as y } from "../../../index-YnD2EP-S.js";
|
|
4
4
|
import { sizeMap as i } from "./RoundButton.types.js";
|
|
5
5
|
import { NewIcon as p } from "../../NewIcon/ui/NewIcon.js";
|
|
6
6
|
const g = "_btnRound_z7oq7_1", F = "_whiteStroke_z7oq7_43", R = "_whiteFilled_z7oq7_48", $ = "_whiteTransparent_z7oq7_53", v = "_blackFill_z7oq7_58", x = "_blackStroke_z7oq7_63", E = "_fullGray_z7oq7_71", G = "_blue_z7oq7_79", e = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as u, Fragment as I, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { s as n, O as J } from "../../../Option-
|
|
3
|
-
import { c as O } from "../../../index-
|
|
2
|
+
import { s as n, O as J } from "../../../Option-CtwUzW8a.js";
|
|
3
|
+
import { c as O } from "../../../index-YnD2EP-S.js";
|
|
4
4
|
import { useState as U } from "react";
|
|
5
5
|
import { NewIcon as N } from "../../NewIcon/ui/NewIcon.js";
|
|
6
6
|
const j = O.bind(n), z = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { O as m } from "../../../Option-
|
|
3
|
-
import "../../../index-
|
|
2
|
+
import { O as m } from "../../../Option-CtwUzW8a.js";
|
|
3
|
+
import "../../../index-YnD2EP-S.js";
|
|
4
4
|
import "../../NewIcon/ui/NewIcon.js";
|
|
5
5
|
export {
|
|
6
6
|
m as Option
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as m, jsx as n, Fragment as j } from "react/jsx-runtime";
|
|
2
2
|
import { useState as B, useRef as F, useEffect as M } from "react";
|
|
3
|
-
import { c as Z } from "../../../index-
|
|
4
|
-
import { s as e, O as z } from "../../../Option-
|
|
3
|
+
import { c as Z } from "../../../index-YnD2EP-S.js";
|
|
4
|
+
import { s as e, O as z } from "../../../Option-CtwUzW8a.js";
|
|
5
5
|
import { Category as b } from "./Category.js";
|
|
6
6
|
import { handleClickModeOption as I, handleClickModeCategory as V } from "../model/selectMode.js";
|
|
7
7
|
import { NewIcon as D } from "../../NewIcon/ui/NewIcon.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useClientWidth as C } from "../../../shared/useClientWidth.js";
|
|
3
|
-
import { c as T } from "../../../index-
|
|
3
|
+
import { c as T } from "../../../index-YnD2EP-S.js";
|
|
4
4
|
import { RoundButton as d } from "../../RoundButton/ui/RoundButton.js";
|
|
5
5
|
import { Tag as N } from "../../Tag/ui/Tag.js";
|
|
6
6
|
const k = "_sliderTag_1rvl9_1", l = {
|
|
@@ -5,7 +5,7 @@ interface IUseSortSelect {
|
|
|
5
5
|
selectedOption: Option | null;
|
|
6
6
|
setSelectedOption?: (event: Option | null) => void;
|
|
7
7
|
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
8
|
-
containerRef: React.RefObject<HTMLDivElement>;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
9
|
isOpen: boolean;
|
|
10
10
|
isMobile: boolean;
|
|
11
11
|
placeholder: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { u as m } from "../../../useSortSelect-
|
|
3
|
-
import "../../../index-
|
|
2
|
+
import { u as m } from "../../../useSortSelect-Cy3od4ig.js";
|
|
3
|
+
import "../../../index-YnD2EP-S.js";
|
|
4
4
|
export {
|
|
5
5
|
m as useSortSelect
|
|
6
6
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as M, useRef as W, useEffect as E } from "react";
|
|
3
|
-
import { c as L } from "../../../index-
|
|
4
|
-
import { s as e, u as j } from "../../../useSortSelect-
|
|
3
|
+
import { c as L } from "../../../index-YnD2EP-S.js";
|
|
4
|
+
import { s as e, u as j } from "../../../useSortSelect-Cy3od4ig.js";
|
|
5
5
|
import { useClientWidth as w } from "../../../shared/useClientWidth.js";
|
|
6
6
|
import { NewIcon as O } from "../../NewIcon/ui/NewIcon.js";
|
|
7
7
|
import { Modal as T } from "../../Modal/ui/Modal.js";
|
|
@@ -21,11 +21,11 @@ const r = L.bind(e), A = ({
|
|
|
21
21
|
onCLickSelect: m,
|
|
22
22
|
onOpenClick: p
|
|
23
23
|
}) => {
|
|
24
|
-
const [o,
|
|
24
|
+
const [o, i] = M(!1), u = W(null), { isMobile: l } = w(), { handleBlur: B, getInputValue: I, getOption: f, handleDocumentClick: S } = j({
|
|
25
25
|
selectedOption: h,
|
|
26
26
|
onClickOption: C,
|
|
27
27
|
setSelectedOption: c,
|
|
28
|
-
setIsOpen:
|
|
28
|
+
setIsOpen: i,
|
|
29
29
|
containerRef: u,
|
|
30
30
|
isMobile: l,
|
|
31
31
|
placeholder: v,
|
|
@@ -34,7 +34,7 @@ const r = L.bind(e), A = ({
|
|
|
34
34
|
});
|
|
35
35
|
return E(() => (document.addEventListener("click", S), () => {
|
|
36
36
|
document.removeEventListener("click", S);
|
|
37
|
-
}), []), /* @__PURE__ */
|
|
37
|
+
}), []), /* @__PURE__ */ s(
|
|
38
38
|
"div",
|
|
39
39
|
{
|
|
40
40
|
ref: u,
|
|
@@ -50,7 +50,7 @@ const r = L.bind(e), A = ({
|
|
|
50
50
|
m && m();
|
|
51
51
|
},
|
|
52
52
|
children: [
|
|
53
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ s("div", { className: r(e.inputWrapper), children: [
|
|
54
54
|
/* @__PURE__ */ t(
|
|
55
55
|
"input",
|
|
56
56
|
{
|
|
@@ -63,7 +63,7 @@ const r = L.bind(e), A = ({
|
|
|
63
63
|
{ [e.selectionOptionMini]: k }
|
|
64
64
|
),
|
|
65
65
|
onClick: () => {
|
|
66
|
-
o || p && p(),
|
|
66
|
+
o || p && p(), i(!o);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
),
|
|
@@ -76,19 +76,19 @@ const r = L.bind(e), A = ({
|
|
|
76
76
|
}
|
|
77
77
|
)
|
|
78
78
|
] }),
|
|
79
|
-
o && l && /* @__PURE__ */
|
|
79
|
+
o && l && /* @__PURE__ */ s(
|
|
80
80
|
T,
|
|
81
81
|
{
|
|
82
82
|
isOpen: o,
|
|
83
|
-
emitIsOpen:
|
|
83
|
+
emitIsOpen: i,
|
|
84
84
|
additionalClassModalBody: e.modalAddBody,
|
|
85
85
|
additionalClass: e.selectModal,
|
|
86
86
|
createPortalObj: { domNode: document.querySelector("body") },
|
|
87
87
|
isTransparentBack: !0,
|
|
88
88
|
children: [
|
|
89
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ s("div", { className: e.mobileSortHeader, children: [
|
|
90
90
|
/* @__PURE__ */ t(z, { children: "Сортировка" }),
|
|
91
|
-
/* @__PURE__ */ t("div", { onClick: () =>
|
|
91
|
+
/* @__PURE__ */ t("div", { onClick: () => i(!1), children: /* @__PURE__ */ t(
|
|
92
92
|
O,
|
|
93
93
|
{
|
|
94
94
|
name: "close",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as o, jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as _, useEffect as d } from "react";
|
|
3
|
-
import { c as v } from "../../../index-
|
|
3
|
+
import { c as v } from "../../../index-YnD2EP-S.js";
|
|
4
4
|
const h = "_switcherWrapper_1b1pd_29", b = "_switcherWrapperReverse_1b1pd_40", W = "_switcherWrapperBetween_1b1pd_44", l = "_swiper_1b1pd_48", m = "_swiperBackward_1b1pd_1", f = "_swiperActive_1b1pd_63", u = "_swiperForward_1b1pd_1", I = "_swiperInactive_1b1pd_68", P = "_swiperInitialize_1b1pd_73", B = "_swiperPoint_1b1pd_77", A = "_swiperPointActive_1b1pd_89", e = {
|
|
5
5
|
switcherWrapper: h,
|
|
6
6
|
switcherWrapperReverse: b,
|
|
@@ -7,21 +7,26 @@ type TBtn = {
|
|
|
7
7
|
width_m?: string;
|
|
8
8
|
width_l?: string;
|
|
9
9
|
};
|
|
10
|
-
type BaseInputProps = JSX.IntrinsicElements['input'] & TBtn;
|
|
10
|
+
type BaseInputProps = React.JSX.IntrinsicElements['input'] & TBtn;
|
|
11
11
|
interface ITabSelect {
|
|
12
|
-
children?: React.ReactNode
|
|
12
|
+
children?: React.ReactNode;
|
|
13
13
|
variant?: SwitcherVariant;
|
|
14
14
|
classname?: string;
|
|
15
15
|
isRound?: boolean;
|
|
16
16
|
}
|
|
17
17
|
export declare const TAB_SELECT_VARIANTS: {
|
|
18
|
-
whiteFill:
|
|
19
|
-
whiteStroke:
|
|
20
|
-
grayDesign:
|
|
21
|
-
fullWhite:
|
|
18
|
+
readonly whiteFill: "whiteFill";
|
|
19
|
+
readonly whiteStroke: "whiteStroke";
|
|
20
|
+
readonly grayDesign: "grayDesign";
|
|
21
|
+
readonly fullWhite: "fullWhite";
|
|
22
22
|
};
|
|
23
23
|
export type SwitcherVariant = keyof typeof TAB_SELECT_VARIANTS;
|
|
24
24
|
declare const TabSelectNamespace: (({ variant, classname, children }: ITabSelect) => import("react/jsx-runtime").JSX.Element) & {
|
|
25
|
-
Item:
|
|
25
|
+
Item: {
|
|
26
|
+
(props: BaseInputProps & {
|
|
27
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
displayName: string;
|
|
30
|
+
};
|
|
26
31
|
};
|
|
27
32
|
export { TabSelectNamespace as TabSelect };
|
|
@@ -1,59 +1,64 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}, i = k.bind(t), O = {
|
|
1
|
+
import { jsx as e, jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import { c as T } from "../../../index-YnD2EP-S.js";
|
|
3
|
+
import { useClientWidth as k } from "../../../shared/useClientWidth.js";
|
|
4
|
+
import { Text as y } from "../../Text/ui/Text.js";
|
|
5
|
+
const z = "_root_pbslz_1", W = "_whiteFill_pbslz_29", D = "_text_pbslz_34", F = "_fullWhite_pbslz_48", P = "_whiteStroke_pbslz_67", C = "_withPadding_pbslz_105", I = "_grayDesign_pbslz_109", t = {
|
|
6
|
+
root: z,
|
|
7
|
+
whiteFill: W,
|
|
8
|
+
text: D,
|
|
9
|
+
fullWhite: F,
|
|
10
|
+
whiteStroke: P,
|
|
11
|
+
withPadding: C,
|
|
12
|
+
grayDesign: I
|
|
13
|
+
}, i = T.bind(t), B = {
|
|
15
14
|
whiteFill: "whiteFill",
|
|
16
15
|
whiteStroke: "whiteStroke",
|
|
17
16
|
grayDesign: "grayDesign",
|
|
18
17
|
fullWhite: "fullWhite"
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
}, L = ({
|
|
19
|
+
variant: s = "whiteFill",
|
|
20
|
+
classname: l,
|
|
21
|
+
children: a
|
|
22
|
+
}) => /* @__PURE__ */ e("div", { className: i(t.root, t[`${s}`], l), children: a }), c = (s) => {
|
|
23
|
+
const { isTablet: l, isDesktop: a } = k(), {
|
|
24
|
+
children: r,
|
|
25
|
+
className: h,
|
|
26
|
+
additionalClassName: d,
|
|
27
|
+
additionalLabelClass: _,
|
|
28
|
+
isLong: m,
|
|
29
|
+
checked: w,
|
|
30
|
+
withPadding: g = !1,
|
|
31
|
+
width: b,
|
|
30
32
|
width_m: o,
|
|
31
33
|
width_l: n,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
ref: p,
|
|
35
|
+
...f
|
|
36
|
+
} = s, u = (S, x) => S && o ? o : x && n ? n : b;
|
|
37
|
+
return /* @__PURE__ */ N("label", { className: i(t.item, _, { [t.withPadding]: g }), children: [
|
|
35
38
|
/* @__PURE__ */ e(
|
|
36
39
|
"input",
|
|
37
40
|
{
|
|
38
|
-
ref:
|
|
41
|
+
ref: p,
|
|
39
42
|
type: "checkbox",
|
|
40
|
-
checked:
|
|
41
|
-
...
|
|
43
|
+
checked: w,
|
|
44
|
+
...f
|
|
42
45
|
}
|
|
43
46
|
),
|
|
44
47
|
/* @__PURE__ */ e(
|
|
45
48
|
"div",
|
|
46
49
|
{
|
|
47
|
-
className: i(
|
|
48
|
-
style: { width:
|
|
49
|
-
children: /* @__PURE__ */ e(
|
|
50
|
+
className: i(h, d, { [t.isLong]: m }),
|
|
51
|
+
style: { width: u(l, a) },
|
|
52
|
+
children: /* @__PURE__ */ e(y, { className: i(t.text), children: r })
|
|
50
53
|
}
|
|
51
54
|
)
|
|
52
55
|
] });
|
|
56
|
+
};
|
|
57
|
+
c.displayName = "TabSelectItem";
|
|
58
|
+
const O = Object.assign(L, {
|
|
59
|
+
Item: c
|
|
53
60
|
});
|
|
54
|
-
r.displayName = "TabSelectItem";
|
|
55
|
-
const V = Object.assign(A, { Item: r });
|
|
56
61
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
62
|
+
B as TAB_SELECT_VARIANTS,
|
|
63
|
+
O as TabSelect
|
|
59
64
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
1
2
|
import { ITabSwitcherItem, TabSwitcherProps } from './TabSwitcher.types';
|
|
2
|
-
declare const
|
|
3
|
-
Item:
|
|
3
|
+
declare const TabSwitcherNamespace: (({ children, variant, isApart, addClassName, col, }: TabSwitcherProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
4
|
+
Item: FC<ITabSwitcherItem>;
|
|
4
5
|
};
|
|
5
|
-
export {
|
|
6
|
+
export { TabSwitcherNamespace as TabSwitcher };
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
grayRow: V,
|
|
1
|
+
import { jsx as i, jsxs as W } from "react/jsx-runtime";
|
|
2
|
+
import { c as $ } from "../../../index-YnD2EP-S.js";
|
|
3
|
+
import { useClientWidth as D } from "../../../shared/useClientWidth.js";
|
|
4
|
+
import { Text as M } from "../../Text/ui/Text.js";
|
|
5
|
+
const j = "_root_1t61b_1", G = "_text_1t61b_18", k = "_textMini_1t61b_26", v = "_rootCol_1t61b_32", O = "_item_1t61b_38", A = "_whiteRow_1t61b_57", q = "_firstItem_1t61b_68", B = "_lastItem_1t61b_72", E = "_whiteRowGrayLabel_1t61b_103", F = "_labelItem_1t61b_118", H = "_apart_1t61b_147", J = "_isLong_1t61b_147", K = "_autoWidth_1t61b_162", P = "_mini_1t61b_176", Q = "_isDisabled_1t61b_184", U = "_grayRow_1t61b_208", t = {
|
|
6
|
+
root: j,
|
|
7
|
+
text: G,
|
|
8
|
+
textMini: k,
|
|
9
|
+
rootCol: v,
|
|
10
|
+
item: O,
|
|
11
|
+
whiteRow: A,
|
|
12
|
+
firstItem: q,
|
|
13
|
+
lastItem: B,
|
|
14
|
+
whiteRowGrayLabel: E,
|
|
15
|
+
labelItem: F,
|
|
16
|
+
apart: H,
|
|
17
|
+
isLong: J,
|
|
18
|
+
autoWidth: K,
|
|
19
|
+
mini: P,
|
|
20
|
+
isDisabled: Q,
|
|
21
|
+
grayRow: U,
|
|
23
22
|
"tiny-size": "_tiny-size_1t61b_236",
|
|
24
23
|
"small-size": "_small-size_1t61b_241",
|
|
25
24
|
"medium-size": "_medium-size_1t61b_246",
|
|
@@ -40,81 +39,84 @@ const G = "_root_1t61b_1", k = "_text_1t61b_18", v = "_textMini_1t61b_26", O = "
|
|
|
40
39
|
"text-small-size_l": "_text-small-size_l_1t61b_325",
|
|
41
40
|
"text-medium-size_l": "_text-medium-size_l_1t61b_329",
|
|
42
41
|
"text-large-size_l": "_text-large-size_l_1t61b_333"
|
|
43
|
-
},
|
|
44
|
-
children:
|
|
45
|
-
variant:
|
|
46
|
-
isApart:
|
|
47
|
-
addClassName:
|
|
48
|
-
col:
|
|
49
|
-
}) => /* @__PURE__ */ i("div", { className:
|
|
50
|
-
const { isTablet: a, isDesktop: m } =
|
|
42
|
+
}, _ = $.bind(t), V = ({
|
|
43
|
+
children: l,
|
|
44
|
+
variant: a = "whiteRow",
|
|
45
|
+
isApart: m = !1,
|
|
46
|
+
addClassName: s = "",
|
|
47
|
+
col: e = !1
|
|
48
|
+
}) => /* @__PURE__ */ i("div", { className: _(t.root, t[a], { [t.rootCol]: e, [t.apart]: m }, s), children: l }), g = (l) => {
|
|
49
|
+
const { isTablet: a, isDesktop: m } = D(), {
|
|
51
50
|
index: s,
|
|
52
|
-
children:
|
|
53
|
-
addItemClassName:
|
|
54
|
-
addLabelClassname:
|
|
51
|
+
children: e,
|
|
52
|
+
addItemClassName: w,
|
|
53
|
+
addLabelClassname: u,
|
|
55
54
|
addTextClass: I,
|
|
56
|
-
size_s:
|
|
57
|
-
size_m:
|
|
58
|
-
size_l:
|
|
59
|
-
disabled:
|
|
60
|
-
itemsLength:
|
|
61
|
-
isLongOn:
|
|
62
|
-
width:
|
|
63
|
-
width_m:
|
|
64
|
-
width_l:
|
|
65
|
-
mini:
|
|
66
|
-
dataTestId:
|
|
55
|
+
size_s: n = "large",
|
|
56
|
+
size_m: b,
|
|
57
|
+
size_l: z,
|
|
58
|
+
disabled: d = !1,
|
|
59
|
+
itemsLength: f = 0,
|
|
60
|
+
isLongOn: p = !0,
|
|
61
|
+
width: c,
|
|
62
|
+
width_m: o,
|
|
63
|
+
width_l: r,
|
|
64
|
+
mini: x = !1,
|
|
65
|
+
dataTestId: y,
|
|
66
|
+
ref: L,
|
|
67
67
|
...R
|
|
68
|
-
} =
|
|
69
|
-
return /* @__PURE__ */ W("label", { className:
|
|
68
|
+
} = l, h = (e?.toString().length ? e?.toString().length > 2 : !1) && p, T = (N, S) => N && o ? o : S && r ? r : c, C = !c && !o && !r && h;
|
|
69
|
+
return /* @__PURE__ */ W("label", { className: _(t.labelItem, { [t.isLong]: h }, u), children: [
|
|
70
70
|
/* @__PURE__ */ i(
|
|
71
71
|
"input",
|
|
72
72
|
{
|
|
73
|
-
ref:
|
|
73
|
+
ref: L,
|
|
74
74
|
type: "checkbox",
|
|
75
75
|
...R,
|
|
76
|
-
disabled:
|
|
76
|
+
disabled: d
|
|
77
77
|
}
|
|
78
78
|
),
|
|
79
79
|
/* @__PURE__ */ i(
|
|
80
80
|
"div",
|
|
81
81
|
{
|
|
82
|
-
style: { width:
|
|
83
|
-
"data-testid":
|
|
84
|
-
className:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
t
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
82
|
+
style: { width: T(a, m) },
|
|
83
|
+
"data-testid": y,
|
|
84
|
+
className: _(
|
|
85
|
+
t.item,
|
|
86
|
+
{
|
|
87
|
+
[t.firstItem]: s === 0,
|
|
88
|
+
[t.lastItem]: s === f - 1,
|
|
89
|
+
[t.isDisabled]: d,
|
|
90
|
+
[t.autoWidth]: C,
|
|
91
|
+
[t.mini]: x
|
|
92
|
+
},
|
|
93
|
+
t[`${n}-size`],
|
|
94
|
+
t[`${b}-size_m`],
|
|
95
|
+
t[`${z}-size_l`],
|
|
96
|
+
w
|
|
97
97
|
),
|
|
98
98
|
children: /* @__PURE__ */ i(
|
|
99
|
-
|
|
99
|
+
M,
|
|
100
100
|
{
|
|
101
|
-
className:
|
|
101
|
+
className: _(
|
|
102
102
|
t.text,
|
|
103
|
-
t[`text-${
|
|
104
|
-
t[`text-${
|
|
105
|
-
t[`text-${
|
|
106
|
-
{ [t.textMini]:
|
|
103
|
+
t[`text-${n}-size`],
|
|
104
|
+
t[`text-${b}-size_m`],
|
|
105
|
+
t[`text-${z}-size_l`],
|
|
106
|
+
{ [t.textMini]: x },
|
|
107
107
|
I
|
|
108
108
|
),
|
|
109
|
-
children:
|
|
109
|
+
children: e
|
|
110
110
|
}
|
|
111
111
|
)
|
|
112
112
|
}
|
|
113
113
|
)
|
|
114
114
|
] });
|
|
115
|
+
};
|
|
116
|
+
g.displayName = "TabSwitcherItem";
|
|
117
|
+
const et = Object.assign(V, {
|
|
118
|
+
Item: g
|
|
115
119
|
});
|
|
116
|
-
w.displayName = "TabSwitcherItem";
|
|
117
|
-
const it = Object.assign(X, { Item: w });
|
|
118
120
|
export {
|
|
119
|
-
|
|
121
|
+
et as TabSwitcher
|
|
120
122
|
};
|