@reportportal/ui-kit 0.0.1-alpha.206 → 0.0.1-alpha.208

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.
@@ -6,7 +6,7 @@ import "./baseIconButton-251479f7.js";
6
6
  import "./bind-06a7ff84.js";
7
7
  import "./popover.js";
8
8
  import "@floating-ui/react";
9
- import "./floatingUi-41f8c7b5.js";
9
+ import "./floatingUi-46f5b896.js";
10
10
  /*!
11
11
  * Copyright 2026 EPAM Systems
12
12
  *
@@ -5,7 +5,7 @@ import "es-toolkit";
5
5
  import "react";
6
6
  import "./popover.js";
7
7
  import "@floating-ui/react";
8
- import "./floatingUi-41f8c7b5.js";
8
+ import "./floatingUi-46f5b896.js";
9
9
  import "./tree-c3dd3d45.js";
10
10
  import "./isEmpty-ccacb5ff.js";
11
11
  export {
package/dist/bulkPanel.js CHANGED
@@ -15,7 +15,7 @@ import { S as ie } from "./chevronDownDropdown-0260bb66.js";
15
15
  import { S as se } from "./warning-537ead32.js";
16
16
  import "./close-4d480ef7.js";
17
17
  import "@floating-ui/react";
18
- import "./floatingUi-41f8c7b5.js";
18
+ import "./floatingUi-46f5b896.js";
19
19
  const ae = "_expanded_ue1t9_6", oe = "_header_ue1t9_32", ce = "_tabs_ue1t9_119", re = "_tab_ue1t9_119", de = "_active_ue1t9_146", me = "_item_ue1t9_99", pe = {
20
20
  "bulk-panel": "_bulk-panel_ue1t9_1",
21
21
  expanded: ae,
@@ -15,6 +15,7 @@ export interface PopoverProps {
15
15
  isOpened?: boolean;
16
16
  isCentered?: boolean;
17
17
  strategy?: Strategy;
18
+ shouldUsePortal?: boolean;
18
19
  setIsOpened?: (isOpened: boolean) => void;
19
20
  }
20
21
  export declare const Popover: FC<PopoverProps>;
@@ -0,0 +1,141 @@
1
+ import { jsxs as a, Fragment as V, jsx as r } from "react/jsx-runtime";
2
+ import { useRef as W, useId as y, useMemo as B } from "react";
3
+ import { c as w } from "./bind-06a7ff84.js";
4
+ import { K as e } from "./keyCodes-f63c0e11.js";
5
+ import { B as D } from "./baseIconButton-251479f7.js";
6
+ import { S as v } from "./minus-2857540f.js";
7
+ import { S as k } from "./plus-199fb2a8.js";
8
+ import { FieldLabel as H } from "./fieldLabel.js";
9
+ const b = 5, Y = 16, P = [
10
+ e.TAB_KEY_CODE,
11
+ e.BACKSPACE_KEY_CODE,
12
+ e.ARROW_LEFT_KEY_CODE,
13
+ e.ARROW_UP_KEY_CODE,
14
+ e.ARROW_RIGHT_KEY_CODE,
15
+ e.ARROW_DOWN_KEY_CODE,
16
+ e.DELETE_KEY_CODE,
17
+ e.NUM_LOCK_0_KEY_CODE,
18
+ e.NUM_LOCK_1_KEY_CODE,
19
+ e.NUM_LOCK_2_KEY_CODE,
20
+ e.NUM_LOCK_3_KEY_CODE,
21
+ e.NUM_LOCK_4_KEY_CODE,
22
+ e.NUM_LOCK_5_KEY_CODE,
23
+ e.NUM_LOCK_6_KEY_CODE,
24
+ e.NUM_LOCK_7_KEY_CODE,
25
+ e.NUM_LOCK_8_KEY_CODE,
26
+ e.NUM_LOCK_9_KEY_CODE
27
+ ], G = "_sign_3v3h5_7", j = "_error_3v3h5_22", z = "_disabled_3v3h5_27", X = "_input_3v3h5_12", $ = {
28
+ "field-number": "_field-number_3v3h5_1",
29
+ sign: G,
30
+ "input-container": "_input-container_3v3h5_12",
31
+ error: j,
32
+ disabled: z,
33
+ "input-field": "_input-field_3v3h5_38",
34
+ input: X,
35
+ "additional-content": "_additional-content_3v3h5_84",
36
+ "error-text": "_error-text_3v3h5_88"
37
+ }, c = w.bind($), tn = ({
38
+ value: i = "",
39
+ placeholder: I = "0",
40
+ disabled: t = !1,
41
+ onChange: l,
42
+ onFocus: d,
43
+ onBlur: N,
44
+ label: m,
45
+ postfix: E = "",
46
+ min: s = 0,
47
+ max: o = Number.MAX_SAFE_INTEGER,
48
+ title: L,
49
+ error: C,
50
+ id: h,
51
+ ...M
52
+ }) => {
53
+ const u = W(null), p = y(), O = (n) => Number.isNaN(n) ? s : n === Number.POSITIVE_INFINITY ? o : n === Number.NEGATIVE_INFINITY || n < s ? s : n > o ? o : n, R = (n) => {
54
+ const _ = n.target.value.replace(/^0(?=\d+|^\d)/g, "");
55
+ if (_ === "") {
56
+ l("");
57
+ return;
58
+ }
59
+ l(+_);
60
+ }, T = (n) => {
61
+ N && N(n);
62
+ const _ = +n.currentTarget.value, f = O(_);
63
+ f !== _ && l(f);
64
+ }, A = (n) => {
65
+ const { keyCode: _ } = n;
66
+ P.includes(_) || (_ < e.NUMBER_START_KEY_CODE || _ > e.NUMBER_END_KEY_CODE || n.shiftKey) && n.preventDefault();
67
+ }, U = () => {
68
+ const _ = O(+i) - 1;
69
+ _ >= s && _ <= o && l(_);
70
+ }, g = () => {
71
+ const _ = O(+i) + 1;
72
+ _ >= s && _ <= o && l(_);
73
+ }, K = I + E, F = B(() => {
74
+ let n = (String(i) || K).length;
75
+ return E && !i && (n += 1), n > Y ? `${Y}ch` : `${n || b}ch`;
76
+ }, [K, E, i]), S = () => {
77
+ u && u.current && u.current.focus(), d && d();
78
+ };
79
+ return /* @__PURE__ */ a(V, { children: [
80
+ /* @__PURE__ */ a("div", { className: c("field-number", { disabled: t }), children: [
81
+ m && /* @__PURE__ */ r(H, { htmlFor: h ?? p, children: m }),
82
+ /* @__PURE__ */ a(
83
+ "div",
84
+ {
85
+ className: c("input-container", {
86
+ error: C,
87
+ disabled: t
88
+ }),
89
+ title: L,
90
+ children: [
91
+ /* @__PURE__ */ r(
92
+ D,
93
+ {
94
+ className: c("sign", "minus"),
95
+ disabled: t,
96
+ onClick: U,
97
+ children: /* @__PURE__ */ r(v, {})
98
+ }
99
+ ),
100
+ /* @__PURE__ */ a("span", { className: c("input-field", { disabled: t }), onClick: S, children: [
101
+ /* @__PURE__ */ r(
102
+ "input",
103
+ {
104
+ id: h ?? p,
105
+ ref: u,
106
+ className: c("input"),
107
+ type: "number",
108
+ value: i,
109
+ placeholder: K,
110
+ disabled: t,
111
+ min: s,
112
+ max: o,
113
+ onKeyDown: t ? void 0 : A,
114
+ onChange: t ? void 0 : R,
115
+ onFocus: t ? void 0 : d,
116
+ onBlur: t ? void 0 : T,
117
+ style: { width: F },
118
+ ...M
119
+ }
120
+ ),
121
+ !!E && (i === 0 || !!i) && /* @__PURE__ */ r("span", { children: E.slice(0, 1) })
122
+ ] }),
123
+ /* @__PURE__ */ r(
124
+ D,
125
+ {
126
+ className: c("sign", "plus"),
127
+ disabled: t,
128
+ onClick: g,
129
+ children: /* @__PURE__ */ r(k, {})
130
+ }
131
+ )
132
+ ]
133
+ }
134
+ )
135
+ ] }),
136
+ C && /* @__PURE__ */ r("div", { className: c("additional-content"), children: /* @__PURE__ */ r("span", { className: c("error-text"), children: C }) })
137
+ ] });
138
+ };
139
+ export {
140
+ tn as F
141
+ };
@@ -1,4 +1,4 @@
1
- import { F as m } from "./fieldNumber-d1b5a7a1.js";
1
+ import { F as m } from "./fieldNumber-dd8e6902.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "./bind-06a7ff84.js";
@@ -9,7 +9,7 @@ import "./details-dbb1530b.js";
9
9
  import "./baseIconButton-251479f7.js";
10
10
  import "./popover.js";
11
11
  import "@floating-ui/react";
12
- import "./floatingUi-41f8c7b5.js";
12
+ import "./floatingUi-46f5b896.js";
13
13
  const T = "_disabled_b9lbt_29", F = "_selected_b9lbt_32", W = {
14
14
  "filter-item": "_filter-item_b9lbt_16",
15
15
  disabled: T,
@@ -22,8 +22,8 @@ const o = 16, a = 8, l = 16, i = ["top", "right", "bottom", "left"], r = [
22
22
  export {
23
23
  l as A,
24
24
  a as T,
25
- o as a,
26
- c as b,
25
+ c as a,
26
+ o as b,
27
27
  g,
28
28
  i as m
29
29
  };
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import { D as K } from "./datePicker-6085b8d0.js";
13
13
  import "react-datepicker";
14
14
  import { D as Y } from "./dropdown-0b931e15.js";
15
15
  import { FieldLabel as $ } from "./fieldLabel.js";
16
- import { F as ro } from "./fieldNumber-d1b5a7a1.js";
16
+ import { F as ro } from "./fieldNumber-dd8e6902.js";
17
17
  import { F as to } from "./fieldText-1749da7a.js";
18
18
  import { F as no } from "./fieldTextFlex-2f51c173.js";
19
19
  import { FileDropArea as mo } from "./fileDropArea.js";
@@ -74,7 +74,7 @@ import "react-dropzone";
74
74
  import "framer-motion";
75
75
  import "./useWindowResize-a7e1ac92.js";
76
76
  import "@floating-ui/react";
77
- import "./floatingUi-41f8c7b5.js";
77
+ import "./floatingUi-46f5b896.js";
78
78
  import "./useTreeSortable-bc631689.js";
79
79
  import "./common.js";
80
80
  import "react-resizable";
package/dist/issueList.js CHANGED
@@ -7,7 +7,7 @@ import { i as J } from "./isEmpty-ccacb5ff.js";
7
7
  import "./close-4d480ef7.js";
8
8
  import "react-dom";
9
9
  import "@floating-ui/react";
10
- import "./floatingUi-41f8c7b5.js";
10
+ import "./floatingUi-46f5b896.js";
11
11
  const K = 100, R = 8, Q = 32, X = 60, Z = 360, $ = "_expanded_ypfdt_25", C = "_issue_ypfdt_16", tt = "_counter_ypfdt_36", et = "_hidden_ypfdt_55", nt = "_ellipsis_ypfdt_61", rt = {
12
12
  "issue-list": "_issue-list_ypfdt_16",
13
13
  expanded: $,
package/dist/modal.js CHANGED
@@ -24,7 +24,7 @@ import "./isEmpty-ccacb5ff.js";
24
24
  import "./useEllipsisTitle-462fa254.js";
25
25
  import "./checkbox-76aa8f97.js";
26
26
  import "@floating-ui/react";
27
- import "./floatingUi-41f8c7b5.js";
27
+ import "./floatingUi-46f5b896.js";
28
28
  const oe = {
29
29
  "modal-content": "_modal-content_ppzcb_1"
30
30
  }, ne = b.bind(oe), D = ({ children: o }) => /* @__PURE__ */ e("div", { className: ne("modal-content"), children: o }), ae = {
@@ -4,7 +4,7 @@ import "./bind-06a7ff84.js";
4
4
  import "react";
5
5
  import "./popover.js";
6
6
  import "@floating-ui/react";
7
- import "./floatingUi-41f8c7b5.js";
7
+ import "./floatingUi-46f5b896.js";
8
8
  import "./button-7ab874f3.js";
9
9
  import "./fieldText-1749da7a.js";
10
10
  import "./clear-53660571.js";
package/dist/popover.js CHANGED
@@ -1,82 +1,86 @@
1
- import { jsxs as f, Fragment as H, jsx as s } from "react/jsx-runtime";
2
- import { useRef as O, useState as j, useCallback as C } from "react";
3
- import { useFloating as L, offset as M, flip as W, arrow as U, autoUpdate as q, useClick as z, useDismiss as B, useRole as J, useInteractions as K, FloatingFocusManager as Q, FloatingArrow as V } from "@floating-ui/react";
4
- import { c as X } from "./bind-06a7ff84.js";
5
- import { g as Y, T as u, a as Z, m as $, b as ee, A as te } from "./floatingUi-41f8c7b5.js";
6
- const se = "_popover_n3nff_1", oe = "_title_n3nff_28", ne = {
1
+ import { jsxs as f, Fragment as j, jsx as s } from "react/jsx-runtime";
2
+ import { useRef as C, useState as L, useCallback as M } from "react";
3
+ import { useFloating as W, offset as U, flip as q, arrow as z, autoUpdate as B, useClick as J, useDismiss as K, useRole as Q, useInteractions as V, FloatingFocusManager as X, FloatingArrow as Y, FloatingPortal as Z } from "@floating-ui/react";
4
+ import { c as $ } from "./bind-06a7ff84.js";
5
+ import { g as ee, T as g, a as te, A as se, b as ne, m as oe } from "./floatingUi-46f5b896.js";
6
+ const le = "_popover_n3nff_1", ae = "_title_n3nff_28", re = {
7
7
  "popover-wrapper": "_popover-wrapper_n3nff_1",
8
- popover: se,
9
- title: oe
10
- }, l = X.bind(ne), pe = ({
11
- content: g,
8
+ popover: le,
9
+ title: ae
10
+ }, a = $.bind(re), ge = ({
11
+ content: u,
12
12
  children: d,
13
13
  className: _,
14
- placement: v = "bottom",
15
- fallbackPlacements: A = ee,
16
- title: i,
17
- arrowOffset: o = te,
18
- safeZone: h = 4,
19
- arrowColor: x = "white",
20
- dataAutomationId: F,
14
+ placement: h = "bottom",
15
+ fallbackPlacements: v = te,
16
+ title: r,
17
+ arrowOffset: n = se,
18
+ safeZone: A = 4,
19
+ arrowColor: F = "white",
20
+ dataAutomationId: x,
21
21
  isOpened: R,
22
- isCentered: r = !0,
22
+ isCentered: i = !0,
23
23
  strategy: w = "absolute",
24
- setIsOpened: n
24
+ shouldUsePortal: E = !1,
25
+ setIsOpened: o
25
26
  }) => {
26
- const c = O(null), [b, N] = j(!1), p = n ? R : b, T = (e) => {
27
- n ? n(e) : N(e);
28
- }, E = C(
29
- (e, a) => Y(e, a, o, r),
30
- [o, r]
31
- ), { placement: P, refs: m, floatingStyles: k, context: t } = L({
32
- open: p,
33
- onOpenChange: T,
34
- placement: v,
27
+ const c = C(null), [b, N] = L(!1), m = o ? R : b, P = (e) => {
28
+ o ? o(e) : N(e);
29
+ }, T = M(
30
+ (e, l) => ee(e, l, n, i),
31
+ [n, i]
32
+ ), { placement: y, refs: p, floatingStyles: k, context: t } = W({
33
+ open: m,
34
+ onOpenChange: P,
35
+ placement: h,
35
36
  strategy: w,
36
37
  middleware: [
37
- M(({ rects: e, placement: a }) => ({
38
- mainAxis: h + u,
39
- alignmentAxis: E(e, a)
38
+ U(({ rects: e, placement: l }) => ({
39
+ mainAxis: A + g,
40
+ alignmentAxis: T(e, l)
40
41
  })),
41
- W({
42
+ q({
42
43
  fallbackAxisSideDirection: "start",
43
- fallbackPlacements: A
44
+ fallbackPlacements: v
44
45
  }),
45
- U({
46
+ z({
46
47
  element: c
47
48
  })
48
49
  ],
49
- whileElementsMounted: q
50
- }), I = z(t), S = B(t), y = J(t), { getReferenceProps: D, getFloatingProps: G } = K([I, S, y]);
51
- return /* @__PURE__ */ f(H, { children: [
52
- /* @__PURE__ */ s("div", { ref: m.setReference, ...D(), className: l("popover-wrapper"), children: d }),
53
- p && /* @__PURE__ */ s(Q, { context: t, modal: !1, children: /* @__PURE__ */ f(
50
+ whileElementsMounted: B
51
+ }), I = J(t), S = K(t), D = Q(t), { getReferenceProps: G, getFloatingProps: H } = V([I, S, D]), O = () => {
52
+ const e = /* @__PURE__ */ s(X, { context: t, modal: !1, children: /* @__PURE__ */ f(
54
53
  "div",
55
54
  {
56
- className: l("popover", _),
57
- "data-automation-id": F,
58
- ref: m.setFloating,
55
+ className: a("popover", _),
56
+ "data-automation-id": x,
57
+ ref: p.setFloating,
59
58
  style: k,
60
- ...G,
59
+ ...H(),
61
60
  children: [
62
61
  /* @__PURE__ */ s(
63
- V,
62
+ Y,
64
63
  {
65
64
  ref: c,
66
65
  context: t,
67
- width: Z,
68
- height: u,
69
- fill: x,
70
- staticOffset: $.includes(P) ? null : o
66
+ width: ne,
67
+ height: g,
68
+ fill: F,
69
+ staticOffset: oe.includes(y) ? null : n
71
70
  }
72
71
  ),
73
- i && /* @__PURE__ */ s("div", { className: l("title"), children: i }),
74
- g
72
+ r && /* @__PURE__ */ s("div", { className: a("title"), children: r }),
73
+ u
75
74
  ]
76
75
  }
77
- ) })
76
+ ) });
77
+ return E ? /* @__PURE__ */ s(Z, { children: e }) : e;
78
+ };
79
+ return /* @__PURE__ */ f(j, { children: [
80
+ /* @__PURE__ */ s("div", { ref: p.setReference, ...G(), className: a("popover-wrapper"), children: d }),
81
+ m && O()
78
82
  ] });
79
83
  };
80
84
  export {
81
- pe as Popover
85
+ ge as Popover
82
86
  };
package/dist/table.js CHANGED
@@ -10,7 +10,7 @@ import "./keyCodes-f63c0e11.js";
10
10
  import "./tooltip.js";
11
11
  import "react-dom";
12
12
  import "@floating-ui/react";
13
- import "./floatingUi-41f8c7b5.js";
13
+ import "./floatingUi-46f5b896.js";
14
14
  import "react-dnd";
15
15
  import "react-dnd-html5-backend";
16
16
  import "./useEllipsisTitle-462fa254.js";
package/dist/tooltip.js CHANGED
@@ -3,7 +3,7 @@ import { useState as R, useRef as f } from "react";
3
3
  import { createPortal as G } from "react-dom";
4
4
  import { c as j } from "./bind-06a7ff84.js";
5
5
  import { useFloating as k, offset as $, flip as B, arrow as C, autoUpdate as U, FloatingArrow as Y } from "@floating-ui/react";
6
- import { T as h, g as Z, b as q, a as z } from "./floatingUi-41f8c7b5.js";
6
+ import { T as h, g as Z, a as q, b as z } from "./floatingUi-46f5b896.js";
7
7
  const J = {
8
8
  "tooltip-wrapper": "_tooltip-wrapper_1n6ya_16",
9
9
  "tooltip-content": "_tooltip-content_1n6ya_26"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reportportal/ui-kit",
3
- "version": "0.0.1-alpha.206",
3
+ "version": "0.0.1-alpha.208",
4
4
  "description": "The UI-kit library for ReportPortal Design System.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,140 +0,0 @@
1
- import { jsxs as a, Fragment as W, jsx as r } from "react/jsx-runtime";
2
- import { useRef as y, useId as B, useMemo as F } from "react";
3
- import { c as w } from "./bind-06a7ff84.js";
4
- import { K as _ } from "./keyCodes-f63c0e11.js";
5
- import { B as p } from "./baseIconButton-251479f7.js";
6
- import { S as V } from "./minus-2857540f.js";
7
- import { S as k } from "./plus-199fb2a8.js";
8
- import { FieldLabel as H } from "./fieldLabel.js";
9
- const P = 5, N = 16, j = [
10
- _.TAB_KEY_CODE,
11
- _.BACKSPACE_KEY_CODE,
12
- _.ARROW_LEFT_KEY_CODE,
13
- _.ARROW_UP_KEY_CODE,
14
- _.ARROW_RIGHT_KEY_CODE,
15
- _.ARROW_DOWN_KEY_CODE,
16
- _.DELETE_KEY_CODE,
17
- _.NUM_LOCK_0_KEY_CODE,
18
- _.NUM_LOCK_1_KEY_CODE,
19
- _.NUM_LOCK_2_KEY_CODE,
20
- _.NUM_LOCK_3_KEY_CODE,
21
- _.NUM_LOCK_4_KEY_CODE,
22
- _.NUM_LOCK_5_KEY_CODE,
23
- _.NUM_LOCK_6_KEY_CODE,
24
- _.NUM_LOCK_7_KEY_CODE,
25
- _.NUM_LOCK_8_KEY_CODE,
26
- _.NUM_LOCK_9_KEY_CODE
27
- ], z = "_sign_3v3h5_7", G = "_error_3v3h5_22", X = "_disabled_3v3h5_27", $ = "_input_3v3h5_12", b = {
28
- "field-number": "_field-number_3v3h5_1",
29
- sign: z,
30
- "input-container": "_input-container_3v3h5_12",
31
- error: G,
32
- disabled: X,
33
- "input-field": "_input-field_3v3h5_38",
34
- input: $,
35
- "additional-content": "_additional-content_3v3h5_84",
36
- "error-text": "_error-text_3v3h5_88"
37
- }, c = w.bind(b), tn = ({
38
- value: i = "",
39
- placeholder: Y = "0",
40
- disabled: t = !1,
41
- onChange: s,
42
- onFocus: d,
43
- onBlur: O,
44
- label: h,
45
- postfix: o = "",
46
- min: l = 0,
47
- max: E = Number.MAX_SAFE_INTEGER,
48
- title: L,
49
- error: C,
50
- id: D,
51
- ...M
52
- }) => {
53
- const u = y(null), m = B(), R = (n) => n < l ? l : n > E ? E : n, U = (n) => {
54
- let e = n.target.value.replace(/^0(?=\d+|^\d)/g, "");
55
- if (e === "") {
56
- s("");
57
- return;
58
- }
59
- e = +e, s(e);
60
- }, A = (n) => {
61
- const e = +n.currentTarget.value, f = R(e);
62
- f !== e && s(f), O && O(n);
63
- }, g = (n) => {
64
- const { keyCode: e } = n;
65
- j.includes(e) || (e < _.NUMBER_START_KEY_CODE || e > _.NUMBER_END_KEY_CODE || n.shiftKey) && n.preventDefault();
66
- }, T = () => {
67
- const n = +i - 1;
68
- n >= l && n <= E && s(n);
69
- }, v = () => {
70
- const n = +i + 1;
71
- n >= l && n <= E && s(n);
72
- }, K = Y + o, I = F(() => {
73
- let n = (String(i) || K).length;
74
- return o && !i && (n += 1), n > N ? `${N}ch` : `${n || P}ch`;
75
- }, [K, o, i]), S = () => {
76
- u && u.current && u.current.focus(), d && d();
77
- };
78
- return /* @__PURE__ */ a(W, { children: [
79
- /* @__PURE__ */ a("div", { className: c("field-number", { disabled: t }), children: [
80
- h && /* @__PURE__ */ r(H, { htmlFor: D ?? m, children: h }),
81
- /* @__PURE__ */ a(
82
- "div",
83
- {
84
- className: c("input-container", {
85
- error: C,
86
- disabled: t
87
- }),
88
- title: L,
89
- children: [
90
- /* @__PURE__ */ r(
91
- p,
92
- {
93
- className: c("sign", "minus"),
94
- disabled: t,
95
- onClick: T,
96
- children: /* @__PURE__ */ r(V, {})
97
- }
98
- ),
99
- /* @__PURE__ */ a("span", { className: c("input-field", { disabled: t }), onClick: S, children: [
100
- /* @__PURE__ */ r(
101
- "input",
102
- {
103
- id: D ?? m,
104
- ref: u,
105
- className: c("input"),
106
- type: "number",
107
- value: i,
108
- placeholder: K,
109
- disabled: t,
110
- min: l,
111
- max: E,
112
- onKeyDown: t ? void 0 : g,
113
- onChange: t ? void 0 : U,
114
- onFocus: t ? void 0 : d,
115
- onBlur: t ? void 0 : A,
116
- style: { width: I },
117
- ...M
118
- }
119
- ),
120
- !!o && (i === 0 || !!i) && /* @__PURE__ */ r("span", { children: o.slice(0, 1) })
121
- ] }),
122
- /* @__PURE__ */ r(
123
- p,
124
- {
125
- className: c("sign", "plus"),
126
- disabled: t,
127
- onClick: v,
128
- children: /* @__PURE__ */ r(k, {})
129
- }
130
- )
131
- ]
132
- }
133
- )
134
- ] }),
135
- C && /* @__PURE__ */ r("div", { className: c("additional-content"), children: /* @__PURE__ */ r("span", { className: c("error-text"), children: C }) })
136
- ] });
137
- };
138
- export {
139
- tn as F
140
- };