@reportportal/ui-kit 0.0.1-alpha.13 → 0.0.1-alpha.130

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 (231) hide show
  1. package/README.md +28 -2
  2. package/dist/attachedFile.js +9 -0
  3. package/dist/autocompletes.js +728 -0
  4. package/dist/baseIconButton-251479f7.js +25 -0
  5. package/dist/baseIconButton.js +1 -1
  6. package/dist/breadcrumbs-8e5ca8d7.js +183 -0
  7. package/dist/breadcrumbs.js +12 -0
  8. package/dist/bubblesLoader-f3ffa240.js +28 -0
  9. package/dist/bubblesLoader.js +1 -1
  10. package/dist/button-97d9e587.js +66 -0
  11. package/dist/button.js +1 -1
  12. package/dist/calendarArrow-44c7e60e.js +5 -0
  13. package/dist/checkbox-ed6cc375.js +73 -0
  14. package/dist/checkbox.js +1 -1
  15. package/dist/chevronDownDropdown-66f5b1af.js +7 -0
  16. package/dist/clear-53660571.js +5 -0
  17. package/dist/close-4d480ef7.js +5 -0
  18. package/dist/common/constants/floatingUi.d.ts +8 -0
  19. package/dist/common/hooks/useOnClickOutside.d.ts +5 -1
  20. package/dist/common/types.d.ts +4 -0
  21. package/dist/common/utils/floatingUi.d.ts +3 -0
  22. package/dist/common/utils/getFileExtension.d.ts +1 -0
  23. package/dist/common/utils/index.d.ts +3 -0
  24. package/dist/common/utils/isString.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/autocompletes/common/autocompleteMenu/autocompleteMenu.d.ts +10 -0
  28. package/dist/components/autocompletes/common/autocompleteMenu/index.d.ts +1 -0
  29. package/dist/components/autocompletes/common/autocompleteOption/autocompleteOption.d.ts +13 -0
  30. package/dist/components/autocompletes/common/autocompleteOption/index.d.ts +1 -0
  31. package/dist/components/autocompletes/common/autocompleteOptions.d.ts +19 -0
  32. package/dist/components/autocompletes/common/autocompletePrompt/autocompletePrompt.d.ts +7 -0
  33. package/dist/components/autocompletes/common/autocompletePrompt/index.d.ts +1 -0
  34. package/dist/components/autocompletes/common/index.d.ts +19 -0
  35. package/dist/components/autocompletes/constants.d.ts +2 -0
  36. package/dist/components/autocompletes/index.d.ts +3 -0
  37. package/dist/components/autocompletes/multipleAutocomplete/index.d.ts +17 -0
  38. package/dist/components/autocompletes/multipleAutocomplete/multipleAutocomplete.d.ts +49 -0
  39. package/dist/components/autocompletes/multipleAutocomplete/multipleDownshift.d.ts +25 -0
  40. package/dist/components/autocompletes/multipleAutocomplete/selectedItems/index.d.ts +1 -0
  41. package/dist/components/autocompletes/multipleAutocomplete/selectedItems/selectedItems.d.ts +35 -0
  42. package/dist/components/autocompletes/singleAutocomplete/index.d.ts +1 -0
  43. package/dist/components/autocompletes/singleAutocomplete/singleAutocomplete.d.ts +42 -0
  44. package/dist/components/autocompletes/types.d.ts +8 -0
  45. package/dist/components/autocompletes/utils.d.ts +5 -0
  46. package/dist/components/{icons/baseIconButton → baseIconButton}/baseIconButton.d.ts +1 -0
  47. package/dist/components/{icons/baseIconButton → baseIconButton}/index.d.ts +1 -0
  48. package/dist/components/breadcrumbs/breadcrumb/breadcrumb.d.ts +10 -0
  49. package/dist/components/breadcrumbs/breadcrumb/index.d.ts +1 -0
  50. package/dist/components/breadcrumbs/breadcrumbs.d.ts +3 -0
  51. package/dist/components/breadcrumbs/breadcrumbsProvider/breadcrumbsProvider.d.ts +13 -0
  52. package/dist/components/breadcrumbs/breadcrumbsProvider/hooks.d.ts +3 -0
  53. package/dist/components/breadcrumbs/breadcrumbsProvider/index.d.ts +1 -0
  54. package/dist/components/breadcrumbs/hiddenBreadcrumbs/hiddenBreadcrumbs.d.ts +6 -0
  55. package/dist/components/breadcrumbs/hiddenBreadcrumbs/index.d.ts +2 -0
  56. package/dist/components/breadcrumbs/index.d.ts +5 -0
  57. package/dist/components/breadcrumbs/tree/index.d.ts +1 -0
  58. package/dist/components/breadcrumbs/tree/tree.d.ts +7 -0
  59. package/dist/components/breadcrumbs/types.d.ts +24 -0
  60. package/dist/components/bubblesLoader/bubblesLoader.d.ts +2 -0
  61. package/dist/components/bubblesLoader/index.d.ts +1 -0
  62. package/dist/components/button/button.d.ts +5 -4
  63. package/dist/components/button/index.d.ts +1 -0
  64. package/dist/components/checkbox/checkbox.d.ts +2 -1
  65. package/dist/components/checkbox/index.d.ts +1 -0
  66. package/dist/components/datePicker/datePicker.d.ts +25 -0
  67. package/dist/components/datePicker/header/datePickerHeader.d.ts +16 -0
  68. package/dist/components/datePicker/header/index.d.ts +4 -0
  69. package/dist/components/datePicker/index.d.ts +5 -0
  70. package/dist/components/datePicker/utils.d.ts +4 -0
  71. package/dist/components/dropdown/constants.d.ts +3 -0
  72. package/dist/components/dropdown/dropdown.d.ts +36 -4
  73. package/dist/components/dropdown/dropdownOption/dropdownOption.d.ts +1 -0
  74. package/dist/components/dropdown/dropdownOption/index.d.ts +1 -0
  75. package/dist/components/dropdown/index.d.ts +2 -0
  76. package/dist/components/dropdown/types.d.ts +11 -0
  77. package/dist/components/dropdown/utils.d.ts +6 -2
  78. package/dist/components/fieldLabel/fieldLabel.d.ts +7 -0
  79. package/dist/components/fieldLabel/index.d.ts +1 -0
  80. package/dist/components/fieldNumber/constants.d.ts +1 -0
  81. package/dist/components/fieldNumber/fieldNumber.d.ts +3 -3
  82. package/dist/components/fieldNumber/index.d.ts +1 -0
  83. package/dist/components/fieldText/fieldText.d.ts +12 -4
  84. package/dist/components/fieldText/index.d.ts +1 -0
  85. package/dist/components/fieldTextFlex/fieldTextFlex.d.ts +5 -2
  86. package/dist/components/fieldTextFlex/index.d.ts +1 -0
  87. package/dist/components/fileDropArea/attachedFilesList/attachedFilesList.d.ts +21 -0
  88. package/dist/components/fileDropArea/attachedFilesList/index.d.ts +5 -0
  89. package/dist/components/fileDropArea/browseButton/browseButton.d.ts +9 -0
  90. package/dist/components/fileDropArea/browseButton/index.d.ts +4 -0
  91. package/dist/components/fileDropArea/constants.d.ts +2 -0
  92. package/dist/components/fileDropArea/dropZone/dropZone.d.ts +10 -0
  93. package/dist/components/fileDropArea/dropZone/index.d.ts +4 -0
  94. package/dist/components/fileDropArea/errorMessage/errorMessage.d.ts +5 -0
  95. package/dist/components/fileDropArea/errorMessage/index.d.ts +4 -0
  96. package/dist/components/fileDropArea/fileDropArea.d.ts +19 -0
  97. package/dist/components/fileDropArea/fileDropAreaProvider/fileDropAreaProvider.d.ts +17 -0
  98. package/dist/components/fileDropArea/fileDropAreaProvider/index.d.ts +1 -0
  99. package/dist/components/fileDropArea/fileDropAreaProvider/useFileDropAreaContext.d.ts +3 -0
  100. package/dist/components/fileDropArea/hooks/index.d.ts +1 -0
  101. package/dist/components/fileDropArea/hooks/useFileDropArea.d.ts +13 -0
  102. package/dist/components/fileDropArea/hooks/useFileProcessing.d.ts +13 -0
  103. package/dist/components/fileDropArea/hooks/useOverlayDropArea.d.ts +22 -0
  104. package/dist/components/fileDropArea/index.d.ts +6 -0
  105. package/dist/components/fileDropArea/types.d.ts +58 -0
  106. package/dist/components/fileDropArea/utils/getValidationErrorMessage.d.ts +3 -0
  107. package/dist/components/fileDropArea/utils/index.d.ts +2 -0
  108. package/dist/components/fileDropArea/utils/validateFile.d.ts +3 -0
  109. package/dist/components/filtersButton/filtersButton.d.ts +9 -0
  110. package/dist/components/filtersButton/index.d.ts +2 -0
  111. package/dist/components/icons/index.d.ts +63 -7
  112. package/dist/components/index.d.ts +22 -9
  113. package/dist/components/maxValueDisplay/index.d.ts +4 -0
  114. package/dist/components/maxValueDisplay/maxValueDisplay.d.ts +8 -0
  115. package/dist/components/maxValueDisplay/utils/index.d.ts +1 -0
  116. package/dist/components/maxValueDisplay/utils/isPositiveInteger.d.ts +1 -0
  117. package/dist/components/modal/index.d.ts +1 -0
  118. package/dist/components/modal/modal.d.ts +7 -3
  119. package/dist/components/modal/modalContent/modalContent.d.ts +2 -0
  120. package/dist/components/modal/modalFooter/modalFooter.d.ts +3 -1
  121. package/dist/components/modal/modalHeader/modalHeader.d.ts +2 -1
  122. package/dist/components/modal/types.d.ts +6 -0
  123. package/dist/components/pagination/index.d.ts +1 -0
  124. package/dist/components/pagination/itemsCounter/itemCounter.d.ts +1 -0
  125. package/dist/components/pagination/pageControls/activePage/activePage.d.ts +1 -0
  126. package/dist/components/pagination/pageControls/activePage/pageSelector/pageSelector.d.ts +1 -0
  127. package/dist/components/pagination/pageControls/pageControls.d.ts +1 -0
  128. package/dist/components/pagination/pageControls/pageNavigator/bar/bar.d.ts +1 -0
  129. package/dist/components/pagination/pageControls/pageNavigator/pageNavigator.d.ts +1 -0
  130. package/dist/components/pagination/pageSizeControl/pageSizeControl.d.ts +1 -0
  131. package/dist/components/pagination/pageSizeControl/sizeSelector/sizeSelector.d.ts +1 -0
  132. package/dist/components/pagination/pagination.d.ts +1 -0
  133. package/dist/components/popover/index.d.ts +4 -1
  134. package/dist/components/popover/popover.d.ts +3 -2
  135. package/dist/components/radio/index.d.ts +1 -0
  136. package/dist/components/radio/radio.d.ts +1 -0
  137. package/dist/components/radio/radioGroup.d.ts +1 -0
  138. package/dist/components/selection/index.d.ts +5 -0
  139. package/dist/components/selection/selection.d.ts +12 -0
  140. package/dist/components/selection/types.d.ts +1 -0
  141. package/dist/components/sidePanel/index.d.ts +2 -0
  142. package/dist/components/sidePanel/sidePanel.d.ts +17 -0
  143. package/dist/components/spinLoader/index.d.ts +4 -0
  144. package/dist/components/spinLoader/spinLoader.d.ts +8 -0
  145. package/dist/components/systemAlert/index.d.ts +1 -0
  146. package/dist/components/systemAlert/systemAlert.d.ts +4 -0
  147. package/dist/components/systemAlert/types.d.ts +22 -0
  148. package/dist/components/systemMessage/index.d.ts +1 -0
  149. package/dist/components/systemMessage/systemMessage.d.ts +1 -0
  150. package/dist/components/table/constants.d.ts +5 -0
  151. package/dist/components/table/hooks/index.d.ts +4 -0
  152. package/dist/components/table/hooks/useColumnWidths.d.ts +8 -0
  153. package/dist/components/table/hooks/useTableColumns.d.ts +13 -0
  154. package/dist/components/table/hooks/useTableExpansion.d.ts +15 -0
  155. package/dist/components/table/hooks/useTableHover.d.ts +10 -0
  156. package/dist/components/table/index.d.ts +2 -0
  157. package/dist/components/table/table.d.ts +1 -0
  158. package/dist/components/table/types.d.ts +25 -9
  159. package/dist/components/table/utils.d.ts +10 -1
  160. package/dist/components/themeProvider/index.d.ts +1 -0
  161. package/dist/components/themeProvider/themeProvider.d.ts +1 -0
  162. package/dist/components/toggle/index.d.ts +1 -0
  163. package/dist/components/toggle/toggle.d.ts +1 -0
  164. package/dist/components/tooltip/tooltip.d.ts +12 -2
  165. package/dist/datePicker-5b3b45b6.js +194 -0
  166. package/dist/datePicker.js +31 -0
  167. package/dist/dropdown-0260bb66.js +5 -0
  168. package/dist/dropdown-360803d5.js +550 -0
  169. package/dist/dropdown.js +12 -3
  170. package/dist/fieldLabel.js +18 -0
  171. package/dist/fieldNumber-d1b5a7a1.js +140 -0
  172. package/dist/fieldNumber.js +5 -2
  173. package/dist/fieldText-1749da7a.js +167 -0
  174. package/dist/fieldText.js +7 -2
  175. package/dist/fieldTextFlex-2f51c173.js +80 -0
  176. package/dist/fieldTextFlex.js +3 -1
  177. package/dist/fileDropArea.js +325 -0
  178. package/dist/filterOutline-819b4b0d.js +6 -0
  179. package/dist/filtersButton.js +25 -0
  180. package/dist/floatingUi-41f8c7b5.js +29 -0
  181. package/dist/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
  182. package/dist/fonts/OpenSans/OpenSans-Medium.ttf +0 -0
  183. package/dist/icons.js +85 -0
  184. package/dist/index-1a874a8b.js +110 -0
  185. package/dist/index.js +149 -50
  186. package/dist/isEmpty-ccacb5ff.js +38 -0
  187. package/dist/maxValueDisplay-9be01a75.js +13 -0
  188. package/dist/maxValueDisplay.js +6 -0
  189. package/dist/minus-2857540f.js +5 -0
  190. package/dist/modal.js +188 -14
  191. package/dist/openEye-950159cb.js +6 -0
  192. package/dist/pagination-a3dee614.js +347 -0
  193. package/dist/pagination.js +12 -5
  194. package/dist/plus-199fb2a8.js +5 -0
  195. package/dist/popover.js +58 -73
  196. package/dist/prevPage-87faf576.js +6 -0
  197. package/dist/radio-62546efa.js +76 -0
  198. package/dist/radio.js +1 -1
  199. package/dist/selection-9124d029.js +38 -0
  200. package/dist/selection.js +10 -0
  201. package/dist/sidePanel.js +88 -0
  202. package/dist/spinLoader-c4a53718.js +11 -0
  203. package/dist/spinLoader.js +7 -0
  204. package/dist/style.css +1 -1
  205. package/dist/success-8fd8bd2c.js +7 -0
  206. package/dist/systemAlert.js +69 -0
  207. package/dist/systemMessage-924fdaa6.js +30 -0
  208. package/dist/systemMessage.js +1 -1
  209. package/dist/table-8e223d5d.js +485 -0
  210. package/dist/table.js +3 -3
  211. package/dist/toggle-304107fa.js +59 -0
  212. package/dist/toggle.js +1 -1
  213. package/dist/tooltip.js +89 -56
  214. package/dist/tree-c3dd3d45.js +6 -0
  215. package/dist/xls-995781cc.js +11 -0
  216. package/package.json +47 -16
  217. package/dist/baseIconButton-7bc53dec.js +0 -25
  218. package/dist/bubblesLoader-a7e709d4.js +0 -17
  219. package/dist/button-7fb84fde.js +0 -62
  220. package/dist/checkbox-6777be17.js +0 -73
  221. package/dist/dropdown-e07f2a71.js +0 -212
  222. package/dist/fieldNumber-46fe79b9.js +0 -127
  223. package/dist/fieldText-d80b29ba.js +0 -102
  224. package/dist/fieldTextFlex-5bddf46a.js +0 -67
  225. package/dist/index-bb9b62ef.js +0 -131
  226. package/dist/pagination-5449cd03.js +0 -346
  227. package/dist/radio-fd49a09c.js +0 -76
  228. package/dist/systemMessage-1ced6079.js +0 -30
  229. package/dist/table-83e050dc.js +0 -147
  230. package/dist/toggle-707ecb74.js +0 -67
  231. package/dist/useOnClickOutside-c332f7d3.js +0 -16
@@ -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 CHANGED
@@ -1,58 +1,157 @@
1
- import { B as d } from "./button-7fb84fde.js";
2
- import { C as L } from "./checkbox-6777be17.js";
3
- import { S as g } from "./systemMessage-1ced6079.js";
4
- import { S as h, F as u } from "./fieldText-d80b29ba.js";
5
- import { T as I } from "./themeProvider-46c2be7b.js";
6
- import { S as H, M as S } from "./index-bb9b62ef.js";
7
- import { D as P, S as b } from "./dropdown-e07f2a71.js";
8
- import { T as R } from "./toggle-707ecb74.js";
9
- import { F as D, a as E, S as V } from "./fieldNumber-46fe79b9.js";
10
- import { B as y } from "./bubblesLoader-a7e709d4.js";
11
- import { F as U } from "./fieldTextFlex-5bddf46a.js";
12
- import { R as q } from "./radio-fd49a09c.js";
13
- import { Tooltip as G } from "./tooltip.js";
14
- import { Popover as K } from "./popover.js";
15
- import { P as Q, a as W, S as X } from "./pagination-5449cd03.js";
16
- import { S as _, a as $, T as e1 } from "./table-83e050dc.js";
17
- import { B as r1 } from "./baseIconButton-7bc53dec.js";
18
- import * as e from "react";
1
+ import { A as P } from "./index-1a874a8b.js";
2
+ import { B as F } from "./baseIconButton-251479f7.js";
3
+ import { B as D } from "./breadcrumbs-8e5ca8d7.js";
4
+ import { B } from "./bubblesLoader-f3ffa240.js";
5
+ import { B as b } from "./button-97d9e587.js";
6
+ import { C as A } from "./checkbox-ed6cc375.js";
7
+ import { D as M } from "./datePicker-5b3b45b6.js";
8
+ import "react-datepicker";
9
+ import { D as k } from "./dropdown-360803d5.js";
10
+ import { FieldLabel as L } from "./fieldLabel.js";
11
+ import { F as O } from "./fieldNumber-d1b5a7a1.js";
12
+ import { F as H } from "./fieldText-1749da7a.js";
13
+ import { F as N } from "./fieldTextFlex-2f51c173.js";
14
+ import { FileDropArea as G } from "./fileDropArea.js";
15
+ import { FiltersButton as X } from "./filtersButton.js";
16
+ import { Modal as q } from "./modal.js";
17
+ import { MultipleAutocomplete as Q, SingleAutocomplete as V } from "./autocompletes.js";
18
+ import { P as Z } from "./pagination-a3dee614.js";
19
+ import { Popover as $ } from "./popover.js";
20
+ import { R as ro } from "./radio-62546efa.js";
21
+ import { S as no } from "./selection-9124d029.js";
22
+ import { S as ao } from "./spinLoader-c4a53718.js";
23
+ import { SystemAlert as po } from "./systemAlert.js";
24
+ import { S as mo } from "./systemMessage-924fdaa6.js";
25
+ import { T as Io } from "./table-8e223d5d.js";
26
+ import { T as xo } from "./themeProvider-46c2be7b.js";
27
+ import { T as uo } from "./toggle-304107fa.js";
28
+ import { Tooltip as Po } from "./tooltip.js";
29
+ import { SidePanel as Fo } from "./sidePanel.js";
30
+ import { AddCsvIcon as Do, AddImageIcon as yo, AddJarIcon as Bo, BreadcrumbsTreeIcon as To, CalendarIcon as bo, CheckmarkIcon as ho, ChevronRightBreadcrumbsIcon as Ao, ConfigurationIcon as vo, CopyIcon as Mo, CoverageFullIcon as wo, CoveragePartialIcon as ko, CoveredManuallyIcon as Eo, DeleteIcon as Lo, DragAndDropIcon as Ro, DragNDropIcon as Oo, DurationIcon as Uo, EditIcon as Ho, ExportIcon as Jo, FlagIcon as No, GroupByIcon as zo, HideIcon as Go, LaunchTypeIcon as Wo, MaximizeIcon as Xo, MoveToFolderIcon as jo, PinFilledIcon as qo, PinOutlineIcon as Ko, PriorityBlockerIcon as Qo, PriorityCriticalIcon as Vo, PriorityHighIcon as Yo, PriorityLowIcon as Zo, PriorityMediumIcon as _o, PriorityUnspecifiedIcon as $o, RefreshIcon as or, RerunIcon as rr, RunManualIcon as er, SearchIcon as nr, SortIcon as tr, StatusSuccessIcon as ar, TestPlanIcon as cr, UserIcon as pr, WarningIcon as ir } from "./icons.js";
31
+ import { S as sr, a as Ir, b as lr } from "./chevronDownDropdown-66f5b1af.js";
32
+ import { S as fr } from "./calendarArrow-44c7e60e.js";
33
+ import { S as ur } from "./clear-53660571.js";
34
+ import { S as Pr, a as Cr } from "./openEye-950159cb.js";
35
+ import { S as gr } from "./close-4d480ef7.js";
36
+ import { S as yr, a as Br, b as Tr, c as br, d as hr, e as Ar, f as vr } from "./xls-995781cc.js";
37
+ import { S as wr } from "./dropdown-0260bb66.js";
38
+ import { S as Er, a as Lr, b as Rr } from "./success-8fd8bd2c.js";
39
+ import { S as Ur, a as Hr } from "./filterOutline-819b4b0d.js";
40
+ import { S as Nr, a as zr } from "./tree-c3dd3d45.js";
41
+ import { S as Wr } from "./minus-2857540f.js";
42
+ import { S as jr } from "./plus-199fb2a8.js";
43
+ import { S as Kr, a as Qr } from "./prevPage-87faf576.js";
19
44
  import "react/jsx-runtime";
45
+ import "react";
20
46
  import "./bind-06a7ff84.js";
21
47
  import "./keyCodes-f63c0e11.js";
22
- import "rc-scrollbars";
23
- import "framer-motion";
24
- import "./useOnClickOutside-c332f7d3.js";
48
+ import "react-datepicker/dist/es/index.js";
49
+ import "react-dom";
25
50
  import "@floating-ui/react-dom";
26
51
  import "downshift";
52
+ import "rc-scrollbars";
53
+ import "./maxValueDisplay-9be01a75.js";
54
+ import "./isEmpty-ccacb5ff.js";
55
+ import "react-dropzone";
56
+ import "framer-motion";
27
57
  import "@floating-ui/react";
28
- const i = (o) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...o }, /* @__PURE__ */ e.createElement("path", { d: "M9.80051 6.3661C9.95672 6.20989 10.21 6.20989 10.3662 6.3661L10.6338 6.63375C10.7901 6.78996 10.7901 7.04323 10.6338 7.19944L8.83331 8.99996L10.6338 10.8005C10.79 10.9567 10.79 11.2099 10.6338 11.3662L10.3662 11.6338C10.21 11.79 9.95669 11.79 9.80048 11.6338L7.99998 9.8333L6.19953 11.6338C6.04332 11.79 5.79005 11.79 5.63384 11.6338L5.36619 11.3661C5.20998 11.2099 5.20998 10.9566 5.36619 10.8004L7.16665 8.99996L5.36617 7.19949C5.20996 7.04328 5.20996 6.79001 5.36617 6.6338L5.63382 6.36615C5.79003 6.20994 6.04329 6.20994 6.1995 6.36615L7.99998 8.16663L9.80051 6.3661Z", fill: "#A2AAB5" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.99878 3V2C4.99878 1.44772 5.44649 1 5.99878 1H9.99878C10.5511 1 10.9988 1.44772 10.9988 2V3H14.5C14.7761 3 15 3.22386 15 3.5C15 3.77614 14.7761 4 14.5 4H13.4167L12.6146 13.6246C12.5498 14.402 11.8999 15 11.1198 15H4.8802C4.10007 15 3.45017 14.402 3.38538 13.6246L2.58333 4H1.5C1.22386 4 1 3.77614 1 3.5C1 3.22386 1.22386 3 1.5 3H4.99878ZM5.99878 2H9.99878V3H5.99878V2ZM3.5868 4L4.38193 13.5415C4.40352 13.8007 4.62016 14 4.8802 14H11.1198C11.3798 14 11.5965 13.8007 11.6181 13.5415L12.4132 4H3.5868Z", fill: "#A2AAB5" })), x = (o) => /* @__PURE__ */ e.createElement("svg", { width: 14, height: 3, viewBox: "0 0 14 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...o }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.30811 2.47803C1.72868 2.47803 2.05339 2.36206 2.28223 2.13013C2.51107 1.89819 2.62549 1.60596 2.62549 1.25342C2.62549 0.894694 2.51107 0.596273 2.28223 0.358154C2.05339 0.120036 1.72868 0.000976562 1.30811 0.000976562C0.893717 0.000976562 0.572103 0.120036 0.343262 0.358154C0.114421 0.596273 0 0.894694 0 1.25342C0 1.61214 0.117513 1.90592 0.352539 2.13477C0.587565 2.36361 0.906087 2.47803 1.30811 2.47803ZM6.61475 2.47803C7.03532 2.47803 7.36003 2.36206 7.58887 2.13013C7.81771 1.89819 7.93213 1.60596 7.93213 1.25342C7.93213 0.894694 7.81771 0.596273 7.58887 0.358154C7.36003 0.120036 7.03532 0.000976562 6.61475 0.000976562C6.20036 0.000976562 5.87874 0.120036 5.6499 0.358154C5.42106 0.596273 5.30664 0.894694 5.30664 1.25342C5.30664 1.61214 5.42415 1.90592 5.65918 2.13477C5.89421 2.36361 6.21273 2.47803 6.61475 2.47803ZM12.8955 2.13013C12.6667 2.36206 12.342 2.47803 11.9214 2.47803C11.5194 2.47803 11.2008 2.36361 10.9658 2.13477C10.7308 1.90592 10.6133 1.61214 10.6133 1.25342C10.6133 0.894694 10.7277 0.596273 10.9565 0.358154C11.1854 0.120036 11.507 0.000976562 11.9214 0.000976562C12.342 0.000976562 12.6667 0.120036 12.8955 0.358154C13.1243 0.596273 13.2388 0.894694 13.2388 1.25342C13.2388 1.60596 13.1243 1.89819 12.8955 2.13013Z", fill: "#A2AAB5" }));
58
+ import "./floatingUi-41f8c7b5.js";
29
59
  export {
30
- _ as ArrowDownIcon,
31
- $ as ArrowUpIcon,
32
- r1 as BaseIconButton,
33
- y as BubblesLoader,
34
- d as Button,
35
- L as Checkbox,
36
- h as ClearIcon,
37
- H as CloseIcon,
38
- i as DeleteIcon,
39
- P as Dropdown,
40
- b as DropdownIcon,
41
- D as FieldNumber,
42
- u as FieldText,
43
- U as FieldTextFlex,
44
- x as MeatballMenuIcon,
45
- E as MinusIcon,
46
- S as Modal,
47
- Q as Pagination,
48
- V as PlusIcon,
49
- K as Popover,
50
- W as PrevChapterIcon,
51
- X as PrevPageIcon,
52
- q as Radio,
53
- g as SystemMessage,
54
- e1 as Table,
55
- I as ThemeProvider,
56
- R as Toggle,
57
- G as Tooltip
60
+ Do as AddCsvIcon,
61
+ yo as AddImageIcon,
62
+ Bo as AddJarIcon,
63
+ sr as ArrowDownIcon,
64
+ Ir as ArrowUpIcon,
65
+ P as AttachedFile,
66
+ F as BaseIconButton,
67
+ D as Breadcrumbs,
68
+ To as BreadcrumbsTreeIcon,
69
+ B as BubblesLoader,
70
+ b as Button,
71
+ fr as CalendarArrowIcon,
72
+ bo as CalendarIcon,
73
+ A as Checkbox,
74
+ ho as CheckmarkIcon,
75
+ lr as ChevronDownDropdownIcon,
76
+ Ao as ChevronRightBreadcrumbsIcon,
77
+ ur as ClearIcon,
78
+ Pr as CloseEyeIcon,
79
+ gr as CloseIcon,
80
+ vo as ConfigurationIcon,
81
+ Mo as CopyIcon,
82
+ wo as CoverageFullIcon,
83
+ ko as CoveragePartialIcon,
84
+ Eo as CoveredManuallyIcon,
85
+ yr as CsvIcon,
86
+ M as DatePicker,
87
+ Lo as DeleteIcon,
88
+ Ro as DragAndDropIcon,
89
+ Oo as DragNDropIcon,
90
+ k as Dropdown,
91
+ wr as DropdownIcon,
92
+ Uo as DurationIcon,
93
+ Ho as EditIcon,
94
+ Er as ErrorIcon,
95
+ Jo as ExportIcon,
96
+ Br as ExternalLinkIcon,
97
+ L as FieldLabel,
98
+ O as FieldNumber,
99
+ H as FieldText,
100
+ N as FieldTextFlex,
101
+ G as FileDropArea,
102
+ Tr as FileOtherIcon,
103
+ Ur as FilterFilledIcon,
104
+ Hr as FilterOutlineIcon,
105
+ X as FiltersButton,
106
+ No as FlagIcon,
107
+ zo as GroupByIcon,
108
+ Go as HideIcon,
109
+ br as ImageIcon,
110
+ Lr as InfoIcon,
111
+ hr as JarIcon,
112
+ Wo as LaunchTypeIcon,
113
+ Xo as MaximizeIcon,
114
+ Nr as MeatballMenuIcon,
115
+ Wr as MinusIcon,
116
+ q as Modal,
117
+ jo as MoveToFolderIcon,
118
+ Q as MultipleAutocomplete,
119
+ Cr as OpenEyeIcon,
120
+ Z as Pagination,
121
+ Ar as PdfIcon,
122
+ qo as PinFilledIcon,
123
+ Ko as PinOutlineIcon,
124
+ jr as PlusIcon,
125
+ $ as Popover,
126
+ Kr as PrevChapterIcon,
127
+ Qr as PrevPageIcon,
128
+ Qo as PriorityBlockerIcon,
129
+ Vo as PriorityCriticalIcon,
130
+ Yo as PriorityHighIcon,
131
+ Zo as PriorityLowIcon,
132
+ _o as PriorityMediumIcon,
133
+ $o as PriorityUnspecifiedIcon,
134
+ ro as Radio,
135
+ or as RefreshIcon,
136
+ rr as RerunIcon,
137
+ er as RunManualIcon,
138
+ nr as SearchIcon,
139
+ no as Selection,
140
+ Fo as SidePanel,
141
+ V as SingleAutocomplete,
142
+ tr as SortIcon,
143
+ ao as SpinLoader,
144
+ ar as StatusSuccessIcon,
145
+ Rr as SuccessIcon,
146
+ po as SystemAlert,
147
+ mo as SystemMessage,
148
+ Io as Table,
149
+ cr as TestPlanIcon,
150
+ xo as ThemeProvider,
151
+ uo as Toggle,
152
+ Po as Tooltip,
153
+ zr as TreeIcon,
154
+ pr as UserIcon,
155
+ ir as WarningIcon,
156
+ vr as XlsIcon
58
157
  };
@@ -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,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 CHANGED
@@ -1,16 +1,190 @@
1
- import { M as s, a as n, c as b, b as c } from "./index-bb9b62ef.js";
2
- import "react/jsx-runtime";
3
- import "react";
4
- import "rc-scrollbars";
5
- import "framer-motion";
6
- import "./bind-06a7ff84.js";
7
- import "./useOnClickOutside-c332f7d3.js";
8
- import "./keyCodes-f63c0e11.js";
9
- import "./button-7fb84fde.js";
10
- import "./baseIconButton-7bc53dec.js";
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 { a as X } from "./dropdown-360803d5.js";
7
+ import { K as J } from "./keyCodes-f63c0e11.js";
8
+ import { B as D } from "./button-97d9e587.js";
9
+ import { Tooltip as Q } from "./tooltip.js";
10
+ import { B as V } from "./baseIconButton-251479f7.js";
11
+ import { S as Z } from "./close-4d480ef7.js";
12
+ import "react-dom";
13
+ import "@floating-ui/react-dom";
14
+ import "downshift";
15
+ import "./clear-53660571.js";
16
+ import "./dropdown-0260bb66.js";
17
+ import "./fieldLabel.js";
18
+ import "./checkbox-ed6cc375.js";
19
+ import "@floating-ui/react";
20
+ import "./floatingUi-41f8c7b5.js";
21
+ function tt(e, o, n) {
22
+ const c = C(n);
23
+ w(() => {
24
+ c.current = n;
25
+ }, [n]), w(() => {
26
+ if (!o)
27
+ return;
28
+ const s = (a) => {
29
+ var r, d;
30
+ if (e && e.current && !e.current.contains(a.target)) {
31
+ const l = a.target;
32
+ ((d = (r = c.current) == null ? void 0 : r.ignoreSelectors) == null ? void 0 : d.some(
33
+ (v) => l == null ? void 0 : l.closest(v)
34
+ )) || o(a);
35
+ }
36
+ };
37
+ return document.addEventListener("pointerdown", s), () => {
38
+ document.removeEventListener("pointerdown", s);
39
+ };
40
+ }, [e, o]);
41
+ }
42
+ const et = () => {
43
+ const [e, o] = y({ width: 0, height: 0 });
44
+ return w(() => {
45
+ const n = () => {
46
+ o({
47
+ width: window.innerWidth,
48
+ height: window.innerHeight
49
+ });
50
+ };
51
+ return window.addEventListener("resize", n), n(), () => window.removeEventListener("resize", n);
52
+ }, []), e;
53
+ }, ot = "_scrollable_zh8d2_12", nt = {
54
+ "modal-content": "_modal-content_zh8d2_1",
55
+ scrollable: ot
56
+ }, it = x.bind(nt), S = ({ scrollable: e = !1, children: o }) => /* @__PURE__ */ t("div", { className: it("modal-content", { scrollable: e }), children: o }), st = {
57
+ "buttons-block": "_buttons-block_1mwne_1",
58
+ "button-container": "_button-container_1mwne_7",
59
+ "modal-footer": "_modal-footer_1mwne_12",
60
+ "with-extra-node": "_with-extra-node_1mwne_19",
61
+ "size-small": "_size-small_1mwne_23"
62
+ }, f = x.bind(st), lt = ({
63
+ footerNode: e,
64
+ closeHandler: o,
65
+ okButton: n,
66
+ cancelButton: c,
67
+ size: s
68
+ }) => {
69
+ const { tooltipNode: a, ...r } = n || {}, d = () => {
70
+ const l = /* @__PURE__ */ t(D, { adjustWidthOn: s === "small" ? "parent" : "min-width", ...r });
71
+ return a ? /* @__PURE__ */ t(Q, { content: a, placement: "top", width: 270, children: l }) : l;
72
+ };
73
+ return /* @__PURE__ */ u("div", { className: f("modal-footer", { "with-extra-node": e, [`size-${s}`]: s }), children: [
74
+ e && e,
75
+ /* @__PURE__ */ u("div", { className: f("buttons-block"), children: [
76
+ c && /* @__PURE__ */ t("div", { className: f("button-container"), children: /* @__PURE__ */ t(
77
+ D,
78
+ {
79
+ variant: "ghost",
80
+ adjustWidthOn: s === "small" ? "parent" : "min-width",
81
+ onClick: o,
82
+ ...c
83
+ }
84
+ ) }),
85
+ n && /* @__PURE__ */ t("div", { className: f("button-container"), children: d() })
86
+ ] })
87
+ ] });
88
+ }, at = {
89
+ "modal-header": "_modal-header_w4aaf_1",
90
+ "width-description": "_width-description_w4aaf_10",
91
+ "modal-header-content": "_modal-header-content_w4aaf_14",
92
+ "modal-title": "_modal-title_w4aaf_20",
93
+ "close-modal-icon": "_close-modal-icon_w4aaf_29"
94
+ }, p = x.bind(at), rt = ({ title: e, onClose: o, withDescription: n = !1 }) => /* @__PURE__ */ u("div", { className: p("modal-header", { "width-description": n }), children: [
95
+ /* @__PURE__ */ t("div", { className: p("modal-header-content"), children: e && /* @__PURE__ */ t("div", { className: p("modal-title"), children: e }) }),
96
+ /* @__PURE__ */ t(V, { className: p("close-modal-icon"), onClick: o, children: /* @__PURE__ */ t(Z, {}) })
97
+ ] }), ct = "_modal_yxql5_1", dt = "_description_yxql5_43", mt = "_scrollable_yxql5_53", _t = {
98
+ modal: ct,
99
+ "overlay-default": "_overlay-default_yxql5_12",
100
+ "overlay-light-cyan": "_overlay-light-cyan_yxql5_16",
101
+ "scrolling-content": "_scrolling-content_yxql5_20",
102
+ "modal-window": "_modal-window_yxql5_26",
103
+ description: dt,
104
+ scrollable: mt,
105
+ "size-default": "_size-default_yxql5_57",
106
+ "size-small": "_size-small_yxql5_69",
107
+ "size-large": "_size-large_yxql5_81"
108
+ }, g = x.bind(_t), ut = 0.9, ht = 32 + 24, wt = 32 + 8, ft = 36 + 16, pt = 32 * 2, $t = ({
109
+ title: e,
110
+ children: o,
111
+ footerNode: n,
112
+ okButton: c,
113
+ cancelButton: s,
114
+ className: a,
115
+ size: r = "default",
116
+ onClose: d = () => {
117
+ },
118
+ overlay: l = "default",
119
+ zIndex: E = 2,
120
+ allowCloseOutside: v = !0,
121
+ scrollable: H = !1,
122
+ withoutFooter: O = !1,
123
+ createFooter: M = null,
124
+ description: m = null
125
+ }) => {
126
+ 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 = () => {
127
+ let i = q - pt;
128
+ return O || (i = i - ft), m ? i = i - wt : i = i - ht, i;
129
+ }, h = () => {
130
+ N(!1);
131
+ }, z = (i) => {
132
+ const { keyCode: j } = i;
133
+ j === J.ESCAPE_KEY_CODE && h();
134
+ }, P = () => {
135
+ var i;
136
+ k || ((i = _.current) == null || i.focus(), $(!0));
137
+ };
138
+ w(() => {
139
+ if (_ && _.current) {
140
+ const { clientHeight: i } = _.current;
141
+ R(i);
142
+ }
143
+ }, [o, A]), w(() => (N(!0), document.addEventListener("keydown", z, !1), () => document.removeEventListener("keydown", z, !1)), []);
144
+ const B = G(
145
+ () => ({
146
+ ignoreSelectors: [`[${X}]`]
147
+ }),
148
+ []
149
+ );
150
+ 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(
151
+ Y.div,
152
+ {
153
+ className: g("modal-window", { [`size-${r}`]: r }, a),
154
+ ref: _,
155
+ tabIndex: 0,
156
+ initial: { opacity: 0, marginTop: -b },
157
+ animate: { opacity: 1, marginTop: b },
158
+ exit: { opacity: 0, marginTop: -b },
159
+ transition: { duration: 0.3 },
160
+ onAnimationStart: P,
161
+ children: [
162
+ /* @__PURE__ */ t(rt, { title: e, onClose: h, withDescription: !!m }),
163
+ H ? /* @__PURE__ */ u(K, { autoHeight: !0, autoHeightMax: W(), hideTracksWhenNotNeeded: !0, children: [
164
+ m && /* @__PURE__ */ t("span", { className: g("description", { scrollable: H }), children: m }),
165
+ /* @__PURE__ */ t(S, { scrollable: !0, children: o })
166
+ ] }) : /* @__PURE__ */ u(F, { children: [
167
+ m && /* @__PURE__ */ t("span", { className: g("description"), children: m }),
168
+ /* @__PURE__ */ t(S, { children: o })
169
+ ] }),
170
+ !O && (M ? M(h) : /* @__PURE__ */ t(
171
+ lt,
172
+ {
173
+ size: r,
174
+ footerNode: n,
175
+ okButton: c,
176
+ cancelButton: s,
177
+ closeHandler: h
178
+ }
179
+ ))
180
+ ]
181
+ },
182
+ "modal-window"
183
+ ) }) });
184
+ };
11
185
  export {
12
- s as Modal,
13
- n as ModalContent,
14
- b as ModalFooter,
15
- c as ModalHeader
186
+ $t as Modal,
187
+ S as ModalContent,
188
+ lt as ModalFooter,
189
+ rt as ModalHeader
16
190
  };
@@ -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
+ };