mimir-ui-kit 1.37.15 → 1.37.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- ._select-search_1y27d_2{position:relative}._select-search_1y27d_2._disabled_1y27d_5{cursor:not-allowed}._container_1y27d_9{position:relative;z-index:1;display:block;gap:var(--mimir-select-search-gap);align-items:center;justify-content:space-between;height:var(--mimir-select-search-height);background-color:var(--black-5);border-radius:var(--mimir-select-search-radius)}._container-open_1y27d_20{border-bottom:1px solid var(--citrine-100)}._full_1y27d_24{width:100%}._selected-icon_1y27d_28 path{fill:var(--sapphire-100)}._selector-icon-open_1y27d_32{transform:rotate(180deg)}._button_1y27d_36{display:flex;align-items:center;background:none;border:none;cursor:pointer}._button_1y27d_36._disabled_1y27d_5{cursor:not-allowed}._button_1y27d_36._disabled_1y27d_5 ._selector-icon_1y27d_32 path{fill:var(--white)}._options_1y27d_50{position:absolute;z-index:0;width:100%;min-height:100%;max-height:var(--mimir-select-search-options-height);overflow-y:auto;font-size:var(--mimir-size-text-l);background:var(--white);box-shadow:var(--mimir-box-shadow-select-search)}._options_1y27d_50._top_1y27d_61{bottom:90%;margin-bottom:1px;padding-bottom:5px;border-radius:var(--mimir-select-search-radius) var(--mimir-select-search-radius) 0 0}._options_1y27d_50._bottom_1y27d_67{top:90%;margin-top:1px;padding-top:5px;border-radius:0 0 var(--mimir-select-search-radius) var(--mimir-select-search-radius)}._options_1y27d_50._no-options_1y27d_73{height:100%;padding:var(--mimir-select-search-option-space);color:var(--black-80)}._options_1y27d_50::-webkit-scrollbar{width:3px}._options_1y27d_50::-webkit-scrollbar-thumb{background-color:var(--black-80);border-radius:var(--mimir-control-radius-xs2)}._options_1y27d_50::-webkit-scrollbar-track{background-color:var(--white)}@media (max-width: 600px){._options_1y27d_50{max-height:var(--mimir-select-search-options-height-mobile)}}._m_1y27d_94{--mimir-select-search-height: var(--mimir-select-search-height-l);--mimir-select-search-space: var(--mimir-space-xss) var(--mimir-space-m);--mimir-select-search-radius: var(--mimir-control-radius);--mimir-select-search-gap: var(--mimir-space-2xs);--mimir-select-search-btn-space: var(--mimir-space-m) var(--mimir-space-m) var(--mimir-space-m) var(--mimir-space-xs);--mimir-select-search-option-space: var(--mimir-space-2s) var(--mimir-space-m);--mimir-select-search-options-height: var( --mimir-select-search-options-height-mobile );--clear-right: var(--mimir-space-2xxl);--select-input-disabled-margin-right: var(--mimir-space-l)}._l_1y27d_109{--mimir-select-search-height: var(--mimir-select-search-height-xxl);--mimir-select-search-space: var(--mimir-space-xss) var(--mimir-space-m);--mimir-select-search-radius: var(--mimir-control-radius-s);--mimir-select-search-gap: var(--mimir-space-xs);--mimir-select-search-btn-space: var(--mimir-space-l) var(--mimir-space-m) var(--mimir-space-l) var(--mimir-space-xs);--mimir-select-search-option-space: var(--mimir-space-2l) var(--mimir-space-m);--mimir-select-search-options-height: var( --mimir-select-search-options-height-desktop );--clear-right: var(--mimir-space-4xl);--select-input-disabled-margin-right: var(--mimir-space-1xl)}._select-input_1y27d_124{width:100%!important}._select-input-disabled_1y27d_127{margin-right:var(--select-input-disabled-margin-right)}._select-input_1y27d_124:last-child{padding-right:var(--mimir-space-4xl)}._option_1y27d_50{display:flex;gap:var(--mimir-space-m);align-items:center;width:100%;padding:var(--mimir-select-search-option-space);cursor:pointer;transition:background-color .2s ease-in-out}._option-active_1y27d_143{background-color:var(--black-5)}._option-inner_1y27d_146{display:flex;flex-direction:column;gap:var(--mimir-space-xs);width:100%}._right-slot_1y27d_153{order:2;padding-top:0!important}._required-mark_1y27d_158{order:1;margin-right:var(--mimir-space-xs)}._clear_1y27d_163{position:absolute;top:50%;right:var(--clear-right);transform:translateY(-50%)}._clear_1y27d_163._disabled_1y27d_5{cursor:not-allowed}._clear_1y27d_163._disabled_1y27d_5 ._icon-button_1y27d_172 path{fill:var(--white)}
1
+ ._select-search_5nqc2_2{position:relative;isolation:isolate}._select-search_5nqc2_2._disabled_5nqc2_6{cursor:not-allowed}._select-search_5nqc2_2:focus-within{z-index:3}._container_5nqc2_13{position:relative;z-index:2;display:block;gap:var(--mimir-select-search-gap);align-items:center;justify-content:space-between;height:var(--mimir-select-search-height);background-color:var(--black-5);border-radius:var(--mimir-select-search-radius)}._container-open_5nqc2_24{border-bottom:1px solid var(--citrine-100)}._full_5nqc2_28{width:100%}._selected-icon_5nqc2_32 path{fill:var(--sapphire-100)}._selector-icon-open_5nqc2_36{transform:rotate(180deg)}._button_5nqc2_40{display:flex;align-items:center;background:none;border:none;cursor:pointer}._button_5nqc2_40._disabled_5nqc2_6{cursor:not-allowed}._button_5nqc2_40._disabled_5nqc2_6 ._selector-icon_5nqc2_36 path{fill:var(--white)}._options_5nqc2_54{position:absolute;z-index:1;width:100%;min-height:100%;max-height:var(--mimir-select-search-options-height);overflow-y:auto;font-size:var(--mimir-size-text-l);background:var(--white);box-shadow:var(--mimir-box-shadow-select-search)}._options_5nqc2_54._top_5nqc2_65{bottom:90%;margin-bottom:1px;padding-bottom:5px;border-radius:var(--mimir-select-search-radius) var(--mimir-select-search-radius) 0 0}._options_5nqc2_54._bottom_5nqc2_71{top:90%;margin-top:1px;padding-top:5px;border-radius:0 0 var(--mimir-select-search-radius) var(--mimir-select-search-radius)}._options_5nqc2_54._no-options_5nqc2_77{height:100%;padding:var(--mimir-select-search-option-space);color:var(--black-80)}._options_5nqc2_54::-webkit-scrollbar{width:3px}._options_5nqc2_54::-webkit-scrollbar-thumb{background-color:var(--black-80);border-radius:var(--mimir-control-radius-xs2)}._options_5nqc2_54::-webkit-scrollbar-track{background-color:var(--white)}@media (max-width: 600px){._options_5nqc2_54{max-height:var(--mimir-select-search-options-height-mobile)}}._m_5nqc2_98{--mimir-select-search-height: var(--mimir-select-search-height-l);--mimir-select-search-space: var(--mimir-space-xss) var(--mimir-space-m);--mimir-select-search-radius: var(--mimir-control-radius);--mimir-select-search-gap: var(--mimir-space-2xs);--mimir-select-search-btn-space: var(--mimir-space-m) var(--mimir-space-m) var(--mimir-space-m) var(--mimir-space-xs);--mimir-select-search-option-space: var(--mimir-space-2s) var(--mimir-space-m);--mimir-select-search-options-height: var( --mimir-select-search-options-height-mobile );--clear-right: var(--mimir-space-2xxl);--select-input-disabled-margin-right: var(--mimir-space-l)}._l_5nqc2_113{--mimir-select-search-height: var(--mimir-select-search-height-xxl);--mimir-select-search-space: var(--mimir-space-xss) var(--mimir-space-m);--mimir-select-search-radius: var(--mimir-control-radius-s);--mimir-select-search-gap: var(--mimir-space-xs);--mimir-select-search-btn-space: var(--mimir-space-l) var(--mimir-space-m) var(--mimir-space-l) var(--mimir-space-xs);--mimir-select-search-option-space: var(--mimir-space-2l) var(--mimir-space-m);--mimir-select-search-options-height: var( --mimir-select-search-options-height-desktop );--clear-right: var(--mimir-space-4xl);--select-input-disabled-margin-right: var(--mimir-space-1xl)}._select-input_5nqc2_128{width:100%!important}._select-input-disabled_5nqc2_131{margin-right:var(--select-input-disabled-margin-right)}._select-input_5nqc2_128:last-child{padding-right:var(--mimir-space-4xl)}._option_5nqc2_54{display:flex;gap:var(--mimir-space-m);align-items:center;width:100%;padding:var(--mimir-select-search-option-space);cursor:pointer;transition:background-color .2s ease-in-out}._option-active_5nqc2_147{background-color:var(--black-5)}._option-inner_5nqc2_150{display:flex;flex-direction:column;gap:var(--mimir-space-xs);width:100%}._right-slot_5nqc2_157{order:2;padding-top:0!important}._required-mark_5nqc2_162{order:1;margin-right:var(--mimir-space-xs)}._clear_5nqc2_167{position:absolute;top:50%;right:var(--clear-right);transform:translateY(-50%)}._clear_5nqc2_167._disabled_5nqc2_6{cursor:not-allowed}._clear_5nqc2_167._disabled_5nqc2_6 ._icon-button_5nqc2_176 path{fill:var(--white)}
@@ -1,38 +1,38 @@
1
- import { jsx as a, jsxs as u, Fragment as D } from "react/jsx-runtime";
2
- import { c as l } from "../../index-DIxK0V-G.js";
3
- import { forwardRef as U, useState as j, useMemo as R, useCallback as $, useEffect as J } from "react";
1
+ import { jsx as a, jsxs as u, Fragment as z } from "react/jsx-runtime";
2
+ import { c } from "../../index-DIxK0V-G.js";
3
+ import { forwardRef as U, useState as D, useMemo as R, useCallback as $, useEffect as J } from "react";
4
4
  import { ESelectSearchSize as v } from "./constants.js";
5
- import { mapSizeToInputSize as q, getDropdownArrowIcon as Q } from "./utils.js";
5
+ import { mapSizeToInputSize as j, getDropdownArrowIcon as Q } from "./utils.js";
6
6
  import { Icon as A } from "../../icons/Icon.js";
7
7
  import { Button as W } from "../Button/Button.js";
8
8
  import { I as O } from "../../Input-BYrIS5GU.js";
9
9
  import { EInputVariant as X } from "../Input/constants.js";
10
10
  import { H as Y, U as B, G as M, K as Z, j as ee } from "../../combobox-BpYucpxz.js";
11
- import '../../assets/SelectSearch.css';const te = "_disabled_1y27d_5", oe = "_container_1y27d_9", ne = "_full_1y27d_24", se = "_button_1y27d_36", ae = "_options_1y27d_50", ie = "_top_1y27d_61", le = "_bottom_1y27d_67", re = "_m_1y27d_94", ce = "_l_1y27d_109", de = "_option_1y27d_50", pe = "_clear_1y27d_163", e = {
12
- "select-search": "_select-search_1y27d_2",
11
+ import '../../assets/SelectSearch.css';const te = "_disabled_5nqc2_6", oe = "_container_5nqc2_13", ne = "_full_5nqc2_28", se = "_button_5nqc2_40", ae = "_options_5nqc2_54", ie = "_top_5nqc2_65", ce = "_bottom_5nqc2_71", le = "_m_5nqc2_98", re = "_l_5nqc2_113", de = "_option_5nqc2_54", pe = "_clear_5nqc2_167", e = {
12
+ "select-search": "_select-search_5nqc2_2",
13
13
  disabled: te,
14
14
  container: oe,
15
- "container-open": "_container-open_1y27d_20",
15
+ "container-open": "_container-open_5nqc2_24",
16
16
  full: ne,
17
- "selected-icon": "_selected-icon_1y27d_28",
18
- "selector-icon-open": "_selector-icon-open_1y27d_32",
17
+ "selected-icon": "_selected-icon_5nqc2_32",
18
+ "selector-icon-open": "_selector-icon-open_5nqc2_36",
19
19
  button: se,
20
- "selector-icon": "_selector-icon_1y27d_32",
20
+ "selector-icon": "_selector-icon_5nqc2_36",
21
21
  options: ae,
22
22
  top: ie,
23
- bottom: le,
24
- "no-options": "_no-options_1y27d_73",
25
- m: re,
26
- l: ce,
27
- "select-input": "_select-input_1y27d_124",
28
- "select-input-disabled": "_select-input-disabled_1y27d_127",
23
+ bottom: ce,
24
+ "no-options": "_no-options_5nqc2_77",
25
+ m: le,
26
+ l: re,
27
+ "select-input": "_select-input_5nqc2_128",
28
+ "select-input-disabled": "_select-input-disabled_5nqc2_131",
29
29
  option: de,
30
- "option-active": "_option-active_1y27d_143",
31
- "option-inner": "_option-inner_1y27d_146",
32
- "right-slot": "_right-slot_1y27d_153",
33
- "required-mark": "_required-mark_1y27d_158",
30
+ "option-active": "_option-active_5nqc2_147",
31
+ "option-inner": "_option-inner_5nqc2_150",
32
+ "right-slot": "_right-slot_5nqc2_157",
33
+ "required-mark": "_required-mark_5nqc2_162",
34
34
  clear: pe,
35
- "icon-button": "_icon-button_1y27d_172"
35
+ "icon-button": "_icon-button_5nqc2_176"
36
36
  }, we = U(
37
37
  (E, L) => {
38
38
  const {
@@ -48,93 +48,93 @@ import '../../assets/SelectSearch.css';const te = "_disabled_1y27d_5", oe = "_co
48
48
  filterOnSearch: C = !0,
49
49
  onSearch: _,
50
50
  variant: I = X.DefaultGray,
51
- menuPlacement: y = "bottom",
52
- disabled: r = !1,
51
+ menuPlacement: f = "bottom",
52
+ disabled: l = !1,
53
53
  searchProps: S,
54
- withClearButton: f = !1,
55
- disableInput: c = !1,
56
- autocomplete: k = "on",
54
+ withClearButton: b = !1,
55
+ disableInput: r = !1,
56
+ autocomplete: y = "on",
57
57
  immediate: P = !1
58
- } = E, b = String((n == null ? void 0 : n[G]) || ""), [d, m] = j(b), [N, h] = j(n), x = R(() => !C || n && (n.id || n.name) ? p : d.trim().toLowerCase() ? p.filter(
58
+ } = E, q = String((n == null ? void 0 : n[G]) || ""), [d, m] = D(q), [N, h] = D(n), k = R(() => !C || n && (n.id || n.name) ? p : d.trim().toLowerCase() ? p.filter(
59
59
  (o) => o.name.toLowerCase().includes(d.toLowerCase())
60
60
  ) : p, [d, p, n, C]), T = (o) => {
61
61
  o ? (m(o.name), h(o), s == null || s(o)) : (m(""), h(null), s == null || s({ id: "", name: "" }));
62
- }, z = $(
62
+ }, x = $(
63
63
  (o) => {
64
- if (c) return;
64
+ if (r) return;
65
65
  const t = o.target.value;
66
66
  m(t), _ == null || _(t), !t && n && (s == null || s({ id: "", name: "" }));
67
67
  },
68
- [c, s, _, n]
68
+ [r, s, _, n]
69
69
  ), H = () => {
70
70
  m(""), h(null), s == null || s({ id: "", name: "" });
71
71
  };
72
72
  return J(() => {
73
73
  const o = !n || typeof n == "object" && !Object.keys(n).length;
74
- m(o ? "" : b), h(o ? null : n);
75
- }, [n, b]), /* @__PURE__ */ a(
74
+ m(o ? "" : q), h(o ? null : n);
75
+ }, [n, q]), /* @__PURE__ */ a(
76
76
  Y,
77
77
  {
78
78
  as: "div",
79
79
  value: N,
80
- className: l(e["select-search"], {
80
+ className: c(e["select-search"], {
81
81
  [e.full]: V,
82
- [e.disabled]: r
82
+ [e.disabled]: l
83
83
  }),
84
84
  onChange: T,
85
85
  ref: L,
86
- disabled: r,
87
- virtual: { options: x },
86
+ disabled: l,
87
+ virtual: { options: k },
88
88
  immediate: P,
89
- children: ({ open: o }) => /* @__PURE__ */ u(D, { children: [
89
+ children: ({ open: o }) => /* @__PURE__ */ u(z, { children: [
90
90
  /* @__PURE__ */ u(
91
91
  "div",
92
92
  {
93
- className: l(e.container, e[i], {
93
+ className: c(e.container, e[i], {
94
94
  [e["container-open"]]: o
95
95
  }),
96
96
  children: [
97
- c && /* @__PURE__ */ u("div", { style: { position: "relative", width: "100%" }, children: [
98
- /* @__PURE__ */ a(B, { disabled: r, style: { width: "100%" }, children: /* @__PURE__ */ a(
97
+ r && /* @__PURE__ */ u("div", { style: { position: "relative", width: "100%" }, children: [
98
+ /* @__PURE__ */ a(B, { disabled: l, style: { width: "100%" }, children: /* @__PURE__ */ a(
99
99
  M,
100
100
  {
101
101
  as: O,
102
102
  label: g,
103
- size: q(i),
104
- className: l(e["select-input"], {
105
- [e["select-input-disabled"]]: c && f
103
+ size: j(i),
104
+ className: c(e["select-input"], {
105
+ [e["select-input-disabled"]]: r && b
106
106
  }),
107
- onChange: z,
107
+ onChange: x,
108
108
  value: d,
109
- disabled: r,
109
+ disabled: l,
110
110
  variant: I,
111
111
  rightSlotClassName: e["right-slot"],
112
112
  requiredMarkClassName: e["required-mark"],
113
113
  "data-testid": "select-search-input",
114
114
  onFocus: (t) => {
115
- c && t.target.blur();
115
+ r && t.target.blur();
116
116
  },
117
117
  rightAddon: {
118
118
  addonType: "icon",
119
119
  addonContent: Q(o, i)
120
120
  },
121
- autocomplete: k,
121
+ autocomplete: y,
122
122
  ...S
123
123
  }
124
124
  ) }),
125
- f && d && /* @__PURE__ */ a(
125
+ b && d && /* @__PURE__ */ a(
126
126
  W,
127
127
  {
128
128
  tabIndex: -1,
129
- className: l(e.clear, {
130
- [e.disabled]: r
129
+ className: c(e.clear, {
130
+ [e.disabled]: l
131
131
  }),
132
132
  iconButtonClassName: e["icon-button"],
133
133
  isIconButton: !0,
134
134
  iconName: "Close16px",
135
135
  size: "m-s",
136
136
  clear: !0,
137
- disabled: r,
137
+ disabled: l,
138
138
  variant: "secondary-gray",
139
139
  onClick: (t) => {
140
140
  t.stopPropagation(), H();
@@ -143,18 +143,18 @@ import '../../assets/SelectSearch.css';const te = "_disabled_1y27d_5", oe = "_co
143
143
  }
144
144
  )
145
145
  ] }),
146
- !c && /* @__PURE__ */ a(
146
+ !r && /* @__PURE__ */ a(
147
147
  M,
148
148
  {
149
149
  as: O,
150
150
  label: g,
151
- size: q(i),
151
+ size: j(i),
152
152
  className: e["select-input"],
153
- onChange: z,
153
+ onChange: x,
154
154
  value: d,
155
- disabled: r,
155
+ disabled: l,
156
156
  variant: I,
157
- withClearButton: f,
157
+ withClearButton: b,
158
158
  rightSlotClassName: e["right-slot"],
159
159
  requiredMarkClassName: e["required-mark"],
160
160
  "data-testid": "select-search-input",
@@ -163,15 +163,15 @@ import '../../assets/SelectSearch.css';const te = "_disabled_1y27d_5", oe = "_co
163
163
  addonContent: w && /* @__PURE__ */ a(
164
164
  B,
165
165
  {
166
- className: l(e.button, {
167
- [e.disabled]: r
166
+ className: c(e.button, {
167
+ [e.disabled]: l
168
168
  }),
169
- disabled: r,
169
+ disabled: l,
170
170
  children: /* @__PURE__ */ a(
171
171
  A,
172
172
  {
173
173
  iconName: i == v.M ? "DropdownArrowBottom16px" : "DropdownArrowDown24px",
174
- className: l(e["selector-icon"], {
174
+ className: c(e["selector-icon"], {
175
175
  [e["selector-icon-open"]]: o
176
176
  })
177
177
  }
@@ -180,29 +180,29 @@ import '../../assets/SelectSearch.css';const te = "_disabled_1y27d_5", oe = "_co
180
180
  )
181
181
  } : void 0,
182
182
  onFocus: (t) => {
183
- c && t.target.blur();
183
+ r && t.target.blur();
184
184
  },
185
- autocomplete: k,
185
+ autocomplete: y,
186
186
  ...S
187
187
  }
188
188
  )
189
189
  ]
190
190
  }
191
191
  ),
192
- o && /* @__PURE__ */ a(D, { children: p.length ? x.length ? /* @__PURE__ */ a(
192
+ o && /* @__PURE__ */ a(z, { children: p.length ? k.length ? /* @__PURE__ */ a(
193
193
  Z,
194
194
  {
195
195
  "data-testid": "select-search-options",
196
- className: l(
196
+ className: c(
197
197
  e.options,
198
198
  e[i],
199
- e[y]
199
+ e[f]
200
200
  ),
201
201
  children: ({ option: t }) => /* @__PURE__ */ u(
202
202
  ee,
203
203
  {
204
204
  value: t,
205
- className: ({ focus: K }) => l(
205
+ className: ({ focus: K }) => c(
206
206
  e.option,
207
207
  F,
208
208
  i && e[i],
@@ -231,22 +231,22 @@ import '../../assets/SelectSearch.css';const te = "_disabled_1y27d_5", oe = "_co
231
231
  ) : /* @__PURE__ */ a(
232
232
  "div",
233
233
  {
234
- className: l(
234
+ className: c(
235
235
  e.options,
236
236
  e[i],
237
237
  e["no-options"],
238
- e[y]
238
+ e[f]
239
239
  ),
240
240
  children: "Ничего не найдено"
241
241
  }
242
242
  ) : /* @__PURE__ */ a(
243
243
  "div",
244
244
  {
245
- className: l(
245
+ className: c(
246
246
  e.options,
247
247
  e[i],
248
248
  e["no-options"],
249
- e[y]
249
+ e[f]
250
250
  ),
251
251
  children: "Нет данных"
252
252
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.37.15",
4
+ "version": "1.37.16",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {