stone-kit 0.0.495 → 0.0.497

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.
@@ -40,7 +40,7 @@ const r = "_multiSelectWrapper_au613_1", m = "_selectedOptions_au613_8", O = "_s
40
40
  [s.optionClickable]: c && c.includes(`${e.value}`)
41
41
  }
42
42
  ),
43
- onClick: _(e),
43
+ onClick: () => _(e),
44
44
  children: [
45
45
  n && /* @__PURE__ */ i(
46
46
  a,
@@ -0,0 +1,180 @@
1
+ import { jsxs as u, jsx as o } from "react/jsx-runtime";
2
+ import { forwardRef as k, useState as T, useRef as D, useEffect as M } from "react";
3
+ import { c as v } from "./index-rKuIKazb.js";
4
+ import { s as t, u as B } from "./useSortSelect-D7K1wk0E.js";
5
+ import { NewIcon as O } from "./components/NewIcon/ui/NewIcon.js";
6
+ import "./components/Button/ui/Button.js";
7
+ import "./components/mobileButton/ui/MobileButton.js";
8
+ import "./components/DestinationTab/ui/DestinationTab.js";
9
+ import "./components/RoundButton/ui/RoundButton.js";
10
+ import "./components/Tag/ui/Tag.js";
11
+ import "./components/Switcher/ui/Switcher.js";
12
+ import { Text as C } from "./components/Text/ui/Text.js";
13
+ import "./components/Flex/ui/Flex.js";
14
+ import "./components/Input/ui/Input.js";
15
+ import { M as j } from "./Modal-BZv6nlLe.js";
16
+ import "./components/GroupedInput/ui/GroupedInputs.js";
17
+ import "./components/MetroTag/ui/MetroTag.js";
18
+ import "./components/LotCard/ui/LotCard.js";
19
+ import "./components/Select/ui/Select.js";
20
+ import { useClientWidth as L } from "./shared/useClientWidth.js";
21
+ import "./components/SliderNavigation/ui/SliderNavigation.js";
22
+ import "./components/LotCardSkeleton/ui/LotCardSkeleton.js";
23
+ import "./components/TabSelect/ui/TabSelect.js";
24
+ import "./components/FormModal/ui/ModalForm.js";
25
+ const E = "_root_1ol37_1", A = "_text_1ol37_18", z = "_rootCol_1ol37_26", $ = "_item_1ol37_32", q = "_whiteRow_1ol37_51", H = "_firstItem_1ol37_62", P = "_lastItem_1ol37_66", V = "_apart_1ol37_97", F = "_isLong_1ol37_97", G = "_autoWidth_1ol37_122", J = "_isDisabled_1ol37_129", K = "_grayRow_1ol37_153", e = {
26
+ root: E,
27
+ text: A,
28
+ rootCol: z,
29
+ item: $,
30
+ whiteRow: q,
31
+ firstItem: H,
32
+ lastItem: P,
33
+ apart: V,
34
+ isLong: F,
35
+ autoWidth: G,
36
+ isDisabled: J,
37
+ grayRow: K
38
+ }, h = v.bind(e), Q = ({
39
+ children: s,
40
+ variant: m = "whiteRow",
41
+ isApart: d = !1,
42
+ addClassName: p = "",
43
+ col: n = !1
44
+ }) => /* @__PURE__ */ o("div", { className: h(e.root, e[m], p, { [e.rootCol]: n, [e.apart]: d }), children: s }), W = k((s, m) => {
45
+ const { isTablet: d, isDesktop: p } = L(), {
46
+ index: n,
47
+ children: i,
48
+ addItemClassName: f,
49
+ addTextClass: x,
50
+ disabled: w = !1,
51
+ itemsLength: b = 0,
52
+ isLongOn: r = !0,
53
+ width: a,
54
+ width_m: c,
55
+ width_l: l,
56
+ ...y
57
+ } = s, S = (i != null && i.toString().length ? (i == null ? void 0 : i.toString().length) > 2 : !1) && r, g = (_, R) => _ && c ? c : R && l ? l : a, I = !a && !c && !l && S;
58
+ return /* @__PURE__ */ u("label", { className: h({ [e.isLong]: S }), children: [
59
+ /* @__PURE__ */ o(
60
+ "input",
61
+ {
62
+ ref: m,
63
+ type: "checkbox",
64
+ ...y,
65
+ disabled: w
66
+ }
67
+ ),
68
+ /* @__PURE__ */ o(
69
+ "div",
70
+ {
71
+ style: { width: g(d, p) },
72
+ className: h(h(
73
+ e.item,
74
+ { [e.firstItem]: n === 0 },
75
+ { [e.lastItem]: n === b - 1 },
76
+ { [e.isDisabled]: w },
77
+ { [e.autoWidth]: I }
78
+ ), f),
79
+ children: /* @__PURE__ */ o(C, { className: h(e.text, x), children: i })
80
+ }
81
+ )
82
+ ] });
83
+ });
84
+ W.displayName = "TabSwitcherItem";
85
+ const It = Object.assign(Q, { Item: W }), N = v.bind(t), U = ({
86
+ options: s,
87
+ selectedOption: m,
88
+ placeholder: d = "",
89
+ error: p,
90
+ disabled: n,
91
+ additionalClass: i = "",
92
+ onChange: f,
93
+ onBlur: x,
94
+ mini: w,
95
+ openOnTop: b = !1
96
+ }) => {
97
+ const [r, a] = T(!1), c = D(null), { isMobile: l } = L(), { handleBlur: y, getInputValue: S, getOption: g, handleDocumentClick: I } = B({
98
+ selectedOption: m,
99
+ setSelectedOption: f,
100
+ setIsOpen: a,
101
+ containerRef: c,
102
+ isOpen: r,
103
+ isMobile: l,
104
+ placeholder: d,
105
+ onChange: f,
106
+ onBlur: x
107
+ });
108
+ return M(() => (document.addEventListener("click", I), () => {
109
+ document.removeEventListener("click", I);
110
+ }), []), /* @__PURE__ */ u(
111
+ "div",
112
+ {
113
+ ref: c,
114
+ className: N(
115
+ t.sortSelectWrapper,
116
+ { [t.sortSelectWrapperError]: p },
117
+ { [t.sortSelectWrapperTop]: b },
118
+ i
119
+ ),
120
+ tabIndex: 0,
121
+ onBlur: y,
122
+ children: [
123
+ /* @__PURE__ */ u("div", { className: N(t.inputWrapper), children: [
124
+ /* @__PURE__ */ o(
125
+ "input",
126
+ {
127
+ type: "text",
128
+ readOnly: !0,
129
+ value: S(),
130
+ className: N(
131
+ t.selectedOptions,
132
+ { [t.selectOptionsDisabled]: n },
133
+ { [t.selectionOptionMini]: w }
134
+ ),
135
+ onClick: () => a(!r)
136
+ }
137
+ ),
138
+ /* @__PURE__ */ o(
139
+ O,
140
+ {
141
+ name: "twoArrows",
142
+ size: "24",
143
+ additionalClass: t.icon
144
+ }
145
+ )
146
+ ] }),
147
+ r && l && /* @__PURE__ */ u(
148
+ j,
149
+ {
150
+ isOpen: r,
151
+ emitIsOpen: a,
152
+ additionalClassModalBody: t.modalAddBody,
153
+ additionalClass: t.selectModal,
154
+ createPortalObj: { domNode: document.querySelector("body") },
155
+ isTransparentBack: !0,
156
+ children: [
157
+ /* @__PURE__ */ u("div", { className: t.mobileSortHeader, children: [
158
+ /* @__PURE__ */ o(C, { children: "Сортировка" }),
159
+ /* @__PURE__ */ o("div", { onClick: () => a(!1), children: /* @__PURE__ */ o(
160
+ O,
161
+ {
162
+ name: "close",
163
+ size: "20"
164
+ }
165
+ ) })
166
+ ] }),
167
+ /* @__PURE__ */ o("div", { className: t.mobileOptionList, children: s == null ? void 0 : s.map((_) => g(_)) })
168
+ ]
169
+ }
170
+ ),
171
+ r && !l && /* @__PURE__ */ o("div", { className: N(t.optionsList, { [t.optionListOnTop]: b }), children: s == null ? void 0 : s.map((_) => g(_)) })
172
+ ]
173
+ }
174
+ );
175
+ };
176
+ U.displayName = "SortSelect";
177
+ export {
178
+ It as S,
179
+ U as a
180
+ };
@@ -6,7 +6,7 @@ export interface IOption {
6
6
  disabledOptions: TOption[];
7
7
  selectedOptions: TOption[];
8
8
  clickableOptions?: (string | undefined)[];
9
- handleOptionClick: (option: TOption | TOption[]) => () => void;
9
+ handleOptionClick: (option: TOption | TOption[]) => void;
10
10
  sizeIcon?: string;
11
11
  }
12
12
  export declare const Category: ({ category, selectedOptions, disabledOptions, clickableOptions, handleOptionClick, sizeIcon }: IOption) => import("react/jsx-runtime").JSX.Element;
@@ -1,38 +1,38 @@
1
- import { jsxs as t, Fragment as v, jsx as s } from "react/jsx-runtime";
2
- import { s as i, O as f } from "../../../Option-C7WIx1fG.js";
1
+ import { jsxs as l, Fragment as v, jsx as s } from "react/jsx-runtime";
2
+ import { s as e, O as f } from "../../../Option-CFf-6tyJ.js";
3
3
  import { NewIcon as c } from "../../NewIcon/ui/NewIcon.js";
4
- import { c as N } from "../../../index-rKuIKazb.js";
5
- const h = N.bind(i), k = ({
4
+ import { c as h } from "../../../index-rKuIKazb.js";
5
+ const N = h.bind(e), O = ({
6
6
  category: o,
7
7
  selectedOptions: n,
8
- disabledOptions: l,
8
+ disabledOptions: r,
9
9
  clickableOptions: p,
10
10
  handleOptionClick: a,
11
- sizeIcon: r
11
+ sizeIcon: t
12
12
  }) => {
13
- const d = n.map((e) => JSON.stringify(e)), m = o.options.every((e) => d.includes(JSON.stringify(e)));
14
- return /* @__PURE__ */ t(v, { children: [
15
- /* @__PURE__ */ t(
13
+ const d = n.map((i) => JSON.stringify(i)), m = o.options.every((i) => d.includes(JSON.stringify(i)));
14
+ return /* @__PURE__ */ l(v, { children: [
15
+ /* @__PURE__ */ l(
16
16
  "div",
17
17
  {
18
- className: h(
19
- i.option,
20
- i.category,
21
- i.optionClickable,
18
+ className: N(
19
+ e.option,
20
+ e.category,
21
+ e.optionClickable,
22
22
  {
23
- [i.selected]: n.some((e) => e.value === o.value),
24
- [i.optionDisabled]: l.some(
25
- (e) => e.value === o.value
23
+ [e.selected]: n.some((i) => i.value === o.value),
24
+ [e.optionDisabled]: r.some(
25
+ (i) => i.value === o.value
26
26
  )
27
27
  }
28
28
  ),
29
- onClick: a(o.options),
29
+ onClick: () => a(o.options),
30
30
  children: [
31
- /* @__PURE__ */ t("div", { className: i.leftSide, children: [
31
+ /* @__PURE__ */ l("div", { className: e.leftSide, children: [
32
32
  /* @__PURE__ */ s(
33
33
  c,
34
34
  {
35
- size: r ?? "20",
35
+ size: t ?? "20",
36
36
  name: m ? "minusCheck" : "selectUnchecked"
37
37
  }
38
38
  ),
@@ -43,21 +43,21 @@ const h = N.bind(i), k = ({
43
43
  {
44
44
  name: "arrowShort",
45
45
  deg: m ? "180" : "0",
46
- size: r ?? "24",
47
- additionalClass: i.icon
46
+ size: t ?? "24",
47
+ additionalClass: e.icon
48
48
  }
49
49
  )
50
50
  ]
51
51
  }
52
52
  ),
53
- o.options.map((e, u) => /* @__PURE__ */ s(
53
+ o.options.map((i, u) => /* @__PURE__ */ s(
54
54
  f,
55
55
  {
56
- option: e,
57
- disabledOptions: l,
56
+ option: i,
57
+ disabledOptions: r,
58
58
  selectedOptions: n,
59
- handleOptionClick: a,
60
- sizeIcon: r,
59
+ handleOptionClick: () => a(i),
60
+ sizeIcon: t,
61
61
  clickableOptions: p,
62
62
  isOptionCategory: !0
63
63
  },
@@ -66,5 +66,5 @@ const h = N.bind(i), k = ({
66
66
  ] });
67
67
  };
68
68
  export {
69
- k as Category
69
+ O as Category
70
70
  };
@@ -6,7 +6,7 @@ export interface IOption {
6
6
  disabledOptions: TOption[];
7
7
  selectedOptions: TOption[];
8
8
  clickableOptions?: (string | undefined)[];
9
- handleOptionClick: (option: TOption) => () => void;
9
+ handleOptionClick: (option: TOption) => void;
10
10
  sizeIcon?: string;
11
11
  }
12
12
  export declare const Option: ({ option, selectedOptions, disabledOptions, clickableOptions, handleOptionClick, isOptionCategory, sizeIcon }: IOption) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { O as m } from "../../../Option-C7WIx1fG.js";
2
+ import { O as m } from "../../../Option-CFf-6tyJ.js";
3
3
  import "../../NewIcon/ui/NewIcon.js";
4
4
  import "../../../index-rKuIKazb.js";
5
5
  export {
@@ -1,3 +1,3 @@
1
1
  import { MultiSelectProps } from './Select.types';
2
2
 
3
- export declare const Select: ({ options, placeholder, error, disabled, disabledOptions, additionalClass, additionalClassOption, additionalClassBtn, onChange, onBlur, selectedValues, isBtn, btnName, clickableOptions, isListRight, sizeIcon, mode, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const Select: ({ options, placeholder, error, disabled, disabledOptions, additionalClass, additionalClassOption, additionalClassBtn, onChange, onBlur, selectedValues, isBtn, btnName, clickableOptions, isListRight, sizeIcon, mode, onClickItem, onCLickSelect }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,27 +1,29 @@
1
- import { jsxs as m, Fragment as E, jsx as o } from "react/jsx-runtime";
2
- import { useState as b, useRef as A, useEffect as D } from "react";
3
- import { c as K } from "../../../index-rKuIKazb.js";
4
- import { s as r, O as M } from "../../../Option-C7WIx1fG.js";
5
- import { NewIcon as R } from "../../NewIcon/ui/NewIcon.js";
6
- import { Category as P } from "./Category.js";
7
- const u = K.bind(r), _ = ({
1
+ import { jsxs as m, Fragment as A, jsx as o } from "react/jsx-runtime";
2
+ import { useState as D, useRef as R, useEffect as W } from "react";
3
+ import { c as Q } from "../../../index-rKuIKazb.js";
4
+ import { s as r, O as T } from "../../../Option-CFf-6tyJ.js";
5
+ import { NewIcon as j } from "../../NewIcon/ui/NewIcon.js";
6
+ import { Category as U } from "./Category.js";
7
+ const u = Q.bind(r), I = ({
8
8
  options: g,
9
9
  placeholder: L = "Выберите опции",
10
- error: W,
10
+ error: B,
11
11
  disabled: O,
12
12
  disabledOptions: c = [],
13
- additionalClass: j = "",
13
+ additionalClass: q = "",
14
14
  additionalClassOption: C,
15
- additionalClassBtn: B,
15
+ additionalClassBtn: G,
16
16
  onChange: i,
17
17
  onBlur: h,
18
- selectedValues: s = [],
18
+ selectedValues: n = [],
19
19
  isBtn: k = !1,
20
- btnName: q,
20
+ btnName: H,
21
21
  clickableOptions: F,
22
- isListRight: G = !1,
22
+ isListRight: K = !1,
23
23
  sizeIcon: p,
24
- mode: J = "options"
24
+ mode: J = "options",
25
+ onClickItem: w,
26
+ onCLickSelect: x
25
27
  }) => {
26
28
  const v = [
27
29
  {
@@ -42,29 +44,29 @@ const u = K.bind(r), _ = ({
42
44
  // {value: 'optionsFake6', label: 'labelFake6'}
43
45
  // ]
44
46
  // }
45
- ], [l, d] = b(s), [f, S] = b(!1), y = A(null), w = (e) => () => {
46
- if (Array.isArray(e)) {
47
- const n = e.filter((t) => !(c != null && c.includes(t)));
48
- if (n.every((t) => l.map((a) => JSON.stringify(a)).includes(JSON.stringify(t)))) {
47
+ ], [l, d] = D(n), [f, S] = D(!1), y = R(null), E = (e) => {
48
+ if (w && w(e), Array.isArray(e)) {
49
+ const s = e.filter((t) => !(c != null && c.includes(t)));
50
+ if (s.every((t) => l.map((a) => JSON.stringify(a)).includes(JSON.stringify(t)))) {
49
51
  const t = l.filter((a) => !e.map((N) => JSON.stringify(N)).includes(JSON.stringify(a)));
50
52
  d(t), i && i(t);
51
53
  } else {
52
- const t = n.filter((N) => !l.map((I) => JSON.stringify(I)).includes(JSON.stringify(N))), a = [...l, ...t];
54
+ const t = s.filter((N) => !l.map((P) => JSON.stringify(P)).includes(JSON.stringify(N))), a = [...l, ...t];
53
55
  d(a), i && i(a);
54
56
  }
55
57
  } else {
56
58
  if (c.includes(e))
57
59
  return;
58
- const n = l.some((t) => t.value === e.value) ? l.filter((t) => t.value !== e.value) : [...l, e];
59
- d(n), i && i(n);
60
+ const s = l.some((t) => t.value === e.value) ? l.filter((t) => t.value !== e.value) : [...l, e];
61
+ d(s), i && i(s);
60
62
  }
61
- }, H = () => {
63
+ }, M = () => {
62
64
  h && h(l);
63
65
  };
64
- D(() => {
65
- const e = (n) => {
66
- const t = n.target;
67
- if (y.current && !y.current.contains(n.target)) {
66
+ W(() => {
67
+ const e = (s) => {
68
+ const t = s.target;
69
+ if (y.current && !y.current.contains(s.target)) {
68
70
  if (t.closest("svg"))
69
71
  return;
70
72
  S(!1);
@@ -74,19 +76,19 @@ const u = K.bind(r), _ = ({
74
76
  document.removeEventListener("click", e);
75
77
  };
76
78
  }, []);
77
- const x = A(s);
78
- return D(() => {
79
- s.length !== x.current.length && (d(s), x.current = s);
80
- }, [s]), /* @__PURE__ */ m(
79
+ const b = R(n);
80
+ return W(() => {
81
+ n.length !== b.current.length && (d(n), b.current = n);
82
+ }, [n]), /* @__PURE__ */ m(
81
83
  "div",
82
84
  {
83
85
  ref: y,
84
- className: u(r.multiSelectWrapper, { [r.multiSelectWrapperError]: W }, j),
86
+ className: u(r.multiSelectWrapper, { [r.multiSelectWrapperError]: B }, q),
85
87
  tabIndex: 0,
86
- onBlur: H,
88
+ onBlur: M,
87
89
  children: [
88
90
  /* @__PURE__ */ m("div", { className: u(r.inputWrapper), children: [
89
- !k && /* @__PURE__ */ m(E, { children: [
91
+ !k && /* @__PURE__ */ m(A, { children: [
90
92
  /* @__PURE__ */ o(
91
93
  "div",
92
94
  {
@@ -100,7 +102,7 @@ const u = K.bind(r), _ = ({
100
102
  }
101
103
  ),
102
104
  /* @__PURE__ */ o(
103
- R,
105
+ j,
104
106
  {
105
107
  name: "arrowShort",
106
108
  deg: f ? "180" : "0",
@@ -109,7 +111,7 @@ const u = K.bind(r), _ = ({
109
111
  }
110
112
  )
111
113
  ] }),
112
- k && /* @__PURE__ */ m(E, { children: [
114
+ k && /* @__PURE__ */ m(A, { children: [
113
115
  /* @__PURE__ */ o(
114
116
  "button",
115
117
  {
@@ -117,14 +119,16 @@ const u = K.bind(r), _ = ({
117
119
  r.selectedOptions,
118
120
  r.selectedOptionsBtn,
119
121
  { [r.selectOptionsDisabled]: O },
120
- B
122
+ G
121
123
  ),
122
- onClick: () => S(!f),
123
- children: q
124
+ onClick: () => {
125
+ x && x(), S(!f);
126
+ },
127
+ children: H
124
128
  }
125
129
  ),
126
130
  /* @__PURE__ */ o(
127
- R,
131
+ j,
128
132
  {
129
133
  name: "filter",
130
134
  deg: f ? "180" : "0",
@@ -134,31 +138,31 @@ const u = K.bind(r), _ = ({
134
138
  )
135
139
  ] })
136
140
  ] }),
137
- f && /* @__PURE__ */ m("div", { className: u(r.optionsList, { [r.listRight]: G }, C), children: [
138
- J === "options" && (g == null ? void 0 : g.map((e, n) => /* @__PURE__ */ o(
139
- M,
141
+ f && /* @__PURE__ */ m("div", { className: u(r.optionsList, { [r.listRight]: K }, C), children: [
142
+ J === "options" && (g == null ? void 0 : g.map((e, s) => /* @__PURE__ */ o(
143
+ T,
140
144
  {
141
145
  disabledOptions: c,
142
146
  clickableOptions: F,
143
147
  selectedOptions: l,
144
148
  sizeIcon: p,
145
149
  option: e,
146
- handleOptionClick: w
150
+ handleOptionClick: E
147
151
  },
148
- n
152
+ s
149
153
  ))),
150
- J === "category" && (v == null ? void 0 : v.map((e, n) => /* @__PURE__ */ o(
151
- P,
154
+ J === "category" && (v == null ? void 0 : v.map((e, s) => /* @__PURE__ */ o(
155
+ U,
152
156
  {
153
157
  disabledOptions: c,
154
158
  clickableOptions: F,
155
159
  selectedOptions: l,
156
160
  sizeIcon: p,
157
161
  category: e,
158
- selectedValues: s,
159
- handleOptionClick: w
162
+ selectedValues: n,
163
+ handleOptionClick: E
160
164
  },
161
- n
165
+ s
162
166
  )))
163
167
  ] })
164
168
  ]
@@ -166,5 +170,5 @@ const u = K.bind(r), _ = ({
166
170
  );
167
171
  };
168
172
  export {
169
- _ as Select
173
+ I as Select
170
174
  };
@@ -55,4 +55,6 @@ export interface MultiSelectProps {
55
55
  clickableOptions?: (string | undefined)[];
56
56
  sizeIcon?: string;
57
57
  mode?: TModeSelect;
58
+ onClickItem?: (option: TOption | TOption[]) => void;
59
+ onCLickSelect?: () => void;
58
60
  }
@@ -1,4 +1,4 @@
1
- import { a as r } from "../../SortSelect-CaZ13MQ5.js";
1
+ import { a as r } from "../../SortSelect-jks4qMel.js";
2
2
  export {
3
3
  r as SortSelect
4
4
  };
@@ -13,7 +13,7 @@ import "../../Text/ui/Text.js";
13
13
  import "../../Flex/ui/Flex.js";
14
14
  import "../../Input/ui/Input.js";
15
15
  import "../../../Modal-BZv6nlLe.js";
16
- import { a as z } from "../../../SortSelect-CaZ13MQ5.js";
16
+ import { a as z } from "../../../SortSelect-jks4qMel.js";
17
17
  import "../../GroupedInput/ui/GroupedInputs.js";
18
18
  import "../../MetroTag/ui/MetroTag.js";
19
19
  import "../../LotCard/ui/LotCard.js";
@@ -1,4 +1,4 @@
1
- import { S as e } from "../../SortSelect-CaZ13MQ5.js";
1
+ import { S as e } from "../../SortSelect-jks4qMel.js";
2
2
  export {
3
3
  e as TabSwitcher
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { S as v } from "../../../SortSelect-CaZ13MQ5.js";
3
+ import { S as v } from "../../../SortSelect-jks4qMel.js";
4
4
  import "../../Text/ui/Text.js";
5
5
  import "../../../index-rKuIKazb.js";
6
6
  import "../../Button/ui/Button.js";
@@ -6,6 +6,7 @@ declare const TAB_SWITCHER_VARIANTS: {
6
6
  };
7
7
  export interface ITabSwitcherItem extends React.InputHTMLAttributes<HTMLInputElement> {
8
8
  addItemClassName?: string;
9
+ addTextClass?: string;
9
10
  index: number;
10
11
  isDisabled?: boolean;
11
12
  itemsLength: number;
@@ -11,7 +11,7 @@ import "../../Flex/ui/Flex.js";
11
11
  import "../../Input/ui/Input.js";
12
12
  import "react";
13
13
  import "../../../Modal-BZv6nlLe.js";
14
- import "../../../SortSelect-CaZ13MQ5.js";
14
+ import "../../../SortSelect-jks4qMel.js";
15
15
  import "../../GroupedInput/ui/GroupedInputs.js";
16
16
  import "../../../index-rKuIKazb.js";
17
17
  import "../../MetroTag/ui/MetroTag.js";
package/dist/main.js CHANGED
@@ -10,7 +10,7 @@ import { Flex as T } from "./components/Flex/ui/Flex.js";
10
10
  import { Input as b } from "./components/Input/ui/Input.js";
11
11
  import { M as I } from "./Modal-BZv6nlLe.js";
12
12
  import { FieldInput as w } from "./components/FieldInput/ui/FieldInput.js";
13
- import { a as F, S as L } from "./SortSelect-CaZ13MQ5.js";
13
+ import { a as F, S as L } from "./SortSelect-jks4qMel.js";
14
14
  import { GroupedInputs as N } from "./components/GroupedInput/ui/GroupedInputs.js";
15
15
  import { Logo as v } from "./components/Logo/ui/Logo.js";
16
16
  import { MetroTag as D } from "./components/MetroTag/ui/MetroTag.js";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "stone-kit",
3
3
  "description": "uikit for redesign",
4
4
  "private": false,
5
- "version": "0.0.495",
5
+ "version": "0.0.497",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",
@@ -1,179 +0,0 @@
1
- import { jsxs as u, jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as R, useState as k, useRef as D, useEffect as T } from "react";
3
- import { c as v } from "./index-rKuIKazb.js";
4
- import { s as t, u as M } from "./useSortSelect-D7K1wk0E.js";
5
- import { NewIcon as O } from "./components/NewIcon/ui/NewIcon.js";
6
- import "./components/Button/ui/Button.js";
7
- import "./components/mobileButton/ui/MobileButton.js";
8
- import "./components/DestinationTab/ui/DestinationTab.js";
9
- import "./components/RoundButton/ui/RoundButton.js";
10
- import "./components/Tag/ui/Tag.js";
11
- import "./components/Switcher/ui/Switcher.js";
12
- import { Text as L } from "./components/Text/ui/Text.js";
13
- import "./components/Flex/ui/Flex.js";
14
- import "./components/Input/ui/Input.js";
15
- import { M as B } from "./Modal-BZv6nlLe.js";
16
- import "./components/GroupedInput/ui/GroupedInputs.js";
17
- import "./components/MetroTag/ui/MetroTag.js";
18
- import "./components/LotCard/ui/LotCard.js";
19
- import "./components/Select/ui/Select.js";
20
- import { useClientWidth as C } from "./shared/useClientWidth.js";
21
- import "./components/SliderNavigation/ui/SliderNavigation.js";
22
- import "./components/LotCardSkeleton/ui/LotCardSkeleton.js";
23
- import "./components/TabSelect/ui/TabSelect.js";
24
- import "./components/FormModal/ui/ModalForm.js";
25
- const j = "_root_1ol37_1", E = "_text_1ol37_18", A = "_rootCol_1ol37_26", z = "_item_1ol37_32", $ = "_whiteRow_1ol37_51", q = "_firstItem_1ol37_62", H = "_lastItem_1ol37_66", P = "_apart_1ol37_97", V = "_isLong_1ol37_97", F = "_autoWidth_1ol37_122", G = "_isDisabled_1ol37_129", J = "_grayRow_1ol37_153", e = {
26
- root: j,
27
- text: E,
28
- rootCol: A,
29
- item: z,
30
- whiteRow: $,
31
- firstItem: q,
32
- lastItem: H,
33
- apart: P,
34
- isLong: V,
35
- autoWidth: F,
36
- isDisabled: G,
37
- grayRow: J
38
- }, N = v.bind(e), K = ({
39
- children: s,
40
- variant: c = "whiteRow",
41
- isApart: m = !1,
42
- addClassName: d = "",
43
- col: l = !1
44
- }) => /* @__PURE__ */ o("div", { className: N(e.root, e[c], d, { [e.rootCol]: l, [e.apart]: m }), children: s }), W = R((s, c) => {
45
- const { isTablet: m, isDesktop: d } = C(), {
46
- index: l,
47
- children: i,
48
- addItemClassName: h,
49
- disabled: f = !1,
50
- itemsLength: x = 0,
51
- isLongOn: w = !0,
52
- width: r,
53
- width_m: a,
54
- width_l: n,
55
- ...p
56
- } = s, b = (i != null && i.toString().length ? (i == null ? void 0 : i.toString().length) > 2 : !1) && w, y = (g, _) => g && a ? a : _ && n ? n : r, S = !r && !a && !n && b;
57
- return /* @__PURE__ */ u("label", { className: N({ [e.isLong]: b }), children: [
58
- /* @__PURE__ */ o(
59
- "input",
60
- {
61
- ref: c,
62
- type: "checkbox",
63
- ...p,
64
- disabled: f
65
- }
66
- ),
67
- /* @__PURE__ */ o(
68
- "div",
69
- {
70
- style: { width: y(m, d) },
71
- className: N(N(
72
- e.item,
73
- { [e.firstItem]: l === 0 },
74
- { [e.lastItem]: l === x - 1 },
75
- { [e.isDisabled]: f },
76
- { [e.autoWidth]: S }
77
- ), h),
78
- children: /* @__PURE__ */ o(L, { className: e.text, children: i })
79
- }
80
- )
81
- ] });
82
- });
83
- W.displayName = "TabSwitcherItem";
84
- const gt = Object.assign(K, { Item: W }), I = v.bind(t), Q = ({
85
- options: s,
86
- selectedOption: c,
87
- placeholder: m = "",
88
- error: d,
89
- disabled: l,
90
- additionalClass: i = "",
91
- onChange: h,
92
- onBlur: f,
93
- mini: x,
94
- openOnTop: w = !1
95
- }) => {
96
- const [r, a] = k(!1), n = D(null), { isMobile: p } = C(), { handleBlur: b, getInputValue: y, getOption: S, handleDocumentClick: g } = M({
97
- selectedOption: c,
98
- setSelectedOption: h,
99
- setIsOpen: a,
100
- containerRef: n,
101
- isOpen: r,
102
- isMobile: p,
103
- placeholder: m,
104
- onChange: h,
105
- onBlur: f
106
- });
107
- return T(() => (document.addEventListener("click", g), () => {
108
- document.removeEventListener("click", g);
109
- }), []), /* @__PURE__ */ u(
110
- "div",
111
- {
112
- ref: n,
113
- className: I(
114
- t.sortSelectWrapper,
115
- { [t.sortSelectWrapperError]: d },
116
- { [t.sortSelectWrapperTop]: w },
117
- i
118
- ),
119
- tabIndex: 0,
120
- onBlur: b,
121
- children: [
122
- /* @__PURE__ */ u("div", { className: I(t.inputWrapper), children: [
123
- /* @__PURE__ */ o(
124
- "input",
125
- {
126
- type: "text",
127
- readOnly: !0,
128
- value: y(),
129
- className: I(
130
- t.selectedOptions,
131
- { [t.selectOptionsDisabled]: l },
132
- { [t.selectionOptionMini]: x }
133
- ),
134
- onClick: () => a(!r)
135
- }
136
- ),
137
- /* @__PURE__ */ o(
138
- O,
139
- {
140
- name: "twoArrows",
141
- size: "24",
142
- additionalClass: t.icon
143
- }
144
- )
145
- ] }),
146
- r && p && /* @__PURE__ */ u(
147
- B,
148
- {
149
- isOpen: r,
150
- emitIsOpen: a,
151
- additionalClassModalBody: t.modalAddBody,
152
- additionalClass: t.selectModal,
153
- createPortalObj: { domNode: document.querySelector("body") },
154
- isTransparentBack: !0,
155
- children: [
156
- /* @__PURE__ */ u("div", { className: t.mobileSortHeader, children: [
157
- /* @__PURE__ */ o(L, { children: "Сортировка" }),
158
- /* @__PURE__ */ o("div", { onClick: () => a(!1), children: /* @__PURE__ */ o(
159
- O,
160
- {
161
- name: "close",
162
- size: "20"
163
- }
164
- ) })
165
- ] }),
166
- /* @__PURE__ */ o("div", { className: t.mobileOptionList, children: s == null ? void 0 : s.map((_) => S(_)) })
167
- ]
168
- }
169
- ),
170
- r && !p && /* @__PURE__ */ o("div", { className: I(t.optionsList, { [t.optionListOnTop]: w }), children: s == null ? void 0 : s.map((_) => S(_)) })
171
- ]
172
- }
173
- );
174
- };
175
- Q.displayName = "SortSelect";
176
- export {
177
- gt as S,
178
- Q as a
179
- };