@reportportal/ui-kit 0.0.1-alpha.4 → 0.0.1-alpha.41
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.
- package/LICENSE +201 -201
- package/README.md +252 -3
- package/dist/baseIconButton-b6adc843.js +25 -0
- package/dist/baseIconButton.js +7 -0
- package/dist/bubblesLoader-a7e709d4.js +17 -0
- package/dist/bubblesLoader.js +7 -0
- package/dist/button-33c88abf.js +62 -0
- package/dist/button.js +1 -1
- package/dist/calendar-f154eb78.js +6 -0
- package/dist/checkbox-9a6c7ce1.js +73 -0
- package/dist/checkbox.js +2 -2
- package/dist/common/constants/keyCodes.d.ts +24 -0
- package/dist/components/bubblesLoader/bubblesLoader.d.ts +7 -0
- package/dist/components/bubblesLoader/index.d.ts +3 -0
- package/dist/components/button/button.d.ts +0 -1
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/checkbox/checkbox.d.ts +2 -1
- package/dist/components/dataPicker2/dataPicker2/datePicker.d.ts +24 -0
- package/dist/components/dataPicker2/dataPicker2/header/datePickerHeader.d.ts +15 -0
- package/dist/components/dataPicker2/dataPicker2/header/index.d.ts +3 -0
- package/dist/components/dataPicker2/dataPicker2/index.d.ts +3 -0
- package/dist/components/dataPicker2/dataPicker2/utils.d.ts +3 -0
- package/dist/components/date2/date2.d.ts +24 -0
- package/dist/components/date2/index.d.ts +3 -0
- package/dist/components/datePicker/datePicker.d.ts +24 -0
- package/dist/components/datePicker/header/datePickerHeader.d.ts +15 -0
- package/dist/components/datePicker/header/index.d.ts +3 -0
- package/dist/components/datePicker/index.d.ts +3 -0
- package/dist/components/datePicker/utils.d.ts +3 -0
- package/dist/components/datePicker1/datePicker.d.ts +24 -0
- package/dist/components/datePicker1/header/datePickerHeader.d.ts +15 -0
- package/dist/components/datePicker1/header/index.d.ts +3 -0
- package/dist/components/datePicker1/index.d.ts +3 -0
- package/dist/components/datePicker1/utils.d.ts +3 -0
- package/dist/components/dropdown/constants.d.ts +7 -0
- package/dist/components/dropdown/dropdown.d.ts +28 -0
- package/dist/components/dropdown/dropdownOption/dropdownOption.d.ts +3 -0
- package/dist/components/dropdown/dropdownOption/index.d.ts +3 -0
- package/dist/components/dropdown/index.d.ts +3 -0
- package/dist/components/dropdown/types.d.ts +22 -0
- package/dist/components/dropdown/utils.d.ts +4 -0
- package/dist/components/fieldNumber/constants.d.ts +4 -0
- package/dist/components/fieldNumber/fieldNumber.d.ts +18 -0
- package/dist/components/fieldNumber/index.d.ts +3 -0
- package/dist/components/fieldText/fieldText.d.ts +8 -3
- package/dist/components/fieldTextFlex/fieldTextFlex.d.ts +14 -0
- package/dist/components/fieldTextFlex/index.d.ts +3 -0
- package/dist/components/icons/baseIconButton/baseIconButton.d.ts +8 -0
- package/dist/components/icons/baseIconButton/index.d.ts +4 -0
- package/dist/components/icons/index.d.ts +21 -0
- package/dist/components/index.d.ts +17 -0
- package/dist/components/modal/modal.d.ts +6 -2
- package/dist/components/modal/modalContent/modalContent.d.ts +1 -0
- package/dist/components/modal/modalHeader/modalHeader.d.ts +1 -1
- package/dist/components/pagination/index.d.ts +4 -0
- package/dist/components/pagination/itemsCounter/index.d.ts +1 -0
- package/dist/components/pagination/itemsCounter/itemCounter.d.ts +9 -0
- package/dist/components/pagination/pageControls/activePage/activePage.d.ts +12 -0
- package/dist/components/pagination/pageControls/activePage/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/activePage/pageSelector/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/activePage/pageSelector/pageSelector.d.ts +10 -0
- package/dist/components/pagination/pageControls/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageControls.d.ts +16 -0
- package/dist/components/pagination/pageControls/pageNavigator/bar/bar.d.ts +11 -0
- package/dist/components/pagination/pageControls/pageNavigator/bar/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageNavigator/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageNavigator/pageNavigator.d.ts +11 -0
- package/dist/components/pagination/pageSizeControl/index.d.ts +1 -0
- package/dist/components/pagination/pageSizeControl/pageSizeControl.d.ts +10 -0
- package/dist/components/pagination/pageSizeControl/sizeSelector/index.d.ts +1 -0
- package/dist/components/pagination/pageSizeControl/sizeSelector/sizeSelector.d.ts +8 -0
- package/dist/components/pagination/pagination.d.ts +22 -0
- package/dist/components/pagination/types.d.ts +2 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/popover/popover.d.ts +18 -0
- package/dist/components/radio/index.d.ts +4 -0
- package/dist/components/radio/radio.d.ts +16 -0
- package/dist/components/radio/radioGroup.d.ts +8 -0
- package/dist/components/spinLoader/index.d.ts +3 -0
- package/dist/components/spinLoader/spinLoader.d.ts +7 -0
- package/dist/components/systemAlert/index.d.ts +1 -0
- package/dist/components/systemAlert/systemAlert.d.ts +3 -0
- package/dist/components/systemAlert/types.d.ts +14 -0
- package/dist/components/table/index.d.ts +3 -0
- package/dist/components/table/table.d.ts +3 -0
- package/dist/components/table/types.d.ts +53 -0
- package/dist/components/table/utils.d.ts +3 -0
- package/dist/components/themeProvider/themeProvider.d.ts +2 -1
- package/dist/components/toggle/index.d.ts +3 -0
- package/dist/components/toggle/toggle.d.ts +11 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/tooltip.d.ts +19 -0
- package/dist/date2-9273411e.js +46 -0
- package/dist/date2.js +7 -0
- package/dist/datePicker-a005ebc6.js +194 -0
- package/dist/datePicker-e85bee1d.js +194 -0
- package/dist/datePicker.js +19 -0
- package/dist/datePicker1.js +19 -0
- package/dist/dropdown-9f4d1928.js +245 -0
- package/dist/dropdown.js +15 -0
- package/dist/fieldNumber-1f286b40.js +127 -0
- package/dist/fieldNumber.js +10 -0
- package/dist/fieldText-65e4c614.js +134 -0
- package/dist/fieldText.js +2 -1
- package/dist/fieldTextFlex-5bddf46a.js +67 -0
- package/dist/fieldTextFlex.js +8 -0
- package/dist/index-54e3bfc2.js +147 -0
- package/dist/index.js +303 -16
- package/dist/keyCodes-f63c0e11.js +4 -0
- package/dist/modal.js +14 -135
- package/dist/pagination-f087f454.js +346 -0
- package/dist/pagination.js +14 -0
- package/dist/popover.js +95 -0
- package/dist/radio-bccc84f2.js +76 -0
- package/dist/radio.js +9 -0
- package/dist/style.css +1 -1
- package/dist/systemMessage-1ced6079.js +30 -0
- package/dist/systemMessage.js +1 -1
- package/dist/table-9bf4ddab.js +147 -0
- package/dist/table.js +11 -0
- package/dist/themeProvider-46c2be7b.js +23 -0
- package/dist/themeProvider.js +4 -3
- package/dist/toggle-1a3aacb5.js +59 -0
- package/dist/toggle.js +9 -0
- package/dist/tooltip.js +96 -0
- package/dist/useOnClickOutside-c332f7d3.js +16 -0
- package/package.json +105 -66
- package/dist/button-d4944dbc.js +0 -64
- package/dist/checkbox-7736509c.js +0 -70
- package/dist/common/constants/key-codes.d.ts +0 -5
- package/dist/fieldText-9621b0b7.js +0 -99
- package/dist/key-codes-abbe7725.js +0 -4
- package/dist/systemMessage-62c3133d.js +0 -30
- package/dist/themeProvider-5800417e.js +0 -19
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { jsx as e, jsxs as c, Fragment as B } from "react/jsx-runtime";
|
|
2
|
+
import * as M from "react";
|
|
3
|
+
import { useState as g, useEffect as b, useRef as j } from "react";
|
|
4
|
+
import { Scrollbars as G } from "rc-scrollbars";
|
|
5
|
+
import { AnimatePresence as K, motion as P } from "framer-motion";
|
|
6
|
+
import { c as u } from "./bind-06a7ff84.js";
|
|
7
|
+
import { u as q } from "./useOnClickOutside-c332f7d3.js";
|
|
8
|
+
import { K as Y } from "./keyCodes-f63c0e11.js";
|
|
9
|
+
import { B as L } from "./button-33c88abf.js";
|
|
10
|
+
import { B as F } from "./baseIconButton-b6adc843.js";
|
|
11
|
+
const U = (t) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ M.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.732179 15.2698C0.330639 14.8683 0.33064 14.2172 0.73218 13.8157L6.54858 7.99928L0.73218 2.18288C0.33064 1.78134 0.330639 1.13031 0.732179 0.728774C1.13372 0.327235 1.78474 0.327235 2.18628 0.728774L8.00269 6.54518L13.8191 0.728767C14.2206 0.327229 14.8717 0.327228 15.2732 0.728767C15.6747 1.13031 15.6747 1.78133 15.2732 2.18287L9.45679 7.99928L15.2732 13.8157C15.6747 14.2172 15.6747 14.8683 15.2732 15.2698C14.8717 15.6713 14.2206 15.6713 13.8191 15.2698L8.00269 9.45338L2.18628 15.2698C1.78474 15.6713 1.13372 15.6713 0.732179 15.2698Z", fill: "#A2AAB5" })), X = () => {
|
|
12
|
+
const [t, n] = g({ width: 0, height: 0 });
|
|
13
|
+
return b(() => {
|
|
14
|
+
const l = () => {
|
|
15
|
+
n({
|
|
16
|
+
width: window.innerWidth,
|
|
17
|
+
height: window.innerHeight
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
return window.addEventListener("resize", l), l(), () => window.removeEventListener("resize", l);
|
|
21
|
+
}, []), t;
|
|
22
|
+
}, Z = "_scrollable_qziry_12", J = {
|
|
23
|
+
"modal-content": "_modal-content_qziry_1",
|
|
24
|
+
scrollable: Z
|
|
25
|
+
}, Q = u.bind(J), A = ({ scrollable: t = !1, children: n }) => /* @__PURE__ */ e("div", { className: Q("modal-content", { scrollable: t }), children: n }), V = {
|
|
26
|
+
"buttons-block": "_buttons-block_1dgm4_1",
|
|
27
|
+
"button-container": "_button-container_1dgm4_5",
|
|
28
|
+
"modal-footer": "_modal-footer_1dgm4_14",
|
|
29
|
+
"with-extra-node": "_with-extra-node_1dgm4_21",
|
|
30
|
+
"size-small": "_size-small_1dgm4_25"
|
|
31
|
+
}, m = u.bind(V), ee = ({
|
|
32
|
+
footerNode: t,
|
|
33
|
+
closeHandler: n,
|
|
34
|
+
okButton: l,
|
|
35
|
+
cancelButton: r,
|
|
36
|
+
size: a
|
|
37
|
+
}) => /* @__PURE__ */ c("div", { className: m("modal-footer", { "with-extra-node": t, [`size-${a}`]: a }), children: [
|
|
38
|
+
t && t,
|
|
39
|
+
/* @__PURE__ */ c("div", { className: m("buttons-block"), children: [
|
|
40
|
+
r && /* @__PURE__ */ e("div", { className: m("button-container"), children: /* @__PURE__ */ e(
|
|
41
|
+
L,
|
|
42
|
+
{
|
|
43
|
+
variant: "ghost",
|
|
44
|
+
adjustWidthOn: a === "small" ? "parent" : "content",
|
|
45
|
+
onClick: n,
|
|
46
|
+
...r
|
|
47
|
+
}
|
|
48
|
+
) }),
|
|
49
|
+
l && /* @__PURE__ */ e("div", { className: m("button-container"), children: /* @__PURE__ */ e(L, { adjustWidthOn: a === "small" ? "parent" : "content", ...l }) })
|
|
50
|
+
] })
|
|
51
|
+
] }), te = {
|
|
52
|
+
"modal-header": "_modal-header_68lru_1",
|
|
53
|
+
"width-description": "_width-description_68lru_10",
|
|
54
|
+
"modal-header-content": "_modal-header-content_68lru_14",
|
|
55
|
+
"modal-title": "_modal-title_68lru_20",
|
|
56
|
+
"close-modal-icon": "_close-modal-icon_68lru_29"
|
|
57
|
+
}, _ = u.bind(te), oe = ({ title: t, onClose: n, withDescription: l = !1 }) => /* @__PURE__ */ c("div", { className: _("modal-header", { "width-description": l }), children: [
|
|
58
|
+
/* @__PURE__ */ e("div", { className: _("modal-header-content"), children: t && /* @__PURE__ */ e("div", { className: _("modal-title"), children: t }) }),
|
|
59
|
+
/* @__PURE__ */ e(F, { className: _("close-modal-icon"), onClick: n, children: /* @__PURE__ */ e(U, {}) })
|
|
60
|
+
] }), ne = "_modal_f3ckb_1", le = "_description_f3ckb_43", ae = "_scrollable_f3ckb_53", se = {
|
|
61
|
+
modal: ne,
|
|
62
|
+
"overlay-default": "_overlay-default_f3ckb_12",
|
|
63
|
+
"overlay-light-cyan": "_overlay-light-cyan_f3ckb_16",
|
|
64
|
+
"scrolling-content": "_scrolling-content_f3ckb_20",
|
|
65
|
+
"modal-window": "_modal-window_f3ckb_26",
|
|
66
|
+
description: le,
|
|
67
|
+
scrollable: ae,
|
|
68
|
+
"size-default": "_size-default_f3ckb_57",
|
|
69
|
+
"size-small": "_size-small_f3ckb_69",
|
|
70
|
+
"size-large": "_size-large_f3ckb_81"
|
|
71
|
+
}, h = u.bind(se), ie = 0.9, ce = 32 + 24, de = 32 + 8, re = 36 + 16, me = 32 * 2, ye = ({
|
|
72
|
+
title: t,
|
|
73
|
+
children: n,
|
|
74
|
+
footerNode: l,
|
|
75
|
+
okButton: r,
|
|
76
|
+
cancelButton: a,
|
|
77
|
+
className: N,
|
|
78
|
+
size: f = "default",
|
|
79
|
+
onClose: O = () => {
|
|
80
|
+
},
|
|
81
|
+
overlay: p = "default",
|
|
82
|
+
zIndex: z = 2,
|
|
83
|
+
allowCloseOutside: D = !0,
|
|
84
|
+
scrollable: v = !1,
|
|
85
|
+
withoutFooter: y = !1,
|
|
86
|
+
createFooter: C = null,
|
|
87
|
+
description: s = null
|
|
88
|
+
}) => {
|
|
89
|
+
const [R, E] = g(!1), [S, T] = g(0), i = j(null), H = X(), k = H.height, I = k * ie, w = (k - S) / 2, $ = () => {
|
|
90
|
+
let o = I - me;
|
|
91
|
+
return y || (o = o - re), s ? o = o - de : o = o - ce, o;
|
|
92
|
+
}, d = () => {
|
|
93
|
+
E(!1);
|
|
94
|
+
}, x = (o) => {
|
|
95
|
+
const { keyCode: W } = o;
|
|
96
|
+
W === Y.ESCAPE_KEY_CODE && d();
|
|
97
|
+
};
|
|
98
|
+
return b(() => {
|
|
99
|
+
if (i && i.current) {
|
|
100
|
+
const { clientHeight: o } = i.current;
|
|
101
|
+
T(o);
|
|
102
|
+
}
|
|
103
|
+
}, [n, H]), b(() => (E(!0), document.addEventListener("keydown", x, !1), () => document.removeEventListener("keydown", x, !1)), []), q(i, D ? d : void 0), /* @__PURE__ */ e(K, { onExitComplete: O, children: R && /* @__PURE__ */ e("div", { className: h("modal", { [`overlay-${p}`]: p }), style: { zIndex: z }, children: /* @__PURE__ */ c(
|
|
104
|
+
P.div,
|
|
105
|
+
{
|
|
106
|
+
className: h("modal-window", { [`size-${f}`]: f }, N),
|
|
107
|
+
ref: i,
|
|
108
|
+
tabIndex: 0,
|
|
109
|
+
initial: { opacity: 0, marginTop: -w },
|
|
110
|
+
animate: { opacity: 1, marginTop: w },
|
|
111
|
+
exit: { opacity: 0, marginTop: -w },
|
|
112
|
+
transition: { duration: 0.3 },
|
|
113
|
+
onAnimationStart: () => {
|
|
114
|
+
var o;
|
|
115
|
+
return (o = i.current) == null ? void 0 : o.focus();
|
|
116
|
+
},
|
|
117
|
+
children: [
|
|
118
|
+
/* @__PURE__ */ e(oe, { title: t, onClose: d, withDescription: !!s }),
|
|
119
|
+
v ? /* @__PURE__ */ c(G, { autoHeight: !0, autoHeightMax: $(), hideTracksWhenNotNeeded: !0, children: [
|
|
120
|
+
s && /* @__PURE__ */ e("span", { className: h("description", { scrollable: v }), children: s }),
|
|
121
|
+
/* @__PURE__ */ e(A, { scrollable: !0, children: n })
|
|
122
|
+
] }) : /* @__PURE__ */ c(B, { children: [
|
|
123
|
+
s && /* @__PURE__ */ e("span", { className: h("description"), children: s }),
|
|
124
|
+
/* @__PURE__ */ e(A, { children: n })
|
|
125
|
+
] }),
|
|
126
|
+
!y && (C ? C(d) : /* @__PURE__ */ e(
|
|
127
|
+
ee,
|
|
128
|
+
{
|
|
129
|
+
size: f,
|
|
130
|
+
footerNode: l,
|
|
131
|
+
okButton: r,
|
|
132
|
+
cancelButton: a,
|
|
133
|
+
closeHandler: d
|
|
134
|
+
}
|
|
135
|
+
))
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"modal-window"
|
|
139
|
+
) }) });
|
|
140
|
+
};
|
|
141
|
+
export {
|
|
142
|
+
ye as M,
|
|
143
|
+
U as S,
|
|
144
|
+
A as a,
|
|
145
|
+
oe as b,
|
|
146
|
+
ee as c
|
|
147
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,307 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { C as
|
|
3
|
-
import { S as
|
|
4
|
-
import { F as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
1
|
+
import { B as O1 } from "./button-33c88abf.js";
|
|
2
|
+
import { C as $1 } from "./checkbox-9a6c7ce1.js";
|
|
3
|
+
import { S as G1 } from "./systemMessage-1ced6079.js";
|
|
4
|
+
import { F as y } from "./fieldText-65e4c614.js";
|
|
5
|
+
import { a as q1, S as z1 } from "./fieldText-65e4c614.js";
|
|
6
|
+
import { T as K1 } from "./themeProvider-46c2be7b.js";
|
|
7
|
+
import { S as O } from "./index-54e3bfc2.js";
|
|
8
|
+
import { M as X1 } from "./index-54e3bfc2.js";
|
|
9
|
+
import { D as H } from "./dropdown-9f4d1928.js";
|
|
10
|
+
import { S as t9 } from "./dropdown-9f4d1928.js";
|
|
11
|
+
import { T as n9 } from "./toggle-1a3aacb5.js";
|
|
12
|
+
import { F as l9, a as a9, S as s9 } from "./fieldNumber-1f286b40.js";
|
|
13
|
+
import { B as i9 } from "./bubblesLoader-a7e709d4.js";
|
|
14
|
+
import { F as C9 } from "./fieldTextFlex-5bddf46a.js";
|
|
15
|
+
import { R as p9 } from "./radio-bccc84f2.js";
|
|
16
|
+
import { Tooltip as h9 } from "./tooltip.js";
|
|
17
|
+
import { Popover as g9 } from "./popover.js";
|
|
18
|
+
import { P as _9, a as v9, S as x9 } from "./pagination-f087f454.js";
|
|
19
|
+
import { S as b9, a as M9, T as E9 } from "./table-9bf4ddab.js";
|
|
20
|
+
import { D as R9 } from "./datePicker-a005ebc6.js";
|
|
21
|
+
import { D as B9 } from "./datePicker-e85bee1d.js";
|
|
22
|
+
import { jsxs as b, Fragment as U, jsx as o } from "react/jsx-runtime";
|
|
23
|
+
import $ from "react-datepicker";
|
|
24
|
+
import { c as N } from "./bind-06a7ff84.js";
|
|
25
|
+
import * as t from "react";
|
|
26
|
+
import { useMemo as T, useRef as Y, useEffect as G } from "react";
|
|
27
|
+
import { B as N9 } from "./baseIconButton-b6adc843.js";
|
|
28
|
+
import { S as V, a as W } from "./calendar-f154eb78.js";
|
|
29
|
+
import { D as Z9 } from "./date2-9273411e.js";
|
|
30
|
+
import "./keyCodes-f63c0e11.js";
|
|
11
31
|
import "rc-scrollbars";
|
|
12
32
|
import "framer-motion";
|
|
33
|
+
import "./useOnClickOutside-c332f7d3.js";
|
|
34
|
+
import "@floating-ui/react-dom";
|
|
35
|
+
import "downshift";
|
|
36
|
+
import "@floating-ui/react";
|
|
37
|
+
const F1 = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.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__ */ t.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" })), Z1 = (e) => /* @__PURE__ */ t.createElement("svg", { width: 14, height: 3, viewBox: "0 0 14 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.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" })), j1 = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13 7C13 8.47663 12.4666 9.82867 11.5819 10.874L12.3288 11.6208C12.663 11.5307 13.0348 11.6168 13.2971 11.8792L14.7113 13.2934C15.1019 13.6839 15.1019 14.3171 14.7113 14.7076C14.3208 15.0981 13.6877 15.0981 13.2971 14.7076L11.8829 13.2934C11.622 13.0325 11.5354 12.6632 11.6231 12.3304L10.8743 11.5816C9.829 12.4665 8.47681 13 7 13C3.68629 13 1 10.3137 1 7C1 3.68629 3.68629 1 7 1C10.3137 1 13 3.68629 13 7ZM2.00071 7C2.00071 9.76103 4.23897 11.9993 7 11.9993C9.76103 11.9993 11.9993 9.76103 11.9993 7C11.9993 4.23897 9.76103 2.00071 7 2.00071C4.23897 2.00071 2.00071 4.23897 2.00071 7Z", fill: "#CFCFCF" })), H1 = (e) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 15, height: 14, viewBox: "0 0 15 14", fill: "none", ...e }, /* @__PURE__ */ t.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2817 1.08596L8.58993 6.67232C8.43153 6.85569 8.33732 7.08554 8.33732 7.33504V12.9126L6.66254 12V7.69689C6.66254 7.22695 6.49186 6.76969 6.17611 6.39374L1.71829 1.08596L13.2817 1.08596ZM13.2817 0H1.71829C0.716181 0 0.144162 1.02163 0.745424 1.73753L5.20324 7.04531C5.36112 7.23329 5.44646 7.46192 5.44646 7.69689V12C5.44646 12.4113 5.7067 12.7874 6.11869 12.9713L7.79347 13.884C8.60204 14.245 9.5534 13.7199 9.5534 12.9126V7.33504L14.2546 1.73753C14.8558 1.02163 14.2838 0 13.2817 0Z", fill: "#A2AAB5" })), T1 = (e) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M6.82255 13.5148L6.84059 13.5228L6.85794 13.5323L8.51335 14.4344C8.76171 14.5391 9.02975 14.512 9.23505 14.3987C9.44387 14.2834 9.5534 14.103 9.5534 13.9126V8.33504V8.15292L9.67052 8.01347L14.3717 2.41597C14.3717 2.41597 14.3717 2.41597 14.3717 2.41597C14.5301 2.22732 14.5313 2.01991 14.4331 1.84458C14.3308 1.66184 14.1067 1.5 13.7817 1.5H2.21829C1.89331 1.5 1.66918 1.66184 1.56686 1.84457C1.46869 2.01991 1.46986 2.22732 1.6283 2.41597L6.08612 7.72374C6.31597 7.99742 6.44646 8.3387 6.44646 8.69689V13C6.44646 13.1908 6.56846 13.4013 6.82255 13.5148Z", fill: "#009DBB", stroke: "#009DBB" })), q = (e) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", ...e }, /* @__PURE__ */ t.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.2 9.99999C17.2 13.9764 13.9765 17.2 10 17.2C6.0236 17.2 2.80005 13.9764 2.80005 9.99999C2.80005 6.02354 6.0236 2.79999 10 2.79999C13.9765 2.79999 17.2 6.02354 17.2 9.99999ZM11 6.59999C11 7.15227 10.5523 7.59999 10 7.59999C9.44776 7.59999 9.00005 7.15227 9.00005 6.59999C9.00005 6.0477 9.44776 5.59999 10 5.59999C10.5523 5.59999 11 6.0477 11 6.59999ZM10.8 13.6C10.8 14.0418 10.4419 14.4 10 14.4C9.55822 14.4 9.20005 14.0418 9.20005 13.6L9.20005 9.19999C9.20005 8.75816 9.55822 8.39999 10 8.39999C10.4419 8.39999 10.8 8.75816 10.8 9.19999V13.6Z", fill: "white" })), z = (e) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", ...e }, /* @__PURE__ */ t.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.2 9.99999C17.2 13.9764 13.9765 17.2 10 17.2C6.0236 17.2 2.80005 13.9764 2.80005 9.99999C2.80005 6.02354 6.0236 2.79999 10 2.79999C13.9765 2.79999 17.2 6.02354 17.2 9.99999ZM13.8146 8.11216C14.0975 7.77273 14.0516 7.26828 13.7122 6.98543C13.3728 6.70258 12.8683 6.74844 12.5855 7.08786L9.14629 11.2149L7.36573 9.43432C7.05331 9.1219 6.54678 9.1219 6.23436 9.43432C5.92194 9.74674 5.92194 10.2533 6.23436 10.5657L8.63436 12.9657C8.7933 13.1246 9.01176 13.2094 9.2363 13.1992C9.46084 13.189 9.67073 13.0848 9.81463 12.9122L13.8146 8.11216Z", fill: "white" })), J = (e) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", ...e }, /* @__PURE__ */ t.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.0449 3.41275C10.5805 2.59573 9.41952 2.59573 8.95513 3.41275L2.16344 15.3617C1.69905 16.1787 2.27954 17.2 3.20832 17.2H16.7917C17.7205 17.2 18.3009 16.1787 17.8366 15.3617L11.0449 3.41275ZM10.9325 6.41163C10.9391 6.18625 10.7582 5.99999 10.5327 5.99999H9.46161C9.236 5.99999 9.05502 6.18647 9.06179 6.41198L9.24768 12.612C9.25416 12.8281 9.43125 13 9.6475 13H10.3523C10.5686 13 10.7458 12.8279 10.7521 12.6116L10.9325 6.41163ZM10 16C10.5523 16 11 15.5523 11 15C11 14.4477 10.5523 14 10 14C9.44771 14 9 14.4477 9 15C9 15.5523 9.44771 16 10 16Z", fill: "white" })), V1 = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M8.35343 1.64645C8.23928 1.5323 8.08367 1.48488 7.93508 1.50419C7.84679 1.51567 7.76098 1.5507 7.68781 1.60929C7.67171 1.62216 7.65643 1.636 7.64204 1.65073L4.64633 4.64645C4.45106 4.84171 4.45106 5.15829 4.64633 5.35355C4.84159 5.54882 5.15817 5.54882 5.35343 5.35355L7.49979 3.2072L7.49979 9.99996C7.49979 10.2761 7.72365 10.5 7.99979 10.5C8.27593 10.5 8.49979 10.2761 8.49979 9.99996L8.49979 3.20701L10.6463 5.35355C10.8416 5.54881 11.1582 5.54881 11.3534 5.35355C11.5487 5.15829 11.5487 4.84171 11.3534 4.64644L8.35343 1.64645Z", fill: "#00829B" }), /* @__PURE__ */ t.createElement("path", { d: "M2 9.99996C2 9.72381 1.77614 9.49996 1.5 9.49996C1.22386 9.49996 1 9.72381 1 9.99996V13.1666C1 13.6529 1.19315 14.1192 1.53697 14.463C1.88079 14.8068 2.3471 15 2.83333 15H13.1667C13.6529 15 14.1192 14.8068 14.463 14.463C14.8068 14.1192 15 13.6529 15 13.1666V9.99996C15 9.72381 14.7761 9.49996 14.5 9.49996C14.2239 9.49996 14 9.72381 14 9.99996V13.1666C14 13.3876 13.9122 13.5996 13.7559 13.7559C13.5996 13.9122 13.3877 14 13.1667 14H2.83333C2.61232 14 2.40036 13.9122 2.24408 13.7559C2.0878 13.5996 2 13.3876 2 13.1666V9.99996Z", fill: "#00829B" })), K = (e, l = 20) => {
|
|
38
|
+
const i = e + l;
|
|
39
|
+
return new Array(i - e).fill(void 0).map((c, n) => e - n);
|
|
40
|
+
}, Q = "_header_a3cjx_1", X = "_disabled_a3cjx_25", e1 = "_dropdown_a3cjx_8", t1 = {
|
|
41
|
+
header: Q,
|
|
42
|
+
"dropdowns-wrapper": "_dropdowns-wrapper_a3cjx_8",
|
|
43
|
+
"button-prev": "_button-prev_a3cjx_13",
|
|
44
|
+
"button-next": "_button-next_a3cjx_14",
|
|
45
|
+
disabled: X,
|
|
46
|
+
dropdown: e1,
|
|
47
|
+
"month-dropdown": "_month-dropdown_a3cjx_44",
|
|
48
|
+
"toggle-button": "_toggle-button_a3cjx_47"
|
|
49
|
+
}, s = N.bind(t1), o1 = ({
|
|
50
|
+
date: e = /* @__PURE__ */ new Date(),
|
|
51
|
+
changeYear: l = () => {
|
|
52
|
+
},
|
|
53
|
+
changeMonth: i = () => {
|
|
54
|
+
},
|
|
55
|
+
decreaseMonth: c = () => {
|
|
56
|
+
},
|
|
57
|
+
increaseMonth: n = () => {
|
|
58
|
+
},
|
|
59
|
+
prevMonthButtonDisabled: r = !1,
|
|
60
|
+
nextMonthButtonDisabled: d = !1,
|
|
61
|
+
headerNodes: m = null,
|
|
62
|
+
customClassName: p = "",
|
|
63
|
+
yearsOptions: h = [],
|
|
64
|
+
locale: M
|
|
65
|
+
}) => {
|
|
66
|
+
const w = e.getFullYear(), E = e.getMonth(), x = T(() => {
|
|
67
|
+
const a = Array(12).keys(), C = new Intl.DateTimeFormat(M, {
|
|
68
|
+
month: "long"
|
|
69
|
+
}), u = (g) => C.format(new Date(w, g));
|
|
70
|
+
return Array.from(a, u).reduce((g, L, B) => g.concat({
|
|
71
|
+
value: B,
|
|
72
|
+
label: L
|
|
73
|
+
}), []);
|
|
74
|
+
}, []), S = T(() => (h.length > 0 ? h : K(w)).reduce(
|
|
75
|
+
(C, u) => C.concat({ value: u, label: `${u}` }),
|
|
76
|
+
[]
|
|
77
|
+
), [h]), R = (a) => {
|
|
78
|
+
i(a);
|
|
79
|
+
}, I = (a) => {
|
|
80
|
+
l(a);
|
|
81
|
+
};
|
|
82
|
+
return /* @__PURE__ */ b(U, { children: [
|
|
83
|
+
m && /* @__PURE__ */ o("div", { className: s(p), children: m }),
|
|
84
|
+
/* @__PURE__ */ b("div", { className: s("header"), children: [
|
|
85
|
+
/* @__PURE__ */ o(
|
|
86
|
+
"button",
|
|
87
|
+
{
|
|
88
|
+
"aria-label": "Previous Months",
|
|
89
|
+
disabled: r,
|
|
90
|
+
onClick: c,
|
|
91
|
+
className: s("button-prev", { disabled: r }),
|
|
92
|
+
children: /* @__PURE__ */ o(V, {})
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ b("div", { className: s("dropdowns-wrapper"), children: [
|
|
96
|
+
/* @__PURE__ */ o(
|
|
97
|
+
H,
|
|
98
|
+
{
|
|
99
|
+
options: x,
|
|
100
|
+
value: E,
|
|
101
|
+
onChange: R,
|
|
102
|
+
transparentBackground: !0,
|
|
103
|
+
className: s("dropdown", "month-dropdown"),
|
|
104
|
+
toggleButtonClassName: s("toggle-button")
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
/* @__PURE__ */ o(
|
|
108
|
+
H,
|
|
109
|
+
{
|
|
110
|
+
options: S,
|
|
111
|
+
value: w,
|
|
112
|
+
onChange: I,
|
|
113
|
+
transparentBackground: !0,
|
|
114
|
+
className: s("dropdown"),
|
|
115
|
+
toggleButtonClassName: s("toggle-button")
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
] }),
|
|
119
|
+
/* @__PURE__ */ o(
|
|
120
|
+
"button",
|
|
121
|
+
{
|
|
122
|
+
"aria-label": "Next Months",
|
|
123
|
+
disabled: d,
|
|
124
|
+
onClick: n,
|
|
125
|
+
className: s("button-next", { disabled: d }),
|
|
126
|
+
children: /* @__PURE__ */ o(V, {})
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
] })
|
|
130
|
+
] });
|
|
131
|
+
}, n1 = "_calendar_1jr94_5", r1 = "_date_1jr94_90", l1 = "_disabled_1jr94_202", a1 = "_popper_1jr94_210", s1 = "_input_1jr94_214", c1 = {
|
|
132
|
+
calendar: n1,
|
|
133
|
+
"current-date": "_current-date_1jr94_89",
|
|
134
|
+
date: r1,
|
|
135
|
+
"selected-range": "_selected-range_1jr94_119",
|
|
136
|
+
"end-date": "_end-date_1jr94_119",
|
|
137
|
+
disabled: l1,
|
|
138
|
+
popper: a1,
|
|
139
|
+
input: s1
|
|
140
|
+
}, _ = N.bind(c1), i1 = "en", D = "MM-dd-yyyy", D1 = ({
|
|
141
|
+
onChange: e = () => {
|
|
142
|
+
},
|
|
143
|
+
disabled: l = !1,
|
|
144
|
+
onBlur: i = () => {
|
|
145
|
+
},
|
|
146
|
+
onFocus: c = () => {
|
|
147
|
+
},
|
|
148
|
+
endDate: n = void 0,
|
|
149
|
+
startDate: r = void 0,
|
|
150
|
+
headerNodes: d = null,
|
|
151
|
+
customClassName: m = "",
|
|
152
|
+
customTimeInput: p = void 0,
|
|
153
|
+
shouldCloseOnSelect: h = !0,
|
|
154
|
+
popperClassName: M = "",
|
|
155
|
+
calendarClassName: w = "",
|
|
156
|
+
fixedHeight: E = !1,
|
|
157
|
+
language: x = i1,
|
|
158
|
+
yearsOptions: S = [],
|
|
159
|
+
placeholder: R = D.toUpperCase(),
|
|
160
|
+
dateFormat: I = D,
|
|
161
|
+
selects: a = "start",
|
|
162
|
+
value: C = null
|
|
163
|
+
}) => {
|
|
164
|
+
const u = Y(null), F = r == null ? void 0 : r.toDateString(), g = n == null ? void 0 : n.toDateString(), L = n && r && n > r, B = (f) => {
|
|
165
|
+
const Z = f.toDateString(), P = Z === F, j = L && Z === g, k = r && n && f > r && f < n;
|
|
166
|
+
return _("date", {
|
|
167
|
+
"current-date": P,
|
|
168
|
+
"selected-range": k && !j,
|
|
169
|
+
"end-date": j && L,
|
|
170
|
+
disabled: l
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
return /* @__PURE__ */ o(
|
|
174
|
+
$,
|
|
175
|
+
{
|
|
176
|
+
customInput: /* @__PURE__ */ o(
|
|
177
|
+
y,
|
|
178
|
+
{
|
|
179
|
+
className: _("input"),
|
|
180
|
+
defaultWidth: !1,
|
|
181
|
+
endIcon: /* @__PURE__ */ o(W, {}),
|
|
182
|
+
ref: u
|
|
183
|
+
}
|
|
184
|
+
),
|
|
185
|
+
placeholderText: R,
|
|
186
|
+
selected: C,
|
|
187
|
+
startDate: r,
|
|
188
|
+
endDate: n,
|
|
189
|
+
minDate: a === "end" ? r : void 0,
|
|
190
|
+
disabled: l,
|
|
191
|
+
shouldCloseOnSelect: h,
|
|
192
|
+
fixedHeight: E,
|
|
193
|
+
locale: x,
|
|
194
|
+
showPopperArrow: !1,
|
|
195
|
+
dayClassName: B,
|
|
196
|
+
calendarClassName: _(w, "calendar"),
|
|
197
|
+
renderCustomHeader: (f) => /* @__PURE__ */ o(
|
|
198
|
+
o1,
|
|
199
|
+
{
|
|
200
|
+
...f,
|
|
201
|
+
headerNodes: d,
|
|
202
|
+
customClassName: m,
|
|
203
|
+
yearsOptions: S,
|
|
204
|
+
locale: x
|
|
205
|
+
}
|
|
206
|
+
),
|
|
207
|
+
onChange: e,
|
|
208
|
+
onBlur: i,
|
|
209
|
+
onFocus: c,
|
|
210
|
+
customTimeInput: p,
|
|
211
|
+
showTimeInput: !!p,
|
|
212
|
+
popperClassName: _(M, "popper"),
|
|
213
|
+
dateFormat: I,
|
|
214
|
+
selectsStart: a === "start",
|
|
215
|
+
selectsEnd: a === "end",
|
|
216
|
+
className: _("datepicker")
|
|
217
|
+
}
|
|
218
|
+
);
|
|
219
|
+
};
|
|
220
|
+
var A = /* @__PURE__ */ ((e) => (e.INFO = "info", e.SUCCESS = "success", e.ERROR = "error", e))(A || {});
|
|
221
|
+
const d1 = "_error_14lm6_11", C1 = "_success_14lm6_14", m1 = "_info_14lm6_17", p1 = "_title_14lm6_32", u1 = {
|
|
222
|
+
"system-alert": "_system-alert_14lm6_1",
|
|
223
|
+
error: d1,
|
|
224
|
+
success: C1,
|
|
225
|
+
info: m1,
|
|
226
|
+
"icon-wrapper": "_icon-wrapper_14lm6_20",
|
|
227
|
+
"content-wrapper": "_content-wrapper_14lm6_26",
|
|
228
|
+
title: p1,
|
|
229
|
+
"close-button": "_close-button_14lm6_45"
|
|
230
|
+
}, v = N.bind(u1), h1 = 7e3, w1 = 4e3, P1 = ({
|
|
231
|
+
title: e,
|
|
232
|
+
onClose: l,
|
|
233
|
+
icon: i = null,
|
|
234
|
+
type: c = A.INFO,
|
|
235
|
+
duration: n = w1,
|
|
236
|
+
className: r
|
|
237
|
+
}) => {
|
|
238
|
+
const d = c === A.ERROR ? h1 : n;
|
|
239
|
+
G(() => {
|
|
240
|
+
const p = setTimeout(() => {
|
|
241
|
+
l();
|
|
242
|
+
}, d);
|
|
243
|
+
return () => clearTimeout(p);
|
|
244
|
+
}, [d, l]);
|
|
245
|
+
const m = () => {
|
|
246
|
+
switch (c) {
|
|
247
|
+
case "info":
|
|
248
|
+
return /* @__PURE__ */ o(q, {});
|
|
249
|
+
case "success":
|
|
250
|
+
return /* @__PURE__ */ o(z, {});
|
|
251
|
+
case "error":
|
|
252
|
+
return /* @__PURE__ */ o(J, {});
|
|
253
|
+
default:
|
|
254
|
+
return i;
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
return /* @__PURE__ */ b("div", { className: v("system-alert", c, r), children: [
|
|
258
|
+
/* @__PURE__ */ o("div", { className: v("icon-wrapper"), children: m() }),
|
|
259
|
+
/* @__PURE__ */ o("div", { className: v("content-wrapper"), children: /* @__PURE__ */ o("h2", { className: v("title"), children: e }) }),
|
|
260
|
+
/* @__PURE__ */ o("button", { className: v("close-button"), onClick: l, "aria-label": "close system alert", children: /* @__PURE__ */ o(O, {}) })
|
|
261
|
+
] });
|
|
262
|
+
};
|
|
13
263
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
264
|
+
b9 as ArrowDownIcon,
|
|
265
|
+
M9 as ArrowUpIcon,
|
|
266
|
+
N9 as BaseIconButton,
|
|
267
|
+
i9 as BubblesLoader,
|
|
268
|
+
O1 as Button,
|
|
269
|
+
V as CalendarArrowIcon,
|
|
270
|
+
W as CalendarIcon,
|
|
271
|
+
$1 as Checkbox,
|
|
272
|
+
q1 as ClearIcon,
|
|
273
|
+
O as CloseIcon,
|
|
274
|
+
Z9 as Date2,
|
|
275
|
+
R9 as DatePicker,
|
|
276
|
+
B9 as DatePicker1,
|
|
277
|
+
D1 as DatePicker2,
|
|
278
|
+
F1 as DeleteIcon,
|
|
279
|
+
H as Dropdown,
|
|
280
|
+
t9 as DropdownIcon,
|
|
281
|
+
J as ErrorIcon,
|
|
282
|
+
V1 as ExportIcon,
|
|
283
|
+
l9 as FieldNumber,
|
|
284
|
+
y as FieldText,
|
|
285
|
+
C9 as FieldTextFlex,
|
|
286
|
+
T1 as FilterFilledIcon,
|
|
287
|
+
H1 as FilterOutlineIcon,
|
|
288
|
+
q as InfoIcon,
|
|
289
|
+
Z1 as MeatballMenuIcon,
|
|
290
|
+
a9 as MinusIcon,
|
|
291
|
+
X1 as Modal,
|
|
292
|
+
_9 as Pagination,
|
|
293
|
+
s9 as PlusIcon,
|
|
294
|
+
g9 as Popover,
|
|
295
|
+
v9 as PrevChapterIcon,
|
|
296
|
+
x9 as PrevPageIcon,
|
|
297
|
+
p9 as Radio,
|
|
298
|
+
j1 as SearchIcon,
|
|
299
|
+
z1 as SpinLoader,
|
|
300
|
+
z as SuccessIcon,
|
|
301
|
+
P1 as SystemAlert,
|
|
302
|
+
G1 as SystemMessage,
|
|
303
|
+
E9 as Table,
|
|
304
|
+
K1 as ThemeProvider,
|
|
305
|
+
n9 as Toggle,
|
|
306
|
+
h9 as Tooltip
|
|
20
307
|
};
|
|
@@ -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
|
+
};
|
package/dist/modal.js
CHANGED
|
@@ -1,137 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if (!n)
|
|
12
|
-
return;
|
|
13
|
-
const t = (a) => {
|
|
14
|
-
e && e.current && !e.current.contains(a.target) && n(a);
|
|
15
|
-
};
|
|
16
|
-
return document.addEventListener("pointerdown", t), () => {
|
|
17
|
-
document.removeEventListener("pointerdown", t);
|
|
18
|
-
};
|
|
19
|
-
}, [e, n]);
|
|
20
|
-
}
|
|
21
|
-
const K = () => {
|
|
22
|
-
const [e, n] = g({ width: 0, height: 0 });
|
|
23
|
-
return m(() => {
|
|
24
|
-
const t = () => {
|
|
25
|
-
n({
|
|
26
|
-
width: window.innerWidth,
|
|
27
|
-
height: window.innerHeight
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
return window.addEventListener("resize", t), t(), () => window.removeEventListener("resize", t);
|
|
31
|
-
}, []), e;
|
|
32
|
-
}, I = {
|
|
33
|
-
"modal-content": "_modal-content_xak18_1"
|
|
34
|
-
}, F = _.bind(I), P = ({ children: e }) => /* @__PURE__ */ o("div", { className: F("modal-content"), children: e }), B = {
|
|
35
|
-
"buttons-block": "_buttons-block_1dgm4_1",
|
|
36
|
-
"button-container": "_button-container_1dgm4_5",
|
|
37
|
-
"modal-footer": "_modal-footer_1dgm4_14",
|
|
38
|
-
"with-extra-node": "_with-extra-node_1dgm4_21",
|
|
39
|
-
"size-small": "_size-small_1dgm4_25"
|
|
40
|
-
}, c = _.bind(B), G = ({
|
|
41
|
-
footerNode: e,
|
|
42
|
-
closeHandler: n,
|
|
43
|
-
okButton: t,
|
|
44
|
-
cancelButton: a,
|
|
45
|
-
size: s
|
|
46
|
-
}) => /* @__PURE__ */ l("div", { className: c("modal-footer", { "with-extra-node": e, [`size-${s}`]: s }), children: [
|
|
47
|
-
e && e,
|
|
48
|
-
/* @__PURE__ */ l("div", { className: c("buttons-block"), children: [
|
|
49
|
-
a && /* @__PURE__ */ o("div", { className: c("button-container"), children: /* @__PURE__ */ o(
|
|
50
|
-
x,
|
|
51
|
-
{
|
|
52
|
-
variant: "ghost",
|
|
53
|
-
adjustWidthOn: s === "small" ? "parent" : "content",
|
|
54
|
-
onClick: n,
|
|
55
|
-
...a
|
|
56
|
-
}
|
|
57
|
-
) }),
|
|
58
|
-
t && /* @__PURE__ */ o("div", { className: c("button-container"), children: /* @__PURE__ */ o(x, { adjustWidthOn: s === "small" ? "parent" : "content", ...t }) })
|
|
59
|
-
] })
|
|
60
|
-
] }), X = (e) => /* @__PURE__ */ z.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "#C1C7D0", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ z.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.732184 15.2698C0.330645 14.8683 0.330646 14.2172 0.732185 13.8157L6.54859 7.99928L0.732185 2.18288C0.330646 1.78134 0.330645 1.13031 0.732184 0.728774C1.13372 0.327234 1.78475 0.327234 2.18629 0.728774L8.00269 6.54518L13.8191 0.728767C14.2206 0.327228 14.8717 0.327227 15.2732 0.728767C15.6747 1.13031 15.6747 1.78133 15.2732 2.18287L9.45679 7.99928L15.2732 13.8157C15.6747 14.2172 15.6747 14.8683 15.2732 15.2698C14.8717 15.6713 14.2206 15.6713 13.8191 15.2698L8.00269 9.45338L2.18629 15.2698C1.78475 15.6713 1.13372 15.6713 0.732184 15.2698Z" })), Y = {
|
|
61
|
-
"modal-header": "_modal-header_12y1g_1",
|
|
62
|
-
"modal-header-content": "_modal-header-content_12y1g_11",
|
|
63
|
-
"modal-title": "_modal-title_12y1g_20",
|
|
64
|
-
"close-modal-icon": "_close-modal-icon_12y1g_28"
|
|
65
|
-
}, r = _.bind(Y), Z = ({ title: e, onClose: n, headerNode: t }) => /* @__PURE__ */ l("div", { className: r("modal-header"), children: [
|
|
66
|
-
/* @__PURE__ */ l("div", { className: r("modal-header-content"), children: [
|
|
67
|
-
e && /* @__PURE__ */ o("span", { className: r("modal-title"), children: e }),
|
|
68
|
-
t && t
|
|
69
|
-
] }),
|
|
70
|
-
/* @__PURE__ */ o("span", { className: r("close-modal-icon"), onClick: n, children: /* @__PURE__ */ o(X, {}) })
|
|
71
|
-
] }), q = "_modal_10zov_1", J = {
|
|
72
|
-
modal: q,
|
|
73
|
-
"overlay-default": "_overlay-default_10zov_11",
|
|
74
|
-
"overlay-light-cyan": "_overlay-light-cyan_10zov_16",
|
|
75
|
-
"scrolling-content": "_scrolling-content_10zov_21",
|
|
76
|
-
"modal-window": "_modal-window_10zov_28",
|
|
77
|
-
"size-default": "_size-default_10zov_45",
|
|
78
|
-
"size-small": "_size-small_10zov_57",
|
|
79
|
-
"size-large": "_size-large_10zov_69"
|
|
80
|
-
}, E = _.bind(J), Q = 0.9, U = 176, se = ({
|
|
81
|
-
title: e,
|
|
82
|
-
headerNode: n,
|
|
83
|
-
children: t,
|
|
84
|
-
footerNode: a,
|
|
85
|
-
okButton: s,
|
|
86
|
-
cancelButton: b,
|
|
87
|
-
className: L,
|
|
88
|
-
size: h = "default",
|
|
89
|
-
onClose: H = () => {
|
|
90
|
-
},
|
|
91
|
-
overlay: v = "default",
|
|
92
|
-
allowCloseOutside: M = !0
|
|
93
|
-
}) => {
|
|
94
|
-
const [N, f] = g(!1), [k, O] = g(0), i = $(null), p = K(), y = p.height, R = y * Q, u = (y - k) / 2, S = R - U, d = () => {
|
|
95
|
-
f(!1);
|
|
96
|
-
}, C = (w) => {
|
|
97
|
-
w.keyCode === W.ESCAPE_KEY_CODE && d();
|
|
98
|
-
};
|
|
99
|
-
return m(() => {
|
|
100
|
-
if (i && i.current) {
|
|
101
|
-
const { clientHeight: w } = i.current;
|
|
102
|
-
O(w);
|
|
103
|
-
}
|
|
104
|
-
}, [t, p]), m(() => (f(!0), i && i.current && i.current.focus(), document.addEventListener("keydown", C, !1), () => document.removeEventListener("keydown", C, !1)), []), j(i, M ? d : void 0), /* @__PURE__ */ o(T, { onExitComplete: H, children: N && /* @__PURE__ */ o("div", { className: E("modal", { [`overlay-${v}`]: v }), children: /* @__PURE__ */ l(
|
|
105
|
-
D.div,
|
|
106
|
-
{
|
|
107
|
-
className: E("modal-window", { [`size-${h}`]: h }, L),
|
|
108
|
-
ref: i,
|
|
109
|
-
tabIndex: 0,
|
|
110
|
-
initial: { opacity: 0, marginTop: -u },
|
|
111
|
-
animate: { opacity: 1, marginTop: u },
|
|
112
|
-
exit: { opacity: 0, marginTop: -u },
|
|
113
|
-
transition: { duration: 0.3 },
|
|
114
|
-
children: [
|
|
115
|
-
/* @__PURE__ */ o(Z, { title: e, headerNode: n, onClose: d }),
|
|
116
|
-
/* @__PURE__ */ o(A, { autoHeight: !0, autoHeightMax: S, hideTracksWhenNotNeeded: !0, children: /* @__PURE__ */ o(P, { children: t }) }),
|
|
117
|
-
/* @__PURE__ */ o(
|
|
118
|
-
G,
|
|
119
|
-
{
|
|
120
|
-
size: h,
|
|
121
|
-
footerNode: a,
|
|
122
|
-
okButton: s,
|
|
123
|
-
cancelButton: b,
|
|
124
|
-
closeHandler: d
|
|
125
|
-
}
|
|
126
|
-
)
|
|
127
|
-
]
|
|
128
|
-
},
|
|
129
|
-
"modal-window"
|
|
130
|
-
) }) });
|
|
131
|
-
};
|
|
1
|
+
import { M as s, a as n, c as b, b as c } from "./index-54e3bfc2.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-33c88abf.js";
|
|
10
|
+
import "./baseIconButton-b6adc843.js";
|
|
132
11
|
export {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
12
|
+
s as Modal,
|
|
13
|
+
n as ModalContent,
|
|
14
|
+
b as ModalFooter,
|
|
15
|
+
c as ModalHeader
|
|
137
16
|
};
|