@rockshin/tao-ui 0.0.19 → 0.0.21
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/components/drawer/drawer.js +119 -133
- package/dist/components/input/input.css +23 -8
- package/dist/components/modal/modal.js +116 -130
- package/dist/utils/portal.d.ts +4 -0
- package/dist/utils/portal.js +4 -0
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { TaoPortalScope } from "../../provider/tao-provider.js";
|
|
5
|
+
import { preventParentOutsideDismiss } from "../../utils/portal.js";
|
|
5
6
|
import { cx } from "../../utils/semantic.js";
|
|
6
7
|
import "./drawer.css";
|
|
7
8
|
import * as __rspack_external__radix_ui_react_dialog_dabd8325 from "@radix-ui/react-dialog";
|
|
@@ -11,7 +12,7 @@ const SIZE_PRESET = {
|
|
|
11
12
|
};
|
|
12
13
|
const MIN_DRAG_SIZE = 200;
|
|
13
14
|
function Drawer(t0) {
|
|
14
|
-
const $ = c(
|
|
15
|
+
const $ = c(87);
|
|
15
16
|
const { open, onClose, title, extra, footer, placement: t1, size, width, height, closable: t2, closeIcon, maskClosable: t3, mask: t4, keyboard: t5, resizable, afterOpenChange, afterClose, destroyOnHidden: t6, children, classNames, styles: stylesProp } = t0;
|
|
16
17
|
const placement = void 0 === t1 ? "right" : t1;
|
|
17
18
|
const closable = void 0 === t2 ? true : t2;
|
|
@@ -139,53 +140,40 @@ function Drawer(t0) {
|
|
|
139
140
|
$[22] = t13;
|
|
140
141
|
} else t13 = $[22];
|
|
141
142
|
let t14;
|
|
142
|
-
if ($[23] !== classNames?.overlay || $[24] !== forceMount || $[25] !== mask || $[26] !== stylesProp?.overlay) {
|
|
143
|
+
if ($[23] !== classNames?.overlay || $[24] !== forceMount || $[25] !== mask || $[26] !== maskClosable || $[27] !== onClose || $[28] !== stylesProp?.overlay) {
|
|
143
144
|
t14 = mask && /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.Overlay, {
|
|
144
145
|
forceMount: forceMount,
|
|
145
146
|
"data-tao-drawer-overlay": "",
|
|
146
147
|
className: cx(classNames?.overlay),
|
|
147
|
-
style: stylesProp?.overlay
|
|
148
|
+
style: stylesProp?.overlay,
|
|
149
|
+
onClick: maskClosable ? onClose : void 0
|
|
148
150
|
});
|
|
149
151
|
$[23] = classNames?.overlay;
|
|
150
152
|
$[24] = forceMount;
|
|
151
153
|
$[25] = mask;
|
|
152
|
-
$[26] =
|
|
153
|
-
$[27] =
|
|
154
|
-
|
|
154
|
+
$[26] = maskClosable;
|
|
155
|
+
$[27] = onClose;
|
|
156
|
+
$[28] = stylesProp?.overlay;
|
|
157
|
+
$[29] = t14;
|
|
158
|
+
} else t14 = $[29];
|
|
155
159
|
const t15 = classNames?.root;
|
|
156
160
|
let t16;
|
|
157
|
-
if ($[
|
|
161
|
+
if ($[30] !== t15) {
|
|
158
162
|
t16 = cx(t15);
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
} else t16 = $[
|
|
163
|
+
$[30] = t15;
|
|
164
|
+
$[31] = t16;
|
|
165
|
+
} else t16 = $[31];
|
|
162
166
|
let t17;
|
|
163
|
-
if ($[
|
|
167
|
+
if ($[32] !== keyboard) {
|
|
164
168
|
t17 = (e_2)=>{
|
|
165
169
|
if (!keyboard) e_2.preventDefault();
|
|
166
170
|
};
|
|
167
|
-
$[
|
|
168
|
-
$[
|
|
169
|
-
} else t17 = $[
|
|
171
|
+
$[32] = keyboard;
|
|
172
|
+
$[33] = t17;
|
|
173
|
+
} else t17 = $[33];
|
|
170
174
|
let t18;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
t18 = (e_3)=>{
|
|
174
|
-
if (!maskClosable) e_3.preventDefault();
|
|
175
|
-
};
|
|
176
|
-
t19 = (e_4)=>{
|
|
177
|
-
if (!maskClosable) e_4.preventDefault();
|
|
178
|
-
};
|
|
179
|
-
$[32] = maskClosable;
|
|
180
|
-
$[33] = t18;
|
|
181
|
-
$[34] = t19;
|
|
182
|
-
} else {
|
|
183
|
-
t18 = $[33];
|
|
184
|
-
t19 = $[34];
|
|
185
|
-
}
|
|
186
|
-
let t20;
|
|
187
|
-
if ($[35] !== classNames?.dragger || $[36] !== isResizable || $[37] !== onDraggerPointerDown || $[38] !== onDraggerPointerMove || $[39] !== onDraggerPointerUp || $[40] !== placement || $[41] !== stylesProp?.dragger) {
|
|
188
|
-
t20 = isResizable && /*#__PURE__*/ jsx("div", {
|
|
175
|
+
if ($[34] !== classNames?.dragger || $[35] !== isResizable || $[36] !== onDraggerPointerDown || $[37] !== onDraggerPointerMove || $[38] !== onDraggerPointerUp || $[39] !== placement || $[40] !== stylesProp?.dragger) {
|
|
176
|
+
t18 = isResizable && /*#__PURE__*/ jsx("div", {
|
|
189
177
|
"data-tao-drawer-dragger": "",
|
|
190
178
|
"data-tao-placement": placement,
|
|
191
179
|
className: cx(classNames?.dragger),
|
|
@@ -194,18 +182,18 @@ function Drawer(t0) {
|
|
|
194
182
|
onPointerMove: onDraggerPointerMove,
|
|
195
183
|
onPointerUp: onDraggerPointerUp
|
|
196
184
|
});
|
|
197
|
-
$[
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
200
|
-
$[
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
$[
|
|
204
|
-
$[
|
|
205
|
-
} else
|
|
206
|
-
let
|
|
207
|
-
if ($[
|
|
208
|
-
|
|
185
|
+
$[34] = classNames?.dragger;
|
|
186
|
+
$[35] = isResizable;
|
|
187
|
+
$[36] = onDraggerPointerDown;
|
|
188
|
+
$[37] = onDraggerPointerMove;
|
|
189
|
+
$[38] = onDraggerPointerUp;
|
|
190
|
+
$[39] = placement;
|
|
191
|
+
$[40] = stylesProp?.dragger;
|
|
192
|
+
$[41] = t18;
|
|
193
|
+
} else t18 = $[41];
|
|
194
|
+
let t19;
|
|
195
|
+
if ($[42] !== classNames?.close || $[43] !== classNames?.extra || $[44] !== classNames?.header || $[45] !== classNames?.title || $[46] !== closable || $[47] !== closeIcon || $[48] !== extra || $[49] !== onClose || $[50] !== showHeader || $[51] !== stylesProp?.close || $[52] !== stylesProp?.extra || $[53] !== stylesProp?.header || $[54] !== stylesProp?.title || $[55] !== title) {
|
|
196
|
+
t19 = showHeader && /*#__PURE__*/ jsxs("div", {
|
|
209
197
|
"data-tao-drawer-header": "",
|
|
210
198
|
className: cx(classNames?.header),
|
|
211
199
|
style: stylesProp?.header,
|
|
@@ -243,59 +231,59 @@ function Drawer(t0) {
|
|
|
243
231
|
})
|
|
244
232
|
]
|
|
245
233
|
});
|
|
246
|
-
$[
|
|
247
|
-
$[
|
|
248
|
-
$[
|
|
249
|
-
$[
|
|
250
|
-
$[
|
|
251
|
-
$[
|
|
252
|
-
$[
|
|
253
|
-
$[
|
|
254
|
-
$[
|
|
255
|
-
$[
|
|
256
|
-
$[
|
|
257
|
-
$[
|
|
258
|
-
$[
|
|
259
|
-
$[
|
|
260
|
-
$[
|
|
261
|
-
} else
|
|
262
|
-
const
|
|
234
|
+
$[42] = classNames?.close;
|
|
235
|
+
$[43] = classNames?.extra;
|
|
236
|
+
$[44] = classNames?.header;
|
|
237
|
+
$[45] = classNames?.title;
|
|
238
|
+
$[46] = closable;
|
|
239
|
+
$[47] = closeIcon;
|
|
240
|
+
$[48] = extra;
|
|
241
|
+
$[49] = onClose;
|
|
242
|
+
$[50] = showHeader;
|
|
243
|
+
$[51] = stylesProp?.close;
|
|
244
|
+
$[52] = stylesProp?.extra;
|
|
245
|
+
$[53] = stylesProp?.header;
|
|
246
|
+
$[54] = stylesProp?.title;
|
|
247
|
+
$[55] = title;
|
|
248
|
+
$[56] = t19;
|
|
249
|
+
} else t19 = $[56];
|
|
250
|
+
const t20 = classNames?.body;
|
|
251
|
+
let t21;
|
|
252
|
+
if ($[57] !== t20) {
|
|
253
|
+
t21 = cx(t20);
|
|
254
|
+
$[57] = t20;
|
|
255
|
+
$[58] = t21;
|
|
256
|
+
} else t21 = $[58];
|
|
257
|
+
const t22 = stylesProp?.body;
|
|
263
258
|
let t23;
|
|
264
|
-
if ($[
|
|
265
|
-
t23 =
|
|
266
|
-
$[58] = t22;
|
|
267
|
-
$[59] = t23;
|
|
268
|
-
} else t23 = $[59];
|
|
269
|
-
const t24 = stylesProp?.body;
|
|
270
|
-
let t25;
|
|
271
|
-
if ($[60] !== children || $[61] !== t23 || $[62] !== t24) {
|
|
272
|
-
t25 = /*#__PURE__*/ jsx("div", {
|
|
259
|
+
if ($[59] !== children || $[60] !== t21 || $[61] !== t22) {
|
|
260
|
+
t23 = /*#__PURE__*/ jsx("div", {
|
|
273
261
|
"data-tao-drawer-body": "",
|
|
274
|
-
className:
|
|
275
|
-
style:
|
|
262
|
+
className: t21,
|
|
263
|
+
style: t22,
|
|
276
264
|
children: children
|
|
277
265
|
});
|
|
278
|
-
$[
|
|
279
|
-
$[
|
|
280
|
-
$[
|
|
281
|
-
$[
|
|
282
|
-
} else
|
|
283
|
-
let
|
|
284
|
-
if ($[
|
|
285
|
-
|
|
266
|
+
$[59] = children;
|
|
267
|
+
$[60] = t21;
|
|
268
|
+
$[61] = t22;
|
|
269
|
+
$[62] = t23;
|
|
270
|
+
} else t23 = $[62];
|
|
271
|
+
let t24;
|
|
272
|
+
if ($[63] !== classNames?.footer || $[64] !== footer || $[65] !== stylesProp?.footer) {
|
|
273
|
+
t24 = null != footer && /*#__PURE__*/ jsx("div", {
|
|
286
274
|
"data-tao-drawer-footer": "",
|
|
287
275
|
className: cx(classNames?.footer),
|
|
288
276
|
style: stylesProp?.footer,
|
|
289
277
|
children: footer
|
|
290
278
|
});
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
294
|
-
$[
|
|
295
|
-
} else
|
|
296
|
-
let
|
|
297
|
-
if ($[
|
|
298
|
-
|
|
279
|
+
$[63] = classNames?.footer;
|
|
280
|
+
$[64] = footer;
|
|
281
|
+
$[65] = stylesProp?.footer;
|
|
282
|
+
$[66] = t24;
|
|
283
|
+
} else t24 = $[66];
|
|
284
|
+
let t25;
|
|
285
|
+
if ($[67] !== contentStyle || $[68] !== forceMount || $[69] !== placement || $[70] !== t16 || $[71] !== t17 || $[72] !== t18 || $[73] !== t19 || $[74] !== t23 || $[75] !== t24) {
|
|
286
|
+
t25 = /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dialog_dabd8325.Content, {
|
|
299
287
|
ref: contentRef,
|
|
300
288
|
forceMount: forceMount,
|
|
301
289
|
"data-tao-drawer": "",
|
|
@@ -304,63 +292,61 @@ function Drawer(t0) {
|
|
|
304
292
|
className: t16,
|
|
305
293
|
"aria-describedby": void 0,
|
|
306
294
|
onEscapeKeyDown: t17,
|
|
307
|
-
onPointerDownOutside:
|
|
308
|
-
onInteractOutside:
|
|
295
|
+
onPointerDownOutside: preventParentOutsideDismiss,
|
|
296
|
+
onInteractOutside: preventParentOutsideDismiss,
|
|
309
297
|
children: [
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
298
|
+
t18,
|
|
299
|
+
t19,
|
|
300
|
+
t23,
|
|
301
|
+
t24
|
|
314
302
|
]
|
|
315
303
|
});
|
|
316
|
-
$[
|
|
317
|
-
$[
|
|
318
|
-
$[
|
|
319
|
-
$[
|
|
320
|
-
$[
|
|
321
|
-
$[
|
|
322
|
-
$[
|
|
323
|
-
$[
|
|
324
|
-
$[
|
|
325
|
-
$[
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
if ($[80] !== t14 || $[81] !== t27) {
|
|
331
|
-
t28 = /*#__PURE__*/ jsxs(TaoPortalScope, {
|
|
304
|
+
$[67] = contentStyle;
|
|
305
|
+
$[68] = forceMount;
|
|
306
|
+
$[69] = placement;
|
|
307
|
+
$[70] = t16;
|
|
308
|
+
$[71] = t17;
|
|
309
|
+
$[72] = t18;
|
|
310
|
+
$[73] = t19;
|
|
311
|
+
$[74] = t23;
|
|
312
|
+
$[75] = t24;
|
|
313
|
+
$[76] = t25;
|
|
314
|
+
} else t25 = $[76];
|
|
315
|
+
let t26;
|
|
316
|
+
if ($[77] !== t14 || $[78] !== t25) {
|
|
317
|
+
t26 = /*#__PURE__*/ jsxs(TaoPortalScope, {
|
|
332
318
|
children: [
|
|
333
319
|
t14,
|
|
334
|
-
|
|
320
|
+
t25
|
|
335
321
|
]
|
|
336
322
|
});
|
|
337
|
-
$[
|
|
338
|
-
$[
|
|
339
|
-
$[
|
|
340
|
-
} else
|
|
341
|
-
let
|
|
342
|
-
if ($[
|
|
343
|
-
|
|
323
|
+
$[77] = t14;
|
|
324
|
+
$[78] = t25;
|
|
325
|
+
$[79] = t26;
|
|
326
|
+
} else t26 = $[79];
|
|
327
|
+
let t27;
|
|
328
|
+
if ($[80] !== forceMount || $[81] !== t26) {
|
|
329
|
+
t27 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.Portal, {
|
|
344
330
|
forceMount: forceMount,
|
|
345
|
-
children:
|
|
331
|
+
children: t26
|
|
346
332
|
});
|
|
347
|
-
$[
|
|
348
|
-
$[
|
|
349
|
-
$[
|
|
350
|
-
} else
|
|
351
|
-
let
|
|
352
|
-
if ($[
|
|
353
|
-
|
|
333
|
+
$[80] = forceMount;
|
|
334
|
+
$[81] = t26;
|
|
335
|
+
$[82] = t27;
|
|
336
|
+
} else t27 = $[82];
|
|
337
|
+
let t28;
|
|
338
|
+
if ($[83] !== open || $[84] !== t13 || $[85] !== t27) {
|
|
339
|
+
t28 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.Root, {
|
|
354
340
|
open: open,
|
|
355
341
|
onOpenChange: t13,
|
|
356
|
-
children:
|
|
342
|
+
children: t27
|
|
357
343
|
});
|
|
358
|
-
$[
|
|
359
|
-
$[
|
|
360
|
-
$[
|
|
361
|
-
$[
|
|
362
|
-
} else
|
|
363
|
-
return
|
|
344
|
+
$[83] = open;
|
|
345
|
+
$[84] = t13;
|
|
346
|
+
$[85] = t27;
|
|
347
|
+
$[86] = t28;
|
|
348
|
+
} else t28 = $[86];
|
|
349
|
+
return t28;
|
|
364
350
|
}
|
|
365
351
|
function CloseIcon() {
|
|
366
352
|
const $ = c(1);
|
|
@@ -67,20 +67,35 @@
|
|
|
67
67
|
display: flex;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
[data-tao-prefix] {
|
|
70
|
+
[data-tao-prefix], [data-tao-input] [data-tao-prefix] + input {
|
|
71
71
|
padding-inline-start: var(--tao-padding-sm);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
[data-tao-
|
|
75
|
-
|
|
74
|
+
[data-tao-prefix] svg, [data-tao-suffix] svg {
|
|
75
|
+
width: 16px;
|
|
76
|
+
height: 16px;
|
|
76
77
|
}
|
|
77
78
|
|
|
78
|
-
[data-tao-
|
|
79
|
-
|
|
79
|
+
[data-tao-input]:has([data-tao-prefix] svg) [data-tao-prefix] {
|
|
80
|
+
inset-inline-start: var(--tao-padding-sm);
|
|
81
|
+
padding: 0;
|
|
82
|
+
position: absolute;
|
|
83
|
+
top: 50%;
|
|
84
|
+
transform: translateY(-50%);
|
|
80
85
|
}
|
|
81
86
|
|
|
82
|
-
[data-tao-prefix] svg
|
|
83
|
-
|
|
84
|
-
|
|
87
|
+
[data-tao-input]:has([data-tao-prefix] svg) [data-tao-prefix] svg {
|
|
88
|
+
position: static;
|
|
89
|
+
transform: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[data-tao-input]:has([data-tao-prefix] svg) input {
|
|
93
|
+
padding-inline-start: calc(var(--tao-padding-sm) +
|
|
94
|
+
16px +
|
|
95
|
+
var(--tao-padding-sm));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[data-tao-suffix] {
|
|
99
|
+
padding-inline-end: var(--tao-padding-sm);
|
|
85
100
|
}
|
|
86
101
|
|
|
@@ -2,12 +2,13 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useEffect, useRef } from "react";
|
|
4
4
|
import { TaoPortalScope } from "../../provider/tao-provider.js";
|
|
5
|
+
import { preventParentOutsideDismiss } from "../../utils/portal.js";
|
|
5
6
|
import { cx } from "../../utils/semantic.js";
|
|
6
7
|
import { Button } from "../button/button.js";
|
|
7
8
|
import "./modal.css";
|
|
8
9
|
import * as __rspack_external__radix_ui_react_dialog_dabd8325 from "@radix-ui/react-dialog";
|
|
9
10
|
function Modal(t0) {
|
|
10
|
-
const $ = c(
|
|
11
|
+
const $ = c(83);
|
|
11
12
|
const { open, onClose, title, footer, onOk, okText: t1, cancelText: t2, confirmLoading, okButtonProps, cancelButtonProps, width: t3, centered: t4, closable: t5, maskClosable: t6, keyboard: t7, afterClose, destroyOnHidden: t8, children, classNames, styles: stylesProp } = t0;
|
|
12
13
|
const okText = void 0 === t1 ? "OK" : t1;
|
|
13
14
|
const cancelText = void 0 === t2 ? "Cancel" : t2;
|
|
@@ -141,55 +142,42 @@ function Modal(t0) {
|
|
|
141
142
|
$[31] = t21;
|
|
142
143
|
} else t21 = $[31];
|
|
143
144
|
const t22 = stylesProp?.overlay;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
const t23 = maskClosable ? onClose : void 0;
|
|
146
|
+
let t24;
|
|
147
|
+
if ($[32] !== forceMount || $[33] !== t21 || $[34] !== t22 || $[35] !== t23) {
|
|
148
|
+
t24 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.Overlay, {
|
|
147
149
|
forceMount: forceMount,
|
|
148
150
|
"data-tao-modal-overlay": "",
|
|
149
151
|
className: t21,
|
|
150
|
-
style: t22
|
|
152
|
+
style: t22,
|
|
153
|
+
onClick: t23
|
|
151
154
|
});
|
|
152
155
|
$[32] = forceMount;
|
|
153
156
|
$[33] = t21;
|
|
154
157
|
$[34] = t22;
|
|
155
158
|
$[35] = t23;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
const t25 =
|
|
159
|
-
const t26 =
|
|
160
|
-
|
|
161
|
-
if ($[36] !== t26) {
|
|
162
|
-
t27 = cx(t26);
|
|
163
|
-
$[36] = t26;
|
|
164
|
-
$[37] = t27;
|
|
165
|
-
} else t27 = $[37];
|
|
159
|
+
$[36] = t24;
|
|
160
|
+
} else t24 = $[36];
|
|
161
|
+
const t25 = centered ? "" : void 0;
|
|
162
|
+
const t26 = open ? "" : void 0;
|
|
163
|
+
const t27 = classNames?.root;
|
|
166
164
|
let t28;
|
|
167
|
-
if ($[
|
|
168
|
-
t28 = (
|
|
165
|
+
if ($[37] !== t27) {
|
|
166
|
+
t28 = cx(t27);
|
|
167
|
+
$[37] = t27;
|
|
168
|
+
$[38] = t28;
|
|
169
|
+
} else t28 = $[38];
|
|
170
|
+
let t29;
|
|
171
|
+
if ($[39] !== keyboard) {
|
|
172
|
+
t29 = (e)=>{
|
|
169
173
|
if (!keyboard) e.preventDefault();
|
|
170
174
|
};
|
|
171
|
-
$[
|
|
172
|
-
$[
|
|
173
|
-
} else
|
|
174
|
-
let t29;
|
|
175
|
+
$[39] = keyboard;
|
|
176
|
+
$[40] = t29;
|
|
177
|
+
} else t29 = $[40];
|
|
175
178
|
let t30;
|
|
176
|
-
if ($[
|
|
177
|
-
|
|
178
|
-
if (!maskClosable) e_0.preventDefault();
|
|
179
|
-
};
|
|
180
|
-
t30 = (e_1)=>{
|
|
181
|
-
if (!maskClosable) e_1.preventDefault();
|
|
182
|
-
};
|
|
183
|
-
$[40] = maskClosable;
|
|
184
|
-
$[41] = t29;
|
|
185
|
-
$[42] = t30;
|
|
186
|
-
} else {
|
|
187
|
-
t29 = $[41];
|
|
188
|
-
t30 = $[42];
|
|
189
|
-
}
|
|
190
|
-
let t31;
|
|
191
|
-
if ($[43] !== classNames?.close || $[44] !== classNames?.header || $[45] !== classNames?.title || $[46] !== closable || $[47] !== onClose || $[48] !== stylesProp?.close || $[49] !== stylesProp?.header || $[50] !== stylesProp?.title || $[51] !== title) {
|
|
192
|
-
t31 = (null != title || closable) && /*#__PURE__*/ jsxs("div", {
|
|
179
|
+
if ($[41] !== classNames?.close || $[42] !== classNames?.header || $[43] !== classNames?.title || $[44] !== closable || $[45] !== onClose || $[46] !== stylesProp?.close || $[47] !== stylesProp?.header || $[48] !== stylesProp?.title || $[49] !== title) {
|
|
180
|
+
t30 = (null != title || closable) && /*#__PURE__*/ jsxs("div", {
|
|
193
181
|
"data-tao-modal-header": "",
|
|
194
182
|
className: cx(classNames?.header),
|
|
195
183
|
style: stylesProp?.header,
|
|
@@ -216,127 +204,125 @@ function Modal(t0) {
|
|
|
216
204
|
})
|
|
217
205
|
]
|
|
218
206
|
});
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
221
|
-
$[
|
|
222
|
-
$[
|
|
223
|
-
$[
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
$[
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
} else
|
|
230
|
-
const
|
|
231
|
-
let
|
|
232
|
-
if ($[
|
|
233
|
-
|
|
234
|
-
$[
|
|
235
|
-
$[
|
|
236
|
-
} else
|
|
237
|
-
const
|
|
238
|
-
let
|
|
239
|
-
if ($[
|
|
240
|
-
|
|
207
|
+
$[41] = classNames?.close;
|
|
208
|
+
$[42] = classNames?.header;
|
|
209
|
+
$[43] = classNames?.title;
|
|
210
|
+
$[44] = closable;
|
|
211
|
+
$[45] = onClose;
|
|
212
|
+
$[46] = stylesProp?.close;
|
|
213
|
+
$[47] = stylesProp?.header;
|
|
214
|
+
$[48] = stylesProp?.title;
|
|
215
|
+
$[49] = title;
|
|
216
|
+
$[50] = t30;
|
|
217
|
+
} else t30 = $[50];
|
|
218
|
+
const t31 = classNames?.body;
|
|
219
|
+
let t32;
|
|
220
|
+
if ($[51] !== t31) {
|
|
221
|
+
t32 = cx(t31);
|
|
222
|
+
$[51] = t31;
|
|
223
|
+
$[52] = t32;
|
|
224
|
+
} else t32 = $[52];
|
|
225
|
+
const t33 = stylesProp?.body;
|
|
226
|
+
let t34;
|
|
227
|
+
if ($[53] !== children || $[54] !== t32 || $[55] !== t33) {
|
|
228
|
+
t34 = /*#__PURE__*/ jsx("div", {
|
|
241
229
|
"data-tao-modal-body": "",
|
|
242
|
-
className:
|
|
243
|
-
style:
|
|
230
|
+
className: t32,
|
|
231
|
+
style: t33,
|
|
244
232
|
children: children
|
|
245
233
|
});
|
|
246
|
-
$[
|
|
247
|
-
$[
|
|
248
|
-
$[
|
|
249
|
-
$[
|
|
250
|
-
} else
|
|
251
|
-
let
|
|
252
|
-
if ($[
|
|
253
|
-
|
|
234
|
+
$[53] = children;
|
|
235
|
+
$[54] = t32;
|
|
236
|
+
$[55] = t33;
|
|
237
|
+
$[56] = t34;
|
|
238
|
+
} else t34 = $[56];
|
|
239
|
+
let t35;
|
|
240
|
+
if ($[57] !== classNames?.footer || $[58] !== footerContent || $[59] !== stylesProp?.footer) {
|
|
241
|
+
t35 = null != footerContent && /*#__PURE__*/ jsx("div", {
|
|
254
242
|
"data-tao-modal-footer": "",
|
|
255
243
|
className: cx(classNames?.footer),
|
|
256
244
|
style: stylesProp?.footer,
|
|
257
245
|
children: footerContent
|
|
258
246
|
});
|
|
259
|
-
$[
|
|
260
|
-
$[
|
|
261
|
-
$[
|
|
262
|
-
$[
|
|
263
|
-
} else
|
|
264
|
-
let
|
|
265
|
-
if ($[
|
|
266
|
-
|
|
247
|
+
$[57] = classNames?.footer;
|
|
248
|
+
$[58] = footerContent;
|
|
249
|
+
$[59] = stylesProp?.footer;
|
|
250
|
+
$[60] = t35;
|
|
251
|
+
} else t35 = $[60];
|
|
252
|
+
let t36;
|
|
253
|
+
if ($[61] !== contentStyle || $[62] !== forceMount || $[63] !== t28 || $[64] !== t29 || $[65] !== t30 || $[66] !== t34 || $[67] !== t35) {
|
|
254
|
+
t36 = /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dialog_dabd8325.Content, {
|
|
267
255
|
forceMount: forceMount,
|
|
268
256
|
"data-tao-modal": "",
|
|
269
257
|
style: contentStyle,
|
|
270
|
-
className:
|
|
258
|
+
className: t28,
|
|
271
259
|
"aria-describedby": void 0,
|
|
272
|
-
onEscapeKeyDown:
|
|
273
|
-
onPointerDownOutside:
|
|
274
|
-
onInteractOutside:
|
|
260
|
+
onEscapeKeyDown: t29,
|
|
261
|
+
onPointerDownOutside: preventParentOutsideDismiss,
|
|
262
|
+
onInteractOutside: preventParentOutsideDismiss,
|
|
275
263
|
children: [
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
264
|
+
t30,
|
|
265
|
+
t34,
|
|
266
|
+
t35
|
|
279
267
|
]
|
|
280
268
|
});
|
|
281
|
-
$[
|
|
282
|
-
$[
|
|
283
|
-
$[
|
|
284
|
-
$[
|
|
285
|
-
$[
|
|
286
|
-
$[
|
|
287
|
-
$[
|
|
288
|
-
$[
|
|
269
|
+
$[61] = contentStyle;
|
|
270
|
+
$[62] = forceMount;
|
|
271
|
+
$[63] = t28;
|
|
272
|
+
$[64] = t29;
|
|
273
|
+
$[65] = t30;
|
|
274
|
+
$[66] = t34;
|
|
275
|
+
$[67] = t35;
|
|
276
|
+
$[68] = t36;
|
|
277
|
+
} else t36 = $[68];
|
|
278
|
+
let t37;
|
|
279
|
+
if ($[69] !== t25 || $[70] !== t26 || $[71] !== t36) {
|
|
280
|
+
t37 = /*#__PURE__*/ jsx("div", {
|
|
281
|
+
"data-tao-modal-wrap": "",
|
|
282
|
+
"data-tao-centered": t25,
|
|
283
|
+
"data-tao-open": t26,
|
|
284
|
+
children: t36
|
|
285
|
+
});
|
|
286
|
+
$[69] = t25;
|
|
287
|
+
$[70] = t26;
|
|
289
288
|
$[71] = t36;
|
|
290
289
|
$[72] = t37;
|
|
291
290
|
} else t37 = $[72];
|
|
292
291
|
let t38;
|
|
293
|
-
if ($[73] !== t24 || $[74] !==
|
|
294
|
-
t38 = /*#__PURE__*/
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
292
|
+
if ($[73] !== t24 || $[74] !== t37) {
|
|
293
|
+
t38 = /*#__PURE__*/ jsxs(TaoPortalScope, {
|
|
294
|
+
children: [
|
|
295
|
+
t24,
|
|
296
|
+
t37
|
|
297
|
+
]
|
|
299
298
|
});
|
|
300
299
|
$[73] = t24;
|
|
301
|
-
$[74] =
|
|
302
|
-
$[75] =
|
|
303
|
-
|
|
304
|
-
} else t38 = $[76];
|
|
300
|
+
$[74] = t37;
|
|
301
|
+
$[75] = t38;
|
|
302
|
+
} else t38 = $[75];
|
|
305
303
|
let t39;
|
|
306
|
-
if ($[
|
|
307
|
-
t39 = /*#__PURE__*/
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
t38
|
|
311
|
-
]
|
|
304
|
+
if ($[76] !== forceMount || $[77] !== t38) {
|
|
305
|
+
t39 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.Portal, {
|
|
306
|
+
forceMount: forceMount,
|
|
307
|
+
children: t38
|
|
312
308
|
});
|
|
313
|
-
$[
|
|
314
|
-
$[
|
|
315
|
-
$[
|
|
316
|
-
} else t39 = $[
|
|
309
|
+
$[76] = forceMount;
|
|
310
|
+
$[77] = t38;
|
|
311
|
+
$[78] = t39;
|
|
312
|
+
} else t39 = $[78];
|
|
317
313
|
let t40;
|
|
318
|
-
if ($[80] !==
|
|
319
|
-
t40 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.
|
|
320
|
-
|
|
314
|
+
if ($[79] !== open || $[80] !== t19 || $[81] !== t39) {
|
|
315
|
+
t40 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.Root, {
|
|
316
|
+
open: open,
|
|
317
|
+
onOpenChange: t19,
|
|
321
318
|
children: t39
|
|
322
319
|
});
|
|
323
|
-
$[
|
|
320
|
+
$[79] = open;
|
|
321
|
+
$[80] = t19;
|
|
324
322
|
$[81] = t39;
|
|
325
323
|
$[82] = t40;
|
|
326
324
|
} else t40 = $[82];
|
|
327
|
-
|
|
328
|
-
if ($[83] !== open || $[84] !== t19 || $[85] !== t40) {
|
|
329
|
-
t41 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.Root, {
|
|
330
|
-
open: open,
|
|
331
|
-
onOpenChange: t19,
|
|
332
|
-
children: t40
|
|
333
|
-
});
|
|
334
|
-
$[83] = open;
|
|
335
|
-
$[84] = t19;
|
|
336
|
-
$[85] = t40;
|
|
337
|
-
$[86] = t41;
|
|
338
|
-
} else t41 = $[86];
|
|
339
|
-
return t41;
|
|
325
|
+
return t40;
|
|
340
326
|
}
|
|
341
327
|
function CloseIcon() {
|
|
342
328
|
const $ = c(1);
|