@reportportal/ui-kit 0.0.1-alpha.1 → 0.0.1-alpha.100

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 (206) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +255 -3
  3. package/dist/arrowUp-4a5caee7.js +6 -0
  4. package/dist/attachedFile.js +9 -0
  5. package/dist/baseIconButton-251479f7.js +25 -0
  6. package/dist/baseIconButton.js +7 -0
  7. package/dist/bind-06a7ff84.js +41 -0
  8. package/dist/breadcrumbs-8e5ca8d7.js +183 -0
  9. package/dist/breadcrumbs.js +11 -0
  10. package/dist/bubblesLoader-f3ffa240.js +28 -0
  11. package/dist/bubblesLoader.js +7 -0
  12. package/dist/button-97d9e587.js +66 -0
  13. package/dist/button.js +3 -3
  14. package/dist/calendarArrow-44c7e60e.js +5 -0
  15. package/dist/checkbox-ed6cc375.js +73 -0
  16. package/dist/checkbox.js +4 -3
  17. package/dist/close-4d480ef7.js +5 -0
  18. package/dist/common/constants/keyCodes.d.ts +24 -0
  19. package/dist/common/hooks/index.d.ts +2 -0
  20. package/dist/common/hooks/useOnClickOutside.d.ts +3 -0
  21. package/dist/common/hooks/useWindowResize.d.ts +4 -0
  22. package/dist/common/types.d.ts +4 -0
  23. package/dist/common/utils/getFileExtension.d.ts +1 -0
  24. package/dist/common/utils/index.d.ts +1 -0
  25. package/dist/components/attachedFile/attachedFile.d.ts +14 -0
  26. package/dist/components/attachedFile/index.d.ts +2 -0
  27. package/dist/components/baseIconButton/baseIconButton.d.ts +9 -0
  28. package/dist/components/baseIconButton/index.d.ts +5 -0
  29. package/dist/components/breadcrumbs/breadcrumb/breadcrumb.d.ts +10 -0
  30. package/dist/components/breadcrumbs/breadcrumb/index.d.ts +1 -0
  31. package/dist/components/breadcrumbs/breadcrumbs.d.ts +3 -0
  32. package/dist/components/breadcrumbs/breadcrumbsProvider/breadcrumbsProvider.d.ts +13 -0
  33. package/dist/components/breadcrumbs/breadcrumbsProvider/hooks.d.ts +3 -0
  34. package/dist/components/breadcrumbs/breadcrumbsProvider/index.d.ts +1 -0
  35. package/dist/components/breadcrumbs/hiddenBreadcrumbs/hiddenBreadcrumbs.d.ts +6 -0
  36. package/dist/components/breadcrumbs/hiddenBreadcrumbs/index.d.ts +2 -0
  37. package/dist/components/breadcrumbs/index.d.ts +5 -0
  38. package/dist/components/breadcrumbs/tree/index.d.ts +1 -0
  39. package/dist/components/breadcrumbs/tree/tree.d.ts +7 -0
  40. package/dist/components/breadcrumbs/types.d.ts +24 -0
  41. package/dist/components/bubblesLoader/bubblesLoader.d.ts +9 -0
  42. package/dist/components/bubblesLoader/index.d.ts +4 -0
  43. package/dist/components/button/button.d.ts +9 -9
  44. package/dist/components/button/index.d.ts +3 -1
  45. package/dist/components/checkbox/checkbox.d.ts +7 -8
  46. package/dist/components/checkbox/index.d.ts +1 -0
  47. package/dist/components/datePicker/datePicker.d.ts +25 -0
  48. package/dist/components/datePicker/header/datePickerHeader.d.ts +16 -0
  49. package/dist/components/datePicker/header/index.d.ts +4 -0
  50. package/dist/components/datePicker/index.d.ts +5 -0
  51. package/dist/components/datePicker/utils.d.ts +4 -0
  52. package/dist/components/dropdown/constants.d.ts +8 -0
  53. package/dist/components/dropdown/dropdown.d.ts +33 -0
  54. package/dist/components/dropdown/dropdownOption/dropdownOption.d.ts +4 -0
  55. package/dist/components/dropdown/dropdownOption/index.d.ts +4 -0
  56. package/dist/components/dropdown/index.d.ts +4 -0
  57. package/dist/components/dropdown/types.d.ts +23 -0
  58. package/dist/components/dropdown/utils.d.ts +5 -0
  59. package/dist/components/fieldLabel/fieldLabel.d.ts +7 -0
  60. package/dist/components/fieldLabel/index.d.ts +1 -0
  61. package/dist/components/fieldNumber/constants.d.ts +5 -0
  62. package/dist/components/fieldNumber/fieldNumber.d.ts +18 -0
  63. package/dist/components/fieldNumber/index.d.ts +4 -0
  64. package/dist/components/fieldText/fieldText.d.ts +32 -0
  65. package/dist/components/fieldText/index.d.ts +4 -0
  66. package/dist/components/fieldTextFlex/fieldTextFlex.d.ts +16 -0
  67. package/dist/components/fieldTextFlex/index.d.ts +4 -0
  68. package/dist/components/fileDropArea/attachedFilesList/attachedFilesList.d.ts +20 -0
  69. package/dist/components/fileDropArea/attachedFilesList/index.d.ts +5 -0
  70. package/dist/components/fileDropArea/browseButton/browseButton.d.ts +9 -0
  71. package/dist/components/fileDropArea/browseButton/index.d.ts +4 -0
  72. package/dist/components/fileDropArea/constants.d.ts +2 -0
  73. package/dist/components/fileDropArea/dropZone/dropZone.d.ts +10 -0
  74. package/dist/components/fileDropArea/dropZone/index.d.ts +4 -0
  75. package/dist/components/fileDropArea/errorMessage/errorMessage.d.ts +5 -0
  76. package/dist/components/fileDropArea/errorMessage/index.d.ts +4 -0
  77. package/dist/components/fileDropArea/fileDropArea.d.ts +19 -0
  78. package/dist/components/fileDropArea/fileDropAreaProvider/fileDropAreaProvider.d.ts +17 -0
  79. package/dist/components/fileDropArea/fileDropAreaProvider/index.d.ts +1 -0
  80. package/dist/components/fileDropArea/fileDropAreaProvider/useFileDropAreaContext.d.ts +3 -0
  81. package/dist/components/fileDropArea/hooks/index.d.ts +1 -0
  82. package/dist/components/fileDropArea/hooks/useFileDropArea.d.ts +13 -0
  83. package/dist/components/fileDropArea/hooks/useFileProcessing.d.ts +13 -0
  84. package/dist/components/fileDropArea/hooks/useOverlayDropArea.d.ts +22 -0
  85. package/dist/components/fileDropArea/index.d.ts +6 -0
  86. package/dist/components/fileDropArea/types.d.ts +57 -0
  87. package/dist/components/fileDropArea/utils/getValidationErrorMessage.d.ts +3 -0
  88. package/dist/components/fileDropArea/utils/index.d.ts +2 -0
  89. package/dist/components/fileDropArea/utils/validateFile.d.ts +3 -0
  90. package/dist/components/icons/index.d.ts +57 -0
  91. package/dist/components/index.d.ts +22 -0
  92. package/dist/components/maxValueDisplay/index.d.ts +4 -0
  93. package/dist/components/maxValueDisplay/maxValueDisplay.d.ts +8 -0
  94. package/dist/components/maxValueDisplay/utils/index.d.ts +1 -0
  95. package/dist/components/maxValueDisplay/utils/isPositiveInteger.d.ts +1 -0
  96. package/dist/components/modal/index.d.ts +4 -0
  97. package/dist/components/modal/modal.d.ts +25 -0
  98. package/dist/components/modal/modalContent/index.d.ts +1 -0
  99. package/dist/components/modal/modalContent/modalContent.d.ts +8 -0
  100. package/dist/components/modal/modalFooter/index.d.ts +2 -0
  101. package/dist/components/modal/modalFooter/modalFooter.d.ts +14 -0
  102. package/dist/components/modal/modalHeader/index.d.ts +1 -0
  103. package/dist/components/modal/modalHeader/modalHeader.d.ts +9 -0
  104. package/dist/components/modal/types.d.ts +6 -0
  105. package/dist/components/pagination/index.d.ts +5 -0
  106. package/dist/components/pagination/itemsCounter/index.d.ts +1 -0
  107. package/dist/components/pagination/itemsCounter/itemCounter.d.ts +10 -0
  108. package/dist/components/pagination/pageControls/activePage/activePage.d.ts +13 -0
  109. package/dist/components/pagination/pageControls/activePage/index.d.ts +1 -0
  110. package/dist/components/pagination/pageControls/activePage/pageSelector/index.d.ts +1 -0
  111. package/dist/components/pagination/pageControls/activePage/pageSelector/pageSelector.d.ts +11 -0
  112. package/dist/components/pagination/pageControls/index.d.ts +1 -0
  113. package/dist/components/pagination/pageControls/pageControls.d.ts +17 -0
  114. package/dist/components/pagination/pageControls/pageNavigator/bar/bar.d.ts +12 -0
  115. package/dist/components/pagination/pageControls/pageNavigator/bar/index.d.ts +1 -0
  116. package/dist/components/pagination/pageControls/pageNavigator/index.d.ts +1 -0
  117. package/dist/components/pagination/pageControls/pageNavigator/pageNavigator.d.ts +12 -0
  118. package/dist/components/pagination/pageSizeControl/index.d.ts +1 -0
  119. package/dist/components/pagination/pageSizeControl/pageSizeControl.d.ts +11 -0
  120. package/dist/components/pagination/pageSizeControl/sizeSelector/index.d.ts +1 -0
  121. package/dist/components/pagination/pageSizeControl/sizeSelector/sizeSelector.d.ts +9 -0
  122. package/dist/components/pagination/pagination.d.ts +23 -0
  123. package/dist/components/pagination/types.d.ts +2 -0
  124. package/dist/components/popover/index.d.ts +4 -0
  125. package/dist/components/popover/popover.d.ts +19 -0
  126. package/dist/components/radio/index.d.ts +5 -0
  127. package/dist/components/radio/radio.d.ts +17 -0
  128. package/dist/components/radio/radioGroup.d.ts +9 -0
  129. package/dist/components/selection/index.d.ts +5 -0
  130. package/dist/components/selection/selection.d.ts +12 -0
  131. package/dist/components/selection/types.d.ts +1 -0
  132. package/dist/components/spinLoader/index.d.ts +4 -0
  133. package/dist/components/spinLoader/spinLoader.d.ts +8 -0
  134. package/dist/components/systemAlert/index.d.ts +1 -0
  135. package/dist/components/systemAlert/systemAlert.d.ts +4 -0
  136. package/dist/components/systemAlert/types.d.ts +22 -0
  137. package/dist/components/systemMessage/index.d.ts +1 -0
  138. package/dist/components/systemMessage/systemMessage.d.ts +1 -0
  139. package/dist/components/table/constants.d.ts +2 -0
  140. package/dist/components/table/index.d.ts +4 -0
  141. package/dist/components/table/table.d.ts +4 -0
  142. package/dist/components/table/types.d.ts +52 -0
  143. package/dist/components/table/utils.d.ts +6 -0
  144. package/dist/components/themeProvider/index.d.ts +1 -0
  145. package/dist/components/themeProvider/themeProvider.d.ts +3 -1
  146. package/dist/components/toggle/index.d.ts +4 -0
  147. package/dist/components/toggle/toggle.d.ts +12 -0
  148. package/dist/components/tooltip/index.d.ts +1 -0
  149. package/dist/components/tooltip/tooltip.d.ts +23 -0
  150. package/dist/datePicker-efa4e2d6.js +194 -0
  151. package/dist/datePicker.js +27 -0
  152. package/dist/dropdown-0260bb66.js +5 -0
  153. package/dist/dropdown-ec754bbe.js +289 -0
  154. package/dist/dropdown.js +17 -0
  155. package/dist/fieldLabel.js +18 -0
  156. package/dist/fieldNumber-c9113a7f.js +135 -0
  157. package/dist/fieldNumber.js +12 -0
  158. package/dist/fieldText-ba8a917c.js +165 -0
  159. package/dist/fieldText.js +13 -0
  160. package/dist/fieldTextFlex-8afaab31.js +78 -0
  161. package/dist/fieldTextFlex.js +10 -0
  162. package/dist/fileDropArea.js +353 -0
  163. package/dist/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
  164. package/dist/fonts/OpenSans/OpenSans-Medium.ttf +0 -0
  165. package/dist/icons.js +71 -0
  166. package/dist/index-e27a72a8.js +99 -0
  167. package/dist/index.js +133 -10
  168. package/dist/keyCodes-f63c0e11.js +4 -0
  169. package/dist/maxValueDisplay-9be01a75.js +13 -0
  170. package/dist/maxValueDisplay.js +6 -0
  171. package/dist/modal.js +155 -0
  172. package/dist/openEye-7b9cf080.js +7 -0
  173. package/dist/pagination-43330c73.js +347 -0
  174. package/dist/pagination.js +20 -0
  175. package/dist/plus-0929dda4.js +6 -0
  176. package/dist/popover.js +99 -0
  177. package/dist/prevPage-87faf576.js +6 -0
  178. package/dist/radio-62546efa.js +76 -0
  179. package/dist/radio.js +9 -0
  180. package/dist/selection-9124d029.js +38 -0
  181. package/dist/selection.js +10 -0
  182. package/dist/spinLoader-c4a53718.js +11 -0
  183. package/dist/spinLoader.js +7 -0
  184. package/dist/style.css +1 -1
  185. package/dist/success-8fd8bd2c.js +7 -0
  186. package/dist/systemAlert.js +69 -0
  187. package/dist/systemMessage-924fdaa6.js +30 -0
  188. package/dist/systemMessage.js +5 -6
  189. package/dist/table-920fdad9.js +142 -0
  190. package/dist/table.js +11 -0
  191. package/dist/themeProvider-46c2be7b.js +23 -0
  192. package/dist/themeProvider.js +3 -3
  193. package/dist/toggle-304107fa.js +59 -0
  194. package/dist/toggle.js +9 -0
  195. package/dist/tooltip.js +101 -0
  196. package/dist/tree-c3dd3d45.js +6 -0
  197. package/dist/useOnClickOutside-c332f7d3.js +16 -0
  198. package/dist/xls-995781cc.js +11 -0
  199. package/package.json +107 -64
  200. package/dist/bind-e1346f99.js +0 -44
  201. package/dist/button-9e154905.js +0 -1867
  202. package/dist/checkbox-ae12c5f5.js +0 -74
  203. package/dist/constants/key-codes.d.ts +0 -4
  204. package/dist/jsx-runtime-2962e83b.js +0 -631
  205. package/dist/systemMessage-5dc0f1e6.js +0 -30
  206. package/dist/themeProvider-4c0ab2a2.js +0 -19
@@ -0,0 +1,99 @@
1
+ import { jsxs as o, jsx as a } from "react/jsx-runtime";
2
+ import { useMemo as r, useCallback as m } from "react";
3
+ import { c as w } from "./bind-06a7ff84.js";
4
+ import { S as C } from "./close-4d480ef7.js";
5
+ import { a as S, b as E, S as j, d as y, e as I, c as l, f as p } from "./xls-995781cc.js";
6
+ const k = (t) => {
7
+ var i;
8
+ const s = t.split(".");
9
+ return s.length > 1 && ((i = s.at(-1)) == null ? void 0 : i.toLowerCase()) || "";
10
+ }, L = {
11
+ "attached-file": "_attached-file_1od33_16",
12
+ "attached-file__file-name": "_attached-file__file-name_1od33_28",
13
+ "attached-file--failed": "_attached-file--failed_1od33_31",
14
+ "attached-file__name-text": "_attached-file__name-text_1od33_34",
15
+ "attached-file__icon": "_attached-file__icon_1od33_37",
16
+ "attached-file--uploading": "_attached-file--uploading_1od33_40",
17
+ "attached-file--full-width": "_attached-file--full-width_1od33_49",
18
+ "attached-file__file-icon": "_attached-file__file-icon_1od33_58",
19
+ "attached-file__info": "_attached-file__info_1od33_70",
20
+ "attached-file__download-icon": "_attached-file__download-icon_1od33_94",
21
+ "attached-file__file-details": "_attached-file__file-details_1od33_113",
22
+ "attached-file__error-message": "_attached-file__error-message_1od33_118",
23
+ "attached-file__upload-progress": "_attached-file__upload-progress_1od33_123",
24
+ "attached-file__upload-progress-bar": "_attached-file__upload-progress-bar_1od33_132",
25
+ "attached-file__remove-button": "_attached-file__remove-button_1od33_136"
26
+ }, e = w.bind(L), A = {
27
+ csv: j,
28
+ jar: y,
29
+ pdf: I,
30
+ jpg: l,
31
+ jpeg: l,
32
+ png: l,
33
+ gif: l,
34
+ svg: l,
35
+ webp: l,
36
+ xls: p,
37
+ xlsx: p
38
+ }, M = (t) => A[t.toLowerCase()] ?? E, X = ({
39
+ fileName: t,
40
+ size: s,
41
+ uploadingProgress: i = 0,
42
+ isUploadFailed: _ = !1,
43
+ uploadFailedMessage: g,
44
+ isUploading: c = !1,
45
+ isFullWidth: u = !1,
46
+ onDownload: h = () => {
47
+ },
48
+ onRemove: d
49
+ }) => {
50
+ const f = r(() => k(t), [t]), v = f.toUpperCase(), x = r(() => M(f), [f]), b = m(
51
+ (n) => {
52
+ n.stopPropagation(), d == null || d();
53
+ },
54
+ [d]
55
+ ), N = m(
56
+ (n) => {
57
+ n.stopPropagation(), !_ && !c && h();
58
+ },
59
+ [_, c, h]
60
+ );
61
+ return /* @__PURE__ */ o(
62
+ "div",
63
+ {
64
+ className: e("attached-file", {
65
+ "attached-file--failed": _,
66
+ "attached-file--uploading": c,
67
+ "attached-file--full-width": u
68
+ }),
69
+ children: [
70
+ /* @__PURE__ */ a("div", { className: e("attached-file__icon"), children: /* @__PURE__ */ a("div", { className: e("attached-file__file-icon"), children: /* @__PURE__ */ a(x, {}) }) }),
71
+ /* @__PURE__ */ o("div", { className: e("attached-file__info"), children: [
72
+ /* @__PURE__ */ o("button", { type: "button", className: e("attached-file__file-name"), onClick: N, children: [
73
+ /* @__PURE__ */ a("span", { className: e("attached-file__name-text"), children: t }),
74
+ !c && !_ && /* @__PURE__ */ a("span", { className: e("attached-file__download-icon"), children: /* @__PURE__ */ a(S, {}) })
75
+ ] }),
76
+ !_ && /* @__PURE__ */ o("div", { className: e("attached-file__file-details"), children: [
77
+ v,
78
+ ", ",
79
+ s,
80
+ " MB"
81
+ ] }),
82
+ _ && /* @__PURE__ */ a("div", { className: e("attached-file__error-message"), children: g })
83
+ ] }),
84
+ d && /* @__PURE__ */ a("button", { type: "button", className: e("attached-file__remove-button"), onClick: b, children: /* @__PURE__ */ a(C, {}) }),
85
+ c && i > 0 && /* @__PURE__ */ a("div", { className: e("attached-file__upload-progress"), children: /* @__PURE__ */ a(
86
+ "div",
87
+ {
88
+ className: e("attached-file__upload-progress-bar"),
89
+ style: { width: `${i}%` }
90
+ }
91
+ ) })
92
+ ]
93
+ }
94
+ );
95
+ };
96
+ export {
97
+ X as A,
98
+ k as g
99
+ };
package/dist/index.js CHANGED
@@ -1,13 +1,136 @@
1
- import { B as p } from "./button-9e154905.js";
2
- import { C as a } from "./checkbox-ae12c5f5.js";
3
- import { S as f } from "./systemMessage-5dc0f1e6.js";
4
- import { T as h } from "./themeProvider-4c0ab2a2.js";
5
- import "./jsx-runtime-2962e83b.js";
1
+ import { A as u } from "./index-e27a72a8.js";
2
+ import { B as F } from "./baseIconButton-251479f7.js";
3
+ import { B as D } from "./breadcrumbs-8e5ca8d7.js";
4
+ import { B as g } from "./bubblesLoader-f3ffa240.js";
5
+ import { B as h } from "./button-97d9e587.js";
6
+ import { C as y } from "./checkbox-ed6cc375.js";
7
+ import { D as M } from "./datePicker-efa4e2d6.js";
8
+ import "react-datepicker";
9
+ import { D as w } from "./dropdown-ec754bbe.js";
10
+ import { FieldLabel as k } from "./fieldLabel.js";
11
+ import { F as R } from "./fieldNumber-c9113a7f.js";
12
+ import { F as H } from "./fieldText-ba8a917c.js";
13
+ import { F as N } from "./fieldTextFlex-8afaab31.js";
14
+ import { FileDropArea as z, MIME_TYPES as W } from "./fileDropArea.js";
15
+ import { Modal as Y } from "./modal.js";
16
+ import { P as j } from "./pagination-43330c73.js";
17
+ import { Popover as G } from "./popover.js";
18
+ import { R as Q } from "./radio-62546efa.js";
19
+ import { S as Z } from "./selection-9124d029.js";
20
+ import { S as oo } from "./spinLoader-c4a53718.js";
21
+ import { SystemAlert as eo } from "./systemAlert.js";
22
+ import { S as to } from "./systemMessage-924fdaa6.js";
23
+ import { T as co } from "./table-920fdad9.js";
24
+ import { T as so } from "./themeProvider-46c2be7b.js";
25
+ import { T as Io } from "./toggle-304107fa.js";
26
+ import { Tooltip as xo } from "./tooltip.js";
27
+ import { AddCsvIcon as lo, AddImageIcon as So, AddJarIcon as uo, BreadcrumbsTreeIcon as Po, CalendarIcon as Fo, CheckmarkIcon as Co, ChevronDownDropdownIcon as Do, ChevronRightBreadcrumbsIcon as bo, CopyIcon as go, DeleteIcon as To, DragAndDropIcon as ho, DragNDropIcon as Bo, DurationIcon as yo, EditIcon as Ao, ExportIcon as Mo, FilterFilledIcon as vo, FilterOutlineIcon as wo, FlagIcon as Eo, HideIcon as ko, MaximizeIcon as Lo, MoveToFolderIcon as Ro, PriorityBlockerIcon as Oo, PriorityCriticalIcon as Ho, PriorityHighIcon as Jo, PriorityLowIcon as No, PriorityMediumIcon as Uo, PriorityUnspecifiedIcon as zo, RefreshIcon as Wo, RerunIcon as Xo, SearchIcon as Yo, SortIcon as _o, StatusSuccessIcon as jo, WarningIcon as qo } from "./icons.js";
28
+ import { S as Ko, a as Qo } from "./arrowUp-4a5caee7.js";
29
+ import { S as Zo } from "./calendarArrow-44c7e60e.js";
30
+ import { S as or, a as rr, b as er } from "./openEye-7b9cf080.js";
31
+ import { S as tr } from "./close-4d480ef7.js";
32
+ import { S as cr, a as pr, b as sr, c as mr, d as Ir, e as ir, f as xr } from "./xls-995781cc.js";
33
+ import { S as lr } from "./dropdown-0260bb66.js";
34
+ import { S as Sr, a as ur, b as Pr } from "./success-8fd8bd2c.js";
35
+ import { S as Cr, a as Dr } from "./tree-c3dd3d45.js";
36
+ import { S as gr, a as Tr } from "./plus-0929dda4.js";
37
+ import { S as Br, a as yr } from "./prevPage-87faf576.js";
38
+ import "react/jsx-runtime";
6
39
  import "react";
7
- import "./bind-e1346f99.js";
40
+ import "./bind-06a7ff84.js";
41
+ import "./keyCodes-f63c0e11.js";
42
+ import "react-datepicker/dist/es/index.js";
43
+ import "@floating-ui/react-dom";
44
+ import "downshift";
45
+ import "rc-scrollbars";
46
+ import "./useOnClickOutside-c332f7d3.js";
47
+ import "./maxValueDisplay-9be01a75.js";
48
+ import "react-dropzone";
49
+ import "framer-motion";
50
+ import "@floating-ui/react";
51
+ import "react-dom";
8
52
  export {
9
- p as Button,
10
- a as Checkbox,
11
- f as SystemMessage,
12
- h as ThemeProvider
53
+ lo as AddCsvIcon,
54
+ So as AddImageIcon,
55
+ uo as AddJarIcon,
56
+ Ko as ArrowDownIcon,
57
+ Qo as ArrowUpIcon,
58
+ u as AttachedFile,
59
+ F as BaseIconButton,
60
+ D as Breadcrumbs,
61
+ Po as BreadcrumbsTreeIcon,
62
+ g as BubblesLoader,
63
+ h as Button,
64
+ Zo as CalendarArrowIcon,
65
+ Fo as CalendarIcon,
66
+ y as Checkbox,
67
+ Co as CheckmarkIcon,
68
+ Do as ChevronDownDropdownIcon,
69
+ bo as ChevronRightBreadcrumbsIcon,
70
+ or as ClearIcon,
71
+ rr as CloseEyeIcon,
72
+ tr as CloseIcon,
73
+ go as CopyIcon,
74
+ cr as CsvIcon,
75
+ M as DatePicker,
76
+ To as DeleteIcon,
77
+ ho as DragAndDropIcon,
78
+ Bo as DragNDropIcon,
79
+ w as Dropdown,
80
+ lr as DropdownIcon,
81
+ yo as DurationIcon,
82
+ Ao as EditIcon,
83
+ Sr as ErrorIcon,
84
+ Mo as ExportIcon,
85
+ pr as ExternalLinkIcon,
86
+ k as FieldLabel,
87
+ R as FieldNumber,
88
+ H as FieldText,
89
+ N as FieldTextFlex,
90
+ z as FileDropArea,
91
+ sr as FileOtherIcon,
92
+ vo as FilterFilledIcon,
93
+ wo as FilterOutlineIcon,
94
+ Eo as FlagIcon,
95
+ ko as HideIcon,
96
+ mr as ImageIcon,
97
+ ur as InfoIcon,
98
+ Ir as JarIcon,
99
+ W as MIME_TYPES,
100
+ Lo as MaximizeIcon,
101
+ Cr as MeatballMenuIcon,
102
+ gr as MinusIcon,
103
+ Y as Modal,
104
+ Ro as MoveToFolderIcon,
105
+ er as OpenEyeIcon,
106
+ j as Pagination,
107
+ ir as PdfIcon,
108
+ Tr as PlusIcon,
109
+ G as Popover,
110
+ Br as PrevChapterIcon,
111
+ yr as PrevPageIcon,
112
+ Oo as PriorityBlockerIcon,
113
+ Ho as PriorityCriticalIcon,
114
+ Jo as PriorityHighIcon,
115
+ No as PriorityLowIcon,
116
+ Uo as PriorityMediumIcon,
117
+ zo as PriorityUnspecifiedIcon,
118
+ Q as Radio,
119
+ Wo as RefreshIcon,
120
+ Xo as RerunIcon,
121
+ Yo as SearchIcon,
122
+ Z as Selection,
123
+ _o as SortIcon,
124
+ oo as SpinLoader,
125
+ jo as StatusSuccessIcon,
126
+ Pr as SuccessIcon,
127
+ eo as SystemAlert,
128
+ to as SystemMessage,
129
+ co as Table,
130
+ so as ThemeProvider,
131
+ Io as Toggle,
132
+ xo as Tooltip,
133
+ Dr as TreeIcon,
134
+ qo as WarningIcon,
135
+ xr as XlsIcon
13
136
  };
@@ -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
+ };
package/dist/modal.js ADDED
@@ -0,0 +1,155 @@
1
+ import { jsx as e, jsxs as d, Fragment as P } from "react/jsx-runtime";
2
+ import { useState as p, useEffect as b, useRef as j } from "react";
3
+ import { Scrollbars as F } from "rc-scrollbars";
4
+ import { AnimatePresence as G, motion as K } from "framer-motion";
5
+ import { c as y } from "./bind-06a7ff84.js";
6
+ import { u as Y } from "./useOnClickOutside-c332f7d3.js";
7
+ import { K as U } from "./keyCodes-f63c0e11.js";
8
+ import { B as A } from "./button-97d9e587.js";
9
+ import { Tooltip as X } from "./tooltip.js";
10
+ import { B as J } from "./baseIconButton-251479f7.js";
11
+ import { S as Q } from "./close-4d480ef7.js";
12
+ import "react-dom";
13
+ import "@floating-ui/react";
14
+ const V = () => {
15
+ const [o, n] = p({ width: 0, height: 0 });
16
+ return b(() => {
17
+ const l = () => {
18
+ n({
19
+ width: window.innerWidth,
20
+ height: window.innerHeight
21
+ });
22
+ };
23
+ return window.addEventListener("resize", l), l(), () => window.removeEventListener("resize", l);
24
+ }, []), o;
25
+ }, Z = "_scrollable_zh8d2_12", ee = {
26
+ "modal-content": "_modal-content_zh8d2_1",
27
+ scrollable: Z
28
+ }, te = y.bind(ee), C = ({ scrollable: o = !1, children: n }) => /* @__PURE__ */ e("div", { className: te("modal-content", { scrollable: o }), children: n }), oe = {
29
+ "buttons-block": "_buttons-block_1mwne_1",
30
+ "button-container": "_button-container_1mwne_7",
31
+ "modal-footer": "_modal-footer_1mwne_12",
32
+ "with-extra-node": "_with-extra-node_1mwne_19",
33
+ "size-small": "_size-small_1mwne_23"
34
+ }, u = y.bind(oe), ne = ({
35
+ footerNode: o,
36
+ closeHandler: n,
37
+ okButton: l,
38
+ cancelButton: _,
39
+ size: a
40
+ }) => {
41
+ const { tooltipNode: h, ...c } = l || {}, g = () => {
42
+ const r = /* @__PURE__ */ e(A, { adjustWidthOn: a === "small" ? "parent" : "min-width", ...c });
43
+ return h ? /* @__PURE__ */ e(X, { content: h, placement: "top", width: 270, children: r }) : r;
44
+ };
45
+ return /* @__PURE__ */ d("div", { className: u("modal-footer", { "with-extra-node": o, [`size-${a}`]: a }), children: [
46
+ o && o,
47
+ /* @__PURE__ */ d("div", { className: u("buttons-block"), children: [
48
+ _ && /* @__PURE__ */ e("div", { className: u("button-container"), children: /* @__PURE__ */ e(
49
+ A,
50
+ {
51
+ variant: "ghost",
52
+ adjustWidthOn: a === "small" ? "parent" : "min-width",
53
+ onClick: n,
54
+ ..._
55
+ }
56
+ ) }),
57
+ l && /* @__PURE__ */ e("div", { className: u("button-container"), children: g() })
58
+ ] })
59
+ ] });
60
+ }, le = {
61
+ "modal-header": "_modal-header_w4aaf_1",
62
+ "width-description": "_width-description_w4aaf_10",
63
+ "modal-header-content": "_modal-header-content_w4aaf_14",
64
+ "modal-title": "_modal-title_w4aaf_20",
65
+ "close-modal-icon": "_close-modal-icon_w4aaf_29"
66
+ }, w = y.bind(le), ae = ({ title: o, onClose: n, withDescription: l = !1 }) => /* @__PURE__ */ d("div", { className: w("modal-header", { "width-description": l }), children: [
67
+ /* @__PURE__ */ e("div", { className: w("modal-header-content"), children: o && /* @__PURE__ */ e("div", { className: w("modal-title"), children: o }) }),
68
+ /* @__PURE__ */ e(J, { className: w("close-modal-icon"), onClick: n, children: /* @__PURE__ */ e(Q, {}) })
69
+ ] }), se = "_modal_yxql5_1", ie = "_description_yxql5_43", de = "_scrollable_yxql5_53", ce = {
70
+ modal: se,
71
+ "overlay-default": "_overlay-default_yxql5_12",
72
+ "overlay-light-cyan": "_overlay-light-cyan_yxql5_16",
73
+ "scrolling-content": "_scrolling-content_yxql5_20",
74
+ "modal-window": "_modal-window_yxql5_26",
75
+ description: ie,
76
+ scrollable: de,
77
+ "size-default": "_size-default_yxql5_57",
78
+ "size-small": "_size-small_yxql5_69",
79
+ "size-large": "_size-large_yxql5_81"
80
+ }, f = y.bind(ce), re = 0.9, me = 32 + 24, _e = 32 + 8, he = 36 + 16, ue = 32 * 2, ze = ({
81
+ title: o,
82
+ children: n,
83
+ footerNode: l,
84
+ okButton: _,
85
+ cancelButton: a,
86
+ className: h,
87
+ size: c = "default",
88
+ onClose: g = () => {
89
+ },
90
+ overlay: r = "default",
91
+ zIndex: T = 2,
92
+ allowCloseOutside: D = !0,
93
+ scrollable: v = !1,
94
+ withoutFooter: H = !1,
95
+ createFooter: E = null,
96
+ description: s = null
97
+ }) => {
98
+ const [S, M] = p(!1), [k, I] = p(0), [q, L] = p(!1), i = j(null), N = V(), O = N.height, $ = O * re, x = (O - k) / 2, R = () => {
99
+ let t = $ - ue;
100
+ return H || (t = t - he), s ? t = t - _e : t = t - me, t;
101
+ }, m = () => {
102
+ M(!1);
103
+ }, z = (t) => {
104
+ const { keyCode: B } = t;
105
+ B === U.ESCAPE_KEY_CODE && m();
106
+ }, W = () => {
107
+ var t;
108
+ q || ((t = i.current) == null || t.focus(), L(!0));
109
+ };
110
+ return b(() => {
111
+ if (i && i.current) {
112
+ const { clientHeight: t } = i.current;
113
+ I(t);
114
+ }
115
+ }, [n, N]), b(() => (M(!0), document.addEventListener("keydown", z, !1), () => document.removeEventListener("keydown", z, !1)), []), Y(i, D ? m : void 0), /* @__PURE__ */ e(G, { onExitComplete: g, children: S && /* @__PURE__ */ e("div", { className: f("modal", { [`overlay-${r}`]: r }), style: { zIndex: T }, children: /* @__PURE__ */ d(
116
+ K.div,
117
+ {
118
+ className: f("modal-window", { [`size-${c}`]: c }, h),
119
+ ref: i,
120
+ tabIndex: 0,
121
+ initial: { opacity: 0, marginTop: -x },
122
+ animate: { opacity: 1, marginTop: x },
123
+ exit: { opacity: 0, marginTop: -x },
124
+ transition: { duration: 0.3 },
125
+ onAnimationStart: W,
126
+ children: [
127
+ /* @__PURE__ */ e(ae, { title: o, onClose: m, withDescription: !!s }),
128
+ v ? /* @__PURE__ */ d(F, { autoHeight: !0, autoHeightMax: R(), hideTracksWhenNotNeeded: !0, children: [
129
+ s && /* @__PURE__ */ e("span", { className: f("description", { scrollable: v }), children: s }),
130
+ /* @__PURE__ */ e(C, { scrollable: !0, children: n })
131
+ ] }) : /* @__PURE__ */ d(P, { children: [
132
+ s && /* @__PURE__ */ e("span", { className: f("description"), children: s }),
133
+ /* @__PURE__ */ e(C, { children: n })
134
+ ] }),
135
+ !H && (E ? E(m) : /* @__PURE__ */ e(
136
+ ne,
137
+ {
138
+ size: c,
139
+ footerNode: l,
140
+ okButton: _,
141
+ cancelButton: a,
142
+ closeHandler: m
143
+ }
144
+ ))
145
+ ]
146
+ },
147
+ "modal-window"
148
+ ) }) });
149
+ };
150
+ export {
151
+ ze as Modal,
152
+ C as ModalContent,
153
+ ne as ModalFooter,
154
+ ae as ModalHeader
155
+ };
@@ -0,0 +1,7 @@
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: "M1 8C1 4.14001 4.14001 1 8 1C11.86 1 15 4.14001 15 8C15 11.8595 11.86 15 8 15C4.14001 15 1 11.8595 1 8ZM5 5.54545L5.54545 5L8 7.45455L10.4545 5L11 5.54545L8.54545 8L11 10.4545L10.4545 11L8 8.54545L5.54545 11L5 10.4545L7.45455 8L5 5.54545Z", 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: "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" })), n = (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
+ n as b
7
+ };