welcome-ui 10.0.0-alpha.21 → 10.0.0-alpha.22
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/Drawer.js +13 -6
- package/package.json +1 -1
package/dist/Drawer.js
CHANGED
|
@@ -6,7 +6,7 @@ import { u as ye } from "./2S4Q4M35-CzDcLRQb.js";
|
|
|
6
6
|
import { useCallback as g, forwardRef as p } from "react";
|
|
7
7
|
import { Window as l } from "./Window.js";
|
|
8
8
|
import { c as o } from "./index-PAaZGbyz.js";
|
|
9
|
-
import { f as
|
|
9
|
+
import { f as B } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
10
10
|
import { Button as R } from "./Button.js";
|
|
11
11
|
import { Icon as $ } from "./Icon.js";
|
|
12
12
|
import { Text as y } from "./Text.js";
|
|
@@ -23,7 +23,7 @@ const K = "_content_1a229_14", L = "_title_1a229_68", k = {
|
|
|
23
23
|
"icon-block": "_icon-block_1a229_73",
|
|
24
24
|
"size-md": "_size-md_1a229_85",
|
|
25
25
|
"size-sm": "_size-sm_1a229_88"
|
|
26
|
-
}, w = o(k), W =
|
|
26
|
+
}, w = o(k), W = B(
|
|
27
27
|
({
|
|
28
28
|
children: t,
|
|
29
29
|
className: a,
|
|
@@ -129,7 +129,14 @@ z.displayName = "Drawer.Backdrop";
|
|
|
129
129
|
const se = o(m), T = ({ className: t }) => /* @__PURE__ */ e(
|
|
130
130
|
Z,
|
|
131
131
|
{
|
|
132
|
-
render: (a) => /* @__PURE__ */ e(
|
|
132
|
+
render: (a) => /* @__PURE__ */ e(
|
|
133
|
+
l.Header.CloseButton,
|
|
134
|
+
{
|
|
135
|
+
"aria-label": "Close",
|
|
136
|
+
className: se("drawer-close", t),
|
|
137
|
+
...a
|
|
138
|
+
}
|
|
139
|
+
)
|
|
133
140
|
}
|
|
134
141
|
);
|
|
135
142
|
T.displayName = "Drawer.Close";
|
|
@@ -155,7 +162,7 @@ const oe = o(m), P = p(
|
|
|
155
162
|
({ className: t, ...a }, r) => /* @__PURE__ */ e(l.Media, { className: oe("media", t), ref: r, ...a })
|
|
156
163
|
);
|
|
157
164
|
P.displayName = "Drawer.Media";
|
|
158
|
-
const A =
|
|
165
|
+
const A = B(
|
|
159
166
|
({ as: t, store: a, ...r }, s) => /* @__PURE__ */ e(
|
|
160
167
|
J,
|
|
161
168
|
{
|
|
@@ -186,7 +193,7 @@ const ce = o(m), E = p(
|
|
|
186
193
|
s ? s() : document.querySelectorAll("[data-wui-persistent]")
|
|
187
194
|
),
|
|
188
195
|
[s]
|
|
189
|
-
),
|
|
196
|
+
), C = g(
|
|
190
197
|
(D) => {
|
|
191
198
|
if (!n) return !1;
|
|
192
199
|
const M = D.target;
|
|
@@ -201,7 +208,7 @@ const ce = o(m), E = p(
|
|
|
201
208
|
{
|
|
202
209
|
backdrop: i ? /* @__PURE__ */ e(z, { hideOnInteractOutside: n }) : !1,
|
|
203
210
|
getPersistentElements: u,
|
|
204
|
-
hideOnInteractOutside:
|
|
211
|
+
hideOnInteractOutside: C,
|
|
205
212
|
modal: i,
|
|
206
213
|
ref: x,
|
|
207
214
|
render: /* @__PURE__ */ e(
|