@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.
Files changed (49) hide show
  1. package/dist/ChatProfileModal-k4_0ol-1.js +2135 -0
  2. package/dist/FilePreviewModal-BYoSZ4d1.js +743 -0
  3. package/dist/{ManageDataModal-CDPXcC93.js → ManageDataModal-Dje7zTG4.js} +68 -49
  4. package/dist/{MarkdownBody-DBJGraWM.js → MarkdownBody-Cm3GPQGA.js} +1 -1
  5. package/dist/{SideDrawer-Dr_lkaOW.js → SideDrawer-DWeOHKWM.js} +110 -66
  6. package/dist/UserProfileModal-CUcGYJb9.js +574 -0
  7. package/dist/{UserSettingsModal-OcAJao-d.js → UserSettingsModal-LWwOt5TY.js} +2 -2
  8. package/dist/{VideoCallOverlay-CC4sShdK.js → VideoCallOverlay-Dw_ydJ2K.js} +1 -1
  9. package/dist/{VisibilityModal-DkMhx_2k.js → VisibilityModal-D06gXwjS.js} +2 -2
  10. package/dist/components/MainComponents/ChatRoomOpeningPreview.d.ts +24 -0
  11. package/dist/components/MainComponents/ChatWrapper.d.ts +1 -0
  12. package/dist/components/MainComponents/ChooseChatMessage.d.ts +11 -1
  13. package/dist/components/Modals/Modal/Modal.d.ts +10 -0
  14. package/dist/components/Modals/Modal/ModalContent.d.ts +21 -0
  15. package/dist/components/Modals/ModalBox/ModalBox.d.ts +9 -0
  16. package/dist/components/Modals/ModalReportChat/ModalReportChat.d.ts +6 -1
  17. package/dist/components/Modals/ModalWrapper/ModalWrapper.d.ts +8 -0
  18. package/dist/components/Modals/SettingsModals/SharedStyledComponents.d.ts +12 -0
  19. package/dist/components/Modals/SideDrawer/DrawerProfileParts.d.ts +29 -0
  20. package/dist/components/Modals/SideDrawer/SideDrawer.d.ts +21 -1
  21. package/dist/components/Modals/SidePanel/SidePanel.d.ts +31 -0
  22. package/dist/components/Modals/UserProfileModal/EditUserModal.d.ts +5 -1
  23. package/dist/components/Modals/motionVariants.d.ts +37 -0
  24. package/dist/components/Modals/styledModalComponents.d.ts +0 -1
  25. package/dist/context/ModalTransitionContext.d.ts +2 -0
  26. package/dist/handleCopyClick-BOESIBUL.js +108 -0
  27. package/dist/helpers/buildChatShareLink.d.ts +20 -0
  28. package/dist/helpers/cacheScope.d.ts +15 -1
  29. package/dist/helpers/constants/MODAL_TYPES.d.ts +6 -4
  30. package/dist/helpers/createRoomFromApi.d.ts +1 -1
  31. package/dist/helpers/formatNumberWithCommas.d.ts +1 -1
  32. package/dist/hooks/useChatOpenPhase.d.ts +21 -0
  33. package/dist/hooks/useDelayedAction.d.ts +22 -0
  34. package/dist/hooks/useExclusiveRightPane.d.ts +25 -0
  35. package/dist/hooks/useExitTransition.d.ts +24 -0
  36. package/dist/hooks/useGetNewArchRoom.d.ts +3 -1
  37. package/dist/hooks/useQRCodeChatHandler.d.ts +29 -1
  38. package/dist/hooks/useRoomState.d.ts +2 -0
  39. package/dist/{main-B-8IhwaP.js → main-SdAeI1xI.js} +8449 -7889
  40. package/dist/main.css +1 -1
  41. package/dist/main.js +5 -5
  42. package/dist/roomStore/roomsSlice.d.ts +5 -1
  43. package/dist/styles/motion.d.ts +27 -0
  44. package/dist/types/models/room.model.d.ts +28 -0
  45. package/package.json +10 -2
  46. package/dist/ChatProfileModal-hxsWI8cx.js +0 -2139
  47. package/dist/FilePreviewModal-CwWnHsB1.js +0 -736
  48. package/dist/UserProfileModal-Q_jhXpsX.js +0 -568
  49. package/dist/handleCopyClick-CpmPa6VI.js +0 -32
@@ -1,8 +1,8 @@
1
- import { jsxs as r, Fragment as T, jsx as a } from "react/jsx-runtime";
2
- import { useState as x, useCallback as M } from "react";
3
- import { x as t, C as j, aj as v, B, u as I, n as E, J as F, aA as R, L as U, v as h, aB as z, aC as A, aD as O, aE as $ } from "./main-B-8IhwaP.js";
4
- import { S as H, D as f, a as D, b as u, e as y, f as b } from "./SideDrawer-Dr_lkaOW.js";
5
- t(j)`
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(v)`
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(v)`
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 C = t(B)`
40
- min-height: 40px;
39
+ const y = t(j)`
40
+ min-height: 44px;
41
41
  display: flex;
42
42
  flex-direction: column;
43
- gap: 2px;
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-sm, 8px);
50
- border: 1px solid ${({ borderColor: o }) => o};
51
- `, J = t.div`
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: o }) => o};
55
- padding: 16px;
56
- border-radius: var(--ethora-radius-sm, 8px);
57
- gap: 8px;
58
- `, P = t.div`
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
- `, N = ({
64
- handleCloseModal: o
82
+ `, Q = ({
83
+ handleCloseModal: r
65
84
  }) => {
66
- const { config: s } = I((l) => l.chatSettingStore), e = E(), { showToast: d } = F(), [w, c] = x(!1), [i, g] = x(!1), S = async () => {
67
- const p = (await $()).data;
68
- h.log(p);
69
- const L = new Blob([p], { type: "text/plain" }), m = URL.createObjectURL(L), n = document.createElement("a");
70
- n.href = m, n.download = "mydata.json", document.body.appendChild(n), n.click(), document.body.removeChild(n), URL.revokeObjectURL(m);
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 (l) {
77
- h.error("Failed to delete account", l), d({
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__ */ r(T, { children: [
88
- /* @__PURE__ */ r(
89
- H,
106
+ return /* @__PURE__ */ o(T, { children: [
107
+ /* @__PURE__ */ o(
108
+ J,
90
109
  {
91
110
  title: e("settings.manageData.title"),
92
- onClose: o,
111
+ onClose: r,
93
112
  backLabel: e("action.back"),
94
113
  children: [
95
- /* @__PURE__ */ r(f, { children: [
96
- /* @__PURE__ */ a(D, { children: e("settings.manageData.section.export") }),
97
- /* @__PURE__ */ a(u, { children: /* @__PURE__ */ r(y, { children: [
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
- C,
119
+ y,
101
120
  {
102
- borderColor: s?.colors?.primary || "var(--ethora-color-primary, #0052CD)",
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__ */ r(f, { children: [
111
- /* @__PURE__ */ a(D, { children: e("settings.manageData.deleteLabel") }),
112
- /* @__PURE__ */ a(u, { children: /* @__PURE__ */ r(y, { children: [
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__ */ r(
115
- J,
133
+ /* @__PURE__ */ o(
134
+ P,
116
135
  {
117
- bgColor: s?.colors?.secondary || "var(--ethora-color-primary-soft, #E7EDF9)",
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(z, { color: A(s) }) }),
121
- /* @__PURE__ */ a(P, { children: e("settings.manageData.deleteDisclosure") })
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
- C,
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
- w && /* @__PURE__ */ a(
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
- N as default
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-B-8IhwaP.js";
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 t, jsx as r } from "react/jsx-runtime";
2
- import { useId as x, useRef as v } from "react";
3
- import { n as f, w as g, aH as u, B as w, aI as m, x as e, aJ as b } from "./main-B-8IhwaP.js";
4
- const c = 767, D = `${c}px`, y = e.div`
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
- ${b}
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
- `, R = e.header`
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
- `, k = e.h2`
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
- `, z = e.div`
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
- `, B = e.div`
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: ${D}) {
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
- `, j = e.section`
61
+ `, $ = e.section`
61
62
  display: flex;
62
63
  flex-direction: column;
63
64
  gap: var(--ethora-space-2, 8px);
64
- `, M = e.h3`
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
- `, P = e.div`
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
- `, W = e.div`
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
- `, _ = e.div`
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
- `, $ = e.button`
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
- `, K = e.div`
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
- `, I = e.div`
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
- `, S = e.div`
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
- `, T = e.button`
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
- `, A = e.span`
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
- `, C = e.span`
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
- `, E = () => /* @__PURE__ */ r("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ r(
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
- ) }), O = ({
169
- label: i,
170
- hint: o,
171
- onClick: a
172
- }) => /* @__PURE__ */ t(T, { type: "button", onClick: a, children: [
173
- /* @__PURE__ */ t(A, { children: [
174
- /* @__PURE__ */ r(I, { children: i }),
175
- o && /* @__PURE__ */ r(S, { children: o })
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__ */ r(C, { "aria-hidden": "true", children: /* @__PURE__ */ r(E, {}) })
178
- ] }), F = ({
179
- title: i,
180
- onClose: o,
181
- headerActions: a,
182
- backLabel: d,
183
- children: l
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 = f(), n = x(), s = v(null);
186
- g({ onClose: o, containerRef: s });
187
- const p = u(c);
188
- return /* @__PURE__ */ t(
189
- y,
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__ */ t(R, { children: [
198
- /* @__PURE__ */ r(
199
- w,
238
+ /* @__PURE__ */ i(B, { children: [
239
+ /* @__PURE__ */ o(
240
+ b,
200
241
  {
201
- EndIcon: /* @__PURE__ */ r(m, {}),
202
- onClick: o,
203
- "aria-label": d ?? h("action.close")
242
+ EndIcon: /* @__PURE__ */ o(y, {}),
243
+ onClick: a,
244
+ "aria-label": l ?? h("action.close")
204
245
  }
205
246
  ),
206
- /* @__PURE__ */ r(k, { id: n, children: i }),
207
- a && /* @__PURE__ */ r(z, { children: a })
247
+ /* @__PURE__ */ o(I, { id: n, children: r }),
248
+ t && /* @__PURE__ */ o(S, { children: t })
208
249
  ] }),
209
- /* @__PURE__ */ r(B, { children: l })
250
+ /* @__PURE__ */ o(A, { children: d })
210
251
  ]
211
252
  }
212
253
  );
213
254
  };
214
255
  export {
215
- j as D,
216
- F as S,
217
- M as a,
218
- P as b,
219
- K as c,
220
- O as d,
221
- W as e,
222
- S as f,
223
- I as g,
224
- $ as h,
225
- _ as i
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
  };