@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,110 @@
1
+ import { jsxs as h, jsx as t } from "react/jsx-runtime";
2
+ import { useMemo as o, useCallback as m } from "react";
3
+ import { c as C } from "./bind-06a7ff84.js";
4
+ import { S } from "./close-4d480ef7.js";
5
+ import { a as w, b as E, S as j, d as y, e as I, c as l, f as x } from "./xls-995781cc.js";
6
+ const k = (_) => {
7
+ var c;
8
+ const d = _.split(".");
9
+ return d.length > 1 && ((c = d.pop()) == null ? void 0 : c.toLowerCase()) || "";
10
+ }, L = {
11
+ "attached-file": "_attached-file_1x0ei_16",
12
+ "attached-file__file-name": "_attached-file__file-name_1x0ei_29",
13
+ "attached-file--failed": "_attached-file--failed_1x0ei_32",
14
+ "attached-file__name-text": "_attached-file__name-text_1x0ei_36",
15
+ "attached-file__icon": "_attached-file__icon_1x0ei_39",
16
+ "attached-file--uploading": "_attached-file--uploading_1x0ei_45",
17
+ "attached-file--full-width": "_attached-file--full-width_1x0ei_57",
18
+ "attached-file__file-icon": "_attached-file__file-icon_1x0ei_66",
19
+ "attached-file__info": "_attached-file__info_1x0ei_78",
20
+ "attached-file__download-icon": "_attached-file__download-icon_1x0ei_108",
21
+ "attached-file__file-details": "_attached-file__file-details_1x0ei_117",
22
+ "attached-file__error-message": "_attached-file__error-message_1x0ei_122",
23
+ "attached-file__upload-progress": "_attached-file__upload-progress_1x0ei_127",
24
+ "attached-file__upload-progress-bar": "_attached-file__upload-progress-bar_1x0ei_137",
25
+ "attached-file__remove-button": "_attached-file__remove-button_1x0ei_141",
26
+ "attached-file__remove-button--disabled": "_attached-file__remove-button--disabled_1x0ei_163"
27
+ }, e = C.bind(L), A = {
28
+ csv: j,
29
+ jar: y,
30
+ pdf: I,
31
+ jpg: l,
32
+ jpeg: l,
33
+ png: l,
34
+ gif: l,
35
+ svg: l,
36
+ webp: l,
37
+ xls: x,
38
+ xlsx: x
39
+ }, M = (_) => A[_.toLowerCase()] ?? E, X = ({
40
+ fileName: _,
41
+ size: d,
42
+ uploadingProgress: c = 0,
43
+ isUploadFailed: i = !1,
44
+ uploadFailedMessage: p,
45
+ isUploading: a = !1,
46
+ isFullWidth: u = !1,
47
+ onDownload: f,
48
+ onRemove: s
49
+ }) => {
50
+ const r = o(() => k(_), [_]), g = r.toUpperCase(), b = o(() => M(r), [r]), v = m(
51
+ (n) => {
52
+ n.stopPropagation(), a || s == null || s();
53
+ },
54
+ [a, s]
55
+ ), N = m(
56
+ (n) => {
57
+ n.stopPropagation(), !i && !a && f && f();
58
+ },
59
+ [i, a, f]
60
+ );
61
+ return /* @__PURE__ */ h(
62
+ "div",
63
+ {
64
+ className: e("attached-file", {
65
+ "attached-file--failed": i,
66
+ "attached-file--uploading": a,
67
+ "attached-file--full-width": u
68
+ }),
69
+ children: [
70
+ /* @__PURE__ */ t("div", { className: e("attached-file__icon"), children: /* @__PURE__ */ t("div", { className: e("attached-file__file-icon"), children: /* @__PURE__ */ t(b, {}) }) }),
71
+ /* @__PURE__ */ h("div", { className: e("attached-file__info"), children: [
72
+ f ? /* @__PURE__ */ h("button", { type: "button", className: e("attached-file__file-name"), onClick: N, children: [
73
+ /* @__PURE__ */ t("span", { className: e("attached-file__name-text"), children: _ }),
74
+ !a && !i && /* @__PURE__ */ t("span", { className: e("attached-file__download-icon"), children: /* @__PURE__ */ t(w, {}) })
75
+ ] }) : /* @__PURE__ */ t("div", { className: e("attached-file__file-name"), children: /* @__PURE__ */ t("span", { className: e("attached-file__name-text"), children: _ }) }),
76
+ !i && /* @__PURE__ */ h("div", { className: e("attached-file__file-details"), children: [
77
+ g,
78
+ ", ",
79
+ d,
80
+ " MB"
81
+ ] }),
82
+ i && /* @__PURE__ */ t("div", { className: e("attached-file__error-message"), children: p })
83
+ ] }),
84
+ s && /* @__PURE__ */ t(
85
+ "button",
86
+ {
87
+ type: "button",
88
+ className: e("attached-file__remove-button", {
89
+ "attached-file__remove-button--disabled": a
90
+ }),
91
+ disabled: a,
92
+ onClick: v,
93
+ children: /* @__PURE__ */ t(S, {})
94
+ }
95
+ ),
96
+ a && c > 0 && /* @__PURE__ */ t("div", { className: e("attached-file__upload-progress"), children: /* @__PURE__ */ t(
97
+ "div",
98
+ {
99
+ className: e("attached-file__upload-progress-bar"),
100
+ style: { width: `${c}%` }
101
+ }
102
+ ) })
103
+ ]
104
+ }
105
+ );
106
+ };
107
+ export {
108
+ X as A,
109
+ k as g
110
+ };
package/dist/index.js ADDED
@@ -0,0 +1,165 @@
1
+ import { AdaptiveTagList as C } from "./adaptiveTagList.js";
2
+ import { A as D } from "./index-1a874a8b.js";
3
+ import { B as y } from "./baseIconButton-251479f7.js";
4
+ import { B as A } from "./breadcrumbs-8e5ca8d7.js";
5
+ import { B as h } from "./bubblesLoader-f3ffa240.js";
6
+ import { B as M } from "./button-97d9e587.js";
7
+ import { C as L } from "./checkbox-ed6cc375.js";
8
+ import { D as E } from "./datePicker-f8e0df24.js";
9
+ import "react-datepicker";
10
+ import { D as O } from "./dropdown-893c692c.js";
11
+ import { FieldLabel as H } from "./fieldLabel.js";
12
+ import { F as N } from "./fieldNumber-d1b5a7a1.js";
13
+ import { F as G } from "./fieldText-1749da7a.js";
14
+ import { F as X } from "./fieldTextFlex-2f51c173.js";
15
+ import { FileDropArea as q } from "./fileDropArea.js";
16
+ import { FiltersButton as Q } from "./filtersButton.js";
17
+ import { Modal as Y } from "./modal.js";
18
+ import { MultipleAutocomplete as _, SingleAutocomplete as $ } from "./autocompletes.js";
19
+ import { P as ro } from "./pagination-a3dee614.js";
20
+ import { Popover as to } from "./popover.js";
21
+ import { R as no } from "./radio-62546efa.js";
22
+ import { S as po } from "./selection-9124d029.js";
23
+ import { S as mo } from "./spinLoader-c4a53718.js";
24
+ import { SystemAlert as Io } from "./systemAlert.js";
25
+ import { S as xo } from "./systemMessage-924fdaa6.js";
26
+ import { DragLayer as uo, SortableItem as So, SortableList as Po } from "./sortable.js";
27
+ import { T as Co } from "./table-c172f35e.js";
28
+ import { T as Do } from "./themeProvider-46c2be7b.js";
29
+ import { T as yo } from "./toggle-304107fa.js";
30
+ import { Tooltip as Ao } from "./tooltip.js";
31
+ import { SidePanel as ho } from "./sidePanel.js";
32
+ import { AddCsvIcon as Mo, AddImageIcon as wo, AddJarIcon as Lo, BreadcrumbsTreeIcon as ko, CalendarIcon as Eo, CheckmarkIcon as Ro, ChevronRightBreadcrumbsIcon as Oo, ConfigurationIcon as Uo, CopyIcon as Ho, CoverageFullIcon as Jo, CoveragePartialIcon as No, CoveredManuallyIcon as zo, DeleteIcon as Go, DragAndDropIcon as Wo, DragNDropIcon as Xo, DurationIcon as jo, EditIcon as qo, ExportIcon as Ko, FlagIcon as Qo, GroupByIcon as Vo, HideIcon as Yo, LaunchTypeIcon as Zo, MaximizeIcon as _o, MoveToFolderIcon as $o, PinFilledIcon as or, PinOutlineIcon as rr, PriorityBlockerIcon as er, PriorityCriticalIcon as tr, PriorityHighIcon as ar, PriorityLowIcon as nr, PriorityMediumIcon as cr, PriorityUnspecifiedIcon as pr, RefreshIcon as ir, RerunIcon as mr, RunManualIcon as sr, SearchIcon as Ir, SortIcon as lr, StatusSuccessIcon as xr, TestPlanIcon as fr, UserIcon as dr, WarningIcon as ur } from "./icons.js";
33
+ import { S as Pr, a as gr, b as Cr } from "./chevronDownDropdown-66f5b1af.js";
34
+ import { S as Dr } from "./calendarArrow-44c7e60e.js";
35
+ import { S as yr } from "./clear-53660571.js";
36
+ import { S as Ar, a as Br } from "./openEye-950159cb.js";
37
+ import { S as vr } from "./close-4d480ef7.js";
38
+ import { S as wr, a as Lr, b as kr, c as Er, d as Rr, e as Or, f as Ur } from "./xls-995781cc.js";
39
+ import { S as Jr } from "./dropdown-0260bb66.js";
40
+ import { S as zr, a as Gr, b as Wr } from "./success-8fd8bd2c.js";
41
+ import { S as jr, a as qr } from "./filterOutline-819b4b0d.js";
42
+ import { S as Qr, a as Vr } from "./tree-c3dd3d45.js";
43
+ import { S as Zr } from "./minus-2857540f.js";
44
+ import { S as $r } from "./plus-199fb2a8.js";
45
+ import { S as re, a as ee } from "./prevPage-87faf576.js";
46
+ import "react/jsx-runtime";
47
+ import "react";
48
+ import "./bind-06a7ff84.js";
49
+ import "./isEmpty-ccacb5ff.js";
50
+ import "./keyCodes-f63c0e11.js";
51
+ import "react-datepicker/dist/es/index.js";
52
+ import "react-dom";
53
+ import "@floating-ui/react-dom";
54
+ import "downshift";
55
+ import "rc-scrollbars";
56
+ import "./maxValueDisplay-9be01a75.js";
57
+ import "react-dropzone";
58
+ import "framer-motion";
59
+ import "react-dnd";
60
+ import "react-dnd-html5-backend";
61
+ import "@floating-ui/react";
62
+ import "./floatingUi-41f8c7b5.js";
63
+ export {
64
+ C as AdaptiveTagList,
65
+ Mo as AddCsvIcon,
66
+ wo as AddImageIcon,
67
+ Lo as AddJarIcon,
68
+ Pr as ArrowDownIcon,
69
+ gr as ArrowUpIcon,
70
+ D as AttachedFile,
71
+ y as BaseIconButton,
72
+ A as Breadcrumbs,
73
+ ko as BreadcrumbsTreeIcon,
74
+ h as BubblesLoader,
75
+ M as Button,
76
+ Dr as CalendarArrowIcon,
77
+ Eo as CalendarIcon,
78
+ L as Checkbox,
79
+ Ro as CheckmarkIcon,
80
+ Cr as ChevronDownDropdownIcon,
81
+ Oo as ChevronRightBreadcrumbsIcon,
82
+ yr as ClearIcon,
83
+ Ar as CloseEyeIcon,
84
+ vr as CloseIcon,
85
+ Uo as ConfigurationIcon,
86
+ Ho as CopyIcon,
87
+ Jo as CoverageFullIcon,
88
+ No as CoveragePartialIcon,
89
+ zo as CoveredManuallyIcon,
90
+ wr as CsvIcon,
91
+ E as DatePicker,
92
+ Go as DeleteIcon,
93
+ Wo as DragAndDropIcon,
94
+ uo as DragLayer,
95
+ Xo as DragNDropIcon,
96
+ O as Dropdown,
97
+ Jr as DropdownIcon,
98
+ jo as DurationIcon,
99
+ qo as EditIcon,
100
+ zr as ErrorIcon,
101
+ Ko as ExportIcon,
102
+ Lr as ExternalLinkIcon,
103
+ H as FieldLabel,
104
+ N as FieldNumber,
105
+ G as FieldText,
106
+ X as FieldTextFlex,
107
+ q as FileDropArea,
108
+ kr as FileOtherIcon,
109
+ jr as FilterFilledIcon,
110
+ qr as FilterOutlineIcon,
111
+ Q as FiltersButton,
112
+ Qo as FlagIcon,
113
+ Vo as GroupByIcon,
114
+ Yo as HideIcon,
115
+ Er as ImageIcon,
116
+ Gr as InfoIcon,
117
+ Rr as JarIcon,
118
+ Zo as LaunchTypeIcon,
119
+ _o as MaximizeIcon,
120
+ Qr as MeatballMenuIcon,
121
+ Zr as MinusIcon,
122
+ Y as Modal,
123
+ $o as MoveToFolderIcon,
124
+ _ as MultipleAutocomplete,
125
+ Br as OpenEyeIcon,
126
+ ro as Pagination,
127
+ Or as PdfIcon,
128
+ or as PinFilledIcon,
129
+ rr as PinOutlineIcon,
130
+ $r as PlusIcon,
131
+ to as Popover,
132
+ re as PrevChapterIcon,
133
+ ee as PrevPageIcon,
134
+ er as PriorityBlockerIcon,
135
+ tr as PriorityCriticalIcon,
136
+ ar as PriorityHighIcon,
137
+ nr as PriorityLowIcon,
138
+ cr as PriorityMediumIcon,
139
+ pr as PriorityUnspecifiedIcon,
140
+ no as Radio,
141
+ ir as RefreshIcon,
142
+ mr as RerunIcon,
143
+ sr as RunManualIcon,
144
+ Ir as SearchIcon,
145
+ po as Selection,
146
+ ho as SidePanel,
147
+ $ as SingleAutocomplete,
148
+ lr as SortIcon,
149
+ So as SortableItem,
150
+ Po as SortableList,
151
+ mo as SpinLoader,
152
+ xr as StatusSuccessIcon,
153
+ Wr as SuccessIcon,
154
+ Io as SystemAlert,
155
+ xo as SystemMessage,
156
+ Co as Table,
157
+ fr as TestPlanIcon,
158
+ Do as ThemeProvider,
159
+ yo as Toggle,
160
+ Ao as Tooltip,
161
+ Vr as TreeIcon,
162
+ dr as UserIcon,
163
+ ur as WarningIcon,
164
+ Ur as XlsIcon
165
+ };
@@ -0,0 +1,38 @@
1
+ function e(t) {
2
+ return Number.isSafeInteger(t) && t >= 0;
3
+ }
4
+ function o(t) {
5
+ return t != null && typeof t != "function" && e(t.length);
6
+ }
7
+ function i(t) {
8
+ return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(t);
9
+ }
10
+ function f(t) {
11
+ return ArrayBuffer.isView(t) && !(t instanceof DataView);
12
+ }
13
+ function c(t) {
14
+ return t !== null && typeof t == "object" && i(t) === "[object Arguments]";
15
+ }
16
+ function s(t) {
17
+ const n = t == null ? void 0 : t.constructor, r = typeof n == "function" ? n.prototype : Object.prototype;
18
+ return t === r;
19
+ }
20
+ function p(t) {
21
+ return f(t);
22
+ }
23
+ function y(t) {
24
+ if (t == null)
25
+ return !0;
26
+ if (o(t))
27
+ return typeof t.splice != "function" && typeof t != "string" && (typeof Buffer > "u" || !Buffer.isBuffer(t)) && !p(t) && !c(t) ? !1 : t.length === 0;
28
+ if (typeof t == "object") {
29
+ if (t instanceof Map || t instanceof Set)
30
+ return t.size === 0;
31
+ const n = Object.keys(t);
32
+ return s(t) ? n.filter((r) => r !== "constructor").length === 0 : n.length === 0;
33
+ }
34
+ return !0;
35
+ }
36
+ export {
37
+ y as i
38
+ };
@@ -0,0 +1,4 @@
1
+ var E = /* @__PURE__ */ ((_) => (_[_.BACKSPACE_KEY_CODE = 8] = "BACKSPACE_KEY_CODE", _[_.TAB_KEY_CODE = 9] = "TAB_KEY_CODE", _[_.ENTER_KEY_CODE = 13] = "ENTER_KEY_CODE", _[_.ESCAPE_KEY_CODE = 27] = "ESCAPE_KEY_CODE", _[_.SPACE_KEY_CODE = 32] = "SPACE_KEY_CODE", _[_.ARROW_LEFT_KEY_CODE = 37] = "ARROW_LEFT_KEY_CODE", _[_.ARROW_UP_KEY_CODE = 38] = "ARROW_UP_KEY_CODE", _[_.ARROW_RIGHT_KEY_CODE = 39] = "ARROW_RIGHT_KEY_CODE", _[_.ARROW_DOWN_KEY_CODE = 40] = "ARROW_DOWN_KEY_CODE", _[_.DELETE_KEY_CODE = 46] = "DELETE_KEY_CODE", _[_.NUMBER_START_KEY_CODE = 48] = "NUMBER_START_KEY_CODE", _[_.NUMBER_END_KEY_CODE = 57] = "NUMBER_END_KEY_CODE", _[_.NUM_LOCK_0_KEY_CODE = 96] = "NUM_LOCK_0_KEY_CODE", _[_.NUM_LOCK_1_KEY_CODE = 97] = "NUM_LOCK_1_KEY_CODE", _[_.NUM_LOCK_2_KEY_CODE = 98] = "NUM_LOCK_2_KEY_CODE", _[_.NUM_LOCK_3_KEY_CODE = 99] = "NUM_LOCK_3_KEY_CODE", _[_.NUM_LOCK_4_KEY_CODE = 100] = "NUM_LOCK_4_KEY_CODE", _[_.NUM_LOCK_5_KEY_CODE = 101] = "NUM_LOCK_5_KEY_CODE", _[_.NUM_LOCK_6_KEY_CODE = 102] = "NUM_LOCK_6_KEY_CODE", _[_.NUM_LOCK_7_KEY_CODE = 103] = "NUM_LOCK_7_KEY_CODE", _[_.NUM_LOCK_8_KEY_CODE = 104] = "NUM_LOCK_8_KEY_CODE", _[_.NUM_LOCK_9_KEY_CODE = 105] = "NUM_LOCK_9_KEY_CODE", _))(E || {});
2
+ export {
3
+ E as K
4
+ };
@@ -0,0 +1,13 @@
1
+ import { jsxs as r } from "react/jsx-runtime";
2
+ const t = (s) => typeof s == "number" && Number.isFinite(s) && Number.isInteger(s) && s > 0, p = ({
3
+ className: s,
4
+ value: e,
5
+ maxValue: n
6
+ }) => t(n) ? /* @__PURE__ */ r("span", { className: s, children: [
7
+ e,
8
+ "/",
9
+ n
10
+ ] }) : null;
11
+ export {
12
+ p as M
13
+ };
@@ -0,0 +1,6 @@
1
+ import { M as o } from "./maxValueDisplay-9be01a75.js";
2
+ import "react/jsx-runtime";
3
+ export {
4
+ o as MaxValueDisplay,
5
+ o as default
6
+ };
@@ -0,0 +1,5 @@
1
+ import * as e from "react";
2
+ const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "#C1C7D0", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.31082 7.31081C2.94108 7.30926 2.6426 7.60773 2.64415 7.97748C2.64571 8.34722 2.9467 8.64822 3.31645 8.64977L12.6892 8.68919C13.0589 8.69074 13.3574 8.39227 13.3559 8.02252C13.3543 7.65278 13.0533 7.35178 12.6836 7.35023L3.31082 7.31081Z" }));
3
+ export {
4
+ l as S
5
+ };
package/dist/modal.js ADDED
@@ -0,0 +1,194 @@
1
+ import { jsx as t, jsxs as u, Fragment as F } from "react/jsx-runtime";
2
+ import { useRef as C, useEffect as w, useState as y, useMemo as G } from "react";
3
+ import { Scrollbars as K } from "rc-scrollbars";
4
+ import { AnimatePresence as U, motion as Y } from "framer-motion";
5
+ import { c as x } from "./bind-06a7ff84.js";
6
+ import "react-dnd";
7
+ import "react-dnd-html5-backend";
8
+ import { a as X } from "./dropdown-893c692c.js";
9
+ import { K as J } from "./keyCodes-f63c0e11.js";
10
+ import { B as D } from "./button-97d9e587.js";
11
+ import { Tooltip as Q } from "./tooltip.js";
12
+ import { B as V } from "./baseIconButton-251479f7.js";
13
+ import { S as Z } from "./close-4d480ef7.js";
14
+ import "react-dom";
15
+ import "@floating-ui/react-dom";
16
+ import "downshift";
17
+ import "./clear-53660571.js";
18
+ import "./dropdown-0260bb66.js";
19
+ import "./fieldLabel.js";
20
+ import "./adaptiveTagList.js";
21
+ import "./isEmpty-ccacb5ff.js";
22
+ import "./checkbox-ed6cc375.js";
23
+ import "@floating-ui/react";
24
+ import "./floatingUi-41f8c7b5.js";
25
+ function tt(e, o, n) {
26
+ const c = C(n);
27
+ w(() => {
28
+ c.current = n;
29
+ }, [n]), w(() => {
30
+ if (!o)
31
+ return;
32
+ const s = (a) => {
33
+ var r, d;
34
+ if (e && e.current && !e.current.contains(a.target)) {
35
+ const l = a.target;
36
+ ((d = (r = c.current) == null ? void 0 : r.ignoreSelectors) == null ? void 0 : d.some(
37
+ (v) => l == null ? void 0 : l.closest(v)
38
+ )) || o(a);
39
+ }
40
+ };
41
+ return document.addEventListener("pointerdown", s), () => {
42
+ document.removeEventListener("pointerdown", s);
43
+ };
44
+ }, [e, o]);
45
+ }
46
+ const et = () => {
47
+ const [e, o] = y({ width: 0, height: 0 });
48
+ return w(() => {
49
+ const n = () => {
50
+ o({
51
+ width: window.innerWidth,
52
+ height: window.innerHeight
53
+ });
54
+ };
55
+ return window.addEventListener("resize", n), n(), () => window.removeEventListener("resize", n);
56
+ }, []), e;
57
+ }, ot = "_scrollable_zh8d2_12", nt = {
58
+ "modal-content": "_modal-content_zh8d2_1",
59
+ scrollable: ot
60
+ }, it = x.bind(nt), S = ({ scrollable: e = !1, children: o }) => /* @__PURE__ */ t("div", { className: it("modal-content", { scrollable: e }), children: o }), st = {
61
+ "buttons-block": "_buttons-block_1mwne_1",
62
+ "button-container": "_button-container_1mwne_7",
63
+ "modal-footer": "_modal-footer_1mwne_12",
64
+ "with-extra-node": "_with-extra-node_1mwne_19",
65
+ "size-small": "_size-small_1mwne_23"
66
+ }, p = x.bind(st), lt = ({
67
+ footerNode: e,
68
+ closeHandler: o,
69
+ okButton: n,
70
+ cancelButton: c,
71
+ size: s
72
+ }) => {
73
+ const { tooltipNode: a, ...r } = n || {}, d = () => {
74
+ const l = /* @__PURE__ */ t(D, { adjustWidthOn: s === "small" ? "parent" : "min-width", ...r });
75
+ return a ? /* @__PURE__ */ t(Q, { content: a, placement: "top", width: 270, children: l }) : l;
76
+ };
77
+ return /* @__PURE__ */ u("div", { className: p("modal-footer", { "with-extra-node": e, [`size-${s}`]: s }), children: [
78
+ e && e,
79
+ /* @__PURE__ */ u("div", { className: p("buttons-block"), children: [
80
+ c && /* @__PURE__ */ t("div", { className: p("button-container"), children: /* @__PURE__ */ t(
81
+ D,
82
+ {
83
+ variant: "ghost",
84
+ adjustWidthOn: s === "small" ? "parent" : "min-width",
85
+ onClick: o,
86
+ ...c
87
+ }
88
+ ) }),
89
+ n && /* @__PURE__ */ t("div", { className: p("button-container"), children: d() })
90
+ ] })
91
+ ] });
92
+ }, at = {
93
+ "modal-header": "_modal-header_w4aaf_1",
94
+ "width-description": "_width-description_w4aaf_10",
95
+ "modal-header-content": "_modal-header-content_w4aaf_14",
96
+ "modal-title": "_modal-title_w4aaf_20",
97
+ "close-modal-icon": "_close-modal-icon_w4aaf_29"
98
+ }, f = x.bind(at), rt = ({ title: e, onClose: o, withDescription: n = !1 }) => /* @__PURE__ */ u("div", { className: f("modal-header", { "width-description": n }), children: [
99
+ /* @__PURE__ */ t("div", { className: f("modal-header-content"), children: e && /* @__PURE__ */ t("div", { className: f("modal-title"), children: e }) }),
100
+ /* @__PURE__ */ t(V, { className: f("close-modal-icon"), onClick: o, children: /* @__PURE__ */ t(Z, {}) })
101
+ ] }), ct = "_modal_yxql5_1", dt = "_description_yxql5_43", mt = "_scrollable_yxql5_53", _t = {
102
+ modal: ct,
103
+ "overlay-default": "_overlay-default_yxql5_12",
104
+ "overlay-light-cyan": "_overlay-light-cyan_yxql5_16",
105
+ "scrolling-content": "_scrolling-content_yxql5_20",
106
+ "modal-window": "_modal-window_yxql5_26",
107
+ description: dt,
108
+ scrollable: mt,
109
+ "size-default": "_size-default_yxql5_57",
110
+ "size-small": "_size-small_yxql5_69",
111
+ "size-large": "_size-large_yxql5_81"
112
+ }, g = x.bind(_t), ut = 0.9, ht = 32 + 24, wt = 32 + 8, pt = 36 + 16, ft = 32 * 2, Bt = ({
113
+ title: e,
114
+ children: o,
115
+ footerNode: n,
116
+ okButton: c,
117
+ cancelButton: s,
118
+ className: a,
119
+ size: r = "default",
120
+ onClose: d = () => {
121
+ },
122
+ overlay: l = "default",
123
+ zIndex: E = 2,
124
+ allowCloseOutside: v = !0,
125
+ scrollable: H = !1,
126
+ withoutFooter: O = !1,
127
+ createFooter: M = null,
128
+ description: m = null
129
+ }) => {
130
+ const [I, N] = y(!1), [L, R] = y(0), [k, $] = y(!1), _ = C(null), A = et(), T = A.height, q = T * ut, b = (T - L) / 2, W = () => {
131
+ let i = q - ft;
132
+ return O || (i = i - pt), m ? i = i - wt : i = i - ht, i;
133
+ }, h = () => {
134
+ N(!1);
135
+ }, z = (i) => {
136
+ const { keyCode: j } = i;
137
+ j === J.ESCAPE_KEY_CODE && h();
138
+ }, P = () => {
139
+ var i;
140
+ k || ((i = _.current) == null || i.focus(), $(!0));
141
+ };
142
+ w(() => {
143
+ if (_ && _.current) {
144
+ const { clientHeight: i } = _.current;
145
+ R(i);
146
+ }
147
+ }, [o, A]), w(() => (N(!0), document.addEventListener("keydown", z, !1), () => document.removeEventListener("keydown", z, !1)), []);
148
+ const B = G(
149
+ () => ({
150
+ ignoreSelectors: [`[${X}]`]
151
+ }),
152
+ []
153
+ );
154
+ return tt(_, v ? h : void 0, B), /* @__PURE__ */ t(U, { onExitComplete: d, children: I && /* @__PURE__ */ t("div", { className: g("modal", { [`overlay-${l}`]: l }), style: { zIndex: E }, children: /* @__PURE__ */ u(
155
+ Y.div,
156
+ {
157
+ className: g("modal-window", { [`size-${r}`]: r }, a),
158
+ ref: _,
159
+ tabIndex: 0,
160
+ initial: { opacity: 0, marginTop: -b },
161
+ animate: { opacity: 1, marginTop: b },
162
+ exit: { opacity: 0, marginTop: -b },
163
+ transition: { duration: 0.3 },
164
+ onAnimationStart: P,
165
+ children: [
166
+ /* @__PURE__ */ t(rt, { title: e, onClose: h, withDescription: !!m }),
167
+ H ? /* @__PURE__ */ u(K, { autoHeight: !0, autoHeightMax: W(), hideTracksWhenNotNeeded: !0, children: [
168
+ m && /* @__PURE__ */ t("span", { className: g("description", { scrollable: H }), children: m }),
169
+ /* @__PURE__ */ t(S, { scrollable: !0, children: o })
170
+ ] }) : /* @__PURE__ */ u(F, { children: [
171
+ m && /* @__PURE__ */ t("span", { className: g("description"), children: m }),
172
+ /* @__PURE__ */ t(S, { children: o })
173
+ ] }),
174
+ !O && (M ? M(h) : /* @__PURE__ */ t(
175
+ lt,
176
+ {
177
+ size: r,
178
+ footerNode: n,
179
+ okButton: c,
180
+ cancelButton: s,
181
+ closeHandler: h
182
+ }
183
+ ))
184
+ ]
185
+ },
186
+ "modal-window"
187
+ ) }) });
188
+ };
189
+ export {
190
+ Bt as Modal,
191
+ S as ModalContent,
192
+ lt as ModalFooter,
193
+ rt as ModalHeader
194
+ };
@@ -0,0 +1,6 @@
1
+ import * as e from "react";
2
+ const l = (C) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...C }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.09194 3.90153C8.73249 3.84853 8.36745 3.82135 7.99778 3.82135C5.24735 3.82135 2.75312 5.32613 0.912626 7.77031C0.762442 7.97055 0.762442 8.25031 0.912626 8.45055C1.96494 9.84971 3.23098 10.9408 4.63642 11.6187L5.59679 9.95532C5.16732 9.39694 4.92809 8.68447 4.97644 7.91459C5.07067 6.40686 6.29276 5.18478 7.80049 5.09055C8.00285 5.07782 8.2013 5.08498 8.39407 5.11028L9.09194 3.90153ZM7.56961 6.5383C6.91222 6.71981 6.41543 7.30478 6.37225 8.00589C6.36032 8.18701 6.37814 8.36223 6.42131 8.5272L7.56961 6.5383ZM8.40613 9.68939L9.57119 7.67146C9.61868 7.84288 9.6387 8.02571 9.62624 8.21497C9.58001 8.92637 9.07238 9.51681 8.40613 9.68939ZM7.58518 11.1113C7.78307 11.1384 7.98701 11.1463 8.19509 11.1332C9.69987 11.0361 10.922 9.81398 11.0191 8.3092C11.0679 7.53332 10.8245 6.81576 10.3887 6.25546L11.3454 4.59845C12.7563 5.27587 14.0272 6.36953 15.0829 7.77325C15.2331 7.9735 15.2331 8.25325 15.0829 8.4535C13.2424 10.8977 10.7482 12.4025 7.99778 12.4025C7.62256 12.4025 7.25211 12.3744 6.88743 12.3199L7.58518 11.1113Z", fill: "#A2AAB5" }), /* @__PURE__ */ e.createElement("path", { d: "M10.5051 2.25952C10.7122 1.9008 11.1709 1.7779 11.5296 1.985C11.8883 2.19211 12.0112 2.6508 11.8041 3.00952L5.35413 14.1812C5.14702 14.54 4.68833 14.6629 4.32961 14.4558C3.97089 14.2487 3.84798 13.79 4.05509 13.4312L10.5051 2.25952Z", fill: "#A2AAB5" })), t = (C) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...C }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.99778 3.82135C5.24735 3.82135 2.75312 5.32613 0.912626 7.77031C0.762442 7.97055 0.762442 8.25031 0.912626 8.45055C2.75312 10.8977 5.24735 12.4025 7.99778 12.4025C10.7482 12.4025 13.2424 10.8977 15.0829 8.4535C15.2331 8.25325 15.2331 7.9735 15.0829 7.77325C13.2424 5.32614 10.7482 3.82135 7.99778 3.82135ZM8.19509 11.1332C6.36932 11.2481 4.86159 9.74331 4.97644 7.91459C5.07067 6.40686 6.29276 5.18478 7.80049 5.09055C9.62625 4.9757 11.134 6.48048 11.0191 8.3092C10.922 9.81398 9.69987 11.0361 8.19509 11.1332ZM6.37225 8.00589C6.30746 8.98945 7.12022 9.79926 8.10378 9.73742C8.9136 9.68736 9.57323 9.03068 9.62624 8.21497C9.69102 7.23141 8.87826 6.4216 7.8947 6.48344C7.08194 6.53644 6.42231 7.19313 6.37225 8.00589Z", fill: "#A2AAB5" }));
3
+ export {
4
+ l as S,
5
+ t as a
6
+ };