linear-react-components-ui 1.1.26-beta-1 → 1.1.26-beta.10
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/lib/alerts/AlertContainer.js +8 -2
- package/lib/alerts/AlertProvider.js +11 -5
- package/lib/alerts/BaseAlert.js +10 -8
- package/lib/alerts/Message.js +91 -64
- package/lib/alerts/withAlert.js +10 -6
- package/lib/assets/BaseAlert.css +1 -1
- package/lib/assets/Content.css +1 -1
- package/lib/assets/DefaultFile.css +1 -1
- package/lib/assets/Drawer.css +1 -1
- package/lib/assets/index11.css +1 -1
- package/lib/assets/index5.css +1 -1
- package/lib/avatar/index.js +29 -51
- package/lib/badge/index.js +25 -23
- package/lib/buttons/ActivateButton.js +9 -4
- package/lib/buttons/AddButton.js +12 -5
- package/lib/buttons/Button.js +16 -5
- package/lib/buttons/ButtonGroups.js +10 -3
- package/lib/buttons/CancelButton.js +14 -4
- package/lib/buttons/DangerButton.js +15 -4
- package/lib/buttons/DefaultButton.js +76 -111
- package/lib/buttons/DestroyButton.js +21 -5
- package/lib/buttons/EditButton.js +9 -4
- package/lib/buttons/InactivateButton.js +9 -4
- package/lib/buttons/InfoButton.js +15 -4
- package/lib/buttons/PrimaryButton.js +15 -4
- package/lib/buttons/RestoreButton.js +9 -4
- package/lib/buttons/SaveButton.js +14 -4
- package/lib/buttons/SuccessButton.js +15 -4
- package/lib/buttons/WarningButton.js +15 -4
- package/lib/buttons/button_container/index.js +21 -16
- package/lib/buttons/split_button/index.js +53 -55
- package/lib/calendar/DangerCalendar.js +18 -4
- package/lib/calendar/InfoCalendar.js +18 -4
- package/lib/calendar/PrimaryCalendar.js +18 -4
- package/lib/calendar/SuccessCalendar.js +18 -4
- package/lib/calendar/WarningCalendar.js +18 -4
- package/lib/calendar/base/Day.js +32 -22
- package/lib/calendar/base/Month.js +24 -21
- package/lib/calendar/base/Week.js +20 -19
- package/lib/calendar/base/helpers.js +11 -19
- package/lib/calendar/base/index.js +129 -97
- package/lib/checkbox/index.js +6 -5
- package/lib/chunks/compiler-runtime.Cu50tn6L.js +54 -0
- package/lib/chunks/{index.Da--18GT.js → index.Df3kt2LQ.js} +179 -181
- package/lib/chunks/index.aw0XaUkg.js +266 -0
- package/lib/chunks/jsx-runtime.D1SHvdVE.js +282 -0
- package/lib/chunks/lodash.CIAK_hAg.js +3684 -0
- package/lib/chunks/moment.DMLRxgRE.js +2589 -0
- package/lib/chunks/tabs.BvKfeA6Y.js +244 -0
- package/lib/chunks/v1.Ds1rkxUj.js +49 -0
- package/lib/dialog/Alert.js +18 -17
- package/lib/dialog/Custom.js +42 -28
- package/lib/dialog/Error.js +18 -17
- package/lib/dialog/Information.js +18 -17
- package/lib/dialog/Question.js +43 -59
- package/lib/dialog/Warning.js +18 -17
- package/lib/dialog/base/Content.js +13 -4
- package/lib/dialog/base/Footer.js +8 -3
- package/lib/dialog/base/Header.js +4 -3
- package/lib/dialog/base/index.js +5 -4
- package/lib/dialog/form/index.js +5 -4
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/wizard/index.js +11 -10
- package/lib/dialog/wizard/progressbar.js +96 -3
- package/lib/dialog/wizard/step.js +4 -3
- package/lib/dialog/wizard/useWizard.js +42 -29
- package/lib/drawer/Content.js +15 -8
- package/lib/drawer/Drawer.js +38 -35
- package/lib/drawer/Header.js +53 -40
- package/lib/drawer/helpers.js +2 -2
- package/lib/dropdown/Popup.js +4 -2
- package/lib/dropdown/withDropdown.js +75 -50
- package/lib/fieldset/index.js +66 -47
- package/lib/form/Field.js +88 -62
- package/lib/form/FieldArray.js +18 -39
- package/lib/form/FieldNumber.js +42 -38
- package/lib/form/FieldPeriod.js +90 -59
- package/lib/form/helpers.js +14 -11
- package/lib/form/index.js +88 -100
- package/lib/form/withFieldHOC.js +57 -48
- package/lib/form/withFormSecurity.js +15 -18
- package/lib/gridlayout/GridCol.js +21 -20
- package/lib/gridlayout/GridRow.js +22 -20
- package/lib/hint/helpers.js +6 -2
- package/lib/hint/index.js +27 -25
- package/lib/icons/helper.js +142 -569
- package/lib/icons/index.js +62 -57
- package/lib/index.js +20 -19
- package/lib/inputs/base/InputTextBase.js +121 -207
- package/lib/inputs/base/Label.js +27 -29
- package/lib/inputs/base/helpers.d.ts +3 -3
- package/lib/inputs/base/helpers.js +4 -2
- package/lib/inputs/color/index.js +52 -73
- package/lib/inputs/date/Dialog.js +15 -16
- package/lib/inputs/date/Dropdown.js +16 -14
- package/lib/inputs/date/helpers.js +7 -7
- package/lib/inputs/date/index.js +101 -147
- package/lib/inputs/errorMessage/index.js +21 -13
- package/lib/inputs/file/DefaultFile.js +64 -67
- package/lib/inputs/file/DragDropFile.js +79 -135
- package/lib/inputs/file/File.d.ts +1 -1
- package/lib/inputs/file/File.js +24 -39
- package/lib/inputs/file/FileButtonSettings.js +20 -17
- package/lib/inputs/inputHOC.js +38 -20
- package/lib/inputs/mask/BaseMask.js +51 -30
- package/lib/inputs/mask/Cnpj.js +42 -36
- package/lib/inputs/mask/Cpf.js +45 -33
- package/lib/inputs/mask/Phone.js +10 -6
- package/lib/inputs/mask/ZipCode.js +9 -4
- package/lib/inputs/mask/helpers.d.ts +33 -33
- package/lib/inputs/mask/helpers.js +44 -44
- package/lib/inputs/multiSelect/ActionButtons.js +35 -46
- package/lib/inputs/multiSelect/Dropdown.js +94 -133
- package/lib/inputs/multiSelect/helper.js +4 -7
- package/lib/inputs/multiSelect/index.js +167 -127
- package/lib/inputs/number/BaseNumber.js +43 -31
- package/lib/inputs/number/Currency.js +19 -12
- package/lib/inputs/number/Decimal.js +9 -4
- package/lib/inputs/number/index.js +31 -35
- package/lib/inputs/period/Dialog.js +16 -16
- package/lib/inputs/period/Dropdown.js +15 -15
- package/lib/inputs/period/PeriodList.js +41 -27
- package/lib/inputs/period/helper.js +8 -4
- package/lib/inputs/period/index.js +192 -330
- package/lib/inputs/search/index.js +95 -71
- package/lib/inputs/select/ActionButtons.js +24 -45
- package/lib/inputs/select/Dropdown.js +61 -110
- package/lib/inputs/select/helper.d.ts +1 -1
- package/lib/inputs/select/helper.js +43 -45
- package/lib/inputs/select/index.js +23 -25
- package/lib/inputs/select/multiple/Selecteds.js +23 -19
- package/lib/inputs/select/multiple/index.js +106 -176
- package/lib/inputs/select/simple/index.js +126 -196
- package/lib/inputs/text/index.js +9 -4
- package/lib/inputs/textarea/index.js +13 -15
- package/lib/internals/withTooltip.js +114 -67
- package/lib/labelMessages/index.js +50 -45
- package/lib/labels/DangerLabel.js +18 -4
- package/lib/labels/DefaultLabel.js +53 -39
- package/lib/labels/InfoLabel.js +18 -4
- package/lib/labels/PrimaryLabel.js +18 -4
- package/lib/labels/SuccessLabel.js +18 -4
- package/lib/labels/WarningLabel.js +18 -4
- package/lib/labels/label_container/index.js +15 -9
- package/lib/list/Header.js +18 -6
- package/lib/list/Item.js +5 -4
- package/lib/list/Separator.js +8 -3
- package/lib/list/helpers.js +2 -2
- package/lib/list/index.js +21 -18
- package/lib/menus/float/MenuItem.js +49 -52
- package/lib/menus/float/SubMenuContainer.d.ts +10 -10
- package/lib/menus/float/index.js +102 -81
- package/lib/menus/sidenav/ExpandMenu.js +17 -15
- package/lib/menus/sidenav/MenuLink.js +21 -14
- package/lib/menus/sidenav/NavMenuGroup.js +19 -14
- package/lib/menus/sidenav/NavMenuItem.js +131 -111
- package/lib/menus/sidenav/NavSubMenuItem.js +36 -20
- package/lib/menus/sidenav/helpers.js +4 -4
- package/lib/menus/sidenav/index.js +145 -123
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +21 -17
- package/lib/menus/sidenav/popup_menu_search/index.js +17 -51
- package/lib/noPermission/index.js +13 -8
- package/lib/panel/Content.js +49 -40
- package/lib/panel/DangerPanel.js +10 -5
- package/lib/panel/Default.js +62 -36
- package/lib/panel/Header.js +53 -37
- package/lib/panel/InfoPanel.js +10 -5
- package/lib/panel/PrimaryPanel.js +10 -5
- package/lib/panel/SuccessPanel.js +10 -5
- package/lib/panel/ToolBar.js +17 -4
- package/lib/panel/WarningPanel.js +10 -5
- package/lib/panel/helpers.js +8 -5
- package/lib/permissionValidations.js +15 -11
- package/lib/popover/PopoverText.js +12 -5
- package/lib/popover/PopoverTitle.js +10 -3
- package/lib/popover/index.js +36 -56
- package/lib/progress/Bar.js +43 -34
- package/lib/progress/index.js +23 -18
- package/lib/radio/index.js +105 -89
- package/lib/shortcuts/index.js +20 -7
- package/lib/skeleton/SkeletonContainer.js +16 -6
- package/lib/skeleton/index.js +42 -18
- package/lib/spinner/SpinnerLoading.js +53 -16
- package/lib/spinner/index.js +47 -37
- package/lib/split/Split.js +83 -79
- package/lib/split/SplitSide.js +24 -16
- package/lib/table/Body.js +36 -49
- package/lib/table/Header.js +45 -35
- package/lib/table/HeaderColumn.js +40 -27
- package/lib/table/Row.js +47 -48
- package/lib/table/RowColumn.js +50 -38
- package/lib/table/helpers.js +3 -1
- package/lib/table/index.js +101 -104
- package/lib/tabs/DropdownTabs.js +64 -61
- package/lib/tabs/Menu.js +35 -49
- package/lib/tabs/MenuTabs.js +59 -84
- package/lib/tabs/Panel.js +57 -47
- package/lib/tabs/context.js +36 -40
- package/lib/tabs/index.js +69 -64
- package/lib/tabs/tabHelpers.js +10 -8
- package/lib/textContent/index.js +30 -32
- package/lib/toolbar/ButtonBar.js +62 -58
- package/lib/toolbar/LabelBar.js +46 -38
- package/lib/toolbar/Separator.js +8 -3
- package/lib/toolbar/ToolBarGroup.js +14 -3
- package/lib/toolbar/index.js +35 -29
- package/lib/tooltip/index.js +24 -24
- package/lib/treetable/Body.js +26 -27
- package/lib/treetable/Header.js +23 -19
- package/lib/treetable/Row.js +210 -147
- package/lib/treetable/helpers.d.ts +4 -5
- package/lib/treetable/helpers.js +6 -14
- package/lib/treetable/index.js +25 -15
- package/lib/treeview/Header.js +13 -5
- package/lib/treeview/Node.js +198 -175
- package/lib/treeview/index.js +257 -174
- package/lib/uitour/index.js +167 -166
- package/package.json +32 -43
- package/lib/chunks/index.CmrLK9Qe.js +0 -675
- package/lib/chunks/index.D5f6Ow9V.js +0 -89
- package/lib/chunks/index.yztgndLc.js +0 -206
- package/lib/chunks/jsx-runtime.CYK1ROHF.js +0 -445
- package/lib/chunks/tabs.Cvj2MJH6.js +0 -246
- package/lib/chunks/v1.CDXKvGzE.js +0 -41
- /package/lib/assets/{index29.css → progressbar.css} +0 -0
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { j as l } from "./jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as ve } from "./compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import he, { useContext as re, createContext as be, useRef as ge, useState as Ce, useLayoutEffect as Fe, useEffect as we } from "react";
|
|
4
|
+
import Se from "react-dom";
|
|
5
|
+
import Be from "../dialog/base/Content.js";
|
|
6
|
+
import { r as _e, u as Ie } from "./v1.Ds1rkxUj.js";
|
|
7
|
+
import je from "../icons/index.js";
|
|
8
|
+
import Re from "../buttons/button_container/index.js";
|
|
9
|
+
import "../buttons/DefaultButton.js";
|
|
10
|
+
import '../assets/button.css';/* empty css */
|
|
11
|
+
import Ue from "../dialog/base/Footer.js";
|
|
12
|
+
import Oe from "../spinner/index.js";
|
|
13
|
+
import Le, { FormSecurityContext as $e } from "../form/withFormSecurity.js";
|
|
14
|
+
const Me = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ne = { randomUUID: Me };
|
|
15
|
+
function Pe(t, e, v) {
|
|
16
|
+
t = t || {};
|
|
17
|
+
const u = t.random ?? t.rng?.() ?? _e();
|
|
18
|
+
if (u.length < 16)
|
|
19
|
+
throw new Error("Random bytes length must be >= 16");
|
|
20
|
+
return u[6] = u[6] & 15 | 64, u[8] = u[8] & 63 | 128, Ie(u);
|
|
21
|
+
}
|
|
22
|
+
function ke(t, e, v) {
|
|
23
|
+
return Ne.randomUUID && !t ? Ne.randomUUID() : Pe(t);
|
|
24
|
+
}
|
|
25
|
+
const Ae = (t) => ({
|
|
26
|
+
height: t.height,
|
|
27
|
+
maxHeight: "100%",
|
|
28
|
+
width: t.width,
|
|
29
|
+
textAlign: t.textAlign
|
|
30
|
+
}), He = (t) => /* @__PURE__ */ l.jsx("button", { id: "botao-fechar-modal-cabecalho", className: "close-button", onClick: t, children: /* @__PURE__ */ l.jsx(je, { name: "cancel2" }) }), We = (t, e) => e || (t ? /* @__PURE__ */ l.jsx(je, { name: t, color: "#000" }) : null), ze = (t) => {
|
|
31
|
+
const e = ve.c(18), {
|
|
32
|
+
showCloseButton: v,
|
|
33
|
+
handlerClose: u,
|
|
34
|
+
title: E,
|
|
35
|
+
icon: C,
|
|
36
|
+
titleIcon: h
|
|
37
|
+
} = t, D = v === void 0 ? !0 : v, I = re(xe), R = re(Ee), w = u || R.handleClose, c = I?.headerRef, s = `${C !== null || h !== null ? "left" : ""}`;
|
|
38
|
+
let g;
|
|
39
|
+
e[0] !== C || e[1] !== h ? (g = We(h, C), e[0] = C, e[1] = h, e[2] = g) : g = e[2];
|
|
40
|
+
let a;
|
|
41
|
+
e[3] !== s || e[4] !== g ? (a = /* @__PURE__ */ l.jsx("div", { className: s, children: g }), e[3] = s, e[4] = g, e[5] = a) : a = e[5];
|
|
42
|
+
let d;
|
|
43
|
+
e[6] !== E ? (d = /* @__PURE__ */ l.jsx("h5", { className: "modal-title", children: E }), e[6] = E, e[7] = d) : d = e[7];
|
|
44
|
+
let x;
|
|
45
|
+
e[8] !== w || e[9] !== D ? (x = D && He(w), e[8] = w, e[9] = D, e[10] = x) : x = e[10];
|
|
46
|
+
let m;
|
|
47
|
+
e[11] !== d || e[12] !== x ? (m = /* @__PURE__ */ l.jsxs("div", { className: "right", children: [
|
|
48
|
+
d,
|
|
49
|
+
x
|
|
50
|
+
] }), e[11] = d, e[12] = x, e[13] = m) : m = e[13];
|
|
51
|
+
let S;
|
|
52
|
+
return e[14] !== c || e[15] !== a || e[16] !== m ? (S = /* @__PURE__ */ l.jsxs("div", { role: "button", tabIndex: -1, onFocus: Te, onBlur: Xe, ref: c, className: "dialog-header", children: [
|
|
53
|
+
a,
|
|
54
|
+
m
|
|
55
|
+
] }), e[14] = c, e[15] = a, e[16] = m, e[17] = S) : S = e[17], S;
|
|
56
|
+
};
|
|
57
|
+
function Te() {
|
|
58
|
+
}
|
|
59
|
+
function Xe() {
|
|
60
|
+
}
|
|
61
|
+
const xe = be({}), Ye = (t) => {
|
|
62
|
+
const e = ve.c(33), {
|
|
63
|
+
showFooter: v,
|
|
64
|
+
isWaiting: u,
|
|
65
|
+
width: E,
|
|
66
|
+
height: C,
|
|
67
|
+
content: h,
|
|
68
|
+
children: D,
|
|
69
|
+
className: I,
|
|
70
|
+
wrapperClassName: R,
|
|
71
|
+
contentClassName: w
|
|
72
|
+
} = t, c = v === void 0 ? !0 : v, s = u === void 0 ? !1 : u, g = E === void 0 ? "50%" : E, a = C === void 0 ? "50%" : C, d = I === void 0 ? "" : I, x = R === void 0 ? "" : R, m = w === void 0 ? "" : w, S = ge(null), $ = re($e);
|
|
73
|
+
let B;
|
|
74
|
+
e[0] !== s ? (B = s ? {
|
|
75
|
+
opacity: 0.4,
|
|
76
|
+
pointerEvent: "none"
|
|
77
|
+
} : {}, e[0] = s, e[1] = B) : B = e[1];
|
|
78
|
+
const o = B;
|
|
79
|
+
let U;
|
|
80
|
+
e[2] !== s ? (U = () => s ? /* @__PURE__ */ l.jsx("div", { className: "waitingspinner", children: /* @__PURE__ */ l.jsx(Oe, { style: {
|
|
81
|
+
width: 60
|
|
82
|
+
}, delayTime: 0 }) }) : null, e[2] = s, e[3] = U) : U = e[3];
|
|
83
|
+
const i = U;
|
|
84
|
+
let O;
|
|
85
|
+
e[4] === Symbol.for("react.memo_cache_sentinel") ? (O = {
|
|
86
|
+
headerRef: S
|
|
87
|
+
}, e[4] = O) : O = e[4];
|
|
88
|
+
const M = `dialog-form-wrapper ${x}`;
|
|
89
|
+
let p;
|
|
90
|
+
e[5] !== t.handlerClose || e[6] !== t.icon || e[7] !== t.title ? (p = t.title && /* @__PURE__ */ l.jsx("div", { className: "header-form", children: /* @__PURE__ */ l.jsx(ze, { title: t.title, handlerClose: t.handlerClose, icon: t.icon }) }), e[5] = t.handlerClose, e[6] = t.icon, e[7] = t.title, e[8] = p) : p = e[8];
|
|
91
|
+
let n;
|
|
92
|
+
e[9] !== o || e[10] !== t.styleForContent ? (n = {
|
|
93
|
+
...t.styleForContent,
|
|
94
|
+
...o
|
|
95
|
+
}, e[9] = o, e[10] = t.styleForContent, e[11] = n) : n = e[11];
|
|
96
|
+
const _ = h || D;
|
|
97
|
+
let r;
|
|
98
|
+
e[12] !== m || e[13] !== n || e[14] !== _ ? (r = /* @__PURE__ */ l.jsx(Be, { styleForContent: n, className: m, children: _ }), e[12] = m, e[13] = n, e[14] = _, e[15] = r) : r = e[15];
|
|
99
|
+
let y;
|
|
100
|
+
e[16] !== i ? (y = i(), e[16] = i, e[17] = y) : y = e[17];
|
|
101
|
+
let N;
|
|
102
|
+
e[18] !== $ || e[19] !== o || e[20] !== t || e[21] !== c ? (N = c && t.buttons && /* @__PURE__ */ l.jsx(Ue, { children: /* @__PURE__ */ l.jsx(Re, { ...t, style: {
|
|
103
|
+
...o
|
|
104
|
+
}, children: he.Children.toArray(t.buttons.map((b) => $ && $.securityBeforeUnload && b && b.type && b.type.name === "CancelButton" ? he.cloneElement(b, {
|
|
105
|
+
onClick: t.handlerClose
|
|
106
|
+
}) : he.cloneElement(b))) }) }), e[18] = $, e[19] = o, e[20] = t, e[21] = c, e[22] = N) : N = e[22];
|
|
107
|
+
let F;
|
|
108
|
+
return e[23] !== d || e[24] !== a || e[25] !== t || e[26] !== M || e[27] !== p || e[28] !== r || e[29] !== y || e[30] !== N || e[31] !== g ? (F = /* @__PURE__ */ l.jsx(xe.Provider, { value: O, children: /* @__PURE__ */ l.jsxs(Ke, { width: g, height: a, ...t, className: d, wrapperClassName: M, children: [
|
|
109
|
+
p,
|
|
110
|
+
r,
|
|
111
|
+
y,
|
|
112
|
+
N
|
|
113
|
+
] }) }), e[23] = d, e[24] = a, e[25] = t, e[26] = M, e[27] = p, e[28] = r, e[29] = y, e[30] = N, e[31] = g, e[32] = F) : F = e[32], F;
|
|
114
|
+
}, at = Le(Ye), Ee = be({}), {
|
|
115
|
+
body: qe
|
|
116
|
+
} = document, Ke = (t) => {
|
|
117
|
+
const e = ve.c(62);
|
|
118
|
+
let v;
|
|
119
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (v = ke(), e[0] = v) : v = e[0];
|
|
120
|
+
const u = v, {
|
|
121
|
+
id: E,
|
|
122
|
+
overlay: C,
|
|
123
|
+
closeOnEsc: h,
|
|
124
|
+
closeOnOutsideClick: D,
|
|
125
|
+
wrapperClassName: I,
|
|
126
|
+
className: R,
|
|
127
|
+
children: w,
|
|
128
|
+
open: c,
|
|
129
|
+
onOpenChange: s,
|
|
130
|
+
zIndex: g,
|
|
131
|
+
handlerClose: a
|
|
132
|
+
} = t, d = E === void 0 ? u : E, x = C === void 0 ? !0 : C, m = I === void 0 ? "" : I, S = R === void 0 ? "" : R, $ = g === void 0 ? 0 : g, {
|
|
133
|
+
headerRef: B
|
|
134
|
+
} = re(xe), o = ge(null), U = ge(null), [i, O] = Ce(!1), [M, p] = Ce(c), n = M === void 0 ? !0 : M;
|
|
135
|
+
c !== void 0 && c !== n && p(c);
|
|
136
|
+
let _;
|
|
137
|
+
e[1] !== a || e[2] !== s || e[3] !== c ? (_ = () => {
|
|
138
|
+
c !== void 0 && s ? s(!1) : (a && a(), s && s(!1));
|
|
139
|
+
}, e[1] = a, e[2] = s, e[3] = c, e[4] = _) : _ = e[4];
|
|
140
|
+
const r = _;
|
|
141
|
+
let y;
|
|
142
|
+
e[5] !== D || e[6] !== r || e[7] !== i ? (y = (f) => {
|
|
143
|
+
if (!D)
|
|
144
|
+
return;
|
|
145
|
+
const j = f.target;
|
|
146
|
+
f.stopPropagation(), o !== null && o.current !== null && !i && !o.current.contains(j) && r();
|
|
147
|
+
}, e[5] = D, e[6] = r, e[7] = i, e[8] = y) : y = e[8];
|
|
148
|
+
const N = y;
|
|
149
|
+
let F;
|
|
150
|
+
e[9] !== r ? (F = (f) => {
|
|
151
|
+
f?.key === "Escape" && (f.stopPropagation(), r());
|
|
152
|
+
}, e[9] = r, e[10] = F) : F = e[10];
|
|
153
|
+
const b = F;
|
|
154
|
+
let Y;
|
|
155
|
+
e[11] === Symbol.for("react.memo_cache_sentinel") ? (Y = (f) => {
|
|
156
|
+
const j = !U.current?.contains(f.relatedTarget), X = o.current?.querySelector("#modal-dialog-content")?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
157
|
+
if (j && X?.length) {
|
|
158
|
+
const ie = X[0];
|
|
159
|
+
setTimeout(() => {
|
|
160
|
+
ie.focus();
|
|
161
|
+
}, 150);
|
|
162
|
+
}
|
|
163
|
+
}, e[11] = Y) : Y = e[11];
|
|
164
|
+
const De = Y;
|
|
165
|
+
let q;
|
|
166
|
+
e[12] === Symbol.for("react.memo_cache_sentinel") ? (q = (f) => {
|
|
167
|
+
const {
|
|
168
|
+
positionX: j,
|
|
169
|
+
positionY: L
|
|
170
|
+
} = f;
|
|
171
|
+
if (o.current) {
|
|
172
|
+
const {
|
|
173
|
+
width: X,
|
|
174
|
+
height: ie
|
|
175
|
+
} = o.current.getBoundingClientRect();
|
|
176
|
+
let fe = j <= 0 ? 0 : j, ue = L <= 0 ? 0 : L;
|
|
177
|
+
fe + X >= window.innerWidth && (fe = window.innerWidth - X), ue + ie >= window.innerHeight && (ue = window.innerHeight - ie), o.current.style.transform = `translate(${fe}px, ${ue}px)`, o.current.style.transition = "none", o.current.style.left = "0", o.current.style.top = "0", o.current.style.position = "absolute";
|
|
178
|
+
}
|
|
179
|
+
}, e[12] = q) : q = e[12];
|
|
180
|
+
const pe = q;
|
|
181
|
+
let K;
|
|
182
|
+
e[13] !== i ? (K = (f) => {
|
|
183
|
+
if (o.current && i) {
|
|
184
|
+
const {
|
|
185
|
+
left: j,
|
|
186
|
+
top: L
|
|
187
|
+
} = o.current.getBoundingClientRect();
|
|
188
|
+
pe({
|
|
189
|
+
positionX: f.movementX + j,
|
|
190
|
+
positionY: f.movementY + L
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
}, e[13] = i, e[14] = K) : K = e[14];
|
|
194
|
+
const G = K;
|
|
195
|
+
let J;
|
|
196
|
+
e[15] !== B ? (J = (f) => {
|
|
197
|
+
const j = f.target, L = B?.current?.contains(j);
|
|
198
|
+
o.current && L && O(!0);
|
|
199
|
+
}, e[15] = B, e[16] = J) : J = e[16];
|
|
200
|
+
const Q = J;
|
|
201
|
+
let V;
|
|
202
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (V = () => {
|
|
203
|
+
o.current && O(!1);
|
|
204
|
+
}, e[17] = V) : V = e[17];
|
|
205
|
+
const ye = V, ce = 99999 + Number($);
|
|
206
|
+
let P;
|
|
207
|
+
e[18] !== ce ? (P = {
|
|
208
|
+
zIndex: ce
|
|
209
|
+
}, e[18] = ce, e[19] = P) : P = e[19];
|
|
210
|
+
let k;
|
|
211
|
+
e[20] !== x ? (k = x && /* @__PURE__ */ l.jsx("div", { className: "modal-overlay", "data-testid": "modal-overlay" }), e[20] = x, e[21] = k) : k = e[21];
|
|
212
|
+
const ae = `dialog ${S}`;
|
|
213
|
+
let A;
|
|
214
|
+
e[22] !== t ? (A = Ae(t), e[22] = t, e[23] = A) : A = e[23];
|
|
215
|
+
let H;
|
|
216
|
+
e[24] !== w || e[25] !== A || e[26] !== m ? (H = /* @__PURE__ */ l.jsx("div", { className: m, "data-testid": "dialog-wrapper", style: A, ref: o, children: w }), e[24] = w, e[25] = A, e[26] = m, e[27] = H) : H = e[27];
|
|
217
|
+
let W;
|
|
218
|
+
e[28] !== ae || e[29] !== H ? (W = /* @__PURE__ */ l.jsx("div", { className: ae, "data-testid": "dialog-component", children: H }), e[28] = ae, e[29] = H, e[30] = W) : W = e[30];
|
|
219
|
+
let Z;
|
|
220
|
+
e[31] !== N || e[32] !== d || e[33] !== P || e[34] !== k || e[35] !== W ? (Z = /* @__PURE__ */ l.jsxs("div", { id: d, ref: U, onBlur: De, className: "modalcontainer", onMouseDown: N, style: P, children: [
|
|
221
|
+
k,
|
|
222
|
+
W
|
|
223
|
+
] }), e[31] = N, e[32] = d, e[33] = P, e[34] = k, e[35] = W, e[36] = Z) : Z = e[36];
|
|
224
|
+
const de = Z;
|
|
225
|
+
let ee;
|
|
226
|
+
e[37] === Symbol.for("react.memo_cache_sentinel") ? (ee = [], e[37] = ee) : ee = e[37], Fe(Ge, ee);
|
|
227
|
+
let te;
|
|
228
|
+
e[38] !== h || e[39] !== b || e[40] !== n ? (te = () => (n && h && document.addEventListener("keydown", b), () => {
|
|
229
|
+
document.removeEventListener("keydown", b);
|
|
230
|
+
}), e[38] = h, e[39] = b, e[40] = n, e[41] = te) : te = e[41];
|
|
231
|
+
let ne;
|
|
232
|
+
e[42] !== h || e[43] !== n ? (ne = [n, h], e[42] = h, e[43] = n, e[44] = ne) : ne = e[44], we(te, ne);
|
|
233
|
+
let oe;
|
|
234
|
+
e[45] !== i || e[46] !== Q || e[47] !== G || e[48] !== n ? (oe = () => (n && (document.addEventListener("mousedown", Q), document.addEventListener("mouseup", ye), i && document.addEventListener("mousemove", G)), () => {
|
|
235
|
+
document.removeEventListener("mousedown", Q), document.removeEventListener("mouseup", ye), document.removeEventListener("mousemove", G);
|
|
236
|
+
}), e[45] = i, e[46] = Q, e[47] = G, e[48] = n, e[49] = oe) : oe = e[49];
|
|
237
|
+
let le;
|
|
238
|
+
if (e[50] !== i || e[51] !== n ? (le = [i, n], e[50] = i, e[51] = n, e[52] = le) : le = e[52], we(oe, le), !n)
|
|
239
|
+
return null;
|
|
240
|
+
const me = s || p;
|
|
241
|
+
let z;
|
|
242
|
+
e[53] !== r || e[54] !== n || e[55] !== me ? (z = {
|
|
243
|
+
handleClose: r,
|
|
244
|
+
open: n,
|
|
245
|
+
onOpenChange: me
|
|
246
|
+
}, e[53] = r, e[54] = n, e[55] = me, e[56] = z) : z = e[56];
|
|
247
|
+
let T;
|
|
248
|
+
e[57] !== de ? (T = Se.createPortal(de, qe), e[57] = de, e[58] = T) : T = e[58];
|
|
249
|
+
let se;
|
|
250
|
+
return e[59] !== z || e[60] !== T ? (se = /* @__PURE__ */ l.jsx(Ee.Provider, { value: z, children: T }), e[59] = z, e[60] = T, e[61] = se) : se = e[61], se;
|
|
251
|
+
};
|
|
252
|
+
function Ge() {
|
|
253
|
+
const {
|
|
254
|
+
activeElement: t
|
|
255
|
+
} = document, e = t;
|
|
256
|
+
return () => {
|
|
257
|
+
e?.focus();
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
export {
|
|
261
|
+
Ke as B,
|
|
262
|
+
Ee as D,
|
|
263
|
+
at as F,
|
|
264
|
+
ze as H,
|
|
265
|
+
xe as a
|
|
266
|
+
};
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import K from "react";
|
|
2
|
+
var v = { exports: {} }, m = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var $;
|
|
13
|
+
function ee() {
|
|
14
|
+
if ($) return m;
|
|
15
|
+
$ = 1;
|
|
16
|
+
var l = Symbol.for("react.transitional.element"), E = Symbol.for("react.fragment");
|
|
17
|
+
function c(i, o, s) {
|
|
18
|
+
var f = null;
|
|
19
|
+
if (s !== void 0 && (f = "" + s), o.key !== void 0 && (f = "" + o.key), "key" in o) {
|
|
20
|
+
s = {};
|
|
21
|
+
for (var d in o)
|
|
22
|
+
d !== "key" && (s[d] = o[d]);
|
|
23
|
+
} else s = o;
|
|
24
|
+
return o = s.ref, {
|
|
25
|
+
$$typeof: l,
|
|
26
|
+
type: i,
|
|
27
|
+
key: f,
|
|
28
|
+
ref: o !== void 0 ? o : null,
|
|
29
|
+
props: s
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return m.Fragment = E, m.jsx = c, m.jsxs = c, m;
|
|
33
|
+
}
|
|
34
|
+
var _ = {};
|
|
35
|
+
/**
|
|
36
|
+
* @license React
|
|
37
|
+
* react-jsx-runtime.development.js
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the MIT license found in the
|
|
42
|
+
* LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/
|
|
44
|
+
var I;
|
|
45
|
+
function re() {
|
|
46
|
+
return I || (I = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
47
|
+
function l(e) {
|
|
48
|
+
if (e == null) return null;
|
|
49
|
+
if (typeof e == "function")
|
|
50
|
+
return e.$$typeof === H ? null : e.displayName || e.name || null;
|
|
51
|
+
if (typeof e == "string") return e;
|
|
52
|
+
switch (e) {
|
|
53
|
+
case p:
|
|
54
|
+
return "Fragment";
|
|
55
|
+
case U:
|
|
56
|
+
return "Profiler";
|
|
57
|
+
case W:
|
|
58
|
+
return "StrictMode";
|
|
59
|
+
case z:
|
|
60
|
+
return "Suspense";
|
|
61
|
+
case G:
|
|
62
|
+
return "SuspenseList";
|
|
63
|
+
case B:
|
|
64
|
+
return "Activity";
|
|
65
|
+
}
|
|
66
|
+
if (typeof e == "object")
|
|
67
|
+
switch (typeof e.tag == "number" && console.error(
|
|
68
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
+
), e.$$typeof) {
|
|
70
|
+
case M:
|
|
71
|
+
return "Portal";
|
|
72
|
+
case V:
|
|
73
|
+
return e.displayName || "Context";
|
|
74
|
+
case J:
|
|
75
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
76
|
+
case q:
|
|
77
|
+
var r = e.render;
|
|
78
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
79
|
+
case X:
|
|
80
|
+
return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
|
|
81
|
+
case T:
|
|
82
|
+
r = e._payload, e = e._init;
|
|
83
|
+
try {
|
|
84
|
+
return l(e(r));
|
|
85
|
+
} catch {
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
function E(e) {
|
|
91
|
+
return "" + e;
|
|
92
|
+
}
|
|
93
|
+
function c(e) {
|
|
94
|
+
try {
|
|
95
|
+
E(e);
|
|
96
|
+
var r = !1;
|
|
97
|
+
} catch {
|
|
98
|
+
r = !0;
|
|
99
|
+
}
|
|
100
|
+
if (r) {
|
|
101
|
+
r = console;
|
|
102
|
+
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
103
|
+
return t.call(
|
|
104
|
+
r,
|
|
105
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
|
+
n
|
|
107
|
+
), E(e);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function i(e) {
|
|
111
|
+
if (e === p) return "<>";
|
|
112
|
+
if (typeof e == "object" && e !== null && e.$$typeof === T)
|
|
113
|
+
return "<...>";
|
|
114
|
+
try {
|
|
115
|
+
var r = l(e);
|
|
116
|
+
return r ? "<" + r + ">" : "<...>";
|
|
117
|
+
} catch {
|
|
118
|
+
return "<...>";
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function o() {
|
|
122
|
+
var e = k.A;
|
|
123
|
+
return e === null ? null : e.getOwner();
|
|
124
|
+
}
|
|
125
|
+
function s() {
|
|
126
|
+
return Error("react-stack-top-frame");
|
|
127
|
+
}
|
|
128
|
+
function f(e) {
|
|
129
|
+
if (x.call(e, "key")) {
|
|
130
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
131
|
+
if (r && r.isReactWarning) return !1;
|
|
132
|
+
}
|
|
133
|
+
return e.key !== void 0;
|
|
134
|
+
}
|
|
135
|
+
function d(e, r) {
|
|
136
|
+
function t() {
|
|
137
|
+
g || (g = !0, console.error(
|
|
138
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
139
|
+
r
|
|
140
|
+
));
|
|
141
|
+
}
|
|
142
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
143
|
+
get: t,
|
|
144
|
+
configurable: !0
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
function D() {
|
|
148
|
+
var e = l(this.type);
|
|
149
|
+
return h[e] || (h[e] = !0, console.error(
|
|
150
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
151
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
152
|
+
}
|
|
153
|
+
function L(e, r, t, n, b, A) {
|
|
154
|
+
var a = t.ref;
|
|
155
|
+
return e = {
|
|
156
|
+
$$typeof: j,
|
|
157
|
+
type: e,
|
|
158
|
+
key: r,
|
|
159
|
+
props: t,
|
|
160
|
+
_owner: n
|
|
161
|
+
}, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", {
|
|
162
|
+
enumerable: !1,
|
|
163
|
+
get: D
|
|
164
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
165
|
+
configurable: !1,
|
|
166
|
+
enumerable: !1,
|
|
167
|
+
writable: !0,
|
|
168
|
+
value: 0
|
|
169
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
170
|
+
configurable: !1,
|
|
171
|
+
enumerable: !1,
|
|
172
|
+
writable: !0,
|
|
173
|
+
value: null
|
|
174
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
175
|
+
configurable: !1,
|
|
176
|
+
enumerable: !1,
|
|
177
|
+
writable: !0,
|
|
178
|
+
value: b
|
|
179
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
180
|
+
configurable: !1,
|
|
181
|
+
enumerable: !1,
|
|
182
|
+
writable: !0,
|
|
183
|
+
value: A
|
|
184
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
185
|
+
}
|
|
186
|
+
function P(e, r, t, n, b, A) {
|
|
187
|
+
var a = r.children;
|
|
188
|
+
if (a !== void 0)
|
|
189
|
+
if (n)
|
|
190
|
+
if (Z(a)) {
|
|
191
|
+
for (n = 0; n < a.length; n++)
|
|
192
|
+
w(a[n]);
|
|
193
|
+
Object.freeze && Object.freeze(a);
|
|
194
|
+
} else
|
|
195
|
+
console.error(
|
|
196
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
|
+
);
|
|
198
|
+
else w(a);
|
|
199
|
+
if (x.call(r, "key")) {
|
|
200
|
+
a = l(e);
|
|
201
|
+
var u = Object.keys(r).filter(function(Q) {
|
|
202
|
+
return Q !== "key";
|
|
203
|
+
});
|
|
204
|
+
n = 0 < u.length ? "{key: someKey, " + u.join(": ..., ") + ": ...}" : "{key: someKey}", Y[a + n] || (u = 0 < u.length ? "{" + u.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
206
|
+
let props = %s;
|
|
207
|
+
<%s {...props} />
|
|
208
|
+
React keys must be passed directly to JSX without using spread:
|
|
209
|
+
let props = %s;
|
|
210
|
+
<%s key={someKey} {...props} />`,
|
|
211
|
+
n,
|
|
212
|
+
a,
|
|
213
|
+
u,
|
|
214
|
+
a
|
|
215
|
+
), Y[a + n] = !0);
|
|
216
|
+
}
|
|
217
|
+
if (a = null, t !== void 0 && (c(t), a = "" + t), f(r) && (c(r.key), a = "" + r.key), "key" in r) {
|
|
218
|
+
t = {};
|
|
219
|
+
for (var S in r)
|
|
220
|
+
S !== "key" && (t[S] = r[S]);
|
|
221
|
+
} else t = r;
|
|
222
|
+
return a && d(
|
|
223
|
+
t,
|
|
224
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
225
|
+
), L(
|
|
226
|
+
e,
|
|
227
|
+
a,
|
|
228
|
+
t,
|
|
229
|
+
o(),
|
|
230
|
+
b,
|
|
231
|
+
A
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
function w(e) {
|
|
235
|
+
y(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === T && (e._payload.status === "fulfilled" ? y(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
236
|
+
}
|
|
237
|
+
function y(e) {
|
|
238
|
+
return typeof e == "object" && e !== null && e.$$typeof === j;
|
|
239
|
+
}
|
|
240
|
+
var R = K, j = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), U = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), V = Symbol.for("react.context"), q = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), X = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), k = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, x = Object.prototype.hasOwnProperty, Z = Array.isArray, O = console.createTask ? console.createTask : function() {
|
|
241
|
+
return null;
|
|
242
|
+
};
|
|
243
|
+
R = {
|
|
244
|
+
react_stack_bottom_frame: function(e) {
|
|
245
|
+
return e();
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
var g, h = {}, N = R.react_stack_bottom_frame.bind(
|
|
249
|
+
R,
|
|
250
|
+
s
|
|
251
|
+
)(), C = O(i(s)), Y = {};
|
|
252
|
+
_.Fragment = p, _.jsx = function(e, r, t) {
|
|
253
|
+
var n = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
254
|
+
return P(
|
|
255
|
+
e,
|
|
256
|
+
r,
|
|
257
|
+
t,
|
|
258
|
+
!1,
|
|
259
|
+
n ? Error("react-stack-top-frame") : N,
|
|
260
|
+
n ? O(i(e)) : C
|
|
261
|
+
);
|
|
262
|
+
}, _.jsxs = function(e, r, t) {
|
|
263
|
+
var n = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
264
|
+
return P(
|
|
265
|
+
e,
|
|
266
|
+
r,
|
|
267
|
+
t,
|
|
268
|
+
!0,
|
|
269
|
+
n ? Error("react-stack-top-frame") : N,
|
|
270
|
+
n ? O(i(e)) : C
|
|
271
|
+
);
|
|
272
|
+
};
|
|
273
|
+
})()), _;
|
|
274
|
+
}
|
|
275
|
+
var F;
|
|
276
|
+
function te() {
|
|
277
|
+
return F || (F = 1, process.env.NODE_ENV === "production" ? v.exports = ee() : v.exports = re()), v.exports;
|
|
278
|
+
}
|
|
279
|
+
var ae = te();
|
|
280
|
+
export {
|
|
281
|
+
ae as j
|
|
282
|
+
};
|