@ethora/chat-component 26.7.6 → 26.7.8
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/dist/ChatProfileModal-k4_0ol-1.js +2135 -0
- package/dist/FilePreviewModal-BYoSZ4d1.js +743 -0
- package/dist/{ManageDataModal-CDPXcC93.js → ManageDataModal-Dje7zTG4.js} +68 -49
- package/dist/{MarkdownBody-DBJGraWM.js → MarkdownBody-Cm3GPQGA.js} +1 -1
- package/dist/{SideDrawer-Dr_lkaOW.js → SideDrawer-DWeOHKWM.js} +110 -66
- package/dist/UserProfileModal-CUcGYJb9.js +574 -0
- package/dist/{UserSettingsModal-OcAJao-d.js → UserSettingsModal-LWwOt5TY.js} +2 -2
- package/dist/{VideoCallOverlay-CC4sShdK.js → VideoCallOverlay-Dw_ydJ2K.js} +1 -1
- package/dist/{VisibilityModal-DkMhx_2k.js → VisibilityModal-D06gXwjS.js} +2 -2
- package/dist/components/MainComponents/ChatRoomOpeningPreview.d.ts +24 -0
- package/dist/components/MainComponents/ChatWrapper.d.ts +1 -0
- package/dist/components/MainComponents/ChooseChatMessage.d.ts +11 -1
- package/dist/components/Modals/Modal/Modal.d.ts +10 -0
- package/dist/components/Modals/Modal/ModalContent.d.ts +21 -0
- package/dist/components/Modals/ModalBox/ModalBox.d.ts +9 -0
- package/dist/components/Modals/ModalReportChat/ModalReportChat.d.ts +6 -1
- package/dist/components/Modals/ModalWrapper/ModalWrapper.d.ts +8 -0
- package/dist/components/Modals/SettingsModals/SharedStyledComponents.d.ts +12 -0
- package/dist/components/Modals/SideDrawer/DrawerProfileParts.d.ts +29 -0
- package/dist/components/Modals/SideDrawer/SideDrawer.d.ts +21 -1
- package/dist/components/Modals/SidePanel/SidePanel.d.ts +31 -0
- package/dist/components/Modals/UserProfileModal/EditUserModal.d.ts +5 -1
- package/dist/components/Modals/motionVariants.d.ts +37 -0
- package/dist/components/Modals/styledModalComponents.d.ts +0 -1
- package/dist/context/ModalTransitionContext.d.ts +2 -0
- package/dist/handleCopyClick-BOESIBUL.js +108 -0
- package/dist/helpers/buildChatShareLink.d.ts +20 -0
- package/dist/helpers/cacheScope.d.ts +15 -1
- package/dist/helpers/constants/MODAL_TYPES.d.ts +6 -4
- package/dist/helpers/createRoomFromApi.d.ts +1 -1
- package/dist/helpers/formatNumberWithCommas.d.ts +1 -1
- package/dist/hooks/useChatOpenPhase.d.ts +21 -0
- package/dist/hooks/useDelayedAction.d.ts +22 -0
- package/dist/hooks/useExclusiveRightPane.d.ts +25 -0
- package/dist/hooks/useExitTransition.d.ts +24 -0
- package/dist/hooks/useGetNewArchRoom.d.ts +3 -1
- package/dist/hooks/useQRCodeChatHandler.d.ts +29 -1
- package/dist/hooks/useRoomState.d.ts +2 -0
- package/dist/{main-B-8IhwaP.js → main-SdAeI1xI.js} +8449 -7889
- package/dist/main.css +1 -1
- package/dist/main.js +5 -5
- package/dist/roomStore/roomsSlice.d.ts +5 -1
- package/dist/styles/motion.d.ts +27 -0
- package/dist/types/models/room.model.d.ts +28 -0
- package/package.json +10 -2
- package/dist/ChatProfileModal-hxsWI8cx.js +0 -2139
- package/dist/FilePreviewModal-CwWnHsB1.js +0 -736
- package/dist/UserProfileModal-Q_jhXpsX.js +0 -568
- package/dist/handleCopyClick-CpmPa6VI.js +0 -32
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import { S as
|
|
5
|
-
t(
|
|
1
|
+
import { jsxs as o, Fragment as T, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m, useCallback as M } from "react";
|
|
3
|
+
import { av as B, v as t, aw as I, ax as w, B as j, u as z, n as F, F as E, ay as R, J as U, t as x, az as A, aA as $, aB as O, aC as H } from "./main-SdAeI1xI.js";
|
|
4
|
+
import { S as J, D as f, a as u, b as D, e as v, f as b } from "./SideDrawer-DWeOHKWM.js";
|
|
5
|
+
t(I)`
|
|
6
6
|
display: flex;
|
|
7
7
|
box-sizing: border-box;
|
|
8
8
|
align-items: flex-start;
|
|
@@ -19,7 +19,7 @@ t.div`
|
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
gap: 8px;
|
|
21
21
|
`;
|
|
22
|
-
t(
|
|
22
|
+
t(w)`
|
|
23
23
|
font-weight: 600;
|
|
24
24
|
text-align: start;
|
|
25
25
|
flex-wrap: wrap;
|
|
@@ -31,50 +31,69 @@ t.div`
|
|
|
31
31
|
align-items: center;
|
|
32
32
|
gap: 4px;
|
|
33
33
|
`;
|
|
34
|
-
t(
|
|
34
|
+
t(w)`
|
|
35
35
|
font-size: 12px;
|
|
36
36
|
text-align: start;
|
|
37
37
|
color: var(--ethora-color-text-muted, #8c8c8c);
|
|
38
38
|
`;
|
|
39
|
-
const
|
|
40
|
-
min-height:
|
|
39
|
+
const y = t(j)`
|
|
40
|
+
min-height: 44px;
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-direction: column;
|
|
43
|
-
gap:
|
|
43
|
+
gap: var(--ethora-space-1, 4px);
|
|
44
44
|
align-items: center;
|
|
45
45
|
justify-content: center;
|
|
46
46
|
text-align: center;
|
|
47
47
|
width: 100%;
|
|
48
|
-
padding: 8px;
|
|
49
|
-
border-radius: var(--ethora-radius-
|
|
50
|
-
border: 1px solid ${({ borderColor:
|
|
51
|
-
|
|
48
|
+
padding: var(--ethora-space-2, 8px) var(--ethora-space-4, 16px);
|
|
49
|
+
border-radius: var(--ethora-radius-md, 12px);
|
|
50
|
+
border: 1px solid ${({ borderColor: r }) => r};
|
|
51
|
+
font-weight: var(--ethora-font-weight-semibold, 600);
|
|
52
|
+
transition: background-color var(--ethora-motion-fast, 150ms),
|
|
53
|
+
box-shadow var(--ethora-motion-fast, 150ms);
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
background-color: var(--ethora-color-bg-hover, #f0f2f5);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:focus-visible {
|
|
60
|
+
outline: 2px solid var(--ethora-color-primary, #0052cd);
|
|
61
|
+
outline-offset: 2px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:active {
|
|
65
|
+
box-shadow: var(--ethora-shadow-sm, 0 1px 2px rgba(16, 24, 40, 0.06));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
${B}
|
|
69
|
+
`, P = t.div`
|
|
52
70
|
display: flex;
|
|
53
71
|
align-items: flex-start;
|
|
54
|
-
background-color: ${({ bgColor:
|
|
55
|
-
padding: 16px;
|
|
56
|
-
border-radius: var(--ethora-radius-
|
|
57
|
-
gap: 8px;
|
|
58
|
-
`,
|
|
59
|
-
font-size: 12px;
|
|
72
|
+
background-color: ${({ bgColor: r }) => r};
|
|
73
|
+
padding: var(--ethora-space-4, 16px);
|
|
74
|
+
border-radius: var(--ethora-radius-md, 12px);
|
|
75
|
+
gap: var(--ethora-space-2, 8px);
|
|
76
|
+
`, W = t.div`
|
|
77
|
+
font-size: var(--ethora-font-size-xs, 12px);
|
|
78
|
+
line-height: var(--ethora-line-height-normal, 1.5);
|
|
60
79
|
color: var(--ethora-color-text, #141414);
|
|
61
80
|
display: flex;
|
|
62
81
|
text-align: start;
|
|
63
|
-
`,
|
|
64
|
-
handleCloseModal:
|
|
82
|
+
`, Q = ({
|
|
83
|
+
handleCloseModal: r
|
|
65
84
|
}) => {
|
|
66
|
-
const { config:
|
|
67
|
-
const p = (await
|
|
68
|
-
|
|
69
|
-
const L = new Blob([p], { type: "text/plain" }),
|
|
70
|
-
n.href =
|
|
85
|
+
const { config: l } = z((s) => s.chatSettingStore), e = F(), { showToast: d } = E(), [C, c] = m(!1), [i, g] = m(!1), S = async () => {
|
|
86
|
+
const p = (await H()).data;
|
|
87
|
+
x.log(p);
|
|
88
|
+
const L = new Blob([p], { type: "text/plain" }), h = URL.createObjectURL(L), n = document.createElement("a");
|
|
89
|
+
n.href = h, n.download = "mydata.json", document.body.appendChild(n), n.click(), document.body.removeChild(n), URL.revokeObjectURL(h);
|
|
71
90
|
}, k = M(async () => {
|
|
72
91
|
if (!i) {
|
|
73
92
|
g(!0);
|
|
74
93
|
try {
|
|
75
94
|
await R(), c(!1), await U.performLogout();
|
|
76
|
-
} catch (
|
|
77
|
-
|
|
95
|
+
} catch (s) {
|
|
96
|
+
x.error("Failed to delete account", s), d({
|
|
78
97
|
id: Date.now().toString(),
|
|
79
98
|
title: e("toast.error"),
|
|
80
99
|
message: e("settings.manageData.deleteFailed"),
|
|
@@ -84,22 +103,22 @@ const C = t(B)`
|
|
|
84
103
|
}
|
|
85
104
|
}
|
|
86
105
|
}, [i, d, e]);
|
|
87
|
-
return /* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */
|
|
89
|
-
|
|
106
|
+
return /* @__PURE__ */ o(T, { children: [
|
|
107
|
+
/* @__PURE__ */ o(
|
|
108
|
+
J,
|
|
90
109
|
{
|
|
91
110
|
title: e("settings.manageData.title"),
|
|
92
|
-
onClose:
|
|
111
|
+
onClose: r,
|
|
93
112
|
backLabel: e("action.back"),
|
|
94
113
|
children: [
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */ a(
|
|
97
|
-
/* @__PURE__ */ a(
|
|
114
|
+
/* @__PURE__ */ o(f, { children: [
|
|
115
|
+
/* @__PURE__ */ a(u, { children: e("settings.manageData.section.export") }),
|
|
116
|
+
/* @__PURE__ */ a(D, { children: /* @__PURE__ */ o(v, { children: [
|
|
98
117
|
/* @__PURE__ */ a(b, { children: e("settings.manageData.downloadDescription") }),
|
|
99
118
|
/* @__PURE__ */ a(
|
|
100
|
-
|
|
119
|
+
y,
|
|
101
120
|
{
|
|
102
|
-
borderColor:
|
|
121
|
+
borderColor: l?.colors?.primary || "var(--ethora-color-primary, #0052CD)",
|
|
103
122
|
onClick: S,
|
|
104
123
|
style: { marginTop: "var(--ethora-space-2, 8px)" },
|
|
105
124
|
children: e("settings.manageData.downloadLabel")
|
|
@@ -107,23 +126,23 @@ const C = t(B)`
|
|
|
107
126
|
)
|
|
108
127
|
] }) })
|
|
109
128
|
] }),
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
/* @__PURE__ */ a(
|
|
112
|
-
/* @__PURE__ */ a(
|
|
129
|
+
/* @__PURE__ */ o(f, { children: [
|
|
130
|
+
/* @__PURE__ */ a(u, { children: e("settings.manageData.deleteLabel") }),
|
|
131
|
+
/* @__PURE__ */ a(D, { children: /* @__PURE__ */ o(v, { children: [
|
|
113
132
|
/* @__PURE__ */ a(b, { children: e("settings.manageData.deleteDescription") }),
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
|
|
133
|
+
/* @__PURE__ */ o(
|
|
134
|
+
P,
|
|
116
135
|
{
|
|
117
|
-
bgColor:
|
|
136
|
+
bgColor: l?.colors?.secondary || "var(--ethora-color-primary-soft, #E7EDF9)",
|
|
118
137
|
style: { marginTop: "var(--ethora-space-2, 8px)" },
|
|
119
138
|
children: [
|
|
120
|
-
/* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
|
|
121
|
-
/* @__PURE__ */ a(
|
|
139
|
+
/* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(A, { color: $(l) }) }),
|
|
140
|
+
/* @__PURE__ */ a(W, { children: e("settings.manageData.deleteDisclosure") })
|
|
122
141
|
]
|
|
123
142
|
}
|
|
124
143
|
),
|
|
125
144
|
/* @__PURE__ */ a(
|
|
126
|
-
|
|
145
|
+
y,
|
|
127
146
|
{
|
|
128
147
|
borderColor: "var(--ethora-color-danger, #D92D20)",
|
|
129
148
|
style: {
|
|
@@ -139,7 +158,7 @@ const C = t(B)`
|
|
|
139
158
|
]
|
|
140
159
|
}
|
|
141
160
|
),
|
|
142
|
-
|
|
161
|
+
C && /* @__PURE__ */ a(
|
|
143
162
|
O,
|
|
144
163
|
{
|
|
145
164
|
title: e("settings.manageData.deleteConfirmTitle"),
|
|
@@ -155,5 +174,5 @@ const C = t(B)`
|
|
|
155
174
|
] });
|
|
156
175
|
};
|
|
157
176
|
export {
|
|
158
|
-
|
|
177
|
+
Q as default
|
|
159
178
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as fs, jsx as ie, Fragment as hs } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { m as ei } from "./main-
|
|
3
|
+
import { m as ei } from "./main-SdAeI1xI.js";
|
|
4
4
|
function zr(e) {
|
|
5
5
|
const t = [], n = String(e || "");
|
|
6
6
|
let r = n.indexOf(","), u = 0, i = !1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useId as
|
|
3
|
-
import { n as
|
|
4
|
-
const c = 767,
|
|
1
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useId as f, useRef as v } from "react";
|
|
3
|
+
import { n as u, w as g, aF as m, aG as w, B as b, aH as y, v as e, aI as D, aJ as k } from "./main-SdAeI1xI.js";
|
|
4
|
+
const c = 767, R = `${c}px`, z = e.div`
|
|
5
5
|
position: relative;
|
|
6
6
|
pointer-events: auto;
|
|
7
7
|
display: flex;
|
|
@@ -11,15 +11,16 @@ const c = 767, D = `${c}px`, y = e.div`
|
|
|
11
11
|
height: 100%;
|
|
12
12
|
background-color: var(--ethora-color-bg, #fff);
|
|
13
13
|
overflow: hidden;
|
|
14
|
-
${
|
|
14
|
+
${({ $closing: r }) => r ? D : k}
|
|
15
15
|
|
|
16
|
+
/* The width belongs to the column (SidePanel), not to the panel: this is
|
|
17
|
+
in-layout furniture now, so it takes the space it is given. A hairline
|
|
18
|
+
separates it from the chat; the drop shadow it used to carry belonged to
|
|
19
|
+
a floating overlay and read as wrong once the panel stopped floating. */
|
|
16
20
|
@media (min-width: 768px) {
|
|
17
|
-
width: 400px;
|
|
18
|
-
max-width: 100%;
|
|
19
21
|
border-left: 1px solid var(--ethora-color-border, #e6e8ec);
|
|
20
|
-
box-shadow: var(--ethora-shadow-lg, 0 12px 32px rgba(16, 24, 40, 0.14));
|
|
21
22
|
}
|
|
22
|
-
`,
|
|
23
|
+
`, B = e.header`
|
|
23
24
|
display: flex;
|
|
24
25
|
align-items: center;
|
|
25
26
|
gap: var(--ethora-space-2, 8px);
|
|
@@ -27,7 +28,7 @@ const c = 767, D = `${c}px`, y = e.div`
|
|
|
27
28
|
padding: var(--ethora-space-2, 8px) var(--ethora-space-3, 12px);
|
|
28
29
|
border-bottom: 1px solid var(--ethora-color-border, #e6e8ec);
|
|
29
30
|
background-color: var(--ethora-color-bg, #fff);
|
|
30
|
-
`,
|
|
31
|
+
`, I = e.h2`
|
|
31
32
|
flex: 1 1 auto;
|
|
32
33
|
margin: 0;
|
|
33
34
|
min-width: 0;
|
|
@@ -37,12 +38,12 @@ const c = 767, D = `${c}px`, y = e.div`
|
|
|
37
38
|
overflow: hidden;
|
|
38
39
|
text-overflow: ellipsis;
|
|
39
40
|
white-space: nowrap;
|
|
40
|
-
`,
|
|
41
|
+
`, S = e.div`
|
|
41
42
|
display: flex;
|
|
42
43
|
align-items: center;
|
|
43
44
|
gap: var(--ethora-space-1, 4px);
|
|
44
45
|
flex: 0 0 auto;
|
|
45
|
-
`,
|
|
46
|
+
`, A = e.div`
|
|
46
47
|
flex: 1 1 auto;
|
|
47
48
|
min-height: 0;
|
|
48
49
|
overflow-y: auto;
|
|
@@ -53,15 +54,15 @@ const c = 767, D = `${c}px`, y = e.div`
|
|
|
53
54
|
padding: var(--ethora-space-5, 20px) var(--ethora-space-4, 16px)
|
|
54
55
|
var(--ethora-space-6, 24px);
|
|
55
56
|
|
|
56
|
-
@media (max-width: ${
|
|
57
|
+
@media (max-width: ${R}) {
|
|
57
58
|
padding-left: var(--ethora-space-4, 16px);
|
|
58
59
|
padding-right: var(--ethora-space-4, 16px);
|
|
59
60
|
}
|
|
60
|
-
`,
|
|
61
|
+
`, $ = e.section`
|
|
61
62
|
display: flex;
|
|
62
63
|
flex-direction: column;
|
|
63
64
|
gap: var(--ethora-space-2, 8px);
|
|
64
|
-
`,
|
|
65
|
+
`, O = e.h3`
|
|
65
66
|
margin: 0;
|
|
66
67
|
padding: 0 var(--ethora-space-1, 4px);
|
|
67
68
|
font-size: var(--ethora-font-size-xs, 12px);
|
|
@@ -69,7 +70,7 @@ const c = 767, D = `${c}px`, y = e.div`
|
|
|
69
70
|
letter-spacing: 0.06em;
|
|
70
71
|
text-transform: uppercase;
|
|
71
72
|
color: var(--ethora-color-text-muted, #8c8c8c);
|
|
72
|
-
`,
|
|
73
|
+
`, W = e.div`
|
|
73
74
|
display: flex;
|
|
74
75
|
flex-direction: column;
|
|
75
76
|
box-sizing: border-box;
|
|
@@ -78,17 +79,17 @@ const c = 767, D = `${c}px`, y = e.div`
|
|
|
78
79
|
border-radius: var(--ethora-radius-md, 12px);
|
|
79
80
|
background-color: var(--ethora-color-bg, #fff);
|
|
80
81
|
overflow: hidden;
|
|
81
|
-
`,
|
|
82
|
+
`, _ = e.div`
|
|
82
83
|
display: flex;
|
|
83
84
|
flex-direction: column;
|
|
84
85
|
gap: var(--ethora-space-1, 4px);
|
|
85
86
|
padding: var(--ethora-space-3, 12px) var(--ethora-space-4, 16px);
|
|
86
|
-
`,
|
|
87
|
+
`, F = e.div`
|
|
87
88
|
display: flex;
|
|
88
89
|
align-items: baseline;
|
|
89
90
|
justify-content: space-between;
|
|
90
91
|
gap: var(--ethora-space-2, 8px);
|
|
91
|
-
`,
|
|
92
|
+
`, K = e.button`
|
|
92
93
|
border: none;
|
|
93
94
|
background: transparent;
|
|
94
95
|
padding: var(--ethora-space-2, 8px) 0;
|
|
@@ -108,22 +109,61 @@ const c = 767, D = `${c}px`, y = e.div`
|
|
|
108
109
|
outline-offset: 2px;
|
|
109
110
|
border-radius: var(--ethora-radius-sm, 8px);
|
|
110
111
|
}
|
|
111
|
-
`,
|
|
112
|
+
`, G = e.div`
|
|
112
113
|
height: 1px;
|
|
113
114
|
margin: 0 var(--ethora-space-4, 16px);
|
|
114
115
|
background-color: var(--ethora-color-border, #e6e8ec);
|
|
115
|
-
`,
|
|
116
|
+
`, J = e.div`
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
gap: var(--ethora-space-2, 8px);
|
|
120
|
+
width: 100%;
|
|
121
|
+
box-sizing: border-box;
|
|
122
|
+
height: 44px;
|
|
123
|
+
padding: 0 var(--ethora-space-3, 12px);
|
|
124
|
+
border-radius: var(--ethora-radius-md, 12px);
|
|
125
|
+
background: var(--ethora-color-bg-subtle, #f5f7fa);
|
|
126
|
+
color: var(--ethora-color-text-muted, #8c8c8c);
|
|
127
|
+
transition: background-color var(--ethora-motion-fast, 150ms)
|
|
128
|
+
var(--ethora-motion-ease, ease);
|
|
129
|
+
|
|
130
|
+
&:focus-within {
|
|
131
|
+
outline: 2px solid var(--ethora-color-primary, #0052cd);
|
|
132
|
+
outline-offset: 1px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
& > svg {
|
|
136
|
+
flex: 0 0 auto;
|
|
137
|
+
}
|
|
138
|
+
`, V = e.input`
|
|
139
|
+
flex: 1 1 auto;
|
|
140
|
+
min-width: 0;
|
|
141
|
+
border: none;
|
|
142
|
+
background: transparent;
|
|
143
|
+
outline: none;
|
|
144
|
+
font: inherit;
|
|
145
|
+
font-size: var(--ethora-font-size-sm, 14px);
|
|
146
|
+
color: var(--ethora-color-text, #141414);
|
|
147
|
+
|
|
148
|
+
&::placeholder {
|
|
149
|
+
color: var(--ethora-color-text-muted, #8c8c8c);
|
|
150
|
+
}
|
|
151
|
+
`, X = e.div`
|
|
152
|
+
display: flex;
|
|
153
|
+
flex-direction: column;
|
|
154
|
+
width: 100%;
|
|
155
|
+
`, T = e.div`
|
|
116
156
|
font-size: var(--ethora-font-size-sm, 14px);
|
|
117
157
|
font-weight: var(--ethora-font-weight-medium, 500);
|
|
118
158
|
color: var(--ethora-color-text, #141414);
|
|
119
159
|
text-align: start;
|
|
120
|
-
`,
|
|
160
|
+
`, C = e.div`
|
|
121
161
|
font-size: var(--ethora-font-size-xs, 12px);
|
|
122
162
|
font-weight: var(--ethora-font-weight-regular, 400);
|
|
123
163
|
color: var(--ethora-color-text-muted, #8c8c8c);
|
|
124
164
|
text-align: start;
|
|
125
165
|
line-height: 1.4;
|
|
126
|
-
`,
|
|
166
|
+
`, E = e.button`
|
|
127
167
|
display: flex;
|
|
128
168
|
align-items: center;
|
|
129
169
|
gap: var(--ethora-space-3, 12px);
|
|
@@ -146,17 +186,17 @@ const c = 767, D = `${c}px`, y = e.div`
|
|
|
146
186
|
outline: 2px solid var(--ethora-color-primary, #0052cd);
|
|
147
187
|
outline-offset: -2px;
|
|
148
188
|
}
|
|
149
|
-
`,
|
|
189
|
+
`, L = e.span`
|
|
150
190
|
display: flex;
|
|
151
191
|
flex-direction: column;
|
|
152
192
|
gap: var(--ethora-space-1, 4px);
|
|
153
193
|
flex: 1 1 auto;
|
|
154
194
|
min-width: 0;
|
|
155
|
-
`,
|
|
195
|
+
`, j = e.span`
|
|
156
196
|
flex: 0 0 auto;
|
|
157
197
|
display: inline-flex;
|
|
158
198
|
color: var(--ethora-color-text-muted, #8c8c8c);
|
|
159
|
-
`,
|
|
199
|
+
`, H = () => /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ o(
|
|
160
200
|
"path",
|
|
161
201
|
{
|
|
162
202
|
d: "M6 3.5L10.5 8L6 12.5",
|
|
@@ -165,62 +205,66 @@ const c = 767, D = `${c}px`, y = e.div`
|
|
|
165
205
|
strokeLinecap: "round",
|
|
166
206
|
strokeLinejoin: "round"
|
|
167
207
|
}
|
|
168
|
-
) }),
|
|
169
|
-
label:
|
|
170
|
-
hint:
|
|
171
|
-
onClick:
|
|
172
|
-
}) => /* @__PURE__ */
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
-
|
|
208
|
+
) }), q = ({
|
|
209
|
+
label: r,
|
|
210
|
+
hint: a,
|
|
211
|
+
onClick: t
|
|
212
|
+
}) => /* @__PURE__ */ i(E, { type: "button", onClick: t, children: [
|
|
213
|
+
/* @__PURE__ */ i(L, { children: [
|
|
214
|
+
/* @__PURE__ */ o(T, { children: r }),
|
|
215
|
+
a && /* @__PURE__ */ o(C, { children: a })
|
|
176
216
|
] }),
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
] }),
|
|
179
|
-
title:
|
|
180
|
-
onClose:
|
|
181
|
-
headerActions:
|
|
182
|
-
backLabel:
|
|
183
|
-
children:
|
|
217
|
+
/* @__PURE__ */ o(j, { "aria-hidden": "true", children: /* @__PURE__ */ o(H, {}) })
|
|
218
|
+
] }), Q = ({
|
|
219
|
+
title: r,
|
|
220
|
+
onClose: a,
|
|
221
|
+
headerActions: t,
|
|
222
|
+
backLabel: l,
|
|
223
|
+
children: d
|
|
184
224
|
}) => {
|
|
185
|
-
const h =
|
|
186
|
-
g({ onClose:
|
|
187
|
-
const p =
|
|
188
|
-
return /* @__PURE__ */
|
|
189
|
-
|
|
225
|
+
const h = u(), n = f(), s = v(null);
|
|
226
|
+
g({ onClose: a, containerRef: s });
|
|
227
|
+
const p = m(c), x = w();
|
|
228
|
+
return /* @__PURE__ */ i(
|
|
229
|
+
z,
|
|
190
230
|
{
|
|
191
231
|
ref: s,
|
|
192
232
|
role: "dialog",
|
|
193
233
|
"aria-modal": p ? !0 : void 0,
|
|
194
234
|
"aria-labelledby": n,
|
|
195
235
|
"data-testid": "side-drawer",
|
|
236
|
+
$closing: x,
|
|
196
237
|
children: [
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
-
|
|
238
|
+
/* @__PURE__ */ i(B, { children: [
|
|
239
|
+
/* @__PURE__ */ o(
|
|
240
|
+
b,
|
|
200
241
|
{
|
|
201
|
-
EndIcon: /* @__PURE__ */
|
|
202
|
-
onClick:
|
|
203
|
-
"aria-label":
|
|
242
|
+
EndIcon: /* @__PURE__ */ o(y, {}),
|
|
243
|
+
onClick: a,
|
|
244
|
+
"aria-label": l ?? h("action.close")
|
|
204
245
|
}
|
|
205
246
|
),
|
|
206
|
-
/* @__PURE__ */
|
|
207
|
-
|
|
247
|
+
/* @__PURE__ */ o(I, { id: n, children: r }),
|
|
248
|
+
t && /* @__PURE__ */ o(S, { children: t })
|
|
208
249
|
] }),
|
|
209
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ o(A, { children: d })
|
|
210
251
|
]
|
|
211
252
|
}
|
|
212
253
|
);
|
|
213
254
|
};
|
|
214
255
|
export {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
256
|
+
$ as D,
|
|
257
|
+
Q as S,
|
|
258
|
+
O as a,
|
|
259
|
+
W as b,
|
|
260
|
+
G as c,
|
|
261
|
+
q as d,
|
|
262
|
+
_ as e,
|
|
263
|
+
C as f,
|
|
264
|
+
T as g,
|
|
265
|
+
F as h,
|
|
266
|
+
J as i,
|
|
267
|
+
V as j,
|
|
268
|
+
X as k,
|
|
269
|
+
K as l
|
|
226
270
|
};
|