@reportportal/ui-kit 0.0.1-alpha.242 → 0.0.1-alpha.243

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.
@@ -9,16 +9,21 @@ import { i as Me } from "./isEmpty-ccacb5ff.js";
9
9
  import { createPortal as Je } from "react-dom";
10
10
  import _e from "downshift";
11
11
  import { useFloating as Be, autoUpdate as Oe, flip as Qe, size as Ze } from "@floating-ui/react";
12
- import { F as qe } from "./fieldText-4a8e5496.js";
12
+ import { F as qe } from "./fieldText-a4446a77.js";
13
13
  import { S as Te } from "./dropdown-0260bb66.js";
14
14
  import { E as $e, A as Ue, T as Ve } from "./constants-85822a6b.js";
15
15
  import { S as et } from "./close-4d480ef7.js";
16
16
  import { S as tt } from "./clear-53660571.js";
17
- import "./openedEye-8fa4c67d.js";
17
+ import "./capslockIcon-b100b9d6.js";
18
18
  import "./baseIconButton-251479f7.js";
19
19
  import "./spinLoader-c4a53718.js";
20
20
  import "./maxValueDisplay-9be01a75.js";
21
21
  import "./fieldLabel.js";
22
+ import "react-dnd";
23
+ import "react-dnd-html5-backend";
24
+ import "./useCapsLock-d7f98c9f.js";
25
+ import "./tooltip.js";
26
+ import "./floatingUi-46f5b896.js";
22
27
  const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
23
28
  "selected-item": "_selected-item_1rpph_16",
24
29
  "validation-error": "_validation-error_1rpph_35",
@@ -29,7 +34,7 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
29
34
  "single-line": "_single-line_1rpph_58",
30
35
  "cross-icon": "_cross-icon_1rpph_64",
31
36
  input: st
32
- }, fe = G.bind(nt), rt = (t) => t.scrollWidth > t.clientWidth, lt = ({
37
+ }, pe = G.bind(nt), rt = (t) => t.scrollWidth > t.clientWidth, lt = ({
33
38
  item: t,
34
39
  onRemoveItem: e,
35
40
  disabled: n = !1,
@@ -40,14 +45,14 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
40
45
  editable: d = !1,
41
46
  getAdditionalCreationCondition: b = () => !0,
42
47
  storedOption: N = !0,
43
- highlightUnStoredItem: p = !1,
48
+ highlightUnStoredItem: f = !1,
44
49
  variant: R = "light",
45
50
  getItemName: C,
46
51
  singleLine: m = !1,
47
52
  className: F,
48
53
  textClassName: P
49
54
  }) => {
50
- const [y, E] = ne(!1), [L, O] = ne(""), [c, i] = ne(!1), a = Ce(null), f = () => {
55
+ const [y, E] = ne(!1), [L, O] = ne(""), [c, i] = ne(!1), a = Ce(null), p = () => {
51
56
  !n && d && !N && (O((C == null ? void 0 : C(t)) || (s == null ? void 0 : s(t)) || ""), E(!0));
52
57
  }, g = (x) => {
53
58
  O(x.target.value);
@@ -71,20 +76,20 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
71
76
  } else
72
77
  i(!1);
73
78
  }, [M, m]);
74
- const A = fe(
79
+ const A = pe(
75
80
  "selected-item-text",
76
81
  {
77
82
  "single-line": m
78
83
  },
79
84
  P
80
- ), H = fe(
85
+ ), H = pe(
81
86
  "selected-item",
82
87
  R,
83
88
  {
84
89
  [`validation-${l}`]: l,
85
90
  disabled: n,
86
91
  "mobile-disabled": o,
87
- "highlight-un-stored-item": p && !N
92
+ "highlight-un-stored-item": f && !N
88
93
  },
89
94
  F
90
95
  );
@@ -96,9 +101,9 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
96
101
  onChange: g,
97
102
  onKeyDown: S,
98
103
  onBlur: _,
99
- className: fe("input")
104
+ className: pe("input")
100
105
  }
101
- ) : /* @__PURE__ */ B("div", { className: H, onClick: f, children: [
106
+ ) : /* @__PURE__ */ B("div", { className: H, onClick: p, children: [
102
107
  /* @__PURE__ */ r(
103
108
  "span",
104
109
  {
@@ -112,7 +117,7 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
112
117
  "button",
113
118
  {
114
119
  type: "button",
115
- className: fe("cross-icon", {
120
+ className: pe("cross-icon", {
116
121
  [`validation-${l}`]: l,
117
122
  "mobile-disabled": o,
118
123
  disabled: n
@@ -133,27 +138,27 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
133
138
  selectedItemClassName: d,
134
139
  selectedItemTextClassName: b,
135
140
  ...N
136
- }) => t.map((p) => l ? l(p) : /* @__PURE__ */ r(
141
+ }) => t.map((f) => l ? l(f) : /* @__PURE__ */ r(
137
142
  lt,
138
143
  {
139
144
  parseValueToString: e,
140
- error: (n == null ? void 0 : n(p)) || "",
141
- item: p,
142
- storedOption: !!o[e(p)],
145
+ error: (n == null ? void 0 : n(f)) || "",
146
+ item: f,
147
+ storedOption: !!o[e(f)],
143
148
  highlightUnStoredItem: s,
144
149
  singleLine: h,
145
150
  className: d,
146
151
  textClassName: b,
147
152
  ...N
148
153
  },
149
- e == null ? void 0 : e(p)
154
+ e == null ? void 0 : e(f)
150
155
  )), it = "_prompt_1xfmd_16", at = {
151
156
  prompt: it
152
- }, dt = G.bind(at), ut = ({ children: t = null }) => /* @__PURE__ */ r("div", { className: dt("prompt"), children: t }), mt = "_item_zw4ux_16", ft = "_divider_zw4ux_24", pt = "_active_zw4ux_49", _t = "_value_zw4ux_55", ht = "_tag_zw4ux_69", wt = "_disabled_zw4ux_80", vt = {
157
+ }, dt = G.bind(at), ut = ({ children: t = null }) => /* @__PURE__ */ r("div", { className: dt("prompt"), children: t }), mt = "_item_zw4ux_16", pt = "_divider_zw4ux_24", ft = "_active_zw4ux_49", _t = "_value_zw4ux_55", ht = "_tag_zw4ux_69", wt = "_disabled_zw4ux_80", vt = {
153
158
  item: mt,
154
- divider: ft,
159
+ divider: pt,
155
160
  "new-item": "_new-item_zw4ux_31",
156
- active: pt,
161
+ active: ft,
157
162
  value: _t,
158
163
  "key-variant": "_key-variant_zw4ux_66",
159
164
  tag: ht,
@@ -213,7 +218,7 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
213
218
  container: bt,
214
219
  "empty-list-message": "_empty-list-message_12uzd_20",
215
220
  "limitation-item": "_limitation-item_12uzd_28"
216
- }, pe = G.bind(yt), gt = (t) => {
221
+ }, fe = G.bind(yt), gt = (t) => {
217
222
  const {
218
223
  options: e,
219
224
  async: n,
@@ -224,7 +229,7 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
224
229
  customNoMatchesMessage: d,
225
230
  optionVariant: b,
226
231
  newItemButtonText: N,
227
- renderOption: p,
232
+ renderOption: f,
228
233
  getUniqKey: R,
229
234
  getItemProps: C,
230
235
  parseValueToString: m,
@@ -232,7 +237,7 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
232
237
  optionsLimit: P = 0,
233
238
  shouldShowEmptyListMessage: y = !0
234
239
  } = t, E = K(() => (e || []).filter((_) => m(_).toUpperCase().indexOf((o.toUpperCase() || "").trim()) > -1), [o, e, m]), L = K(
235
- (_, k, M = !1) => p ? p(_, k, M, C) : /* @__PURE__ */ r(
240
+ (_, k, M = !1) => f ? f(_, k, M, C) : /* @__PURE__ */ r(
236
241
  Fe,
237
242
  {
238
243
  optionVariant: b,
@@ -243,14 +248,14 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
243
248
  },
244
249
  (R == null ? void 0 : R(_)) || m(_)
245
250
  ),
246
- [C, R, N, b, m, p]
251
+ [C, R, N, b, m, f]
247
252
  ), O = K(
248
253
  (_) => _.length ? _.map((k, M) => L(k, M)) : "",
249
254
  [L]
250
255
  ), c = K(
251
256
  (_) => {
252
257
  const k = _.length;
253
- return /* @__PURE__ */ r("div", { className: pe({ container: !k }), children: /* @__PURE__ */ r(
258
+ return /* @__PURE__ */ r("div", { className: fe({ container: !k }), children: /* @__PURE__ */ r(
254
259
  Fe,
255
260
  {
256
261
  optionVariant: b,
@@ -271,17 +276,17 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
271
276
  [l, s, c]
272
277
  ), a = K(() => {
273
278
  const _ = (e == null ? void 0 : e.length) === 0 ? h || "No available options" : d || "No matches found";
274
- return /* @__PURE__ */ r("div", { className: pe("empty-list-message"), children: _ });
275
- }, [h, d, e == null ? void 0 : e.length]), f = n ? e : E(), g = i(e);
279
+ return /* @__PURE__ */ r("div", { className: fe("empty-list-message"), children: _ });
280
+ }, [h, d, e == null ? void 0 : e.length]), p = n ? e : E(), g = i(e);
276
281
  if (g)
277
282
  return g;
278
- const S = Me(f);
279
- return S && !y && l ? null : /* @__PURE__ */ B("div", { className: pe({ container: e.length }), children: [
283
+ const S = Me(p);
284
+ return S && !y && l ? null : /* @__PURE__ */ B("div", { className: fe({ container: e.length }), children: [
280
285
  /* @__PURE__ */ B(Ye, { autoHeight: !0, autoHeightMax: 216, hideTracksWhenNotNeeded: !0, children: [
281
- S ? y && a() : O(f),
282
- (f == null ? void 0 : f.length) > P && P > 0 && F ? /* @__PURE__ */ r("li", { className: pe("limitation-item"), "aria-hidden": "true", children: F }) : null
286
+ S ? y && a() : O(p),
287
+ (p == null ? void 0 : p.length) > P && P > 0 && F ? /* @__PURE__ */ r("li", { className: fe("limitation-item"), "aria-hidden": "true", children: F }) : null
283
288
  ] }),
284
- !l && c(f)
289
+ !l && c(p)
285
290
  ] });
286
291
  }, xt = "_menu_f64z5_16", Nt = "_opened_f64z5_34", Et = "_dark_f64z5_37", It = {
287
292
  menu: xt,
@@ -324,28 +329,28 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
324
329
  handleUnStoredItemCb: o = null,
325
330
  existingItemsMap: s = {},
326
331
  children: l,
327
- customizeNewSelectedValue: h = (p) => p,
332
+ customizeNewSelectedValue: h = (f) => f,
328
333
  getOptionUniqKey: d,
329
334
  getOptionUniqKeyValue: b,
330
335
  ...N
331
336
  }) => {
332
- const [p, R] = ne(s), C = (c, i) => {
337
+ const [f, R] = ne(s), C = (c, i) => {
333
338
  const a = {
334
- ...p
339
+ ...f
335
340
  };
336
- c.forEach((f) => {
337
- if (t.find((g) => At(g, f, d))) {
338
- const g = Le(f, d);
341
+ c.forEach((p) => {
342
+ if (t.find((g) => At(g, p, d))) {
343
+ const g = Le(p, d);
339
344
  a[g] = !0;
340
345
  }
341
346
  }), R(a), i(a);
342
347
  }, m = (c, i) => {
343
348
  const a = Le(c, d);
344
- if (a in p) {
345
- const f = { ...p };
346
- delete f[a], R(f), i(f);
349
+ if (a in f) {
350
+ const p = { ...f };
351
+ delete p[a], R(p), i(p);
347
352
  } else
348
- i(p);
353
+ i(f);
349
354
  }, F = (c, i) => {
350
355
  const S = (Array.isArray(c) ? c : [c]).map((A) => h(A)).flatMap((A) => Array.isArray(A) ? A : [A]).filter(
351
356
  (A, H, x) => x.findIndex(($) => ee($, A)) === H
@@ -357,8 +362,8 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
357
362
  ), ...S];
358
363
  e == null || e(k, i), C(S, (A) => o == null ? void 0 : o(k, A));
359
364
  }, P = (c, i) => {
360
- const a = n.indexOf(c), f = [...n];
361
- f.splice(a, 1, i), e == null || e(f, null);
365
+ const a = n.indexOf(c), p = [...n];
366
+ p.splice(a, 1, i), e == null || e(p, null);
362
367
  }, y = (c, i) => {
363
368
  const a = n.filter((g) => !ee(g, c));
364
369
  e == null || e(a, i), m(c, (g) => o == null ? void 0 : o(a, g));
@@ -369,7 +374,7 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
369
374
  editItem: P,
370
375
  handleChange: e,
371
376
  getOptionUniqKeyValue: b,
372
- storedItemsMap: p,
377
+ storedItemsMap: f,
373
378
  batchAddItems: (a) => {
374
379
  F(a, c);
375
380
  },
@@ -413,7 +418,7 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
413
418
  "error-text": "_error-text_1so4a_112",
414
419
  "dropdown-button": "_dropdown-button_1so4a_121",
415
420
  "icon-reversed": "_icon-reversed_1so4a_129"
416
- }, X = G.bind(Pt), uo = (t) => {
421
+ }, X = G.bind(Pt), ho = (t) => {
417
422
  const {
418
423
  options: e = [],
419
424
  loading: n = !1,
@@ -425,7 +430,7 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
425
430
  touched: d = !1,
426
431
  creatable: b = !1,
427
432
  editable: N = !1,
428
- onChange: p = () => {
433
+ onChange: f = () => {
429
434
  },
430
435
  onFocus: R = () => {
431
436
  },
@@ -441,7 +446,7 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
441
446
  customClass: c = "",
442
447
  createWithoutConfirmation: i = !1,
443
448
  getItemValidationErrorType: a = null,
444
- clearItemsError: f = () => {
449
+ clearItemsError: p = () => {
445
450
  },
446
451
  getAdditionalCreationCondition: g = () => !0,
447
452
  highlightUnStoredItem: S = !1,
@@ -464,10 +469,10 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
464
469
  whileElementsMounted: Oe
465
470
  }), J = s.length === 0 && !m ? l : "", te = Ce(null);
466
471
  we(() => {
467
- f();
468
- }, [f, s]);
472
+ p();
473
+ }, [p, s]);
469
474
  const ge = (u, I) => {
470
- p(u, I);
475
+ f(u, I);
471
476
  }, xe = (u, I, z) => ({ item: v, index: T, ...Z }) => u({
472
477
  item: v,
473
478
  index: T,
@@ -711,7 +716,7 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
711
716
  width: `${t.reference.width}px`
712
717
  });
713
718
  }
714
- }), mo = (t) => {
719
+ }), wo = (t) => {
715
720
  const {
716
721
  options: e = [],
717
722
  value: n,
@@ -725,7 +730,7 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
725
730
  disabled: d = !1,
726
731
  inputProps: b = {},
727
732
  parseValueToString: N = (w) => w === null ? "" : String(w),
728
- minLength: p = 1,
733
+ minLength: f = 1,
729
734
  skipOptionCreation: R = !1,
730
735
  maxLength: C = null,
731
736
  optionVariant: m = "",
@@ -739,7 +744,7 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
739
744
  icon: c,
740
745
  isDropdownMode: i = !1,
741
746
  isOptionUnique: a,
742
- refFunction: f,
747
+ refFunction: p,
743
748
  stateReducer: g,
744
749
  onStateChange: S,
745
750
  useFixedPositioning: _,
@@ -820,7 +825,7 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
820
825
  style: te,
821
826
  ref: J.setFloating,
822
827
  portalMenuAttribute: x ? Ue : null,
823
- minLength: p,
828
+ minLength: f,
824
829
  inputValue: (T || "").trim(),
825
830
  getItemProps: ge(W, Z, n),
826
831
  parseValueToString: N,
@@ -843,7 +848,7 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
843
848
  onFocus: () => {
844
849
  i && !v && (I(), E == null || E(!0)), l();
845
850
  },
846
- ref: f,
851
+ ref: p,
847
852
  onKeyDown: (j) => {
848
853
  j.key === $e && j.preventDefault(), T && v && xe(j, Q);
849
854
  },
@@ -872,7 +877,7 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
872
877
  children: /* @__PURE__ */ r(Te, {})
873
878
  }
874
879
  ) : c,
875
- minLength: i ? 0 : p
880
+ minLength: i ? 0 : f
876
881
  })
877
882
  }
878
883
  ),
@@ -889,6 +894,6 @@ export {
889
894
  Fe as AutocompleteOption,
890
895
  gt as AutocompleteOptions,
891
896
  ut as AutocompletePrompt,
892
- uo as MultipleAutocomplete,
893
- mo as SingleAutocomplete
897
+ ho as MultipleAutocomplete,
898
+ wo as SingleAutocomplete
894
899
  };
@@ -1,6 +1,7 @@
1
1
  import * as C from "react";
2
- const t = (e) => /* @__PURE__ */ C.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M14.7083 10.2978C14.647 10.3327 14.5794 10.3552 14.5094 10.364C14.4394 10.3728 14.3684 10.3677 14.3004 10.3491C14.2323 10.3304 14.1687 10.2984 14.113 10.2551C14.0573 10.2118 14.0108 10.1579 13.9759 10.0966L12.7018 7.87013C11.961 8.371 11.1438 8.74832 10.2822 8.98738L10.6758 11.3493C10.6874 11.4188 10.6852 11.49 10.6693 11.5587C10.6534 11.6273 10.6242 11.6922 10.5832 11.7496C10.5422 11.8069 10.4903 11.8557 10.4305 11.893C10.3707 11.9303 10.3041 11.9554 10.2345 11.9669C10.2059 11.9716 10.177 11.9741 10.148 11.9743C10.0211 11.9741 9.89838 11.9289 9.80163 11.8468C9.70487 11.7647 9.64037 11.6509 9.61959 11.5257L9.23264 9.20667C8.41663 9.32023 7.58882 9.32023 6.77281 9.20667L6.38586 11.5257C6.36504 11.6511 6.30035 11.7651 6.20332 11.8472C6.10629 11.9294 5.98322 11.9744 5.85607 11.9743C5.82642 11.9742 5.79682 11.9717 5.76755 11.9669C5.69801 11.9554 5.63142 11.9303 5.5716 11.893C5.51178 11.8557 5.4599 11.8069 5.41892 11.7496C5.37794 11.6922 5.34866 11.6273 5.33277 11.5587C5.31687 11.49 5.31467 11.4188 5.32629 11.3493L5.72195 8.98738C4.86063 8.74757 4.04393 8.36957 3.3037 7.86812L2.03355 10.0966C1.9624 10.2206 1.84493 10.3112 1.70696 10.3485C1.569 10.3859 1.42184 10.3669 1.29788 10.2958C1.17391 10.2246 1.08328 10.1071 1.04593 9.96918C1.00857 9.83121 1.02756 9.68406 1.0987 9.56009L2.43994 7.21292C1.96883 6.80591 1.53562 6.35699 1.14565 5.87168C1.09701 5.81738 1.05995 5.75374 1.03673 5.68464C1.01351 5.61554 1.00462 5.54244 1.01059 5.46978C1.01657 5.39713 1.03729 5.32646 1.07148 5.26208C1.10568 5.19771 1.15263 5.14097 1.20948 5.09534C1.26633 5.04972 1.33189 5.01616 1.40214 4.99671C1.4724 4.97726 1.54588 4.97233 1.6181 4.98222C1.69032 4.99211 1.75977 5.01662 1.8222 5.05425C1.88464 5.09188 1.93875 5.14183 1.98124 5.20107C3.09447 6.57852 5.04194 8.21885 8.00206 8.21885C10.9622 8.21885 12.9096 6.57651 14.0229 5.20107C14.0649 5.14062 14.1189 5.08946 14.1815 5.05077C14.2441 5.01209 14.314 4.9867 14.3869 4.9762C14.4597 4.96569 14.534 4.97029 14.605 4.9897C14.676 5.00912 14.7422 5.04294 14.7996 5.08905C14.857 5.13517 14.9042 5.1926 14.9384 5.25777C14.9727 5.32294 14.9931 5.39445 14.9985 5.46786C15.0039 5.54127 14.9941 5.615 14.9698 5.68448C14.9455 5.75395 14.9071 5.81767 14.8571 5.87168C14.4672 6.35699 14.0339 6.80591 13.5628 7.21292L14.9041 9.56009C14.9401 9.62128 14.9636 9.689 14.9732 9.75933C14.9829 9.82967 14.9784 9.90122 14.9602 9.96983C14.942 10.0384 14.9104 10.1028 14.8671 10.1591C14.8239 10.2154 14.7699 10.2625 14.7083 10.2978Z", fill: "#A2AAB5" })), l = (e) => /* @__PURE__ */ C.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M13.9655 7.838C13.948 7.7985 13.5245 6.859 12.583 5.9175C11.3285 4.663 9.744 4 8 4C6.256 4 4.6715 4.663 3.417 5.9175C2.4755 6.859 2.05 7.8 2.0345 7.838C2.01175 7.88916 2 7.94452 2 8.0005C2 8.05648 2.01175 8.11184 2.0345 8.163C2.052 8.2025 2.4755 9.1415 3.417 10.083C4.6715 11.337 6.256 12 8 12C9.744 12 11.3285 11.337 12.583 10.083C13.5245 9.1415 13.948 8.2025 13.9655 8.163C13.9882 8.11184 14 8.05648 14 8.0005C14 7.94452 13.9882 7.88916 13.9655 7.838ZM8 11.2C6.461 11.2 5.1165 10.6405 4.0035 9.5375C3.54682 9.08335 3.15829 8.56548 2.85 8C3.15821 7.43447 3.54674 6.91659 4.0035 6.4625C5.1165 5.3595 6.461 4.8 8 4.8C9.539 4.8 10.8835 5.3595 11.9965 6.4625C12.4541 6.91648 12.8434 7.43436 13.1525 8C12.792 8.673 11.2215 11.2 8 11.2ZM8 5.6C7.52532 5.6 7.06131 5.74076 6.66663 6.00447C6.27195 6.26819 5.96434 6.64302 5.78269 7.08156C5.60104 7.5201 5.55351 8.00266 5.64611 8.46822C5.73872 8.93377 5.9673 9.36141 6.30294 9.69706C6.63859 10.0327 7.06623 10.2613 7.53178 10.3539C7.99734 10.4465 8.4799 10.399 8.91844 10.2173C9.35698 10.0357 9.73181 9.72805 9.99553 9.33337C10.2592 8.93869 10.4 8.47468 10.4 8C10.3993 7.36368 10.1463 6.75362 9.69633 6.30367C9.24638 5.85373 8.63632 5.60066 8 5.6ZM8 9.6C7.68355 9.6 7.37421 9.50616 7.11109 9.33035C6.84797 9.15454 6.64289 8.90465 6.52179 8.61229C6.40069 8.31993 6.36901 7.99823 6.43074 7.68786C6.49248 7.37749 6.64486 7.09239 6.86863 6.86863C7.09239 6.64487 7.37749 6.49248 7.68786 6.43074C7.99823 6.36901 8.31993 6.40069 8.61229 6.52179C8.90466 6.64289 9.15454 6.84797 9.33035 7.11109C9.50616 7.37421 9.6 7.68355 9.6 8C9.6 8.42435 9.43143 8.83131 9.13137 9.13137C8.83131 9.43143 8.42435 9.6 8 9.6Z", fill: "#A2AAB5" }));
2
+ const t = (e) => /* @__PURE__ */ C.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M14.7083 10.2978C14.647 10.3327 14.5794 10.3552 14.5094 10.364C14.4394 10.3728 14.3684 10.3677 14.3004 10.3491C14.2323 10.3304 14.1687 10.2984 14.113 10.2551C14.0573 10.2118 14.0108 10.1579 13.9759 10.0966L12.7018 7.87013C11.961 8.371 11.1438 8.74832 10.2822 8.98738L10.6758 11.3493C10.6874 11.4188 10.6852 11.49 10.6693 11.5587C10.6534 11.6273 10.6242 11.6922 10.5832 11.7496C10.5422 11.8069 10.4903 11.8557 10.4305 11.893C10.3707 11.9303 10.3041 11.9554 10.2345 11.9669C10.2059 11.9716 10.177 11.9741 10.148 11.9743C10.0211 11.9741 9.89838 11.9289 9.80163 11.8468C9.70487 11.7647 9.64037 11.6509 9.61959 11.5257L9.23264 9.20667C8.41663 9.32023 7.58882 9.32023 6.77281 9.20667L6.38586 11.5257C6.36504 11.6511 6.30035 11.7651 6.20332 11.8472C6.10629 11.9294 5.98322 11.9744 5.85607 11.9743C5.82642 11.9742 5.79682 11.9717 5.76755 11.9669C5.69801 11.9554 5.63142 11.9303 5.5716 11.893C5.51178 11.8557 5.4599 11.8069 5.41892 11.7496C5.37794 11.6922 5.34866 11.6273 5.33277 11.5587C5.31687 11.49 5.31467 11.4188 5.32629 11.3493L5.72195 8.98738C4.86063 8.74757 4.04393 8.36957 3.3037 7.86812L2.03355 10.0966C1.9624 10.2206 1.84493 10.3112 1.70696 10.3485C1.569 10.3859 1.42184 10.3669 1.29788 10.2958C1.17391 10.2246 1.08328 10.1071 1.04593 9.96918C1.00857 9.83121 1.02756 9.68406 1.0987 9.56009L2.43994 7.21292C1.96883 6.80591 1.53562 6.35699 1.14565 5.87168C1.09701 5.81738 1.05995 5.75374 1.03673 5.68464C1.01351 5.61554 1.00462 5.54244 1.01059 5.46978C1.01657 5.39713 1.03729 5.32646 1.07148 5.26208C1.10568 5.19771 1.15263 5.14097 1.20948 5.09534C1.26633 5.04972 1.33189 5.01616 1.40214 4.99671C1.4724 4.97726 1.54588 4.97233 1.6181 4.98222C1.69032 4.99211 1.75977 5.01662 1.8222 5.05425C1.88464 5.09188 1.93875 5.14183 1.98124 5.20107C3.09447 6.57852 5.04194 8.21885 8.00206 8.21885C10.9622 8.21885 12.9096 6.57651 14.0229 5.20107C14.0649 5.14062 14.1189 5.08946 14.1815 5.05077C14.2441 5.01209 14.314 4.9867 14.3869 4.9762C14.4597 4.96569 14.534 4.97029 14.605 4.9897C14.676 5.00912 14.7422 5.04294 14.7996 5.08905C14.857 5.13517 14.9042 5.1926 14.9384 5.25777C14.9727 5.32294 14.9931 5.39445 14.9985 5.46786C15.0039 5.54127 14.9941 5.615 14.9698 5.68448C14.9455 5.75395 14.9071 5.81767 14.8571 5.87168C14.4672 6.35699 14.0339 6.80591 13.5628 7.21292L14.9041 9.56009C14.9401 9.62128 14.9636 9.689 14.9732 9.75933C14.9829 9.82967 14.9784 9.90122 14.9602 9.96983C14.942 10.0384 14.9104 10.1028 14.8671 10.1591C14.8239 10.2154 14.7699 10.2625 14.7083 10.2978Z", fill: "#A2AAB5" })), l = (e) => /* @__PURE__ */ C.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M13.9655 7.838C13.948 7.7985 13.5245 6.859 12.583 5.9175C11.3285 4.663 9.744 4 8 4C6.256 4 4.6715 4.663 3.417 5.9175C2.4755 6.859 2.05 7.8 2.0345 7.838C2.01175 7.88916 2 7.94452 2 8.0005C2 8.05648 2.01175 8.11184 2.0345 8.163C2.052 8.2025 2.4755 9.1415 3.417 10.083C4.6715 11.337 6.256 12 8 12C9.744 12 11.3285 11.337 12.583 10.083C13.5245 9.1415 13.948 8.2025 13.9655 8.163C13.9882 8.11184 14 8.05648 14 8.0005C14 7.94452 13.9882 7.88916 13.9655 7.838ZM8 11.2C6.461 11.2 5.1165 10.6405 4.0035 9.5375C3.54682 9.08335 3.15829 8.56548 2.85 8C3.15821 7.43447 3.54674 6.91659 4.0035 6.4625C5.1165 5.3595 6.461 4.8 8 4.8C9.539 4.8 10.8835 5.3595 11.9965 6.4625C12.4541 6.91648 12.8434 7.43436 13.1525 8C12.792 8.673 11.2215 11.2 8 11.2ZM8 5.6C7.52532 5.6 7.06131 5.74076 6.66663 6.00447C6.27195 6.26819 5.96434 6.64302 5.78269 7.08156C5.60104 7.5201 5.55351 8.00266 5.64611 8.46822C5.73872 8.93377 5.9673 9.36141 6.30294 9.69706C6.63859 10.0327 7.06623 10.2613 7.53178 10.3539C7.99734 10.4465 8.4799 10.399 8.91844 10.2173C9.35698 10.0357 9.73181 9.72805 9.99553 9.33337C10.2592 8.93869 10.4 8.47468 10.4 8C10.3993 7.36368 10.1463 6.75362 9.69633 6.30367C9.24638 5.85373 8.63632 5.60066 8 5.6ZM8 9.6C7.68355 9.6 7.37421 9.50616 7.11109 9.33035C6.84797 9.15454 6.64289 8.90465 6.52179 8.61229C6.40069 8.31993 6.36901 7.99823 6.43074 7.68786C6.49248 7.37749 6.64486 7.09239 6.86863 6.86863C7.09239 6.64487 7.37749 6.49248 7.68786 6.43074C7.99823 6.36901 8.31993 6.40069 8.61229 6.52179C8.90466 6.64289 9.15454 6.84797 9.33035 7.11109C9.50616 7.37421 9.6 7.68355 9.6 8C9.6 8.42435 9.43143 8.83131 9.13137 9.13137C8.83131 9.43143 8.42435 9.6 8 9.6Z", fill: "#A2AAB5" })), n = (e) => /* @__PURE__ */ C.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M14.8421 7.61926L8.38094 1.15792C8.33093 1.10786 8.27155 1.06814 8.20619 1.04104C8.14082 1.01395 8.07076 1 8 1C7.92924 1 7.85918 1.01395 7.79381 1.04104C7.72845 1.06814 7.66907 1.10786 7.61906 1.15792L1.15791 7.61926C1.08253 7.69457 1.03118 7.79055 1.01037 7.89505C0.989559 7.99955 1.00022 8.10788 1.04101 8.20632C1.0818 8.30476 1.15087 8.38889 1.2395 8.44805C1.32812 8.50721 1.4323 8.53874 1.53885 8.53866H4.231V12.3078C4.231 12.4506 4.28773 12.5875 4.3887 12.6885C4.48968 12.7895 4.62663 12.8462 4.76943 12.8462H11.2306C11.3734 12.8462 11.5103 12.7895 11.6113 12.6885C11.7123 12.5875 11.769 12.4506 11.769 12.3078V8.53866H14.4611C14.5677 8.53874 14.6719 8.50721 14.7605 8.44805C14.8491 8.38889 14.9182 8.30476 14.959 8.20632C14.9998 8.10788 15.0104 7.99955 14.9896 7.89505C14.9688 7.79055 14.9175 7.69457 14.8421 7.61926ZM11.2306 7.46177C11.0878 7.46177 10.9508 7.5185 10.8498 7.61947C10.7489 7.72045 10.6921 7.85741 10.6921 8.00021V11.7693H5.30786V8.00021C5.30786 7.85741 5.25113 7.72045 5.15015 7.61947C5.04918 7.5185 4.91223 7.46177 4.76943 7.46177H2.83849L8 2.3001L13.1615 7.46177H11.2306ZM11.769 14.4616C11.769 14.6044 11.7123 14.7413 11.6113 14.8423C11.5103 14.9433 11.3734 15 11.2306 15H4.76943C4.62663 15 4.48968 14.9433 4.3887 14.8423C4.28773 14.7413 4.231 14.6044 4.231 14.4616C4.231 14.3188 4.28773 14.1818 4.3887 14.0808C4.48968 13.9798 4.62663 13.9231 4.76943 13.9231H11.2306C11.3734 13.9231 11.5103 13.9798 11.6113 14.0808C11.7123 14.1818 11.769 14.3188 11.769 14.4616Z", fill: "#FFC208" }));
3
3
  export {
4
4
  t as S,
5
- l as a
5
+ l as a,
6
+ n as b
6
7
  };
@@ -4,3 +4,4 @@ export { useTreeSortable } from './useTreeSortable';
4
4
  export { useTreeDropValidation } from './useTreeDropValidation';
5
5
  export { useWindowResize } from './useWindowResize';
6
6
  export { useEllipsisTitle } from './useEllipsisTitle';
7
+ export { useCapsLock } from './useCapsLock';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Tracks the OS-level Caps Lock state by listening to `keydown` on `window`.
3
+ * Because Caps Lock is a global OS toggle, the listener is attached at window
4
+ * level so every consumer updates simultaneously — even fields that are not
5
+ * currently focused.
6
+ */
7
+ export declare const useCapsLock: () => {
8
+ capsLockOn: boolean;
9
+ };
@@ -1,9 +1,10 @@
1
1
  import { u as E } from "../useOnClickOutside-8f7d68a1.js";
2
- import { u as A, a as R } from "../useTreeSortable-bc631689.js";
2
+ import { u as A, a as L } from "../useTreeSortable-bc631689.js";
3
3
  import { useCallback as D } from "react";
4
4
  import { i as x } from "../isEmpty-ccacb5ff.js";
5
- import { u as W } from "../useWindowResize-a7e1ac92.js";
6
- import { u as q } from "../useEllipsisTitle-462fa254.js";
5
+ import { u as V } from "../useWindowResize-a7e1ac92.js";
6
+ import { u as j } from "../useEllipsisTitle-462fa254.js";
7
+ import { u as v } from "../useCapsLock-d7f98c9f.js";
7
8
  import "react-dnd";
8
9
  import "react-dnd-html5-backend";
9
10
  import "../common.js";
@@ -22,12 +23,12 @@ import "../common.js";
22
23
  * See the License for the specific language governing permissions and
23
24
  * limitations under the License.
24
25
  */
25
- const o = (r) => String(r), T = (r, e, f, t = "children") => {
26
- const s = o(r), a = o(e), i = (c, u) => {
27
- for (const n of u) {
28
- if (o(n.id) === c)
29
- return n;
30
- const m = n[t] || [];
26
+ const e = (r) => String(r), T = (r, n, f, o = "children") => {
27
+ const s = e(r), a = e(n), i = (c, u) => {
28
+ for (const t of u) {
29
+ if (e(t.id) === c)
30
+ return t;
31
+ const m = t[o] || [];
31
32
  if (!x(m)) {
32
33
  const p = i(c, m);
33
34
  if (p)
@@ -40,30 +41,31 @@ const o = (r) => String(r), T = (r, e, f, t = "children") => {
40
41
  return !1;
41
42
  const d = (c) => {
42
43
  for (const u of c) {
43
- if (o(u.id) === a)
44
+ if (e(u.id) === a)
44
45
  return !0;
45
- const n = u[t] || [];
46
- if (!x(n) && d(n))
46
+ const t = u[o] || [];
47
+ if (!x(t) && d(t))
47
48
  return !0;
48
49
  }
49
50
  return !1;
50
- }, z = l[t] || [];
51
+ }, z = l[o] || [];
51
52
  return d(z);
52
- }, S = ({
53
+ }, C = ({
53
54
  items: r,
54
- childrenKey: e = "children"
55
+ childrenKey: n = "children"
55
56
  }) => ({ canDropOn: D(
56
- (t, s) => {
57
- const a = o(t.id), i = o(s);
58
- return a === i ? !1 : !T(t.id, s, r, e);
57
+ (o, s) => {
58
+ const a = e(o.id), i = e(s);
59
+ return a === i ? !1 : !T(o.id, s, r, n);
59
60
  },
60
- [r, e]
61
+ [r, n]
61
62
  ) });
62
63
  export {
63
- q as useEllipsisTitle,
64
+ v as useCapsLock,
65
+ j as useEllipsisTitle,
64
66
  E as useOnClickOutside,
65
67
  A as useSortable,
66
- S as useTreeDropValidation,
67
- R as useTreeSortable,
68
- W as useWindowResize
68
+ C as useTreeDropValidation,
69
+ L as useTreeSortable,
70
+ V as useWindowResize
69
71
  };
@@ -1,4 +1,4 @@
1
- import { ChangeEventHandler, ReactElement, ReactNode, InputHTMLAttributes } from 'react';
1
+ import { ChangeEventHandler, InputHTMLAttributes, ReactElement, ReactNode } from 'react';
2
2
 
3
3
  type InputType = 'password' | 'text' | 'email';
4
4
  export interface FieldTextProps extends InputHTMLAttributes<HTMLInputElement> {
@@ -27,6 +27,7 @@ export interface FieldTextProps extends InputHTMLAttributes<HTMLInputElement> {
27
27
  maxLengthDisplay?: number;
28
28
  collapsible?: boolean;
29
29
  loading?: boolean;
30
+ capsLockMessage?: string;
30
31
  }
31
32
  export declare const FieldText: (props: FieldTextProps & import('react').RefAttributes<HTMLInputElement>) => ReactElement<any, string | import('react').JSXElementConstructor<any>> | null;
32
33
  export {};
@@ -83,3 +83,4 @@ export { default as CoveragePartialIcon } from './svg/coveragePartially.svg';
83
83
  export { default as DownloadIcon } from './svg/download.svg';
84
84
  export { default as ArrowRightIcon } from './svg/arrowRight.svg';
85
85
  export { default as ArrowLeftIcon } from './svg/arrowLeft.svg';
86
+ export { default as CapsLockIcon } from './svg/capslockIcon.svg';
@@ -14,6 +14,7 @@ export { Dropdown } from './dropdown';
14
14
  export { FieldLabel } from './fieldLabel';
15
15
  export { FieldNumber } from './fieldNumber';
16
16
  export { FieldText } from './fieldText';
17
+ export type { FieldTextProps } from './fieldText';
17
18
  export { FieldTextFlex } from './fieldTextFlex';
18
19
  export { FileDropArea } from './fileDropArea';
19
20
  export { FiltersButton } from './filtersButton';
@@ -1,6 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { RadioProps } from './index';
3
- import { RadioOption } from './radio';
2
+ import { RadioProps, RadioOption } from './radio';
4
3
 
5
4
  export interface RadioGroupProps extends Omit<RadioProps, 'option'> {
6
5
  options: RadioOption[];
@@ -2,7 +2,7 @@ import { jsxs as x, Fragment as z, jsx as a } from "react/jsx-runtime";
2
2
  import { useMemo as v, forwardRef as J, useRef as K } from "react";
3
3
  import I from "react-datepicker/dist/es/index.js";
4
4
  import { c as Y } from "./bind-06a7ff84.js";
5
- import { F as Q } from "./fieldText-4a8e5496.js";
5
+ import { F as Q } from "./fieldText-a4446a77.js";
6
6
  import { D as L } from "./dropdown-d2a05471.js";
7
7
  import { S as B } from "./calendarArrow-44c7e60e.js";
8
8
  import { registerLocale as X } from "react-datepicker";
@@ -1,18 +1,24 @@
1
- import { D as t } from "./datePicker-09dd025d.js";
2
- import { r as H } from "./datePicker-09dd025d.js";
1
+ import { D as t } from "./datePicker-f4adf107.js";
2
+ import { r as I } from "./datePicker-f4adf107.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "react-datepicker/dist/es/index.js";
6
6
  import "./bind-06a7ff84.js";
7
- import "./fieldText-4a8e5496.js";
7
+ import "./fieldText-a4446a77.js";
8
8
  import "./clear-53660571.js";
9
- import "./openedEye-8fa4c67d.js";
9
+ import "./capslockIcon-b100b9d6.js";
10
10
  import "./baseIconButton-251479f7.js";
11
11
  import "./spinLoader-c4a53718.js";
12
12
  import "./maxValueDisplay-9be01a75.js";
13
13
  import "./fieldLabel.js";
14
- import "./dropdown-d2a05471.js";
14
+ import "react-dnd";
15
+ import "react-dnd-html5-backend";
16
+ import "./useCapsLock-d7f98c9f.js";
17
+ import "./tooltip.js";
15
18
  import "react-dom";
19
+ import "@floating-ui/react";
20
+ import "./floatingUi-46f5b896.js";
21
+ import "./dropdown-d2a05471.js";
16
22
  import "@floating-ui/react-dom";
17
23
  import "downshift";
18
24
  import "rc-scrollbars";
@@ -22,17 +28,12 @@ import "./adaptiveTagList.js";
22
28
  import "./button-7ab874f3.js";
23
29
  import "./close-4d480ef7.js";
24
30
  import "./isEmpty-ccacb5ff.js";
25
- import "react-dnd";
26
- import "react-dnd-html5-backend";
27
31
  import "./useEllipsisTitle-462fa254.js";
28
32
  import "./checkbox-76aa8f97.js";
29
- import "./tooltip.js";
30
- import "@floating-ui/react";
31
- import "./floatingUi-46f5b896.js";
32
33
  import "./calendarArrow-44c7e60e.js";
33
34
  import "react-datepicker";
34
35
  export {
35
36
  t as DatePicker,
36
37
  t as default,
37
- H as registerDatePickerLocale
38
+ I as registerDatePickerLocale
38
39
  };