@reportportal/ui-kit 0.0.1-alpha.68 → 0.0.1-alpha.69

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.
Files changed (41) hide show
  1. package/dist/button-33bc880f.js +64 -0
  2. package/dist/button.js +1 -1
  3. package/dist/{checkbox-9a6c7ce1.js → checkbox-aa91985d.js} +15 -15
  4. package/dist/checkbox.js +1 -1
  5. package/dist/{datePicker-06e90999.js → datePicker-382ef010.js} +57 -57
  6. package/dist/datePicker.js +6 -6
  7. package/dist/dropdown-13d7d50e.js +278 -0
  8. package/dist/dropdown.js +2 -2
  9. package/dist/fieldLabel.js +8 -8
  10. package/dist/{fieldNumber-01efb16e.js → fieldNumber-2542b311.js} +43 -43
  11. package/dist/fieldNumber.js +1 -1
  12. package/dist/fieldText-e605a521.js +158 -0
  13. package/dist/fieldText.js +2 -2
  14. package/dist/fieldTextFlex-9e616f66.js +78 -0
  15. package/dist/fieldTextFlex.js +1 -1
  16. package/dist/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
  17. package/dist/fonts/OpenSans/OpenSans-Medium.ttf +0 -0
  18. package/dist/index.js +12 -12
  19. package/dist/modal.js +81 -81
  20. package/dist/{pagination-91729c7d.js → pagination-ecbc9940.js} +53 -53
  21. package/dist/pagination.js +3 -3
  22. package/dist/popover.js +15 -15
  23. package/dist/{radio-bccc84f2.js → radio-62546efa.js} +27 -27
  24. package/dist/radio.js +1 -1
  25. package/dist/style.css +1 -1
  26. package/dist/systemAlert.js +28 -28
  27. package/dist/systemMessage-924fdaa6.js +30 -0
  28. package/dist/systemMessage.js +1 -1
  29. package/dist/table-20aa2cdf.js +142 -0
  30. package/dist/table.js +2 -2
  31. package/dist/toggle-304107fa.js +59 -0
  32. package/dist/toggle.js +1 -1
  33. package/dist/tooltip.js +15 -15
  34. package/package.json +1 -1
  35. package/dist/button-770f7b20.js +0 -64
  36. package/dist/dropdown-29285346.js +0 -278
  37. package/dist/fieldText-94e2c8eb.js +0 -158
  38. package/dist/fieldTextFlex-c55452d5.js +0 -78
  39. package/dist/systemMessage-1ced6079.js +0 -30
  40. package/dist/table-02e40724.js +0 -142
  41. package/dist/toggle-1a3aacb5.js +0 -59
package/dist/modal.js CHANGED
@@ -1,136 +1,136 @@
1
- import { jsx as e, jsxs as c, Fragment as G } from "react/jsx-runtime";
2
- import { useState as u, useEffect as g, useRef as K } from "react";
3
- import { Scrollbars as P } from "rc-scrollbars";
4
- import { AnimatePresence as B, motion as q } from "framer-motion";
5
- import { c as f } from "./bind-06a7ff84.js";
1
+ import { jsx as e, jsxs as d, Fragment as F } from "react/jsx-runtime";
2
+ import { useState as u, useEffect as y, useRef as G } from "react";
3
+ import { Scrollbars as K } from "rc-scrollbars";
4
+ import { AnimatePresence as P, motion as B } from "framer-motion";
5
+ import { c as w } from "./bind-06a7ff84.js";
6
6
  import { u as Y } from "./useOnClickOutside-c332f7d3.js";
7
7
  import { K as U } from "./keyCodes-f63c0e11.js";
8
- import { B as N } from "./button-770f7b20.js";
8
+ import { B as O } from "./button-33bc880f.js";
9
9
  import { B as X } from "./baseIconButton-251479f7.js";
10
10
  import { S as J } from "./close-4b33d7c1.js";
11
11
  const Q = () => {
12
12
  const [o, n] = u({ width: 0, height: 0 });
13
- return g(() => {
14
- const l = () => {
13
+ return y(() => {
14
+ const a = () => {
15
15
  n({
16
16
  width: window.innerWidth,
17
17
  height: window.innerHeight
18
18
  });
19
19
  };
20
- return window.addEventListener("resize", l), l(), () => window.removeEventListener("resize", l);
20
+ return window.addEventListener("resize", a), a(), () => window.removeEventListener("resize", a);
21
21
  }, []), o;
22
- }, V = "_scrollable_qziry_12", Z = {
23
- "modal-content": "_modal-content_qziry_1",
22
+ }, V = "_scrollable_zh8d2_12", Z = {
23
+ "modal-content": "_modal-content_zh8d2_1",
24
24
  scrollable: V
25
- }, ee = f.bind(Z), O = ({ scrollable: o = !1, children: n }) => /* @__PURE__ */ e("div", { className: ee("modal-content", { scrollable: o }), children: n }), te = {
25
+ }, ee = w.bind(Z), z = ({ scrollable: o = !1, children: n }) => /* @__PURE__ */ e("div", { className: ee("modal-content", { scrollable: o }), children: n }), te = {
26
26
  "buttons-block": "_buttons-block_1dgm4_1",
27
27
  "button-container": "_button-container_1dgm4_5",
28
28
  "modal-footer": "_modal-footer_1dgm4_14",
29
29
  "with-extra-node": "_with-extra-node_1dgm4_21",
30
30
  "size-small": "_size-small_1dgm4_25"
31
- }, m = f.bind(te), oe = ({
31
+ }, m = w.bind(te), oe = ({
32
32
  footerNode: o,
33
33
  closeHandler: n,
34
- okButton: l,
34
+ okButton: a,
35
35
  cancelButton: r,
36
- size: s
37
- }) => /* @__PURE__ */ c("div", { className: m("modal-footer", { "with-extra-node": o, [`size-${s}`]: s }), children: [
36
+ size: l
37
+ }) => /* @__PURE__ */ d("div", { className: m("modal-footer", { "with-extra-node": o, [`size-${l}`]: l }), children: [
38
38
  o && o,
39
- /* @__PURE__ */ c("div", { className: m("buttons-block"), children: [
39
+ /* @__PURE__ */ d("div", { className: m("buttons-block"), children: [
40
40
  r && /* @__PURE__ */ e("div", { className: m("button-container"), children: /* @__PURE__ */ e(
41
- N,
41
+ O,
42
42
  {
43
43
  variant: "ghost",
44
- adjustWidthOn: s === "small" ? "parent" : "min-width",
44
+ adjustWidthOn: l === "small" ? "parent" : "min-width",
45
45
  onClick: n,
46
46
  ...r
47
47
  }
48
48
  ) }),
49
- l && /* @__PURE__ */ e("div", { className: m("button-container"), children: /* @__PURE__ */ e(N, { adjustWidthOn: s === "small" ? "parent" : "min-width", ...l }) })
49
+ a && /* @__PURE__ */ e("div", { className: m("button-container"), children: /* @__PURE__ */ e(O, { adjustWidthOn: l === "small" ? "parent" : "min-width", ...a }) })
50
50
  ] })
51
51
  ] }), ne = {
52
- "modal-header": "_modal-header_68lru_1",
53
- "width-description": "_width-description_68lru_10",
54
- "modal-header-content": "_modal-header-content_68lru_14",
55
- "modal-title": "_modal-title_68lru_20",
56
- "close-modal-icon": "_close-modal-icon_68lru_29"
57
- }, _ = f.bind(ne), le = ({ title: o, onClose: n, withDescription: l = !1 }) => /* @__PURE__ */ c("div", { className: _("modal-header", { "width-description": l }), children: [
52
+ "modal-header": "_modal-header_w4aaf_1",
53
+ "width-description": "_width-description_w4aaf_10",
54
+ "modal-header-content": "_modal-header-content_w4aaf_14",
55
+ "modal-title": "_modal-title_w4aaf_20",
56
+ "close-modal-icon": "_close-modal-icon_w4aaf_29"
57
+ }, _ = w.bind(ne), ae = ({ title: o, onClose: n, withDescription: a = !1 }) => /* @__PURE__ */ d("div", { className: _("modal-header", { "width-description": a }), children: [
58
58
  /* @__PURE__ */ e("div", { className: _("modal-header-content"), children: o && /* @__PURE__ */ e("div", { className: _("modal-title"), children: o }) }),
59
59
  /* @__PURE__ */ e(X, { className: _("close-modal-icon"), onClick: n, children: /* @__PURE__ */ e(J, {}) })
60
- ] }), se = "_modal_f3ckb_1", ae = "_description_f3ckb_43", ie = "_scrollable_f3ckb_53", ce = {
61
- modal: se,
62
- "overlay-default": "_overlay-default_f3ckb_12",
63
- "overlay-light-cyan": "_overlay-light-cyan_f3ckb_16",
64
- "scrolling-content": "_scrolling-content_f3ckb_20",
65
- "modal-window": "_modal-window_f3ckb_26",
66
- description: ae,
60
+ ] }), le = "_modal_yxql5_1", se = "_description_yxql5_43", ie = "_scrollable_yxql5_53", de = {
61
+ modal: le,
62
+ "overlay-default": "_overlay-default_yxql5_12",
63
+ "overlay-light-cyan": "_overlay-light-cyan_yxql5_16",
64
+ "scrolling-content": "_scrolling-content_yxql5_20",
65
+ "modal-window": "_modal-window_yxql5_26",
66
+ description: se,
67
67
  scrollable: ie,
68
- "size-default": "_size-default_f3ckb_57",
69
- "size-small": "_size-small_f3ckb_69",
70
- "size-large": "_size-large_f3ckb_81"
71
- }, h = f.bind(ce), de = 0.9, re = 32 + 24, me = 32 + 8, _e = 36 + 16, he = 32 * 2, Ee = ({
68
+ "size-default": "_size-default_yxql5_57",
69
+ "size-small": "_size-small_yxql5_69",
70
+ "size-large": "_size-large_yxql5_81"
71
+ }, h = w.bind(de), ce = 0.9, re = 32 + 24, me = 32 + 8, _e = 36 + 16, he = 32 * 2, Ee = ({
72
72
  title: o,
73
73
  children: n,
74
- footerNode: l,
74
+ footerNode: a,
75
75
  okButton: r,
76
- cancelButton: s,
77
- className: z,
78
- size: w = "default",
79
- onClose: A = () => {
76
+ cancelButton: l,
77
+ className: A,
78
+ size: f = "default",
79
+ onClose: C = () => {
80
80
  },
81
- overlay: p = "default",
82
- zIndex: C = 2,
83
- allowCloseOutside: D = !0,
84
- scrollable: v = !1,
85
- withoutFooter: y = !1,
86
- createFooter: H = null,
87
- description: a = null
81
+ overlay: x = "default",
82
+ zIndex: D = 2,
83
+ allowCloseOutside: S = !0,
84
+ scrollable: p = !1,
85
+ withoutFooter: v = !1,
86
+ createFooter: b = null,
87
+ description: s = null
88
88
  }) => {
89
- const [S, k] = u(!1), [T, I] = u(0), [L, $] = u(!1), i = K(null), E = Q(), x = E.height, R = x * de, b = (x - T) / 2, W = () => {
90
- let t = R - he;
91
- return y || (t = t - _e), a ? t = t - me : t = t - re, t;
92
- }, d = () => {
93
- k(!1);
94
- }, M = (t) => {
95
- const { keyCode: F } = t;
96
- F === U.ESCAPE_KEY_CODE && d();
97
- }, j = () => {
89
+ const [T, H] = u(!1), [I, q] = u(0), [L, $] = u(!1), i = G(null), E = Q(), M = E.height, k = M * ce, g = (M - I) / 2, R = () => {
90
+ let t = k - he;
91
+ return v || (t = t - _e), s ? t = t - me : t = t - re, t;
92
+ }, c = () => {
93
+ H(!1);
94
+ }, N = (t) => {
95
+ const { keyCode: j } = t;
96
+ j === U.ESCAPE_KEY_CODE && c();
97
+ }, W = () => {
98
98
  var t;
99
99
  L || ((t = i.current) == null || t.focus(), $(!0));
100
100
  };
101
- return g(() => {
101
+ return y(() => {
102
102
  if (i && i.current) {
103
103
  const { clientHeight: t } = i.current;
104
- I(t);
104
+ q(t);
105
105
  }
106
- }, [n, E]), g(() => (k(!0), document.addEventListener("keydown", M, !1), () => document.removeEventListener("keydown", M, !1)), []), Y(i, D ? d : void 0), /* @__PURE__ */ e(B, { onExitComplete: A, children: S && /* @__PURE__ */ e("div", { className: h("modal", { [`overlay-${p}`]: p }), style: { zIndex: C }, children: /* @__PURE__ */ c(
107
- q.div,
106
+ }, [n, E]), y(() => (H(!0), document.addEventListener("keydown", N, !1), () => document.removeEventListener("keydown", N, !1)), []), Y(i, S ? c : void 0), /* @__PURE__ */ e(P, { onExitComplete: C, children: T && /* @__PURE__ */ e("div", { className: h("modal", { [`overlay-${x}`]: x }), style: { zIndex: D }, children: /* @__PURE__ */ d(
107
+ B.div,
108
108
  {
109
- className: h("modal-window", { [`size-${w}`]: w }, z),
109
+ className: h("modal-window", { [`size-${f}`]: f }, A),
110
110
  ref: i,
111
111
  tabIndex: 0,
112
- initial: { opacity: 0, marginTop: -b },
113
- animate: { opacity: 1, marginTop: b },
114
- exit: { opacity: 0, marginTop: -b },
112
+ initial: { opacity: 0, marginTop: -g },
113
+ animate: { opacity: 1, marginTop: g },
114
+ exit: { opacity: 0, marginTop: -g },
115
115
  transition: { duration: 0.3 },
116
- onAnimationStart: j,
116
+ onAnimationStart: W,
117
117
  children: [
118
- /* @__PURE__ */ e(le, { title: o, onClose: d, withDescription: !!a }),
119
- v ? /* @__PURE__ */ c(P, { autoHeight: !0, autoHeightMax: W(), hideTracksWhenNotNeeded: !0, children: [
120
- a && /* @__PURE__ */ e("span", { className: h("description", { scrollable: v }), children: a }),
121
- /* @__PURE__ */ e(O, { scrollable: !0, children: n })
122
- ] }) : /* @__PURE__ */ c(G, { children: [
123
- a && /* @__PURE__ */ e("span", { className: h("description"), children: a }),
124
- /* @__PURE__ */ e(O, { children: n })
118
+ /* @__PURE__ */ e(ae, { title: o, onClose: c, withDescription: !!s }),
119
+ p ? /* @__PURE__ */ d(K, { autoHeight: !0, autoHeightMax: R(), hideTracksWhenNotNeeded: !0, children: [
120
+ s && /* @__PURE__ */ e("span", { className: h("description", { scrollable: p }), children: s }),
121
+ /* @__PURE__ */ e(z, { scrollable: !0, children: n })
122
+ ] }) : /* @__PURE__ */ d(F, { children: [
123
+ s && /* @__PURE__ */ e("span", { className: h("description"), children: s }),
124
+ /* @__PURE__ */ e(z, { children: n })
125
125
  ] }),
126
- !y && (H ? H(d) : /* @__PURE__ */ e(
126
+ !v && (b ? b(c) : /* @__PURE__ */ e(
127
127
  oe,
128
128
  {
129
- size: w,
130
- footerNode: l,
129
+ size: f,
130
+ footerNode: a,
131
131
  okButton: r,
132
- cancelButton: s,
133
- closeHandler: d
132
+ cancelButton: l,
133
+ closeHandler: c
134
134
  }
135
135
  ))
136
136
  ]
@@ -140,7 +140,7 @@ const Q = () => {
140
140
  };
141
141
  export {
142
142
  Ee as Modal,
143
- O as ModalContent,
143
+ z as ModalContent,
144
144
  oe as ModalFooter,
145
- le as ModalHeader
145
+ ae as ModalHeader
146
146
  };
@@ -1,15 +1,15 @@
1
1
  import { jsxs as p, jsx as t } from "react/jsx-runtime";
2
- import { c as m } from "./bind-06a7ff84.js";
3
- import { useState as h } from "react";
2
+ import { c as g } from "./bind-06a7ff84.js";
3
+ import { useState as b } from "react";
4
4
  import { Popover as O } from "./popover.js";
5
- import { B as x } from "./button-770f7b20.js";
6
- import { F as A } from "./fieldText-94e2c8eb.js";
7
- import { B as f } from "./baseIconButton-251479f7.js";
8
- import { S as y, a as T } from "./prevPage-87faf576.js";
5
+ import { B as x } from "./button-33bc880f.js";
6
+ import { F as A } from "./fieldText-e605a521.js";
7
+ import { B as h } from "./baseIconButton-251479f7.js";
8
+ import { S as $, a as T } from "./prevPage-87faf576.js";
9
9
  import { Tooltip as B } from "./tooltip.js";
10
10
  const P = {
11
11
  "item-counter": "_item-counter_4g6do_1"
12
- }, E = m.bind(P), M = ({
12
+ }, E = g.bind(P), M = ({
13
13
  activePage: o,
14
14
  pageSize: n,
15
15
  totalItems: s,
@@ -21,11 +21,11 @@ const P = {
21
21
  `${i + 1} - ${c < s ? c : s}`,
22
22
  ` ${r} ${s} ${a}`
23
23
  ] });
24
- }, V = "_selected_183l8_32", W = {
25
- "size-selector": "_size-selector_183l8_1",
26
- "size-option": "_size-option_183l8_6",
24
+ }, V = "_selected_9ub70_32", W = {
25
+ "size-selector": "_size-selector_9ub70_1",
26
+ "size-option": "_size-option_9ub70_6",
27
27
  selected: V
28
- }, C = m.bind(W), D = ({
28
+ }, C = g.bind(W), D = ({
29
29
  currentSize: o,
30
30
  options: n,
31
31
  onClickOption: s
@@ -40,15 +40,15 @@ const P = {
40
40
  },
41
41
  r
42
42
  )) }), F = {
43
- "page-size-control": "_page-size-control_1y4na_1",
44
- "size-selector-button": "_size-selector-button_1y4na_10"
45
- }, w = m.bind(F), j = ({
43
+ "page-size-control": "_page-size-control_sgwmi_1",
44
+ "size-selector-button": "_size-selector-button_sgwmi_10"
45
+ }, w = g.bind(F), j = ({
46
46
  size: o,
47
47
  sizeOptions: n,
48
48
  perPageText: s,
49
49
  changeSize: r
50
50
  }) => {
51
- const [a, c] = h(!1), i = (e) => {
51
+ const [a, c] = b(!1), i = (e) => {
52
52
  r(e), c(!1);
53
53
  };
54
54
  return /* @__PURE__ */ p("div", { className: w("page-size-control"), children: [
@@ -68,20 +68,20 @@ const P = {
68
68
  "page-selector": "_page-selector_rtho4_1",
69
69
  "field-wrapper": "_field-wrapper_rtho4_6",
70
70
  "apply-button": "_apply-button_rtho4_10"
71
- }, b = m.bind(G), H = ({
71
+ }, N = g.bind(G), H = ({
72
72
  totalPages: o,
73
73
  pageText: n,
74
74
  goActionText: s,
75
75
  selectPage: r
76
76
  }) => {
77
- const [a, c] = h(""), [i, e] = h(!0), d = (u) => {
78
- const v = u.target.value.replace(/\D/g, ""), $ = Number(v), k = $ > 0 && $ <= o;
79
- e(k), c(v);
77
+ const [a, c] = b(""), [i, e] = b(!0), d = (u) => {
78
+ const y = u.target.value.replace(/\D/g, ""), v = Number(y), k = v > 0 && v <= o;
79
+ e(k), c(y);
80
80
  }, l = () => {
81
81
  r(Number(a));
82
82
  };
83
- return /* @__PURE__ */ p("div", { className: b("page-selector"), children: [
84
- /* @__PURE__ */ t("div", { className: b("field-wrapper"), children: /* @__PURE__ */ t(
83
+ return /* @__PURE__ */ p("div", { className: N("page-selector"), children: [
84
+ /* @__PURE__ */ t("div", { className: N("field-wrapper"), children: /* @__PURE__ */ t(
85
85
  A,
86
86
  {
87
87
  onChange: d,
@@ -93,13 +93,13 @@ const P = {
93
93
  displayError: !1
94
94
  }
95
95
  ) }),
96
- /* @__PURE__ */ t(x, { onClick: l, disabled: !a || !i, className: b("apply-button"), children: s })
96
+ /* @__PURE__ */ t(x, { onClick: l, disabled: !a || !i, className: N("apply-button"), children: s })
97
97
  ] });
98
98
  }, L = {
99
- "active-page": "_active-page_rmw5h_1",
100
- "page-selector": "_page-selector_rmw5h_10",
101
- "page-selector-button": "_page-selector-button_rmw5h_14"
102
- }, N = m.bind(L), R = ({
99
+ "active-page": "_active-page_1gl9o_1",
100
+ "page-selector": "_page-selector_1gl9o_10",
101
+ "page-selector-button": "_page-selector-button_1gl9o_14"
102
+ }, f = g.bind(L), R = ({
103
103
  activePage: o,
104
104
  totalPages: n,
105
105
  pageText: s,
@@ -107,10 +107,10 @@ const P = {
107
107
  goActionText: a,
108
108
  changePage: c
109
109
  }) => {
110
- const [i, e] = h(!1), d = (l) => {
110
+ const [i, e] = b(!1), d = (l) => {
111
111
  c(l), e(!1);
112
112
  };
113
- return /* @__PURE__ */ p("div", { className: N("active-page"), children: [
113
+ return /* @__PURE__ */ p("div", { className: f("active-page"), children: [
114
114
  `${s} `,
115
115
  /* @__PURE__ */ t(
116
116
  O,
@@ -128,21 +128,21 @@ const P = {
128
128
  placement: "top",
129
129
  isOpened: i,
130
130
  setIsOpened: e,
131
- className: N("page-selector"),
132
- children: /* @__PURE__ */ t(x, { className: N("page-selector-button"), variant: "text", children: o })
131
+ className: f("page-selector"),
132
+ children: /* @__PURE__ */ t(x, { className: f("page-selector-button"), variant: "text", children: o })
133
133
  }
134
134
  )
135
135
  ] });
136
- }, q = "_bar_dfnmf_1", J = "_section_dfnmf_9", K = "_selected_dfnmf_33", Q = "_tooltip_dfnmf_37", U = {
136
+ }, q = "_bar_y74hy_1", J = "_section_y74hy_9", K = "_selected_y74hy_33", Q = "_tooltip_y74hy_37", U = {
137
137
  bar: q,
138
- "section-with-tooltip": "_section-with-tooltip_dfnmf_9",
138
+ "section-with-tooltip": "_section-with-tooltip_y74hy_9",
139
139
  section: J,
140
140
  selected: K,
141
- "tooltip-wrapper": "_tooltip-wrapper_dfnmf_37",
141
+ "tooltip-wrapper": "_tooltip-wrapper_y74hy_37",
142
142
  tooltip: Q,
143
- "tooltip-text": "_tooltip-text_dfnmf_48",
144
- "page-number": "_page-number_dfnmf_52"
145
- }, _ = m.bind(U), S = 13, z = 260, X = ({
143
+ "tooltip-text": "_tooltip-text_y74hy_48",
144
+ "page-number": "_page-number_y74hy_52"
145
+ }, _ = g.bind(U), S = 13, z = 260, X = ({
146
146
  totalPages: o,
147
147
  activePage: n,
148
148
  changePage: s,
@@ -192,7 +192,7 @@ const P = {
192
192
  "page-buttons": "_page-buttons_1p2t5_6",
193
193
  "page-button": "_page-button_1p2t5_6",
194
194
  next: Y
195
- }, g = m.bind(Z), ee = ({
195
+ }, m = g.bind(Z), ee = ({
196
196
  activePage: o,
197
197
  changePage: n,
198
198
  totalPages: s,
@@ -207,21 +207,21 @@ const P = {
207
207
  }, e = () => {
208
208
  n(s);
209
209
  };
210
- return /* @__PURE__ */ p("div", { className: g("page-navigator"), children: [
211
- /* @__PURE__ */ p("div", { className: g("page-buttons"), children: [
210
+ return /* @__PURE__ */ p("div", { className: m("page-navigator"), children: [
211
+ /* @__PURE__ */ p("div", { className: m("page-buttons"), children: [
212
212
  /* @__PURE__ */ t(
213
- f,
213
+ h,
214
214
  {
215
- className: g("page-button"),
215
+ className: m("page-button"),
216
216
  onClick: a,
217
217
  disabled: o === 1,
218
- children: /* @__PURE__ */ t(y, {})
218
+ children: /* @__PURE__ */ t($, {})
219
219
  }
220
220
  ),
221
221
  /* @__PURE__ */ t(
222
- f,
222
+ h,
223
223
  {
224
- className: g("page-button"),
224
+ className: m("page-button"),
225
225
  onClick: c,
226
226
  disabled: o === 1,
227
227
  children: /* @__PURE__ */ t(T, {})
@@ -237,23 +237,23 @@ const P = {
237
237
  captions: r
238
238
  }
239
239
  ),
240
- /* @__PURE__ */ p("div", { className: g("page-buttons"), children: [
240
+ /* @__PURE__ */ p("div", { className: m("page-buttons"), children: [
241
241
  /* @__PURE__ */ t(
242
- f,
242
+ h,
243
243
  {
244
- className: g("page-button", "next"),
244
+ className: m("page-button", "next"),
245
245
  onClick: i,
246
246
  disabled: o === s,
247
247
  children: /* @__PURE__ */ t(T, {})
248
248
  }
249
249
  ),
250
250
  /* @__PURE__ */ t(
251
- f,
251
+ h,
252
252
  {
253
- className: g("page-button", "next"),
253
+ className: m("page-button", "next"),
254
254
  onClick: e,
255
255
  disabled: o === s,
256
- children: /* @__PURE__ */ t(y, {})
256
+ children: /* @__PURE__ */ t($, {})
257
257
  }
258
258
  )
259
259
  ] })
@@ -261,7 +261,7 @@ const P = {
261
261
  }, te = {
262
262
  "page-controls": "_page-controls_thyf8_1",
263
263
  "total-pages": "_total-pages_thyf8_8"
264
- }, I = m.bind(te), oe = ({
264
+ }, I = g.bind(te), oe = ({
265
265
  activePage: o,
266
266
  changePage: n,
267
267
  captions: s,
@@ -291,9 +291,9 @@ const P = {
291
291
  `${s.of} `,
292
292
  r
293
293
  ] })
294
- ] }), se = "_pagination_wi26a_1", ne = {
294
+ ] }), se = "_pagination_w2r3n_1", ne = {
295
295
  pagination: se
296
- }, re = m.bind(ne), ue = ({
296
+ }, re = g.bind(ne), ue = ({
297
297
  activePage: o,
298
298
  totalPages: n,
299
299
  pageSize: s,
@@ -1,11 +1,11 @@
1
- import { P as t } from "./pagination-91729c7d.js";
1
+ import { P as t } from "./pagination-ecbc9940.js";
2
2
  import "react/jsx-runtime";
3
3
  import "./bind-06a7ff84.js";
4
4
  import "react";
5
5
  import "./popover.js";
6
6
  import "@floating-ui/react";
7
- import "./button-770f7b20.js";
8
- import "./fieldText-94e2c8eb.js";
7
+ import "./button-33bc880f.js";
8
+ import "./fieldText-e605a521.js";
9
9
  import "./openEye-7b9cf080.js";
10
10
  import "./spinLoader-c4a53718.js";
11
11
  import "./maxValueDisplay-9be01a75.js";
package/dist/popover.js CHANGED
@@ -1,12 +1,12 @@
1
- import { jsxs as f, Fragment as S, jsx as s } from "react/jsx-runtime";
1
+ import { jsxs as f, Fragment as S, jsx as n } from "react/jsx-runtime";
2
2
  import { useRef as j, useState as C, useCallback as L } from "react";
3
3
  import { useFloating as M, offset as U, flip as W, arrow as q, autoUpdate as z, useClick as B, useDismiss as J, useRole as K, useInteractions as Q, FloatingFocusManager as V, FloatingArrow as X } from "@floating-ui/react";
4
4
  import { c as Y } from "./bind-06a7ff84.js";
5
- const Z = "_popover_16ogt_1", $ = "_title_16ogt_28", O = {
6
- "popover-wrapper": "_popover-wrapper_16ogt_1",
5
+ const Z = "_popover_n3nff_1", $ = "_title_n3nff_28", O = {
6
+ "popover-wrapper": "_popover-wrapper_n3nff_1",
7
7
  popover: Z,
8
8
  title: $
9
- }, r = Y.bind(O), g = 16, d = 8, tt = ["top", "right", "bottom", "left"], et = [
9
+ }, r = Y.bind(O), d = 16, g = 8, tt = ["top", "right", "bottom", "left"], et = [
10
10
  "right",
11
11
  "right-start",
12
12
  "right-end",
@@ -38,13 +38,13 @@ const Z = "_popover_16ogt_1", $ = "_title_16ogt_28", O = {
38
38
  arrowColor: x = "white",
39
39
  dataAutomationId: A,
40
40
  isOpened: F,
41
- setIsOpened: n,
41
+ setIsOpened: s,
42
42
  isCentered: a = !0
43
43
  }) => {
44
- const c = j(null), [R, N] = C(!1), p = n ? F : R, P = (t) => {
45
- n ? n(t) : N(t);
44
+ const c = j(null), [R, N] = C(!1), p = s ? F : R, P = (t) => {
45
+ s ? s(t) : N(t);
46
46
  }, k = L(
47
- (t, l) => a ? ((et.includes(l) ? t.reference.height : t.reference.width) - g) / 2 - o : -o,
47
+ (t, l) => a ? ((et.includes(l) ? t.reference.height : t.reference.width) - d) / 2 - o : -o,
48
48
  [o, a]
49
49
  ), { placement: E, refs: m, floatingStyles: I, context: e } = M({
50
50
  open: p,
@@ -52,7 +52,7 @@ const Z = "_popover_16ogt_1", $ = "_title_16ogt_28", O = {
52
52
  placement: _,
53
53
  middleware: [
54
54
  U(({ rects: t, placement: l }) => ({
55
- mainAxis: w + d,
55
+ mainAxis: w + g,
56
56
  alignmentAxis: k(t, l)
57
57
  })),
58
58
  W({
@@ -66,8 +66,8 @@ const Z = "_popover_16ogt_1", $ = "_title_16ogt_28", O = {
66
66
  whileElementsMounted: z
67
67
  }), T = B(e), y = J(e), D = K(e), { getReferenceProps: G, getFloatingProps: H } = Q([T, y, D]);
68
68
  return /* @__PURE__ */ f(S, { children: [
69
- /* @__PURE__ */ s("div", { ref: m.setReference, ...G(), className: r("popover-wrapper"), children: v }),
70
- p && /* @__PURE__ */ s(V, { context: e, modal: !1, children: /* @__PURE__ */ f(
69
+ /* @__PURE__ */ n("div", { ref: m.setReference, ...G(), className: r("popover-wrapper"), children: v }),
70
+ p && /* @__PURE__ */ n(V, { context: e, modal: !1, children: /* @__PURE__ */ f(
71
71
  "div",
72
72
  {
73
73
  className: r("popover", h),
@@ -76,18 +76,18 @@ const Z = "_popover_16ogt_1", $ = "_title_16ogt_28", O = {
76
76
  style: I,
77
77
  ...H,
78
78
  children: [
79
- /* @__PURE__ */ s(
79
+ /* @__PURE__ */ n(
80
80
  X,
81
81
  {
82
82
  ref: c,
83
83
  context: e,
84
- width: g,
85
- height: d,
84
+ width: d,
85
+ height: g,
86
86
  fill: x,
87
87
  staticOffset: tt.includes(E) ? null : o
88
88
  }
89
89
  ),
90
- i && /* @__PURE__ */ s("div", { className: r("title"), children: i }),
90
+ i && /* @__PURE__ */ n("div", { className: r("title"), children: i }),
91
91
  u
92
92
  ]
93
93
  }