@reportportal/ui-kit 0.0.1-alpha.141 → 0.0.1-alpha.143

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 (142) hide show
  1. package/dist/adaptiveTagList.js +189 -0
  2. package/dist/attachedFile.js +9 -0
  3. package/dist/autocompletes.js +779 -0
  4. package/dist/baseIconButton-251479f7.js +25 -0
  5. package/dist/baseIconButton.js +7 -0
  6. package/dist/bind-06a7ff84.js +41 -0
  7. package/dist/breadcrumbs-8e5ca8d7.js +183 -0
  8. package/dist/breadcrumbs.js +12 -0
  9. package/dist/bubblesLoader-f3ffa240.js +28 -0
  10. package/dist/bubblesLoader.js +7 -0
  11. package/dist/button-97d9e587.js +66 -0
  12. package/dist/button.js +8 -0
  13. package/dist/calendarArrow-44c7e60e.js +5 -0
  14. package/dist/checkbox-ed6cc375.js +73 -0
  15. package/dist/checkbox.js +9 -0
  16. package/dist/chevronDownDropdown-66f5b1af.js +7 -0
  17. package/dist/clear-53660571.js +5 -0
  18. package/dist/close-4d480ef7.js +5 -0
  19. package/dist/datePicker-f8e0df24.js +194 -0
  20. package/dist/datePicker.js +35 -0
  21. package/dist/dropdown-0260bb66.js +5 -0
  22. package/dist/dropdown-893c692c.js +634 -0
  23. package/dist/dropdown.js +27 -0
  24. package/dist/fieldLabel.js +18 -0
  25. package/dist/fieldNumber-d1b5a7a1.js +140 -0
  26. package/dist/fieldNumber.js +13 -0
  27. package/dist/fieldText-1749da7a.js +167 -0
  28. package/dist/fieldText.js +14 -0
  29. package/dist/fieldTextFlex-2f51c173.js +80 -0
  30. package/dist/fieldTextFlex.js +10 -0
  31. package/dist/fileDropArea.js +325 -0
  32. package/dist/filterOutline-819b4b0d.js +6 -0
  33. package/dist/filtersButton.js +25 -0
  34. package/dist/floatingUi-41f8c7b5.js +29 -0
  35. package/dist/icons.js +85 -0
  36. package/dist/index-1a874a8b.js +110 -0
  37. package/dist/index.js +165 -0
  38. package/dist/isEmpty-ccacb5ff.js +38 -0
  39. package/dist/keyCodes-f63c0e11.js +4 -0
  40. package/dist/maxValueDisplay-9be01a75.js +13 -0
  41. package/dist/maxValueDisplay.js +6 -0
  42. package/dist/minus-2857540f.js +5 -0
  43. package/dist/modal.js +194 -0
  44. package/dist/openEye-950159cb.js +6 -0
  45. package/dist/pagination-a3dee614.js +347 -0
  46. package/dist/pagination.js +22 -0
  47. package/dist/plus-199fb2a8.js +5 -0
  48. package/dist/popover.js +80 -0
  49. package/dist/prevPage-87faf576.js +6 -0
  50. package/dist/radio-62546efa.js +76 -0
  51. package/dist/radio.js +9 -0
  52. package/dist/selection-9124d029.js +38 -0
  53. package/dist/selection.js +10 -0
  54. package/dist/sidePanel.js +88 -0
  55. package/dist/sortable.js +160 -0
  56. package/dist/spinLoader-c4a53718.js +11 -0
  57. package/dist/spinLoader.js +7 -0
  58. package/dist/style.css +1 -1
  59. package/dist/success-8fd8bd2c.js +7 -0
  60. package/dist/systemAlert.js +69 -0
  61. package/dist/systemMessage-924fdaa6.js +30 -0
  62. package/dist/systemMessage.js +7 -0
  63. package/dist/table-c172f35e.js +504 -0
  64. package/dist/table.js +15 -0
  65. package/dist/themeProvider-46c2be7b.js +23 -0
  66. package/dist/themeProvider.js +7 -0
  67. package/dist/toggle-304107fa.js +59 -0
  68. package/dist/toggle.js +9 -0
  69. package/dist/tooltip.js +103 -0
  70. package/dist/tree-c3dd3d45.js +6 -0
  71. package/dist/xls-995781cc.js +11 -0
  72. package/package.json +8 -6
  73. package/dist/adaptiveTagList.cjs +0 -1
  74. package/dist/attachedFile.cjs +0 -1
  75. package/dist/autocompletes.cjs +0 -1
  76. package/dist/baseIconButton-263e74dc.js +0 -1
  77. package/dist/baseIconButton.cjs +0 -1
  78. package/dist/bind-29baac98.js +0 -5
  79. package/dist/breadcrumbs-a11e7e56.js +0 -1
  80. package/dist/breadcrumbs.cjs +0 -1
  81. package/dist/bubblesLoader-98fdf0af.js +0 -1
  82. package/dist/bubblesLoader.cjs +0 -1
  83. package/dist/button-8456d133.js +0 -1
  84. package/dist/button.cjs +0 -1
  85. package/dist/calendarArrow-6c6d9356.js +0 -1
  86. package/dist/checkbox-d4cc648d.js +0 -1
  87. package/dist/checkbox.cjs +0 -1
  88. package/dist/chevronDownDropdown-6196562c.js +0 -1
  89. package/dist/clear-07e1c174.js +0 -1
  90. package/dist/close-82e2e274.js +0 -1
  91. package/dist/datePicker-245e845d.js +0 -1
  92. package/dist/datePicker.cjs +0 -1
  93. package/dist/dropdown-b56964c6.js +0 -1
  94. package/dist/dropdown-fa4cd19c.js +0 -1
  95. package/dist/dropdown.cjs +0 -1
  96. package/dist/fieldLabel.cjs +0 -1
  97. package/dist/fieldNumber-9fe044df.js +0 -1
  98. package/dist/fieldNumber.cjs +0 -1
  99. package/dist/fieldText-2af0d7db.js +0 -1
  100. package/dist/fieldText.cjs +0 -1
  101. package/dist/fieldTextFlex-c26b190d.js +0 -1
  102. package/dist/fieldTextFlex.cjs +0 -1
  103. package/dist/fileDropArea.cjs +0 -1
  104. package/dist/filterOutline-5f3f8591.js +0 -1
  105. package/dist/filtersButton.cjs +0 -1
  106. package/dist/floatingUi-97183bba.js +0 -1
  107. package/dist/icons.cjs +0 -1
  108. package/dist/index-4c0424bf.js +0 -1
  109. package/dist/index.cjs +0 -1
  110. package/dist/isEmpty-fe949e63.js +0 -1
  111. package/dist/keyCodes-b188a920.js +0 -1
  112. package/dist/maxValueDisplay-68f1f114.js +0 -1
  113. package/dist/maxValueDisplay.cjs +0 -1
  114. package/dist/minus-0debd2c6.js +0 -1
  115. package/dist/modal.cjs +0 -1
  116. package/dist/openEye-737c72d6.js +0 -1
  117. package/dist/pagination-fc5189f7.js +0 -1
  118. package/dist/pagination.cjs +0 -1
  119. package/dist/plus-b12abe9f.js +0 -1
  120. package/dist/popover.cjs +0 -1
  121. package/dist/prevPage-063b5d63.js +0 -1
  122. package/dist/radio-aba4677b.js +0 -1
  123. package/dist/radio.cjs +0 -1
  124. package/dist/selection-49b927d0.js +0 -1
  125. package/dist/selection.cjs +0 -1
  126. package/dist/sidePanel.cjs +0 -1
  127. package/dist/sortable.cjs +0 -1
  128. package/dist/spinLoader-9ebd776a.js +0 -1
  129. package/dist/spinLoader.cjs +0 -1
  130. package/dist/success-823e5446.js +0 -1
  131. package/dist/systemAlert.cjs +0 -1
  132. package/dist/systemMessage-1ae2764d.js +0 -1
  133. package/dist/systemMessage.cjs +0 -1
  134. package/dist/table-cd9f0ff3.js +0 -1
  135. package/dist/table.cjs +0 -1
  136. package/dist/themeProvider-4dfafca5.js +0 -1
  137. package/dist/themeProvider.cjs +0 -1
  138. package/dist/toggle-359b70d4.js +0 -1
  139. package/dist/toggle.cjs +0 -1
  140. package/dist/tooltip.cjs +0 -1
  141. package/dist/tree-4610ac42.js +0 -1
  142. package/dist/xls-3ed747b0.js +0 -1
@@ -0,0 +1,194 @@
1
+ import { jsxs as F, Fragment as $, jsx as r } from "react/jsx-runtime";
2
+ import B from "react-datepicker/dist/es/index.js";
3
+ import { c as R } from "./bind-06a7ff84.js";
4
+ import { useMemo as P, useRef as D } from "react";
5
+ import { F as I } from "./fieldText-1749da7a.js";
6
+ import { D as E } from "./dropdown-893c692c.js";
7
+ import { S as T } from "./calendarArrow-44c7e60e.js";
8
+ import { registerLocale as j } from "react-datepicker";
9
+ const ie = (n, s) => {
10
+ j(n, s);
11
+ }, G = (n, s = 20) => {
12
+ const i = n + s;
13
+ return new Array(i - n).fill(void 0).map((g, t) => n - t);
14
+ }, H = "_header_1q16i_1", V = "_disabled_1q16i_25", O = "_dropdown_1q16i_8", W = {
15
+ header: H,
16
+ "dropdowns-wrapper": "_dropdowns-wrapper_1q16i_8",
17
+ "button-prev": "_button-prev_1q16i_13",
18
+ "button-next": "_button-next_1q16i_14",
19
+ disabled: V,
20
+ dropdown: O,
21
+ "month-dropdown": "_month-dropdown_1q16i_44",
22
+ "toggle-button": "_toggle-button_1q16i_47"
23
+ }, a = R.bind(W), z = ({
24
+ date: n = /* @__PURE__ */ new Date(),
25
+ changeYear: s = () => {
26
+ },
27
+ changeMonth: i = () => {
28
+ },
29
+ decreaseMonth: g = () => {
30
+ },
31
+ increaseMonth: t = () => {
32
+ },
33
+ prevMonthButtonDisabled: o = !1,
34
+ nextMonthButtonDisabled: h = !1,
35
+ headerNodes: b = null,
36
+ customClassName: w = "",
37
+ yearsOptions: p = [],
38
+ locale: y
39
+ }) => {
40
+ const c = n.getFullYear(), C = n.getMonth(), f = P(() => {
41
+ const e = Array(12).keys(), l = new Intl.DateTimeFormat(y, {
42
+ month: "long"
43
+ }), d = (m) => l.format(new Date(c, m));
44
+ return Array.from(e, d).reduce((m, N, x) => m.concat({
45
+ value: x,
46
+ label: N
47
+ }), []);
48
+ }, [y, c]), v = P(() => (p.length > 0 ? p : G(c)).reduce(
49
+ (l, d) => l.concat({ value: d, label: `${d}` }),
50
+ []
51
+ ), [p, c]), A = (e) => {
52
+ i(e);
53
+ }, k = (e) => {
54
+ s(e);
55
+ };
56
+ return /* @__PURE__ */ F($, { children: [
57
+ b && /* @__PURE__ */ r("div", { className: a(w), children: b }),
58
+ /* @__PURE__ */ F("div", { className: a("header"), children: [
59
+ /* @__PURE__ */ r(
60
+ "button",
61
+ {
62
+ type: "button",
63
+ "aria-label": "Previous Months",
64
+ disabled: o,
65
+ onClick: (e) => {
66
+ e.stopPropagation(), g();
67
+ },
68
+ className: a("button-prev", { disabled: o }),
69
+ children: /* @__PURE__ */ r(T, {})
70
+ }
71
+ ),
72
+ /* @__PURE__ */ F("div", { className: a("dropdowns-wrapper"), children: [
73
+ /* @__PURE__ */ r(
74
+ E,
75
+ {
76
+ options: f,
77
+ value: C,
78
+ onChange: A,
79
+ transparentBackground: !0,
80
+ className: a("dropdown", "month-dropdown"),
81
+ toggleButtonClassName: a("toggle-button")
82
+ }
83
+ ),
84
+ /* @__PURE__ */ r(
85
+ E,
86
+ {
87
+ options: v,
88
+ value: c,
89
+ onChange: k,
90
+ transparentBackground: !0,
91
+ className: a("dropdown"),
92
+ toggleButtonClassName: a("toggle-button")
93
+ }
94
+ )
95
+ ] }),
96
+ /* @__PURE__ */ r(
97
+ "button",
98
+ {
99
+ type: "button",
100
+ "aria-label": "Next Months",
101
+ disabled: h,
102
+ onClick: (e) => {
103
+ e.stopPropagation(), t();
104
+ },
105
+ className: a("button-next", { disabled: h }),
106
+ children: /* @__PURE__ */ r(T, {})
107
+ }
108
+ )
109
+ ] })
110
+ ] });
111
+ }, J = "_calendar_3ty6m_5", K = "_date_3ty6m_90", Q = "_disabled_3ty6m_203", X = "_popper_3ty6m_211", Z = "_input_3ty6m_215", ee = {
112
+ calendar: J,
113
+ "current-date": "_current-date_3ty6m_89",
114
+ date: K,
115
+ "selected-range": "_selected-range_3ty6m_119",
116
+ "end-date": "_end-date_3ty6m_119",
117
+ disabled: Q,
118
+ popper: X,
119
+ input: Z
120
+ }, _ = R.bind(ee), te = "en", L = "MM-dd-yyyy", pe = ({
121
+ onChange: n = () => {
122
+ },
123
+ disabled: s = !1,
124
+ onBlur: i = () => {
125
+ },
126
+ onFocus: g = () => {
127
+ },
128
+ endDate: t = void 0,
129
+ startDate: o = void 0,
130
+ headerNodes: h = null,
131
+ customClassName: b = "",
132
+ customTimeInput: w = void 0,
133
+ shouldCloseOnSelect: p = !0,
134
+ popperClassName: y = "",
135
+ calendarClassName: c = "",
136
+ fixedHeight: C = !1,
137
+ language: f = te,
138
+ yearsOptions: v = [],
139
+ placeholder: A = L.toUpperCase(),
140
+ dateFormat: k = L,
141
+ selects: e = "start",
142
+ value: l = null
143
+ }) => {
144
+ const d = D(null), S = o == null ? void 0 : o.toDateString(), m = t == null ? void 0 : t.toDateString(), N = t && o && t > o, x = (u) => {
145
+ const M = u.toDateString(), Y = M === S, q = N && M === m, U = o && t && u > o && u < t;
146
+ return _("date", {
147
+ "current-date": Y,
148
+ "selected-range": U && !q,
149
+ "end-date": q && N,
150
+ disabled: s
151
+ });
152
+ };
153
+ return /* @__PURE__ */ r(
154
+ B,
155
+ {
156
+ customInput: /* @__PURE__ */ r(I, { className: _("input"), defaultWidth: !1, ref: d }),
157
+ placeholderText: A,
158
+ selected: l,
159
+ startDate: o,
160
+ endDate: t,
161
+ disabled: s,
162
+ shouldCloseOnSelect: p,
163
+ fixedHeight: C,
164
+ locale: f,
165
+ showPopperArrow: !1,
166
+ dayClassName: x,
167
+ calendarClassName: _(c, "calendar"),
168
+ renderCustomHeader: (u) => /* @__PURE__ */ r(
169
+ z,
170
+ {
171
+ ...u,
172
+ headerNodes: h,
173
+ customClassName: b,
174
+ yearsOptions: v,
175
+ locale: f
176
+ }
177
+ ),
178
+ onChange: n,
179
+ onBlur: i,
180
+ onFocus: g,
181
+ customTimeInput: w,
182
+ showTimeInput: !!w,
183
+ popperClassName: _(y, "popper"),
184
+ dateFormat: k,
185
+ selectsStart: e === "start",
186
+ selectsEnd: e === "end",
187
+ className: _("datepicker")
188
+ }
189
+ );
190
+ };
191
+ export {
192
+ pe as D,
193
+ ie as r
194
+ };
@@ -0,0 +1,35 @@
1
+ import { D as t } from "./datePicker-f8e0df24.js";
2
+ import { r as E } from "./datePicker-f8e0df24.js";
3
+ import "react/jsx-runtime";
4
+ import "react-datepicker/dist/es/index.js";
5
+ import "./bind-06a7ff84.js";
6
+ import "react";
7
+ import "./fieldText-1749da7a.js";
8
+ import "./clear-53660571.js";
9
+ import "./openEye-950159cb.js";
10
+ import "./baseIconButton-251479f7.js";
11
+ import "./spinLoader-c4a53718.js";
12
+ import "./maxValueDisplay-9be01a75.js";
13
+ import "./fieldLabel.js";
14
+ import "./dropdown-893c692c.js";
15
+ import "react-dom";
16
+ import "@floating-ui/react-dom";
17
+ import "downshift";
18
+ import "rc-scrollbars";
19
+ import "./keyCodes-f63c0e11.js";
20
+ import "./dropdown-0260bb66.js";
21
+ import "./tooltip.js";
22
+ import "@floating-ui/react";
23
+ import "./floatingUi-41f8c7b5.js";
24
+ import "./adaptiveTagList.js";
25
+ import "./button-97d9e587.js";
26
+ import "./close-4d480ef7.js";
27
+ import "./isEmpty-ccacb5ff.js";
28
+ import "./checkbox-ed6cc375.js";
29
+ import "./calendarArrow-44c7e60e.js";
30
+ import "react-datepicker";
31
+ export {
32
+ t as DatePicker,
33
+ t as default,
34
+ E as registerDatePickerLocale
35
+ };
@@ -0,0 +1,5 @@
1
+ import * as e from "react";
2
+ const o = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M14.2174 5.82426C14.3736 5.66805 14.3736 5.41479 14.2174 5.25858L14.0759 5.11716C13.9197 4.96095 13.6665 4.96095 13.5103 5.11716L8.16726 10.4602L2.82426 5.11716C2.66805 4.96095 2.41479 4.96095 2.25858 5.11716L2.11716 5.25858C1.96095 5.41479 1.96095 5.66805 2.11716 5.82426L7.89176 11.5989C8.04797 11.7551 8.30124 11.7551 8.45745 11.5989L8.88171 11.1746L8.87436 11.1673L14.2174 5.82426Z", fill: "#A2AAB5" }));
3
+ export {
4
+ o as S
5
+ };