@rockshin/tao-ui 0.0.59 → 0.0.60
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/cascader/cascader.js +1 -0
- package/dist/components/color-picker/color-picker.css +1 -1
- package/dist/components/color-picker/color-picker.js +3 -2
- package/dist/components/context-menu/context-menu.d.ts +3 -1
- package/dist/components/context-menu/context-menu.js +48 -43
- package/dist/components/date-picker/calendar/time-panel.js +7 -3
- package/dist/components/date-picker/date-picker.js +3 -1
- package/dist/components/date-picker/range-picker.js +5 -3
- package/dist/components/dropdown/dropdown.d.ts +1 -0
- package/dist/components/dropdown/dropdown.js +18 -12
- package/dist/components/float-button/float-button.js +2 -1
- package/dist/components/form/use-form.js +2 -1
- package/dist/components/input-number/input-number.d.ts +2 -1
- package/dist/components/input-number/input-number.js +67 -52
- package/dist/components/mentions/mentions.js +3 -2
- package/dist/components/menu/menu-render.d.ts +6 -0
- package/dist/components/menu/menu-render.js +38 -26
- package/dist/components/modal/confirm-dialog.js +11 -6
- package/dist/components/modal/use-modal.js +1 -1
- package/dist/components/pagination/pagination.d.ts +3 -2
- package/dist/components/pagination/pagination.js +127 -117
- package/dist/components/popover/popover.js +125 -298
- package/dist/components/select/mobile-select.js +1 -1
- package/dist/components/select/select-model.js +1 -1
- package/dist/components/select/use-select-selection.js +94 -86
- package/dist/components/statistic/statistic.js +38 -31
- package/dist/components/table/table-filter.d.ts +3 -1
- package/dist/components/table/table-filter.js +100 -74
- package/dist/components/table/table.js +1 -0
- package/dist/components/tabs/tabs.d.ts +3 -2
- package/dist/components/tabs/tabs.js +122 -112
- package/dist/components/time-picker/time-picker.js +4 -2
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +168 -210
- package/dist/components/tree-select/tree-select.js +1 -0
- package/dist/number-input/use-number-input.d.ts +1 -0
- package/dist/number-input/use-number-input.js +6 -2
- package/dist/provider/tao-provider.js +18 -4
- package/dist/theme/control.css +5 -1
- package/dist/theme/theme.css +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
3
|
import * as __rspack_external__radix_ui_react_popover_c8444160 from "@radix-ui/react-popover";
|
|
4
4
|
import { forwardRef, useEffect, useId, useRef } from "react";
|
|
@@ -86,7 +86,7 @@ const popover_PopoverSurface = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
86
86
|
return t1;
|
|
87
87
|
});
|
|
88
88
|
function Popover(t0) {
|
|
89
|
-
const $ = c(
|
|
89
|
+
const $ = c(41);
|
|
90
90
|
const { direction: directionProp, title, content, trigger: t1, placement: t2, open, defaultOpen, onOpenChange, mouseEnterDelay: t3, mouseLeaveDelay: t4, arrow: t5, destroyOnHidden, destroyTooltipOnHide, className, style, classNames, styles, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy } = t0;
|
|
91
91
|
const trigger = void 0 === t1 ? "hover" : t1;
|
|
92
92
|
const placement = void 0 === t2 ? "top" : t2;
|
|
@@ -261,316 +261,143 @@ function Popover(t0) {
|
|
|
261
261
|
$[27] = t18;
|
|
262
262
|
} else t18 = $[27];
|
|
263
263
|
const handleBlur = t18;
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
$[29] = t19;
|
|
272
|
-
} else t19 = $[29];
|
|
273
|
-
return t19;
|
|
274
|
-
}
|
|
275
|
-
let t19;
|
|
276
|
-
if ($[30] !== hoverMode || $[31] !== scheduleClose || $[32] !== scheduleOpen) {
|
|
277
|
-
t19 = hoverMode ? {
|
|
278
|
-
onPointerEnter: scheduleOpen,
|
|
279
|
-
onPointerLeave: scheduleClose
|
|
280
|
-
} : void 0;
|
|
281
|
-
$[30] = hoverMode;
|
|
282
|
-
$[31] = scheduleClose;
|
|
283
|
-
$[32] = scheduleOpen;
|
|
284
|
-
$[33] = t19;
|
|
285
|
-
} else t19 = $[33];
|
|
286
|
-
const hoverProps = t19;
|
|
287
|
-
let t20;
|
|
288
|
-
if ($[34] !== changeOpen || $[35] !== focusMode) {
|
|
289
|
-
t20 = focusMode ? ()=>{
|
|
264
|
+
const hoverProps = hasPopup && hoverMode ? {
|
|
265
|
+
onPointerEnter: scheduleOpen,
|
|
266
|
+
onPointerLeave: scheduleClose
|
|
267
|
+
} : void 0;
|
|
268
|
+
const triggerProps = hasPopup ? {
|
|
269
|
+
...hoverProps,
|
|
270
|
+
onFocus: focusMode ? ()=>{
|
|
290
271
|
if (!restoringFocus.current) changeOpen(true);
|
|
291
|
-
} : void 0
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
$[36] = t20;
|
|
295
|
-
} else t20 = $[36];
|
|
296
|
-
const t21 = focusMode ? handleBlur : void 0;
|
|
297
|
-
let t22;
|
|
298
|
-
if ($[37] !== changeOpen || $[38] !== contextMenuMode) {
|
|
299
|
-
t22 = contextMenuMode ? (event_0)=>{
|
|
272
|
+
} : void 0,
|
|
273
|
+
onBlur: focusMode ? handleBlur : void 0,
|
|
274
|
+
onContextMenu: contextMenuMode ? (event_0)=>{
|
|
300
275
|
if (event_0.defaultPrevented) return;
|
|
301
276
|
event_0.preventDefault();
|
|
302
277
|
changeOpen(true);
|
|
303
|
-
} : void 0
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
$[40] = hoverProps;
|
|
317
|
-
$[41] = t20;
|
|
318
|
-
$[42] = t21;
|
|
319
|
-
$[43] = t22;
|
|
320
|
-
$[44] = t23;
|
|
321
|
-
} else t23 = $[44];
|
|
322
|
-
const triggerProps = t23;
|
|
323
|
-
const t24 = __rspack_external__radix_ui_react_popover_c8444160;
|
|
324
|
-
let t25;
|
|
325
|
-
if ($[45] !== children) {
|
|
326
|
-
t25 = asTriggerChild(children);
|
|
327
|
-
$[45] = children;
|
|
328
|
-
$[46] = t25;
|
|
329
|
-
} else t25 = $[46];
|
|
330
|
-
let t26;
|
|
331
|
-
if ($[47] !== TriggerPrimitive || $[48] !== setTriggerRef || $[49] !== t25 || $[50] !== triggerProps) {
|
|
332
|
-
t26 = /*#__PURE__*/ jsx(TriggerPrimitive, {
|
|
278
|
+
} : void 0
|
|
279
|
+
} : void 0;
|
|
280
|
+
const t19 = __rspack_external__radix_ui_react_popover_c8444160;
|
|
281
|
+
const t20 = hasPopup && realOpen;
|
|
282
|
+
let t21;
|
|
283
|
+
if ($[28] !== children) {
|
|
284
|
+
t21 = asTriggerChild(children);
|
|
285
|
+
$[28] = children;
|
|
286
|
+
$[29] = t21;
|
|
287
|
+
} else t21 = $[29];
|
|
288
|
+
let t22;
|
|
289
|
+
if ($[30] !== TriggerPrimitive || $[31] !== setTriggerRef || $[32] !== t21 || $[33] !== triggerProps) {
|
|
290
|
+
t22 = /*#__PURE__*/ jsx(TriggerPrimitive, {
|
|
333
291
|
asChild: true,
|
|
334
292
|
ref: setTriggerRef,
|
|
335
293
|
...triggerProps,
|
|
336
|
-
children:
|
|
337
|
-
});
|
|
338
|
-
$[47] = TriggerPrimitive;
|
|
339
|
-
$[48] = setTriggerRef;
|
|
340
|
-
$[49] = t25;
|
|
341
|
-
$[50] = triggerProps;
|
|
342
|
-
$[51] = t26;
|
|
343
|
-
} else t26 = $[51];
|
|
344
|
-
const t27 = __rspack_external__radix_ui_react_popover_c8444160;
|
|
345
|
-
const t28 = shouldDestroy ? void 0 : true;
|
|
346
|
-
const T0 = TaoPortalScope;
|
|
347
|
-
const t29 = true;
|
|
348
|
-
const t30 = __rspack_external__radix_ui_react_popover_c8444160;
|
|
349
|
-
const t31 = true;
|
|
350
|
-
const t32 = ariaLabelledBy ?? (!ariaLabel && isRenderable(titleNode) ? titleId : void 0);
|
|
351
|
-
const t33 = "";
|
|
352
|
-
const t34 = !shouldDestroy || void 0;
|
|
353
|
-
const t35 = classNames?.root;
|
|
354
|
-
let t36;
|
|
355
|
-
if ($[52] !== className || $[53] !== t35) {
|
|
356
|
-
t36 = cx(t35, className);
|
|
357
|
-
$[52] = className;
|
|
358
|
-
$[53] = t35;
|
|
359
|
-
$[54] = t36;
|
|
360
|
-
} else t36 = $[54];
|
|
361
|
-
const t37 = styles?.root;
|
|
362
|
-
let t38;
|
|
363
|
-
if ($[55] !== style || $[56] !== t37) {
|
|
364
|
-
t38 = {
|
|
365
|
-
...t37,
|
|
366
|
-
...style
|
|
367
|
-
};
|
|
368
|
-
$[55] = style;
|
|
369
|
-
$[56] = t37;
|
|
370
|
-
$[57] = t38;
|
|
371
|
-
} else t38 = $[57];
|
|
372
|
-
const t39 = "rtl" === direction && ("top" === placementProps.side || "bottom" === placementProps.side) && "center" !== placementProps.align ? "start" === placementProps.align ? "end" : "start" : placementProps.align;
|
|
373
|
-
const t40 = 4;
|
|
374
|
-
const t41 = shouldDestroy ? void 0 : true;
|
|
375
|
-
const t42 = _temp;
|
|
376
|
-
let t43;
|
|
377
|
-
if ($[58] !== focusMode) {
|
|
378
|
-
t43 = ()=>{
|
|
379
|
-
restoreAfterEscape.current = focusMode && !!popupRef.current?.contains(document.activeElement);
|
|
380
|
-
};
|
|
381
|
-
$[58] = focusMode;
|
|
382
|
-
$[59] = t43;
|
|
383
|
-
} else t43 = $[59];
|
|
384
|
-
let t44;
|
|
385
|
-
if ($[60] !== shouldDestroy) {
|
|
386
|
-
t44 = (event_2)=>{
|
|
387
|
-
const focusedRetainedContent = !shouldDestroy && event_2.currentTarget instanceof HTMLElement && event_2.currentTarget.contains(document.activeElement);
|
|
388
|
-
if (restoreAfterEscape.current || focusedRetainedContent) {
|
|
389
|
-
restoreAfterEscape.current = false;
|
|
390
|
-
event_2.preventDefault();
|
|
391
|
-
restoringFocus.current = true;
|
|
392
|
-
triggerRef.current?.focus();
|
|
393
|
-
restoringFocus.current = false;
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
$[60] = shouldDestroy;
|
|
397
|
-
$[61] = t44;
|
|
398
|
-
} else t44 = $[61];
|
|
399
|
-
const t45 = focusMode ? cancelTimers : void 0;
|
|
400
|
-
const t46 = focusMode ? handleBlur : void 0;
|
|
401
|
-
let t47;
|
|
402
|
-
if ($[62] === Symbol.for("react.memo_cache_sentinel")) {
|
|
403
|
-
t47 = (event_3)=>{
|
|
404
|
-
if (containsTrigger(event_3.target)) event_3.preventDefault();
|
|
405
|
-
};
|
|
406
|
-
$[62] = t47;
|
|
407
|
-
} else t47 = $[62];
|
|
408
|
-
let t48;
|
|
409
|
-
if ($[63] !== focusMode) {
|
|
410
|
-
t48 = (event_4)=>{
|
|
411
|
-
if (focusMode) event_4.preventDefault();
|
|
412
|
-
};
|
|
413
|
-
$[63] = focusMode;
|
|
414
|
-
$[64] = t48;
|
|
415
|
-
} else t48 = $[64];
|
|
416
|
-
const T1 = popover_PopoverSurface;
|
|
417
|
-
const t49 = "";
|
|
418
|
-
const t50 = classNames?.container;
|
|
419
|
-
let t51;
|
|
420
|
-
if ($[65] !== t50) {
|
|
421
|
-
t51 = cx(t50);
|
|
422
|
-
$[65] = t50;
|
|
423
|
-
$[66] = t51;
|
|
424
|
-
} else t51 = $[66];
|
|
425
|
-
const t52 = styles?.container;
|
|
426
|
-
const t53 = isRenderable(titleNode) && /*#__PURE__*/ jsx("div", {
|
|
427
|
-
"data-tao-popover-title": "",
|
|
428
|
-
id: titleId,
|
|
429
|
-
className: cx(classNames?.title),
|
|
430
|
-
style: styles?.title,
|
|
431
|
-
children: titleNode
|
|
432
|
-
});
|
|
433
|
-
const t54 = isRenderable(contentNode) && /*#__PURE__*/ jsx("div", {
|
|
434
|
-
"data-tao-popover-content": "",
|
|
435
|
-
className: cx(classNames?.content),
|
|
436
|
-
style: styles?.content,
|
|
437
|
-
children: contentNode
|
|
438
|
-
});
|
|
439
|
-
let t55;
|
|
440
|
-
if ($[67] !== t51 || $[68] !== t52 || $[69] !== t53 || $[70] !== t54) {
|
|
441
|
-
t55 = /*#__PURE__*/ jsxs("div", {
|
|
442
|
-
"data-tao-popover-container": t49,
|
|
443
|
-
className: t51,
|
|
444
|
-
style: t52,
|
|
445
|
-
children: [
|
|
446
|
-
t53,
|
|
447
|
-
t54
|
|
448
|
-
]
|
|
294
|
+
children: t21
|
|
449
295
|
});
|
|
450
|
-
$[
|
|
451
|
-
$[
|
|
452
|
-
$[
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
} else
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
296
|
+
$[30] = TriggerPrimitive;
|
|
297
|
+
$[31] = setTriggerRef;
|
|
298
|
+
$[32] = t21;
|
|
299
|
+
$[33] = triggerProps;
|
|
300
|
+
$[34] = t22;
|
|
301
|
+
} else t22 = $[34];
|
|
302
|
+
const t23 = hasPopup && /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_popover_c8444160.Portal, {
|
|
303
|
+
forceMount: shouldDestroy ? void 0 : true,
|
|
304
|
+
children: /*#__PURE__*/ jsx(TaoPortalScope, {
|
|
459
305
|
asChild: true,
|
|
460
|
-
children: /*#__PURE__*/ jsx("span", {
|
|
461
|
-
"data-tao-popover-arrow": "",
|
|
462
|
-
className: cx(classNames?.arrow),
|
|
463
|
-
style: styles?.arrow
|
|
464
|
-
})
|
|
465
|
-
});
|
|
466
|
-
$[72] = arrow;
|
|
467
|
-
$[73] = classNames?.arrow;
|
|
468
|
-
$[74] = styles?.arrow;
|
|
469
|
-
$[75] = t56;
|
|
470
|
-
} else t56 = $[75];
|
|
471
|
-
let t57;
|
|
472
|
-
if ($[76] !== T1 || $[77] !== t55 || $[78] !== t56) {
|
|
473
|
-
t57 = /*#__PURE__*/ jsxs(T1, {
|
|
474
|
-
children: [
|
|
475
|
-
t55,
|
|
476
|
-
t56
|
|
477
|
-
]
|
|
478
|
-
});
|
|
479
|
-
$[76] = T1;
|
|
480
|
-
$[77] = t55;
|
|
481
|
-
$[78] = t56;
|
|
482
|
-
$[79] = t57;
|
|
483
|
-
} else t57 = $[79];
|
|
484
|
-
let t58;
|
|
485
|
-
if ($[80] !== ariaDescribedBy || $[81] !== ariaLabel || $[82] !== hoverProps || $[83] !== placement || $[84] !== placementProps || $[85] !== t30.Content || $[86] !== t32 || $[87] !== t34 || $[88] !== t36 || $[89] !== t38 || $[90] !== t39 || $[91] !== t41 || $[92] !== t42 || $[93] !== t43 || $[94] !== t44 || $[95] !== t45 || $[96] !== t46 || $[97] !== t47 || $[98] !== t48 || $[99] !== t57) {
|
|
486
|
-
t58 = /*#__PURE__*/ jsx(t30.Content, {
|
|
487
|
-
asChild: t31,
|
|
488
|
-
ref: popupRef,
|
|
489
|
-
"aria-label": ariaLabel,
|
|
490
|
-
"aria-labelledby": t32,
|
|
491
|
-
"aria-describedby": ariaDescribedBy,
|
|
492
|
-
"data-tao-popover": t33,
|
|
493
|
-
"data-tao-placement": placement,
|
|
494
|
-
"data-tao-keep-alive": t34,
|
|
495
|
-
className: t36,
|
|
496
|
-
style: t38,
|
|
497
|
-
...placementProps,
|
|
498
|
-
align: t39,
|
|
499
|
-
sideOffset: t40,
|
|
500
|
-
forceMount: t41,
|
|
501
|
-
onOpenAutoFocus: t42,
|
|
502
|
-
onEscapeKeyDown: t43,
|
|
503
|
-
onCloseAutoFocus: t44,
|
|
504
|
-
onFocusCapture: t45,
|
|
505
|
-
onBlurCapture: t46,
|
|
506
|
-
onInteractOutside: t47,
|
|
507
|
-
onFocusOutside: t48,
|
|
508
|
-
...hoverProps,
|
|
509
|
-
children: t57
|
|
510
|
-
});
|
|
511
|
-
$[80] = ariaDescribedBy;
|
|
512
|
-
$[81] = ariaLabel;
|
|
513
|
-
$[82] = hoverProps;
|
|
514
|
-
$[83] = placement;
|
|
515
|
-
$[84] = placementProps;
|
|
516
|
-
$[85] = t30.Content;
|
|
517
|
-
$[86] = t32;
|
|
518
|
-
$[87] = t34;
|
|
519
|
-
$[88] = t36;
|
|
520
|
-
$[89] = t38;
|
|
521
|
-
$[90] = t39;
|
|
522
|
-
$[91] = t41;
|
|
523
|
-
$[92] = t42;
|
|
524
|
-
$[93] = t43;
|
|
525
|
-
$[94] = t44;
|
|
526
|
-
$[95] = t45;
|
|
527
|
-
$[96] = t46;
|
|
528
|
-
$[97] = t47;
|
|
529
|
-
$[98] = t48;
|
|
530
|
-
$[99] = t57;
|
|
531
|
-
$[100] = t58;
|
|
532
|
-
} else t58 = $[100];
|
|
533
|
-
let t59;
|
|
534
|
-
if ($[101] !== T0 || $[102] !== direction || $[103] !== t58) {
|
|
535
|
-
t59 = /*#__PURE__*/ jsx(T0, {
|
|
536
|
-
asChild: t29,
|
|
537
306
|
direction: direction,
|
|
538
|
-
children:
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
307
|
+
children: /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_popover_c8444160.Content, {
|
|
308
|
+
asChild: true,
|
|
309
|
+
ref: popupRef,
|
|
310
|
+
"aria-label": ariaLabel,
|
|
311
|
+
"aria-labelledby": ariaLabelledBy ?? (!ariaLabel && isRenderable(titleNode) ? titleId : void 0),
|
|
312
|
+
"aria-describedby": ariaDescribedBy,
|
|
313
|
+
"data-tao-popover": "",
|
|
314
|
+
"data-tao-placement": placement,
|
|
315
|
+
"data-tao-keep-alive": !shouldDestroy || void 0,
|
|
316
|
+
className: cx(classNames?.root, className),
|
|
317
|
+
style: {
|
|
318
|
+
...styles?.root,
|
|
319
|
+
...style
|
|
320
|
+
},
|
|
321
|
+
...placementProps,
|
|
322
|
+
align: "rtl" === direction && ("top" === placementProps.side || "bottom" === placementProps.side) && "center" !== placementProps.align ? "start" === placementProps.align ? "end" : "start" : placementProps.align,
|
|
323
|
+
sideOffset: 4,
|
|
324
|
+
forceMount: shouldDestroy ? void 0 : true,
|
|
325
|
+
onOpenAutoFocus: _temp,
|
|
326
|
+
onEscapeKeyDown: ()=>{
|
|
327
|
+
restoreAfterEscape.current = focusMode && !!popupRef.current?.contains(document.activeElement);
|
|
328
|
+
},
|
|
329
|
+
onCloseAutoFocus: (event_2)=>{
|
|
330
|
+
const focusedRetainedContent = !shouldDestroy && event_2.currentTarget instanceof HTMLElement && event_2.currentTarget.contains(document.activeElement);
|
|
331
|
+
if (restoreAfterEscape.current || focusedRetainedContent) {
|
|
332
|
+
restoreAfterEscape.current = false;
|
|
333
|
+
event_2.preventDefault();
|
|
334
|
+
restoringFocus.current = true;
|
|
335
|
+
triggerRef.current?.focus();
|
|
336
|
+
restoringFocus.current = false;
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
onFocusCapture: focusMode ? cancelTimers : void 0,
|
|
340
|
+
onBlurCapture: focusMode ? handleBlur : void 0,
|
|
341
|
+
onInteractOutside: (event_3)=>{
|
|
342
|
+
if (containsTrigger(event_3.target)) event_3.preventDefault();
|
|
343
|
+
},
|
|
344
|
+
onFocusOutside: (event_4)=>{
|
|
345
|
+
if (focusMode) event_4.preventDefault();
|
|
346
|
+
},
|
|
347
|
+
...hoverProps,
|
|
348
|
+
children: /*#__PURE__*/ jsxs(popover_PopoverSurface, {
|
|
349
|
+
children: [
|
|
350
|
+
/*#__PURE__*/ jsxs("div", {
|
|
351
|
+
"data-tao-popover-container": "",
|
|
352
|
+
className: cx(classNames?.container),
|
|
353
|
+
style: styles?.container,
|
|
354
|
+
children: [
|
|
355
|
+
isRenderable(titleNode) && /*#__PURE__*/ jsx("div", {
|
|
356
|
+
"data-tao-popover-title": "",
|
|
357
|
+
id: titleId,
|
|
358
|
+
className: cx(classNames?.title),
|
|
359
|
+
style: styles?.title,
|
|
360
|
+
children: titleNode
|
|
361
|
+
}),
|
|
362
|
+
isRenderable(contentNode) && /*#__PURE__*/ jsx("div", {
|
|
363
|
+
"data-tao-popover-content": "",
|
|
364
|
+
className: cx(classNames?.content),
|
|
365
|
+
style: styles?.content,
|
|
366
|
+
children: contentNode
|
|
367
|
+
})
|
|
368
|
+
]
|
|
369
|
+
}),
|
|
370
|
+
false !== arrow && /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_popover_c8444160.Arrow, {
|
|
371
|
+
asChild: true,
|
|
372
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
373
|
+
"data-tao-popover-arrow": "",
|
|
374
|
+
className: cx(classNames?.arrow),
|
|
375
|
+
style: styles?.arrow
|
|
376
|
+
})
|
|
377
|
+
})
|
|
378
|
+
]
|
|
379
|
+
})
|
|
380
|
+
})
|
|
381
|
+
})
|
|
382
|
+
});
|
|
383
|
+
let t24;
|
|
384
|
+
if ($[35] !== changeOpen || $[36] !== t19.Root || $[37] !== t20 || $[38] !== t22 || $[39] !== t23) {
|
|
385
|
+
t24 = /*#__PURE__*/ jsxs(t19.Root, {
|
|
386
|
+
open: t20,
|
|
560
387
|
onOpenChange: changeOpen,
|
|
561
388
|
children: [
|
|
562
|
-
|
|
563
|
-
|
|
389
|
+
t22,
|
|
390
|
+
t23
|
|
564
391
|
]
|
|
565
392
|
});
|
|
566
|
-
$[
|
|
567
|
-
$[
|
|
568
|
-
$[
|
|
569
|
-
$[
|
|
570
|
-
$[
|
|
571
|
-
$[
|
|
572
|
-
} else
|
|
573
|
-
return
|
|
393
|
+
$[35] = changeOpen;
|
|
394
|
+
$[36] = t19.Root;
|
|
395
|
+
$[37] = t20;
|
|
396
|
+
$[38] = t22;
|
|
397
|
+
$[39] = t23;
|
|
398
|
+
$[40] = t24;
|
|
399
|
+
} else t24 = $[40];
|
|
400
|
+
return t24;
|
|
574
401
|
}
|
|
575
402
|
function _temp(event_1) {
|
|
576
403
|
return event_1.preventDefault();
|
|
@@ -203,7 +203,7 @@ function MobileSelectContentInner({ options, value, onChange, onMultiChange, sho
|
|
|
203
203
|
/*#__PURE__*/ jsxs("div", {
|
|
204
204
|
"data-tao-sheet-list": "",
|
|
205
205
|
children: [
|
|
206
|
-
'tags' === mode && search.trim() && !draftSet.has(search.trim()) && !knownOptions.some((option_2)=>option_2.value === search.trim() || option_2.label === search.trim()) && /*#__PURE__*/ jsx("button", {
|
|
206
|
+
'tags' === mode && search.trim() && !draftSet.has(search.trim()) && !knownOptions.some((option_2)=>option_2.value === search.trim() || ('string' == typeof option_2.label || 'number' == typeof option_2.label) && String(option_2.label) === search.trim()) && /*#__PURE__*/ jsx("button", {
|
|
207
207
|
type: "button",
|
|
208
208
|
"data-tao-sheet-item": "",
|
|
209
209
|
className: classNames?.item,
|
|
@@ -8,7 +8,7 @@ function buildSelectIndex(options) {
|
|
|
8
8
|
forEachLeafOption(options, (option)=>{
|
|
9
9
|
if (!optionByValue.has(option.value)) optionByValue.set(option.value, option);
|
|
10
10
|
if (!optionByToken.has(option.value)) optionByToken.set(option.value, option);
|
|
11
|
-
if ('string' == typeof option.label && !optionByToken.has(option.label)) optionByToken.set(option.label, option);
|
|
11
|
+
if (('string' == typeof option.label || 'number' == typeof option.label) && !optionByToken.has(String(option.label))) optionByToken.set(String(option.label), option);
|
|
12
12
|
});
|
|
13
13
|
return {
|
|
14
14
|
optionByValue,
|