x-ui-design 0.2.0 → 0.2.2

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/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var react = require('react');
4
5
  var reactDom = require('react-dom');
5
6
 
@@ -31,16 +32,6 @@ function styleInject(css, ref) {
31
32
  var css_248z$l = ":root{--xui-color-hover:#f5f5f5;--xui-color-disabled:#e6e6e6;--xui-primary-color:#1677ff;--xui-primary-color-light:#40a9ff;--xui-text-color:rgba(0,0,0,.88);--xui-text-color-light:rgba(0,0,0,.5);--xui-error-color:#ff4d4f;--xui-error-color-light:#ff6668;--xui-success-color:#52c41a;--xui-background-color:#fff;--xui-font-size-xs:12px;--xui-font-size-sm:14px;--xui-font-size-md:14px;--xui-font-size-lg:16px;--xui-border-radius-sm:4px;--xui-border-radius-md:4px;--xui-border-radius-lg:6px;--xui-border-color:#d9d9d9;--xui-select-primary-color:var(--xui-primary-color);--xui-select-background-color:var(--xui-background-color)}html{font-family:sans-serif}.globalEllipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";
32
33
  styleInject(css_248z$l);
33
34
 
34
- function _extends() {
35
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
36
- for (var e = 1; e < arguments.length; e++) {
37
- var t = arguments[e];
38
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
39
- }
40
- return n;
41
- }, _extends.apply(null, arguments);
42
- }
43
-
44
35
  const useForm = (initialValues = {}, onFieldsChange, onValuesChange) => {
45
36
  const touchedFieldsRef = react.useRef(new Set());
46
37
  const rulesRef = react.useRef({});
@@ -373,48 +364,52 @@ const FormItem = ({
373
364
  }, [errorRef.current]);
374
365
  const isRequired = react.useMemo(() => rules.some(rule => rule.required), [rules]);
375
366
  const errorMessage = getFieldError(valuePropName || name)?.[0];
376
- return /*#__PURE__*/React.createElement("div", {
367
+ return jsxRuntime.jsxs("div", {
377
368
  style: style,
378
369
  className: clsx([`${prefixCls}`, {
379
370
  [layout]: layout,
380
371
  [className]: className,
381
372
  noStyle: props.noStyle
382
- }])
383
- }, !props.noStyle && (label || name) && /*#__PURE__*/React.createElement("label", {
384
- className: `${prefixCls}-label`,
385
- htmlFor: name
386
- }, label || name, ":", isRequired && /*#__PURE__*/React.createElement("span", {
387
- className: `${prefixCls}-required`
388
- }, "*")), react.Children.map(childrenList, (child, key) => {
389
- if (/*#__PURE__*/react.isValidElement(child) && child.type !== react.Fragment) {
390
- const {
391
- value,
392
- ...childProps
393
- } = child.props;
394
- const fieldValue = getFieldValue(valuePropName || name) ?? initialValue;
395
- return /*#__PURE__*/React.createElement(FormItemChildComponent, _extends({}, childProps, {
396
- name: name,
397
- child: child,
398
- value: value,
399
- fieldValue: fieldValue,
400
- noStyle: props.noStyle,
401
- normalize: props.normalize,
402
- key: `${key}_${isReseting}`,
403
- error: Boolean(errorMessage),
404
- setFieldValue: setFieldValue,
405
- valuePropName: valuePropName,
406
- feedbackIcons: feedbackIcons
407
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
408
- // @ts-expect-error
409
- ,
410
- size: childProps.size || props.size
411
- }));
412
- }
413
- return child;
414
- }), !props.noStyle && errorMessage && /*#__PURE__*/React.createElement("span", {
415
- ref: errorRef,
416
- className: `${prefixCls}-error`
417
- }, errorMessage));
373
+ }]),
374
+ children: [!props.noStyle && (label || name) && jsxRuntime.jsxs("label", {
375
+ className: `${prefixCls}-label`,
376
+ htmlFor: name,
377
+ children: [label || name, ":", isRequired && jsxRuntime.jsx("span", {
378
+ className: `${prefixCls}-required`,
379
+ children: "*"
380
+ })]
381
+ }), react.Children.map(childrenList, (child, key) => {
382
+ if (/*#__PURE__*/react.isValidElement(child) && child.type !== react.Fragment) {
383
+ const {
384
+ value,
385
+ ...childProps
386
+ } = child.props;
387
+ const fieldValue = getFieldValue(valuePropName || name) ?? initialValue;
388
+ return /*#__PURE__*/react.createElement(FormItemChildComponent, {
389
+ ...childProps,
390
+ name: name,
391
+ child: child,
392
+ value: value,
393
+ fieldValue: fieldValue,
394
+ noStyle: props.noStyle,
395
+ normalize: props.normalize,
396
+ key: `${key}_${isReseting}`,
397
+ error: Boolean(errorMessage),
398
+ setFieldValue: setFieldValue,
399
+ valuePropName: valuePropName,
400
+ feedbackIcons: feedbackIcons,
401
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
402
+ // @ts-expect-error
403
+ size: childProps.size || props.size
404
+ });
405
+ }
406
+ return child;
407
+ }), !props.noStyle && errorMessage && jsxRuntime.jsx("span", {
408
+ ref: errorRef,
409
+ className: `${prefixCls}-error`,
410
+ children: errorMessage
411
+ })]
412
+ });
418
413
  };
419
414
  const FormItemChildComponent = ({
420
415
  child,
@@ -451,15 +446,16 @@ const FormItemChildComponent = ({
451
446
  setFieldValue(valuePropName || name, rawValue);
452
447
  onChange?.(e, option);
453
448
  };
454
- return /*#__PURE__*/React.createElement(child.type, _extends({}, props, {
449
+ return /*#__PURE__*/react.createElement(child.type, {
450
+ ...props,
455
451
  name: name,
456
- onChange: handleChange
457
- }, error ? {
458
- error
459
- } : {}, {
452
+ onChange: handleChange,
453
+ ...(error ? {
454
+ error
455
+ } : {}),
460
456
  key: `${name}_${wasNormalize}`,
461
457
  value: fieldValue ?? props.value
462
- }));
458
+ });
463
459
  };
464
460
  FormItem.displayName = 'FormItem';
465
461
 
@@ -502,118 +498,128 @@ const Form = ({
502
498
  formInstance.onValuesChange = onValuesChange;
503
499
  }
504
500
  }, [formInstance, onFieldsChange, onValuesChange]);
505
- return /*#__PURE__*/React.createElement(FormContext.Provider, {
506
- value: formInstance
507
- }, /*#__PURE__*/React.createElement("form", {
508
- style: style,
509
- ref: formRef,
510
- onSubmit: handleSubmit,
511
- className: `${prefixCls} ${className}`
512
- }, react.Children.map(childrenList, child => {
513
- if (/*#__PURE__*/react.isValidElement(child) && child.type !== react.Fragment) {
514
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
515
- // @ts-expect-error
516
- const {
517
- ...childProps
518
- } = child.props;
519
- return /*#__PURE__*/React.createElement(child.type, _extends({}, childProps, {
520
- child: child,
521
- size: childProps.size || rest.size,
522
- layout: childProps.layout || layout
523
- }));
524
- }
525
- return child;
526
- })));
501
+ return jsxRuntime.jsx(FormContext.Provider, {
502
+ value: formInstance,
503
+ children: jsxRuntime.jsx("form", {
504
+ style: style,
505
+ ref: formRef,
506
+ onSubmit: handleSubmit,
507
+ className: `${prefixCls} ${className}`,
508
+ children: react.Children.map(childrenList, child => {
509
+ if (/*#__PURE__*/react.isValidElement(child) && child.type !== react.Fragment) {
510
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
511
+ // @ts-expect-error
512
+ const {
513
+ ...childProps
514
+ } = child.props;
515
+ return jsxRuntime.jsx(child.type, {
516
+ ...childProps,
517
+ child: child,
518
+ size: childProps.size || rest.size,
519
+ layout: childProps.layout || layout
520
+ });
521
+ }
522
+ return child;
523
+ })
524
+ })
525
+ });
527
526
  };
528
527
  Form.Item = FormItem;
529
528
 
530
529
  var css_248z$j = ".xUi-rangepicker-range-container{font-size:14px;position:relative;user-select:none}.xUi-rangepicker-range-input-wrapper{background-color:#fff;border-radius:6px;display:flex;transition:all .3s;width:100%}.xUi-rangepicker-range-input-wrapper:hover{border-color:#4096ff}.xUi-rangepicker-range-input{align-items:center;border-right:1px solid var(--xui-border-color);cursor:pointer;display:flex;flex:1;padding:4px 11px}.xUi-rangepicker-range-input:last-child{border-right:none}.xUi-rangepicker-range-input input{background:transparent;border:none;color:#000;cursor:pointer;font-size:14px;outline:none;width:100%}.xUi-rangepicker-range-input input::placeholder{color:#bfbfbf}.xUi-rangepicker-range-clear,.xUi-rangepicker-range-icon{align-items:center;display:flex;margin-left:8px;transition:color .3s}.xUi-rangepicker-range-icon{color:rgba(0,0,0,.25)}.xUi-rangepicker-range-clear{color:rgba(0,0,0,.45);cursor:pointer}.xUi-rangepicker-range-clear:hover{color:#000}.xUi-rangepicker-range-dropdown-wrapper{background:#fff;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.15);display:none;left:0;margin-top:4px;min-width:560px;opacity:1;padding:8px;position:absolute;top:100%;transform:translateY(4px);transition:opacity .2s ease,transform .2s ease;z-index:1050}.xUi-rangepicker-range-dropdown-wrapper.show{display:flex}.xUi-rangepicker-dropdown-range,.xUi-rangepicker-range-dropdown{background-color:#fff;border:1px solid var(--xui-border-color);border-radius:6px;display:flex;margin-top:2px;overflow:hidden}.xUi-rangepicker-calendar{background:#fff;border-radius:6px;margin:12px}.xUi-rangepicker-calendar.month,.xUi-rangepicker-calendar.year{width:280px}.xUi-rangepicker-calendar-header{align-items:center;display:flex;font-weight:500;justify-content:space-between}.xUi-rangepicker-month,.xUi-rangepicker-year{background:none;border:none;border-radius:4px;color:var(--xui-text-color);cursor:pointer;height:30px;line-height:30px;margin:7px;min-width:30px;text-align:center;transition:all .2s}.xUi-rangepicker-day:disabled,.xUi-rangepicker-month:disabled,.xUi-rangepicker-select:disabled,.xUi-rangepicker-year:disabled{background-color:var(--xui-color-disabled);cursor:not-allowed;opacity:.5}.xUi-rangepicker-day:not(:disabled):hover,.xUi-rangepicker-month:not(:disabled):hover,.xUi-rangepicker-year:not(:disabled):hover{background:var(--xui-primary-color-light);color:#fff}.xUi-rangepicker-calendar-header button,.xUi-rangepicker-dropdown-selects button,.xUi-rangepicker-nav-buttons button{background:transparent;border:none;color:#595959;cursor:pointer;font-size:14px;font-weight:600;line-height:1;padding:0 6px;transition:color .2s ease}.xUi-rangepicker-nav-buttons button{font-size:20px;font-weight:400}.xUi-rangepicker-calendar-header button:hover,.xUi-rangepicker-dropdown-selects button:hover,.xUi-rangepicker-nav-buttons button:hover{color:var(--xui-primary-color)}.xUi-rangepicker-input{align-items:center;background-color:transparent;border:1px solid var(--xui-border-color);border-radius:6px;color:var(--xui-text-color);cursor:pointer;display:flex;gap:8px;justify-content:space-between;padding:3px 7px;transition:all .3s}.xUi-rangepicker-input.noBordered{border:none!important}.xUi-rangepicker-input input{border:none;color:var(--xui-text-color);font-size:var(--xui-font-size-sm);outline:none;padding:0}.xUi-rangepicker-input:placeholder-shown{text-overflow:ellipsis}.xUi-rangepicker-input:hover{border-color:var(--xui-primary-color)}.xUi-rangepicker-weekday-row{background-color:#fff;box-shadow:0 1px 0 rgba(0,0,0,.1);display:grid;gap:4px;grid-template-columns:repeat(7,1fr);position:sticky;top:0;z-index:1}.xUi-rangepicker-weekday{align-items:center;color:var(--xui-text-color);display:flex;font-size:12px;font-weight:500;font-weight:600;height:30px;justify-content:center;text-align:center}.xUi-rangepicker-days-grid,.xUi-rangepicker-grid{display:grid;gap:2px;grid-template-columns:repeat(3,1fr)}.xUi-rangepicker-days-grid.day{grid-template-columns:repeat(7,0fr)}.xUi-rangepicker-day{background-color:transparent;border:none;border-radius:4px;cursor:pointer;height:30px;line-height:30px;text-align:center;transition:background-color .3s,color .3s;width:30px}.xUi-rangepicker-day:hover{background-color:var(--xui-primary-color);border-radius:4px;color:#fff}.xUi-rangepicker-day.xUi-rangepicker-other-month:hover{background-color:var(--xui-color-disabled)!important;color:var(--xui-text-color)}.xUi-rangepicker-range-end:not(.xUi-rangepicker-other-month),.xUi-rangepicker-range-start:not(.xUi-rangepicker-other-month),.xUi-rangepicker-selected:not(.xUi-rangepicker-other-month){background-color:var(--xui-primary-color);color:#fff;font-weight:600}.xUi-rangepicker-in-range:not(.xUi-rangepicker-other-month){background-color:#f0f5ff}.xUi-rangepicker-hover-end{background-color:var(--xui-primary-color)!important}.xUi-rangepicker-disabled,.xUi-rangepicker-other-month{color:#ccc}.xUi-rangepicker-disabled{cursor:not-allowed}.xUi-rangepicker-footer{display:flex;grid-column:span 7;justify-content:center;padding-top:6px}.xUi-rangepicker-select{background:none;border:none;color:var(--xui-primary-color);cursor:pointer}.xUi-rangepicker-input.sm{font-size:var(--xui-font-size-sm);padding:4px 8px}.xUi-rangepicker-input.md{font-size:var(--xui-font-size-md);padding:8px 12px}.xUi-rangepicker-input.lg{font-size:var(--xui-font-size-lg);padding:10px 16px}.xUi-rangepicker-dropdown-wrapper{opacity:0;pointer-events:none;position:absolute;transform:scale(.95);transition:opacity .2s ease,transform .2s ease;z-index:1000}.xUi-rangepicker-dropdown-wrapper.bottomLeft{left:0;margin-top:4px;top:100%}.xUi-rangepicker-dropdown-wrapper.bottomRight{margin-top:4px;right:0;top:100%}.xUi-rangepicker-dropdown-wrapper.topLeft{bottom:100%;left:0;margin-bottom:4px}.xUi-rangepicker-dropdown-wrapper.topRight{bottom:100%;margin-bottom:4px;right:0}.xUi-rangepicker-dropdown-wrapper.show{opacity:1;pointer-events:auto;transform:scale(1)}.xUi-rangepicker-large .xUi-rangepicker-selected-date{font-size:16px}.xUi-rangepicker-large .xUi-rangepicker-input{padding:11px}.xUi-rangepicker-middle .xUi-rangepicker-input{padding:6px 11px}.xUi-rangepicker-dropdown-trigger{background-color:#fff;border:1px solid var(--xui-border-color);border-radius:2px;cursor:pointer;line-height:32px;padding:0 8px}.xUi-rangepicker-dropdown-menu{background:#fff;border:1px solid var(--xui-border-color);box-shadow:0 2px 8px rgba(0,0,0,.15);max-height:200px;overflow-y:auto;position:absolute;z-index:1000}.xUi-rangepicker-dropdown-item{cursor:pointer;padding:4px 12px}.xUi-rangepicker-dropdown-item:hover{background:#f5f5f5}.xUi-rangepicker-dropdown-item.active{background-color:#e6f7ff;font-weight:700}.xUi-rangepicker-header{align-items:center;border-bottom:1px solid var(--xui-border-color);display:flex;gap:8px;justify-content:space-between;margin-bottom:8px;padding-bottom:12px;width:100%}";
531
530
  styleInject(css_248z$j);
532
531
 
533
- const ClearIcon = () => /*#__PURE__*/React.createElement("svg", {
532
+ const ClearIcon = () => jsxRuntime.jsx("svg", {
534
533
  width: "10",
535
534
  height: "10",
536
535
  viewBox: "0 0 14 14",
537
536
  fill: "none",
538
- xmlns: "http://www.w3.org/2000/svg"
539
- }, /*#__PURE__*/React.createElement("path", {
540
- d: "M1 1L13 13M13 1L1 13",
541
- stroke: "currentColor",
542
- strokeWidth: "2",
543
- strokeLinecap: "round"
544
- }));
537
+ xmlns: "http://www.w3.org/2000/svg",
538
+ children: jsxRuntime.jsx("path", {
539
+ d: "M1 1L13 13M13 1L1 13",
540
+ stroke: "currentColor",
541
+ strokeWidth: "2",
542
+ strokeLinecap: "round"
543
+ })
544
+ });
545
545
  const ArrowIcon = ({
546
546
  isOpen
547
- }) => /*#__PURE__*/React.createElement("svg", {
547
+ }) => jsxRuntime.jsx("svg", {
548
548
  width: "18",
549
549
  height: "18",
550
550
  viewBox: "0 0 24 24",
551
551
  fill: "none",
552
- xmlns: "http://www.w3.org/2000/svg"
553
- }, /*#__PURE__*/React.createElement("path", {
554
- d: "M7 10L12 15L17 10",
555
- stroke: "currentColor",
556
- strokeWidth: "2",
557
- strokeLinecap: "round",
558
- strokeLinejoin: "round",
559
- transform: isOpen ? 'rotate(180, 12, 12)' : ''
560
- }));
561
- const LoadingIcon = () => /*#__PURE__*/React.createElement("svg", {
552
+ xmlns: "http://www.w3.org/2000/svg",
553
+ children: jsxRuntime.jsx("path", {
554
+ d: "M7 10L12 15L17 10",
555
+ stroke: "currentColor",
556
+ strokeWidth: "2",
557
+ strokeLinecap: "round",
558
+ strokeLinejoin: "round",
559
+ transform: isOpen ? 'rotate(180, 12, 12)' : ''
560
+ })
561
+ });
562
+ const LoadingIcon = () => jsxRuntime.jsx("svg", {
562
563
  viewBox: "0 0 1024 1024",
563
564
  focusable: "false",
564
565
  "data-icon": "loading",
565
566
  width: "12",
566
567
  height: "12",
567
568
  fill: "currentColor",
568
- "aria-hidden": "true"
569
- }, /*#__PURE__*/React.createElement("path", {
570
- d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
571
- }));
572
- const CheckIcon = () => /*#__PURE__*/React.createElement("svg", {
569
+ "aria-hidden": "true",
570
+ children: jsxRuntime.jsx("path", {
571
+ d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
572
+ })
573
+ });
574
+ const CheckIcon = () => jsxRuntime.jsx("svg", {
573
575
  viewBox: "64 64 896 896",
574
576
  focusable: "false",
575
577
  "data-icon": "check",
576
578
  width: "12",
577
579
  height: "12",
578
580
  fill: "currentColor",
579
- "aria-hidden": "true"
580
- }, /*#__PURE__*/React.createElement("path", {
581
- d: "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"
582
- }));
583
- const SearchIcon = () => /*#__PURE__*/React.createElement("svg", {
581
+ "aria-hidden": "true",
582
+ children: jsxRuntime.jsx("path", {
583
+ d: "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"
584
+ })
585
+ });
586
+ const SearchIcon = () => jsxRuntime.jsx("svg", {
584
587
  viewBox: "64 64 896 896",
585
588
  focusable: "false",
586
589
  "data-icon": "search",
587
590
  width: "1em",
588
591
  height: "1em",
589
592
  fill: "currentColor",
590
- "aria-hidden": "true"
591
- }, /*#__PURE__*/React.createElement("path", {
592
- d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
593
- }));
594
- const CalendarIcon = () => /*#__PURE__*/React.createElement("svg", {
593
+ "aria-hidden": "true",
594
+ children: jsxRuntime.jsx("path", {
595
+ d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
596
+ })
597
+ });
598
+ const CalendarIcon = () => jsxRuntime.jsx("svg", {
595
599
  viewBox: "64 64 896 896",
596
600
  focusable: "false",
597
601
  "data-icon": "calendar",
598
602
  width: "1em",
599
603
  height: "1em",
600
604
  fill: "currentColor",
601
- "aria-hidden": "true"
602
- }, /*#__PURE__*/React.createElement("path", {
603
- d: "M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"
604
- }));
605
- const SuccessIcon = () => /*#__PURE__*/React.createElement("svg", {
605
+ "aria-hidden": "true",
606
+ children: jsxRuntime.jsx("path", {
607
+ d: "M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"
608
+ })
609
+ });
610
+ const SuccessIcon = () => jsxRuntime.jsx("svg", {
606
611
  viewBox: "64 64 896 896",
607
612
  focusable: "false",
608
613
  "data-icon": "check-circle",
609
614
  width: "1em",
610
615
  height: "1em",
611
616
  fill: "currentColor",
612
- "aria-hidden": "true"
613
- }, /*#__PURE__*/React.createElement("path", {
614
- d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"
615
- }));
616
- const ErrorIcon = () => /*#__PURE__*/React.createElement("svg", {
617
+ "aria-hidden": "true",
618
+ children: jsxRuntime.jsx("path", {
619
+ d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"
620
+ })
621
+ });
622
+ const ErrorIcon = () => jsxRuntime.jsx("svg", {
617
623
  className: "error-svg-icon",
618
624
  viewBox: "64 64 896 896",
619
625
  focusable: "false",
@@ -621,67 +627,73 @@ const ErrorIcon = () => /*#__PURE__*/React.createElement("svg", {
621
627
  width: "1em",
622
628
  height: "1em",
623
629
  fill: "currentColor",
624
- "aria-hidden": "true"
625
- }, /*#__PURE__*/React.createElement("path", {
626
- d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"
627
- }));
628
- const DateDistanceIcon = () => /*#__PURE__*/React.createElement("svg", {
630
+ "aria-hidden": "true",
631
+ children: jsxRuntime.jsx("path", {
632
+ d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"
633
+ })
634
+ });
635
+ const DateDistanceIcon = () => jsxRuntime.jsx("svg", {
629
636
  viewBox: "0 0 1024 1024",
630
637
  focusable: "false",
631
638
  "data-icon": "swap-right",
632
639
  width: "1em",
633
640
  height: "1em",
634
641
  fill: "currentColor",
635
- "aria-hidden": "true"
636
- }, /*#__PURE__*/React.createElement("path", {
637
- d: "M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"
638
- }));
639
- const TimeIcon = () => /*#__PURE__*/React.createElement("svg", {
642
+ "aria-hidden": "true",
643
+ children: jsxRuntime.jsx("path", {
644
+ d: "M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"
645
+ })
646
+ });
647
+ const TimeIcon = () => jsxRuntime.jsxs("svg", {
640
648
  viewBox: "64 64 896 896",
641
649
  focusable: "false",
642
650
  "data-icon": "clock-circle",
643
651
  width: "1em",
644
652
  height: "1em",
645
653
  fill: "currentColor",
646
- "aria-hidden": "true"
647
- }, /*#__PURE__*/React.createElement("path", {
648
- d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
649
- }), /*#__PURE__*/React.createElement("path", {
650
- d: "M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"
651
- }));
652
- const StampleIcon = () => /*#__PURE__*/React.createElement("svg", {
654
+ "aria-hidden": "true",
655
+ children: [jsxRuntime.jsx("path", {
656
+ d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
657
+ }), jsxRuntime.jsx("path", {
658
+ d: "M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"
659
+ })]
660
+ });
661
+ const StampleIcon = () => jsxRuntime.jsx("svg", {
653
662
  viewBox: "64 64 896 896",
654
663
  focusable: "false",
655
664
  "data-icon": "paper-clip",
656
665
  width: "1em",
657
666
  height: "1em",
658
667
  fill: "currentColor",
659
- "aria-hidden": "true"
660
- }, /*#__PURE__*/React.createElement("path", {
661
- d: "M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"
662
- }));
663
- const TrashIcon = () => /*#__PURE__*/React.createElement("svg", {
668
+ "aria-hidden": "true",
669
+ children: jsxRuntime.jsx("path", {
670
+ d: "M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"
671
+ })
672
+ });
673
+ const TrashIcon = () => jsxRuntime.jsx("svg", {
664
674
  viewBox: "64 64 896 896",
665
675
  focusable: "false",
666
676
  "data-icon": "delete",
667
677
  width: "1em",
668
678
  height: "1em",
669
679
  fill: "currentColor",
670
- "aria-hidden": "true"
671
- }, /*#__PURE__*/React.createElement("path", {
672
- d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"
673
- }));
674
- const SpinerIcon = () => /*#__PURE__*/React.createElement("svg", {
680
+ "aria-hidden": "true",
681
+ children: jsxRuntime.jsx("path", {
682
+ d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"
683
+ })
684
+ });
685
+ const SpinerIcon = () => jsxRuntime.jsx("svg", {
675
686
  viewBox: "0 0 1024 1024",
676
687
  focusable: "false",
677
688
  "data-icon": "loading",
678
689
  width: "1em",
679
690
  height: "1em",
680
691
  fill: "currentColor",
681
- "aria-hidden": "true"
682
- }, /*#__PURE__*/React.createElement("path", {
683
- d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
684
- }));
692
+ "aria-hidden": "true",
693
+ children: jsxRuntime.jsx("path", {
694
+ d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
695
+ })
696
+ });
685
697
 
686
698
  const RangePicker = ({
687
699
  prefixCls = prefixClsRangePicker,
@@ -765,31 +777,41 @@ const RangePicker = ({
765
777
  const renderMonthYearSelector = (monthOffset = 0, all) => {
766
778
  const baseYear = currentYear;
767
779
  const baseMonth = currentMonth + monthOffset;
768
- return /*#__PURE__*/React.createElement("div", {
769
- className: `${prefixCls}-header`
770
- }, all || !monthOffset ? /*#__PURE__*/React.createElement("div", {
771
- className: `${prefixCls}-nav-buttons`
772
- }, /*#__PURE__*/React.createElement("button", {
773
- onClick: () => setCurrentYear(y => y - 1)
774
- }, "\xAB"), /*#__PURE__*/React.createElement("button", {
775
- onClick: () => setCurrentMonth(m => m === 0 ? (setCurrentYear(y => y - 1), MONTH_LENGTH) : m - 1)
776
- }, "\u2039")) : /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("div", {
777
- className: `${prefixCls}-dropdown-selects`
778
- }, /*#__PURE__*/React.createElement("button", {
779
- type: "button",
780
- className: `${prefixCls}-select`,
781
- onClick: () => setViewMode('year')
782
- }, baseYear), /*#__PURE__*/React.createElement("button", {
783
- type: "button",
784
- className: `${prefixCls}-select`,
785
- onClick: () => setViewMode('month')
786
- }, localeMonths[baseMonth])), all || monthOffset ? /*#__PURE__*/React.createElement("div", {
787
- className: `${prefixCls}-nav-buttons`
788
- }, /*#__PURE__*/React.createElement("button", {
789
- onClick: () => setCurrentMonth(m => m === MONTH_LENGTH ? (setCurrentYear(y => y + 1), 0) : m + 1)
790
- }, "\u203A"), /*#__PURE__*/React.createElement("button", {
791
- onClick: () => setCurrentYear(y => y + 1)
792
- }, "\xBB")) : /*#__PURE__*/React.createElement("span", null));
780
+ return jsxRuntime.jsxs("div", {
781
+ className: `${prefixCls}-header`,
782
+ children: [all || !monthOffset ? jsxRuntime.jsxs("div", {
783
+ className: `${prefixCls}-nav-buttons`,
784
+ children: [jsxRuntime.jsx("button", {
785
+ onClick: () => setCurrentYear(y => y - 1),
786
+ children: "\u00AB"
787
+ }), jsxRuntime.jsx("button", {
788
+ onClick: () => setCurrentMonth(m => m === 0 ? (setCurrentYear(y => y - 1), MONTH_LENGTH) : m - 1),
789
+ children: "\u2039"
790
+ })]
791
+ }) : jsxRuntime.jsx("span", {}), jsxRuntime.jsxs("div", {
792
+ className: `${prefixCls}-dropdown-selects`,
793
+ children: [jsxRuntime.jsx("button", {
794
+ type: "button",
795
+ className: `${prefixCls}-select`,
796
+ onClick: () => setViewMode('year'),
797
+ children: baseYear
798
+ }), jsxRuntime.jsx("button", {
799
+ type: "button",
800
+ className: `${prefixCls}-select`,
801
+ onClick: () => setViewMode('month'),
802
+ children: localeMonths[baseMonth]
803
+ })]
804
+ }), all || monthOffset ? jsxRuntime.jsxs("div", {
805
+ className: `${prefixCls}-nav-buttons`,
806
+ children: [jsxRuntime.jsx("button", {
807
+ onClick: () => setCurrentMonth(m => m === MONTH_LENGTH ? (setCurrentYear(y => y + 1), 0) : m + 1),
808
+ children: "\u203A"
809
+ }), jsxRuntime.jsx("button", {
810
+ onClick: () => setCurrentYear(y => y + 1),
811
+ children: "\u00BB"
812
+ })]
813
+ }) : jsxRuntime.jsx("span", {})]
814
+ });
793
815
  };
794
816
  const renderCalendar = (monthOffset = 0, all) => {
795
817
  const baseDate = new Date(currentYear, currentMonth + monthOffset, 1);
@@ -813,105 +835,118 @@ const RangePicker = ({
813
835
  length: remaining
814
836
  }, (_, i) => new Date(year, month + 1, i + 1));
815
837
  const days = [...prevMonthDays, ...currentMonthDays, ...nextMonthDays];
816
- return /*#__PURE__*/React.createElement("div", {
817
- className: `${prefixCls}-calendar ${viewMode}`
818
- }, /*#__PURE__*/React.createElement("div", {
819
- className: `${prefixCls}-calendar-header`
820
- }, renderMonthYearSelector(monthOffset, all)), viewMode === 'day' && /*#__PURE__*/React.createElement("div", {
821
- className: `${prefixCls}-days-grid day`
822
- }, localeWeekdays.map((day, i) => /*#__PURE__*/React.createElement("div", {
823
- key: i,
824
- className: `${prefixCls}-weekday`
825
- }, day)), days.map((day, i) => {
826
- const isSelected = day && selectedDates.some(d => d?.toDateString() === day.toDateString());
827
- const inRange = day && isInRange(day);
828
- const isSameMonth = day?.getMonth() === month;
829
- return /*#__PURE__*/React.createElement("button", {
830
- key: i,
831
- disabled: disabledDate?.(day, {
832
- from: undefined,
833
- to: undefined
834
- }),
835
- onClick: () => day && handleSelect(day),
836
- onMouseEnter: () => day && setHoveredDate(day),
837
- className: clsx([`${prefixCls}-day`, {
838
- [`${prefixCls}-selected`]: isSelected,
839
- [`${prefixCls}-in-range`]: inRange,
840
- [`${prefixCls}-hover-end`]: hoveredDate && selectedDates[0] && !selectedDates[1] && hoveredDate > selectedDates[0] && hoveredDate.toDateString() === day?.toDateString(),
841
- [`${prefixCls}-other-month`]: !isSameMonth
842
- }])
843
- }, day?.getDate());
844
- })), viewMode === 'month' && /*#__PURE__*/React.createElement("div", {
845
- className: `${prefixCls}-grid`
846
- }, localeMonths.map((m, i) => /*#__PURE__*/React.createElement("button", {
847
- key: i,
848
- className: `${prefixCls}-month`,
849
- onClick: () => {
850
- setCurrentMonth(i);
851
- setViewMode('day');
852
- },
853
- disabled: isMonthDisabled(i)
854
- }, m))), viewMode === 'year' && /*#__PURE__*/React.createElement("div", {
855
- className: `${prefixCls}-grid`
856
- }, Array.from({
857
- length: 12
858
- }, (_, i) => {
859
- const year = currentYear - NUMBER_SIX + i;
860
- return /*#__PURE__*/React.createElement("button", {
861
- key: year,
862
- className: `${prefixCls}-year`,
863
- disabled: isYearDisabled(year),
864
- onClick: () => {
865
- setCurrentYear(year);
866
- setViewMode('month');
867
- }
868
- }, year);
869
- })));
838
+ return jsxRuntime.jsxs("div", {
839
+ className: `${prefixCls}-calendar ${viewMode}`,
840
+ children: [jsxRuntime.jsx("div", {
841
+ className: `${prefixCls}-calendar-header`,
842
+ children: renderMonthYearSelector(monthOffset, all)
843
+ }), viewMode === 'day' && jsxRuntime.jsxs("div", {
844
+ className: `${prefixCls}-days-grid day`,
845
+ children: [localeWeekdays.map((day, i) => jsxRuntime.jsx("div", {
846
+ className: `${prefixCls}-weekday`,
847
+ children: day
848
+ }, i)), days.map((day, i) => {
849
+ const isSelected = day && selectedDates.some(d => d?.toDateString() === day.toDateString());
850
+ const inRange = day && isInRange(day);
851
+ const isSameMonth = day?.getMonth() === month;
852
+ return jsxRuntime.jsx("button", {
853
+ disabled: disabledDate?.(day, {
854
+ from: undefined,
855
+ to: undefined
856
+ }),
857
+ onClick: () => day && handleSelect(day),
858
+ onMouseEnter: () => day && setHoveredDate(day),
859
+ className: clsx([`${prefixCls}-day`, {
860
+ [`${prefixCls}-selected`]: isSelected,
861
+ [`${prefixCls}-in-range`]: inRange,
862
+ [`${prefixCls}-hover-end`]: hoveredDate && selectedDates[0] && !selectedDates[1] && hoveredDate > selectedDates[0] && hoveredDate.toDateString() === day?.toDateString(),
863
+ [`${prefixCls}-other-month`]: !isSameMonth
864
+ }]),
865
+ children: day?.getDate()
866
+ }, i);
867
+ })]
868
+ }), viewMode === 'month' && jsxRuntime.jsx("div", {
869
+ className: `${prefixCls}-grid`,
870
+ children: localeMonths.map((m, i) => jsxRuntime.jsx("button", {
871
+ className: `${prefixCls}-month`,
872
+ onClick: () => {
873
+ setCurrentMonth(i);
874
+ setViewMode('day');
875
+ },
876
+ disabled: isMonthDisabled(i),
877
+ children: m
878
+ }, i))
879
+ }), viewMode === 'year' && jsxRuntime.jsx("div", {
880
+ className: `${prefixCls}-grid`,
881
+ children: Array.from({
882
+ length: 12
883
+ }, (_, i) => {
884
+ const year = currentYear - NUMBER_SIX + i;
885
+ return jsxRuntime.jsx("button", {
886
+ className: `${prefixCls}-year`,
887
+ disabled: isYearDisabled(year),
888
+ onClick: () => {
889
+ setCurrentYear(year);
890
+ setViewMode('month');
891
+ },
892
+ children: year
893
+ }, year);
894
+ })
895
+ })]
896
+ });
870
897
  };
871
898
  const handleClear = () => {
872
899
  setSelectedDates([null, null]);
873
900
  onChange?.(null, ['', '']);
874
901
  };
875
- return /*#__PURE__*/React.createElement("div", {
902
+ return jsxRuntime.jsxs("div", {
876
903
  ref: containerRef,
877
904
  style: style,
878
905
  className: clsx([`${prefixCls}-range-container`, {
879
906
  [`${prefixCls}-${size}`]: size,
880
907
  [className]: className
881
- }])
882
- }, /*#__PURE__*/React.createElement("div", {
883
- className: `${prefixCls}-range-input-wrapper`
884
- }, /*#__PURE__*/React.createElement("button", {
885
- type: "button",
886
- className: clsx([`${prefixCls}-input`, {
887
- noBordered: !bordered,
888
- [`${prefixCls}-error`]: error,
889
- [`${prefixCls}-disabled`]: disabled
890
908
  }]),
891
- disabled: disabled,
892
- onClick: () => setIsOpen(!isOpen)
893
- }, prefix, /*#__PURE__*/React.createElement("input", {
894
- readOnly: inputReadOnly,
895
- className: `${prefixCls}-selected-date`,
896
- placeholder: placeholder[0],
897
- value: selectedDates[0] ? formatDate(selectedDates[0]) : ''
898
- }), /*#__PURE__*/React.createElement("span", {
899
- className: `${prefixCls}-range-separator`
900
- }, separator || /*#__PURE__*/React.createElement(DateDistanceIcon, null)), /*#__PURE__*/React.createElement("input", {
901
- readOnly: inputReadOnly,
902
- className: `${prefixCls}-selected-date`,
903
- placeholder: placeholder[1],
904
- value: selectedDates[1] ? formatDate(selectedDates[1]) : ''
905
- }), /*#__PURE__*/React.createElement("span", {
906
- className: `${prefixCls}-icon`
907
- }, allowClear && (selectedDates[0] || selectedDates[1]) ? /*#__PURE__*/React.createElement("span", {
908
- className: `${prefixCls}-clear`,
909
- onClick: handleClear
910
- }, /*#__PURE__*/React.createElement(ClearIcon, null)) : /*#__PURE__*/React.createElement(CalendarIcon, null)))), isOpen && /*#__PURE__*/React.createElement("div", {
911
- className: `${prefixCls}-dropdown-wrapper show`
912
- }, /*#__PURE__*/React.createElement("div", {
913
- className: `${prefixCls}-dropdown-range`
914
- }, renderCalendar(0, viewMode !== 'day'), viewMode === 'day' && renderCalendar(1, viewMode !== 'day'))));
909
+ children: [jsxRuntime.jsx("div", {
910
+ className: `${prefixCls}-range-input-wrapper`,
911
+ children: jsxRuntime.jsxs("button", {
912
+ type: "button",
913
+ className: clsx([`${prefixCls}-input`, {
914
+ noBordered: !bordered,
915
+ [`${prefixCls}-error`]: error,
916
+ [`${prefixCls}-disabled`]: disabled
917
+ }]),
918
+ disabled: disabled,
919
+ onClick: () => setIsOpen(!isOpen),
920
+ children: [prefix, jsxRuntime.jsx("input", {
921
+ readOnly: inputReadOnly,
922
+ className: `${prefixCls}-selected-date`,
923
+ placeholder: placeholder[0],
924
+ value: selectedDates[0] ? formatDate(selectedDates[0]) : ''
925
+ }), jsxRuntime.jsx("span", {
926
+ className: `${prefixCls}-range-separator`,
927
+ children: separator || jsxRuntime.jsx(DateDistanceIcon, {})
928
+ }), jsxRuntime.jsx("input", {
929
+ readOnly: inputReadOnly,
930
+ className: `${prefixCls}-selected-date`,
931
+ placeholder: placeholder[1],
932
+ value: selectedDates[1] ? formatDate(selectedDates[1]) : ''
933
+ }), jsxRuntime.jsx("span", {
934
+ className: `${prefixCls}-icon`,
935
+ children: allowClear && (selectedDates[0] || selectedDates[1]) ? jsxRuntime.jsx("span", {
936
+ className: `${prefixCls}-clear`,
937
+ onClick: handleClear,
938
+ children: jsxRuntime.jsx(ClearIcon, {})
939
+ }) : jsxRuntime.jsx(CalendarIcon, {})
940
+ })]
941
+ })
942
+ }), isOpen && jsxRuntime.jsx("div", {
943
+ className: `${prefixCls}-dropdown-wrapper show`,
944
+ children: jsxRuntime.jsxs("div", {
945
+ className: `${prefixCls}-dropdown-range`,
946
+ children: [renderCalendar(0, viewMode !== 'day'), viewMode === 'day' && renderCalendar(1, viewMode !== 'day')]
947
+ })
948
+ })]
949
+ });
915
950
  };
916
951
 
917
952
  var css_248z$i = ".xUi-datepicker-container{font-family:Arial,sans-serif;height:max-content;position:relative}.xUi-datepicker-input{align-items:center;background-color:transparent;border:1px solid var(--xui-border-color);border-radius:6px;color:var(--xui-text-color);cursor:pointer;display:flex;gap:8px;justify-content:space-between;padding:3px 7px;transition:all .3s}.xUi-datepicker-input.noBordered{border:none!important}.xUi-datepicker-input input{border:none;color:var(--xui-text-color);font-size:var(--xui-font-size-sm);outline:none;padding:0}.xUi-datepicker-input:placeholder-shown{text-overflow:ellipsis}.xUi-datepicker-input:hover{border-color:var(--xui-primary-color)}.xUi-datepicker-icon{color:var(--xui-text-color);cursor:pointer;height:16px;opacity:.6;transition:.3s ease;width:16px}.xUi-datepicker-icon:hover{color:var(--xui-primary-color);opacity:1}.xUi-datepicker-selected-date{border:none;color:var(--xui-text-color);font-size:var(--xui-font-size-md);letter-spacing:.8px;outline:none}.xUi-datepicker-disabled{background-color:var(--xui-color-disabled);border-color:var(--xui-border-color)!important;cursor:not-allowed;opacity:.5}.xUi-datepicker-disabled .xUi-datepicker-selected-date{cursor:not-allowed;opacity:.6}.xUi-datepicker-disabled .xUi-datepicker-icon{cursor:not-allowed}.xUi-datepicker-icon{align-items:center;color:#8c8c8c;display:flex;font-size:16px;gap:6px}.xUi-datepicker-error{border-color:var(--xui-error-color)}.xUi-datepicker-error .error-svg-icon,.xUi-datepicker-error .xUi-datepicker-icon,.xUi-datepicker-icon .error-svg-icon{color:var(--xui-error-color)}.xUi-datepicker-input.sm{font-size:var(--xui-font-size-sm);padding:4px 8px}.xUi-datepicker-input.md{font-size:var(--xui-font-size-md);padding:8px 12px}.xUi-datepicker-input.lg{font-size:var(--xui-font-size-lg);padding:10px 16px}.xUi-datepicker-dropdown-wrapper{opacity:0;pointer-events:none;position:absolute;transform:scale(.95);transition:opacity .2s ease,transform .2s ease;z-index:1000}.xUi-datepicker-dropdown-wrapper.bottomLeft{left:0;margin-top:4px;top:100%}.xUi-datepicker-dropdown-wrapper.bottomRight{margin-top:4px;right:0;top:100%}.xUi-datepicker-dropdown-wrapper.topLeft{bottom:100%;left:0;margin-bottom:4px}.xUi-datepicker-dropdown-wrapper.topRight{bottom:100%;margin-bottom:4px;right:0}.xUi-datepicker-dropdown-wrapper.show{opacity:1;pointer-events:auto;transform:scale(1)}.xUi-datepicker-dropdown{background:var(--xui-background-color);border:1px solid var(--xui-border-color);border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,.15);min-width:250px;padding:12px}.xUi-datepicker-header{align-items:center;border-bottom:1px solid var(--xui-border-color);display:flex;gap:8px;justify-content:space-between;margin-bottom:8px;padding-bottom:12px}.xUi-datepicker-day-footer{align-items:center;border-top:1px solid var(--xui-border-color);display:flex;justify-content:center;margin-top:8px;padding-top:12px;width:100%}.xUi-datepicker-nav-buttons{display:flex;gap:4px}.xUi-datepicker-nav-buttons button{background:none;border:none;border-radius:4px;color:var(--xui-text-color);cursor:pointer;font-size:20px;opacity:.7;padding:2px 6px;transition:all .3s}.xUi-datepicker-nav-buttons button:not(:disabled):hover{color:var(--xui-primary-color)}.xUi-datepicker-dropdown-selects{align-items:center;display:flex;gap:6px}.xUi-datepicker-dropdown-selects button,.xUi-datepicker-select{background:var(--xui-background-color);border:none;border-radius:4px;color:var(--xui-text-color);cursor:pointer;font-weight:600;padding:4px 8px;transition:all .3s}.xUi-datepicker-dropdown-selects button:hover,.xUi-datepicker-select:not(:disabled):hover{color:var(--xui-primary-color)}.xUi-datepicker-grid{display:grid;gap:2px;grid-template-columns:repeat(3,1fr);text-align:center}.xUi-datepicker-grid.day{grid-template-columns:repeat(7,1fr)}.xUi-datepicker-day-header{color:var(--xui-text-color);font-size:14px;margin:4px 0;user-select:none}.xUi-datepicker-day,.xUi-datepicker-month,.xUi-datepicker-year{background:none;border:none;border-radius:4px;color:var(--xui-text-color);cursor:pointer;height:30px;line-height:30px;min-width:30px;text-align:center;transition:all .2s}.xUi-datepicker-month,.xUi-datepicker-year{margin:7px}.xUi-datepicker-day:disabled,.xUi-datepicker-month:disabled,.xUi-datepicker-select:disabled,.xUi-datepicker-year:disabled{background-color:var(--xui-color-disabled);cursor:not-allowed;opacity:.5}.xUi-datepicker-day:not(:disabled):hover,.xUi-datepicker-month:not(:disabled):hover,.xUi-datepicker-year:not(:disabled):hover{background:var(--xui-primary-color-light);color:#fff}.xUi-datepicker-selected{background:var(--xui-primary-color)!important;color:#fff!important;font-weight:700}.xUi-datepicker-other-month{color:var(--xui-text-color);opacity:.4}.xUi-datepicker-other-month:not(:disabled):hover{background-color:var(--xui-color-hover);color:var(--xui-text-color);user-select:none}.xUi-datepicker-footer{margin-top:12px;text-align:right}.xUi-datepicker-footer-today-btn{background:none;border:1px solid var(--xui-border-color);border-radius:4px;color:var(--xui-primary-color);cursor:pointer;font-size:13px;padding:4px 8px;transition:all .3s}.xUi-datepicker-footer-today-btn:not(:disabled):hover{background-color:var(--xui-primary-color-light);color:#fff}.xUi-datepicker-large .xUi-datepicker-selected-date{font-size:16px}.xUi-datepicker-large .xUi-datepicker-input{padding:11px}.xUi-datepicker-middle .xUi-datepicker-input{padding:6px 11px}";
@@ -1086,137 +1121,159 @@ const DatePickerComponent = ({
1086
1121
  month: nextMonth,
1087
1122
  year: nextMonthYear
1088
1123
  }))];
1089
- return /*#__PURE__*/React.createElement("div", {
1124
+ return jsxRuntime.jsxs("div", {
1090
1125
  ref: containerRef,
1091
1126
  className: clsx([`${prefixCls}-container`, {
1092
1127
  noStyle,
1093
1128
  [`${prefixCls}-${size}`]: size
1094
- }])
1095
- }, /*#__PURE__*/React.createElement("div", {
1096
- className: `${prefixCls}-input-wrapper`
1097
- }, /*#__PURE__*/React.createElement("button", {
1098
- type: "button",
1099
- className: clsx([`${prefixCls}-input`, {
1100
- noBordered: !bordered,
1101
- [`${prefixCls}-error`]: error,
1102
- [`${prefixCls}-${size}`]: size,
1103
- [`${prefixCls}-disabled`]: disabled
1104
1129
  }]),
1105
- disabled: disabled,
1106
- onClick: () => setIsOpen(!isOpen)
1107
- }, prefix || null, /*#__PURE__*/React.createElement("input", {
1108
- size: INPUT_SIZE$1,
1109
- disabled: disabled,
1110
- readOnly: inputReadOnly,
1111
- className: `${prefixCls}-selected-date globalEllipsis`,
1112
- placeholder: placeholder,
1113
- style: {
1114
- opacity: isOpen ? '0.6' : 1
1115
- },
1116
- defaultValue: selectedDatePlaceholder
1117
- }), /*#__PURE__*/React.createElement("span", {
1118
- className: `${prefixCls}-icon`
1119
- }, allowClear && selectedDate ? /*#__PURE__*/React.createElement("span", {
1120
- className: `${prefixCls}-clear`,
1121
- onClick: clearSelection
1122
- }, typeof allowClear === 'object' && allowClear.clearIcon ? allowClear.clearIcon : /*#__PURE__*/React.createElement(ClearIcon, null)) : suffixIcon || /*#__PURE__*/React.createElement(CalendarIcon, null), error && feedbackIcons ? /*#__PURE__*/React.createElement(ErrorIcon, null) : null))), /*#__PURE__*/React.createElement("div", {
1123
- style: popupContainerRef.current ? {
1124
- position: 'absolute'
1125
- } : {},
1126
- className: clsx([placement, `${prefixCls}-dropdown-wrapper`, {
1127
- show: isOpen
1128
- }])
1129
- }, isOpen && /*#__PURE__*/React.createElement("div", {
1130
- className: `${prefixCls}-dropdown`,
1131
- style: placementPossition
1132
- }, /*#__PURE__*/React.createElement("div", {
1133
- className: `${prefixCls}-header`
1134
- }, /*#__PURE__*/React.createElement("div", {
1135
- className: `${prefixCls}-nav-buttons`
1136
- }, /*#__PURE__*/React.createElement("button", {
1137
- onClick: () => setCurrentYear(y => y - 1)
1138
- }, "\xAB"), /*#__PURE__*/React.createElement("button", {
1139
- onClick: () => setCurrentMonth(m => m === 0 ? (setCurrentYear(y => y - 1), MONTH_LENGTH) : m - 1)
1140
- }, "\u2039")), /*#__PURE__*/React.createElement("div", {
1141
- className: `${prefixCls}-dropdown-selects`
1142
- }, /*#__PURE__*/React.createElement("button", {
1143
- type: "button",
1144
- className: `${prefixCls}-select`,
1145
- onClick: () => setViewMode('year')
1146
- }, currentYear), /*#__PURE__*/React.createElement("button", {
1147
- type: "button",
1148
- className: `${prefixCls}-select`,
1149
- onClick: () => setViewMode('month')
1150
- }, localeMonths[currentMonth])), /*#__PURE__*/React.createElement("div", {
1151
- className: `${prefixCls}-nav-buttons`
1152
- }, /*#__PURE__*/React.createElement("button", {
1153
- onClick: () => setCurrentMonth(m => m === MONTH_LENGTH ? (setCurrentYear(y => y + 1), 0) : m + 1)
1154
- }, "\u203A"), /*#__PURE__*/React.createElement("button", {
1155
- onClick: () => setCurrentYear(y => y + 1)
1156
- }, "\xBB"))), viewMode === 'day' && /*#__PURE__*/React.createElement("div", {
1157
- className: `${prefixCls}-grid day`
1158
- }, localeWeekdays.map(day => /*#__PURE__*/React.createElement("div", {
1159
- key: day,
1160
- className: `${prefixCls}-day-header`
1161
- }, day)), days.map(({
1162
- day,
1163
- current,
1164
- month,
1165
- year
1166
- }, idx) => {
1167
- const isSelected = selectedDate && selectedDate.getDate() === day && selectedDate.getMonth() === month && selectedDate.getFullYear() === year;
1168
- return /*#__PURE__*/React.createElement("button", {
1169
- key: `${year}-${month}-${day}-${idx}`,
1170
- className: clsx([`${prefixCls}-day`, {
1171
- [`${prefixCls}-selected`]: isSelected,
1172
- [`${prefixCls}-other-month`]: !current
1130
+ children: [jsxRuntime.jsx("div", {
1131
+ className: `${prefixCls}-input-wrapper`,
1132
+ children: jsxRuntime.jsxs("button", {
1133
+ type: "button",
1134
+ className: clsx([`${prefixCls}-input`, {
1135
+ noBordered: !bordered,
1136
+ [`${prefixCls}-error`]: error,
1137
+ [`${prefixCls}-${size}`]: size,
1138
+ [`${prefixCls}-disabled`]: disabled
1139
+ }]),
1140
+ disabled: disabled,
1141
+ onClick: () => setIsOpen(!isOpen),
1142
+ children: [prefix || null, jsxRuntime.jsx("input", {
1143
+ size: INPUT_SIZE$1,
1144
+ disabled: disabled,
1145
+ readOnly: inputReadOnly,
1146
+ className: `${prefixCls}-selected-date globalEllipsis`,
1147
+ placeholder: placeholder,
1148
+ style: {
1149
+ opacity: isOpen ? '0.6' : 1
1150
+ },
1151
+ defaultValue: selectedDatePlaceholder
1152
+ }), jsxRuntime.jsxs("span", {
1153
+ className: `${prefixCls}-icon`,
1154
+ children: [allowClear && selectedDate ? jsxRuntime.jsx("span", {
1155
+ className: `${prefixCls}-clear`,
1156
+ onClick: clearSelection,
1157
+ children: typeof allowClear === 'object' && allowClear.clearIcon ? allowClear.clearIcon : jsxRuntime.jsx(ClearIcon, {})
1158
+ }) : suffixIcon || jsxRuntime.jsx(CalendarIcon, {}), error && feedbackIcons ? jsxRuntime.jsx(ErrorIcon, {}) : null]
1159
+ })]
1160
+ })
1161
+ }), jsxRuntime.jsx("div", {
1162
+ style: popupContainerRef.current ? {
1163
+ position: 'absolute'
1164
+ } : {},
1165
+ className: clsx([placement, `${prefixCls}-dropdown-wrapper`, {
1166
+ show: isOpen
1173
1167
  }]),
1174
- onClick: () => handleSelect(day, month, year),
1175
- disabled: disabledDate?.(new Date(year, month, day), {
1176
- from: undefined,
1177
- to: undefined
1168
+ children: isOpen && jsxRuntime.jsxs("div", {
1169
+ className: `${prefixCls}-dropdown`,
1170
+ style: placementPossition,
1171
+ children: [jsxRuntime.jsxs("div", {
1172
+ className: `${prefixCls}-header`,
1173
+ children: [jsxRuntime.jsxs("div", {
1174
+ className: `${prefixCls}-nav-buttons`,
1175
+ children: [jsxRuntime.jsx("button", {
1176
+ onClick: () => setCurrentYear(y => y - 1),
1177
+ children: "\u00AB"
1178
+ }), jsxRuntime.jsx("button", {
1179
+ onClick: () => setCurrentMonth(m => m === 0 ? (setCurrentYear(y => y - 1), MONTH_LENGTH) : m - 1),
1180
+ children: "\u2039"
1181
+ })]
1182
+ }), jsxRuntime.jsxs("div", {
1183
+ className: `${prefixCls}-dropdown-selects`,
1184
+ children: [jsxRuntime.jsx("button", {
1185
+ type: "button",
1186
+ className: `${prefixCls}-select`,
1187
+ onClick: () => setViewMode('year'),
1188
+ children: currentYear
1189
+ }), jsxRuntime.jsx("button", {
1190
+ type: "button",
1191
+ className: `${prefixCls}-select`,
1192
+ onClick: () => setViewMode('month'),
1193
+ children: localeMonths[currentMonth]
1194
+ })]
1195
+ }), jsxRuntime.jsxs("div", {
1196
+ className: `${prefixCls}-nav-buttons`,
1197
+ children: [jsxRuntime.jsx("button", {
1198
+ onClick: () => setCurrentMonth(m => m === MONTH_LENGTH ? (setCurrentYear(y => y + 1), 0) : m + 1),
1199
+ children: "\u203A"
1200
+ }), jsxRuntime.jsx("button", {
1201
+ onClick: () => setCurrentYear(y => y + 1),
1202
+ children: "\u00BB"
1203
+ })]
1204
+ })]
1205
+ }), viewMode === 'day' && jsxRuntime.jsxs("div", {
1206
+ className: `${prefixCls}-grid day`,
1207
+ children: [localeWeekdays.map(day => jsxRuntime.jsx("div", {
1208
+ className: `${prefixCls}-day-header`,
1209
+ children: day
1210
+ }, day)), days.map(({
1211
+ day,
1212
+ current,
1213
+ month,
1214
+ year
1215
+ }, idx) => {
1216
+ const isSelected = selectedDate && selectedDate.getDate() === day && selectedDate.getMonth() === month && selectedDate.getFullYear() === year;
1217
+ return jsxRuntime.jsx("button", {
1218
+ className: clsx([`${prefixCls}-day`, {
1219
+ [`${prefixCls}-selected`]: isSelected,
1220
+ [`${prefixCls}-other-month`]: !current
1221
+ }]),
1222
+ onClick: () => handleSelect(day, month, year),
1223
+ disabled: disabledDate?.(new Date(year, month, day), {
1224
+ from: undefined,
1225
+ to: undefined
1226
+ }),
1227
+ children: day
1228
+ }, `${year}-${month}-${day}-${idx}`);
1229
+ })]
1230
+ }), viewMode === 'month' && jsxRuntime.jsx("div", {
1231
+ className: `${prefixCls}-grid`,
1232
+ children: localeMonths.map((m, i) => jsxRuntime.jsx("button", {
1233
+ className: `${prefixCls}-month`,
1234
+ onClick: () => {
1235
+ setCurrentMonth(i);
1236
+ setViewMode('day');
1237
+ },
1238
+ disabled: isMonthDisabled(i),
1239
+ children: m
1240
+ }, i))
1241
+ }), viewMode === 'year' && jsxRuntime.jsx("div", {
1242
+ className: `${prefixCls}-grid`,
1243
+ children: Array.from({
1244
+ length: 12
1245
+ }, (_, i) => {
1246
+ const year = currentYear - NUMBER_SIX + i;
1247
+ return jsxRuntime.jsx("button", {
1248
+ className: `${prefixCls}-year`,
1249
+ disabled: isYearDisabled(year),
1250
+ onClick: () => {
1251
+ setCurrentYear(year);
1252
+ setViewMode('month');
1253
+ },
1254
+ children: year
1255
+ }, year);
1256
+ })
1257
+ }), showToday && jsxRuntime.jsx("div", {
1258
+ className: `${prefixCls}-day-footer`,
1259
+ style: {
1260
+ gridColumn: 'span 7'
1261
+ },
1262
+ children: jsxRuntime.jsx("button", {
1263
+ className: `${prefixCls}-select`,
1264
+ disabled: disabledDate?.(new Date(DateNow.getDate(), DateNow.getMonth(), DateNow.getFullYear()), {
1265
+ from: undefined,
1266
+ to: undefined
1267
+ }),
1268
+ onClick: () => {
1269
+ handleSelect(DateNow.getDate(), DateNow.getMonth(), DateNow.getFullYear());
1270
+ },
1271
+ children: locale?.today || 'Today'
1272
+ })
1273
+ })]
1178
1274
  })
1179
- }, day);
1180
- })), viewMode === 'month' && /*#__PURE__*/React.createElement("div", {
1181
- className: `${prefixCls}-grid`
1182
- }, localeMonths.map((m, i) => /*#__PURE__*/React.createElement("button", {
1183
- key: i,
1184
- className: `${prefixCls}-month`,
1185
- onClick: () => {
1186
- setCurrentMonth(i);
1187
- setViewMode('day');
1188
- },
1189
- disabled: isMonthDisabled(i)
1190
- }, m))), viewMode === 'year' && /*#__PURE__*/React.createElement("div", {
1191
- className: `${prefixCls}-grid`
1192
- }, Array.from({
1193
- length: 12
1194
- }, (_, i) => {
1195
- const year = currentYear - NUMBER_SIX + i;
1196
- return /*#__PURE__*/React.createElement("button", {
1197
- key: year,
1198
- className: `${prefixCls}-year`,
1199
- disabled: isYearDisabled(year),
1200
- onClick: () => {
1201
- setCurrentYear(year);
1202
- setViewMode('month');
1203
- }
1204
- }, year);
1205
- })), showToday && /*#__PURE__*/React.createElement("div", {
1206
- className: `${prefixCls}-day-footer`,
1207
- style: {
1208
- gridColumn: 'span 7'
1209
- }
1210
- }, /*#__PURE__*/React.createElement("button", {
1211
- className: `${prefixCls}-select`,
1212
- disabled: disabledDate?.(new Date(DateNow.getDate(), DateNow.getMonth(), DateNow.getFullYear()), {
1213
- from: undefined,
1214
- to: undefined
1215
- }),
1216
- onClick: () => {
1217
- handleSelect(DateNow.getDate(), DateNow.getMonth(), DateNow.getFullYear());
1218
- }
1219
- }, locale?.today || 'Today')))));
1275
+ })]
1276
+ });
1220
1277
  };
1221
1278
  const DatePicker = Object.assign(DatePickerComponent, {
1222
1279
  RangePicker
@@ -1244,8 +1301,8 @@ const TimePicker = ({
1244
1301
  onBlur,
1245
1302
  onSelect,
1246
1303
  showNow = true,
1247
- clearIcon = /*#__PURE__*/React.createElement(ClearIcon, null),
1248
- suffixIcon = /*#__PURE__*/React.createElement(TimeIcon, null),
1304
+ clearIcon = jsxRuntime.jsx(ClearIcon, {}),
1305
+ suffixIcon = jsxRuntime.jsx(TimeIcon, {}),
1249
1306
  placeholder = 'Select time'
1250
1307
  }) => {
1251
1308
  const [open, setOpen] = react.useState(false);
@@ -1428,109 +1485,124 @@ const TimePicker = ({
1428
1485
  } = getTimeParts(tempValue);
1429
1486
  const currentHour = selectedHour ?? 0;
1430
1487
  const currentMinute = selectedMinute ?? 0;
1431
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
1432
- className: `${prefixCls}-panel`
1433
- }, /*#__PURE__*/React.createElement("div", {
1434
- ref: hourRef,
1435
- className: `${prefixCls}-column`
1436
- }, hours.map((h, index) => h === false ? /*#__PURE__*/React.createElement("div", {
1437
- key: `${h}_${index}`,
1438
- className: `${prefixCls}-cell`,
1439
- style: {
1440
- opacity: 0,
1441
- userSelect: 'none',
1442
- cursor: 'inherit'
1443
- }
1444
- }, "0") : /*#__PURE__*/React.createElement("div", {
1445
- key: h,
1446
- className: clsx([`${prefixCls}-cell`, {
1447
- [`${prefixCls}-cell-disabled`]: getDisabled('hour').includes(h),
1448
- [`${prefixCls}-cell-selected`]: selectedHour === h
1449
- }]),
1450
- onClick: () => !getDisabled('hour').includes(h) && onSelectHour(h)
1451
- }, pad(h)))), /*#__PURE__*/React.createElement("div", {
1452
- ref: minuteRef,
1453
- className: `${prefixCls}-column`
1454
- }, minutesSeconds.map((m, index) => m === false ? /*#__PURE__*/React.createElement("div", {
1455
- key: `${m}_${index}`,
1456
- className: `${prefixCls}-cell`,
1457
- style: {
1458
- opacity: 0,
1459
- userSelect: 'none',
1460
- cursor: 'inherit'
1461
- }
1462
- }, "0") : /*#__PURE__*/React.createElement("div", {
1463
- key: m,
1464
- className: clsx([`${prefixCls}-cell`, {
1465
- [`${prefixCls}-cell-disabled`]: getDisabled('minute', currentHour).includes(m),
1466
- [`${prefixCls}-cell-selected`]: selectedMinute === m
1467
- }]),
1468
- onClick: () => !getDisabled('minute', currentHour).includes(m) && onSelectMinute(m)
1469
- }, pad(m)))), /*#__PURE__*/React.createElement("div", {
1470
- ref: secondRef,
1471
- className: `${prefixCls}-column`
1472
- }, minutesSeconds.map((s, index) => s === false ? /*#__PURE__*/React.createElement("div", {
1473
- key: `${s}_${index}`,
1474
- className: `${prefixCls}-cell`,
1475
- style: {
1476
- opacity: 0,
1477
- userSelect: 'none',
1478
- cursor: 'inherit'
1479
- }
1480
- }, "0") : /*#__PURE__*/React.createElement("div", {
1481
- key: s,
1482
- className: clsx([`${prefixCls}-cell`, {
1483
- [`${prefixCls}-cell-disabled`]: getDisabled('second', currentHour, currentMinute).includes(s),
1484
- [`${prefixCls}-cell-selected`]: selectedSecond === s
1485
- }]),
1486
- onClick: () => !getDisabled('second', currentHour, currentMinute).includes(s) && onSelectSecond(s)
1487
- }, pad(s))))), /*#__PURE__*/React.createElement("div", {
1488
- className: `${prefixCls}-actions`
1489
- }, showNow ? /*#__PURE__*/React.createElement("div", {
1490
- className: `${prefixCls}-now-btn`,
1491
- onClick: handleShowNow
1492
- }, "Now") : /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("button", {
1493
- className: `${prefixCls}-ok-btn`,
1494
- disabled: selectedHour === null || selectedMinute === null || selectedSecond === null,
1495
- onClick: handleOkButton
1496
- }, "OK")));
1488
+ return jsxRuntime.jsxs("div", {
1489
+ children: [jsxRuntime.jsxs("div", {
1490
+ className: `${prefixCls}-panel`,
1491
+ children: [jsxRuntime.jsx("div", {
1492
+ ref: hourRef,
1493
+ className: `${prefixCls}-column`,
1494
+ children: hours.map((h, index) => h === false ? jsxRuntime.jsx("div", {
1495
+ className: `${prefixCls}-cell`,
1496
+ style: {
1497
+ opacity: 0,
1498
+ userSelect: 'none',
1499
+ cursor: 'inherit'
1500
+ },
1501
+ children: "0"
1502
+ }, `${h}_${index}`) : jsxRuntime.jsx("div", {
1503
+ className: clsx([`${prefixCls}-cell`, {
1504
+ [`${prefixCls}-cell-disabled`]: getDisabled('hour').includes(h),
1505
+ [`${prefixCls}-cell-selected`]: selectedHour === h
1506
+ }]),
1507
+ onClick: () => !getDisabled('hour').includes(h) && onSelectHour(h),
1508
+ children: pad(h)
1509
+ }, h))
1510
+ }), jsxRuntime.jsx("div", {
1511
+ ref: minuteRef,
1512
+ className: `${prefixCls}-column`,
1513
+ children: minutesSeconds.map((m, index) => m === false ? jsxRuntime.jsx("div", {
1514
+ className: `${prefixCls}-cell`,
1515
+ style: {
1516
+ opacity: 0,
1517
+ userSelect: 'none',
1518
+ cursor: 'inherit'
1519
+ },
1520
+ children: "0"
1521
+ }, `${m}_${index}`) : jsxRuntime.jsx("div", {
1522
+ className: clsx([`${prefixCls}-cell`, {
1523
+ [`${prefixCls}-cell-disabled`]: getDisabled('minute', currentHour).includes(m),
1524
+ [`${prefixCls}-cell-selected`]: selectedMinute === m
1525
+ }]),
1526
+ onClick: () => !getDisabled('minute', currentHour).includes(m) && onSelectMinute(m),
1527
+ children: pad(m)
1528
+ }, m))
1529
+ }), jsxRuntime.jsx("div", {
1530
+ ref: secondRef,
1531
+ className: `${prefixCls}-column`,
1532
+ children: minutesSeconds.map((s, index) => s === false ? jsxRuntime.jsx("div", {
1533
+ className: `${prefixCls}-cell`,
1534
+ style: {
1535
+ opacity: 0,
1536
+ userSelect: 'none',
1537
+ cursor: 'inherit'
1538
+ },
1539
+ children: "0"
1540
+ }, `${s}_${index}`) : jsxRuntime.jsx("div", {
1541
+ className: clsx([`${prefixCls}-cell`, {
1542
+ [`${prefixCls}-cell-disabled`]: getDisabled('second', currentHour, currentMinute).includes(s),
1543
+ [`${prefixCls}-cell-selected`]: selectedSecond === s
1544
+ }]),
1545
+ onClick: () => !getDisabled('second', currentHour, currentMinute).includes(s) && onSelectSecond(s),
1546
+ children: pad(s)
1547
+ }, s))
1548
+ })]
1549
+ }), jsxRuntime.jsxs("div", {
1550
+ className: `${prefixCls}-actions`,
1551
+ children: [showNow ? jsxRuntime.jsx("div", {
1552
+ className: `${prefixCls}-now-btn`,
1553
+ onClick: handleShowNow,
1554
+ children: "Now"
1555
+ }) : jsxRuntime.jsx("span", {}), jsxRuntime.jsx("button", {
1556
+ className: `${prefixCls}-ok-btn`,
1557
+ disabled: selectedHour === null || selectedMinute === null || selectedSecond === null,
1558
+ onClick: handleOkButton,
1559
+ children: "OK"
1560
+ })]
1561
+ })]
1562
+ });
1497
1563
  };
1498
- return /*#__PURE__*/React.createElement("div", {
1564
+ return jsxRuntime.jsxs("div", {
1499
1565
  className: clsx([`${prefixCls}-wrapper`, className]),
1500
- style: style
1501
- }, /*#__PURE__*/React.createElement("div", {
1502
- className: `${prefixCls}-input-wrapper`,
1503
- onClick: () => setOpen(true)
1504
- }, /*#__PURE__*/React.createElement("input", _extends({
1505
- ref: inputRef,
1506
- size: INPUT_SIZE,
1507
- placeholder: placeholder,
1508
- className: `${prefixCls}-input`,
1509
- readOnly: inputReadOnly,
1510
- onChange: handleOnChange
1511
- }, open ? {} : {
1512
- value: formatDate(innerValue)
1513
- }, {
1514
- onBlur: e => {
1515
- onBlur?.(e, {
1516
- source: 'input'
1517
- });
1518
- }
1519
- })), /*#__PURE__*/React.createElement("div", {
1520
- className: `${prefixCls}-icons`
1521
- }, clearIcon && innerValue ? /*#__PURE__*/React.createElement("span", {
1522
- className: `${prefixCls}-clear`,
1523
- onClick: handleClear
1524
- }, clearIcon) : suffixIcon && /*#__PURE__*/React.createElement("span", {
1525
- className: `${prefixCls}-suffix`,
1526
- onClick: e => {
1527
- e.stopPropagation();
1528
- setOpen(true);
1529
- }
1530
- }, suffixIcon))), open && /*#__PURE__*/React.createElement("div", {
1531
- ref: popupRef,
1532
- className: `${prefixCls}-popup`
1533
- }, renderOptions()));
1566
+ style: style,
1567
+ children: [jsxRuntime.jsxs("div", {
1568
+ className: `${prefixCls}-input-wrapper`,
1569
+ onClick: () => setOpen(true),
1570
+ children: [jsxRuntime.jsx("input", {
1571
+ ref: inputRef,
1572
+ size: INPUT_SIZE,
1573
+ placeholder: placeholder,
1574
+ className: `${prefixCls}-input`,
1575
+ readOnly: inputReadOnly,
1576
+ onChange: handleOnChange,
1577
+ ...(open ? {} : {
1578
+ value: formatDate(innerValue)
1579
+ }),
1580
+ onBlur: e => {
1581
+ onBlur?.(e, {
1582
+ source: 'input'
1583
+ });
1584
+ }
1585
+ }), jsxRuntime.jsx("div", {
1586
+ className: `${prefixCls}-icons`,
1587
+ children: clearIcon && innerValue ? jsxRuntime.jsx("span", {
1588
+ className: `${prefixCls}-clear`,
1589
+ onClick: handleClear,
1590
+ children: clearIcon
1591
+ }) : suffixIcon && jsxRuntime.jsx("span", {
1592
+ className: `${prefixCls}-suffix`,
1593
+ onClick: e => {
1594
+ e.stopPropagation();
1595
+ setOpen(true);
1596
+ },
1597
+ children: suffixIcon
1598
+ })
1599
+ })]
1600
+ }), open && jsxRuntime.jsx("div", {
1601
+ ref: popupRef,
1602
+ className: `${prefixCls}-popup`,
1603
+ children: renderOptions()
1604
+ })]
1605
+ });
1534
1606
  };
1535
1607
 
1536
1608
  var css_248z$g = ".xUi-input-container{align-items:center;background-color:transparent;border:1px solid var(--xui-border-color);border-radius:var(--xui-border-radius-sm);display:flex;overflow:hidden}.xUi-input-container:not(.xUi-input-error):has(.xUi-input):hover,.xUi-input-container:not(.xUi-input-error):has(.xUi-input:focus){border:1px solid var(--xui-primary-color)}.xUi-input-container.xUi-input-error{border-color:var(--xui-error-color)}.xUi-input-container.xUi-input-error .error-svg-icon,.xUi-input-suffix .error-svg-icon{color:var(--xui-error-color)}.xUi-input-wrapper{align-items:center;display:flex;flex-grow:1;margin:-1px;position:relative;transition:border .3s}.xUi-input,.xUi-input-wrapper{background-color:transparent;height:-webkit-fill-available}.xUi-input{border:none;color:var(--xui-text-color);flex:1;outline:none;padding:0 7px;width:100%}.xUi-input:placeholder-shown{text-overflow:ellipsis}.xUi-input::placeholder{color:var(--xui-text-color);opacity:.6}.xUi-input-prefix,.xUi-input-suffix{background-color:transparent;gap:4px}.xUi-input-addon,.xUi-input-prefix,.xUi-input-suffix{align-items:center;color:var(--xui-text-color);display:flex;height:-webkit-fill-available;padding:0 7px}.xUi-input-addon.xUi-input-after{border-left:1px solid var(--xui-border-color)}.xUi-input-addon.xUi-input-before{border-right:1px solid var(--xui-border-color)}.xUi-input-large .xUi-input-addon{padding:0 10px}.xUi-input-clear{align-items:center;cursor:pointer;display:flex;margin:0 3px;position:relative;width:16px}.xUi-input-clear svg{color:var(--xui-text-color)}.xUi-input-disabled{background-color:var(--xui-color-disabled);cursor:not-allowed}.xUi-input-small{height:22px}.xUi-input-large .xUi-input-clear,.xUi-input-small .xUi-input,.xUi-input-small .xUi-input::placeholder{font-size:var(--xui-font-size-md)}.xUi-input-middle{border-radius:var(--xui-border-radius-md);height:30px}.xUi-input-large .xUi-input-clear,.xUi-input-middle .xUi-input,.xUi-input-middle .xUi-input::placeholder{font-size:var(--xui-font-size-md)}.xUi-input-large{border-radius:var(--xui-border-radius-lg);height:40px}.xUi-input-large .xUi-input,.xUi-input-large .xUi-input-clear,.xUi-input-large .xUi-input::placeholder{font-size:var(--xui-font-size-lg)}";
@@ -1593,26 +1665,29 @@ const Textarea = /*#__PURE__*/react.forwardRef(({
1593
1665
  });
1594
1666
  }
1595
1667
  };
1596
- return /*#__PURE__*/React.createElement("div", {
1597
- className: `${prefixCls}-wrapper ${rootClassName || ''}`
1598
- }, /*#__PURE__*/React.createElement("textarea", _extends({}, props, {
1599
- ref: ref || textareaRef,
1600
- value: inputValue,
1601
- onChange: handleChange,
1602
- onKeyDown: handleKeyDown,
1603
- style: {
1604
- ...styles?.textarea,
1605
- ...style
1606
- },
1607
- className: clsx([`${prefixCls} ${prefixCls}-${size} ${prefixCls}-${variant} ${className}`, {
1608
- [`${prefixCls}-bordered`]: bordered,
1609
- [`${prefixCls}-success`]: status === 'success',
1610
- [`${prefixCls}-error`]: status === 'error' || error
1611
- }])
1612
- })), allowClear && inputValue && /*#__PURE__*/React.createElement("button", {
1613
- className: `${prefixCls}-clear`,
1614
- onClick: handleClear
1615
- }, "\u2715"));
1668
+ return jsxRuntime.jsxs("div", {
1669
+ className: `${prefixCls}-wrapper ${rootClassName || ''}`,
1670
+ children: [jsxRuntime.jsx("textarea", {
1671
+ ...props,
1672
+ ref: ref || textareaRef,
1673
+ value: inputValue,
1674
+ onChange: handleChange,
1675
+ onKeyDown: handleKeyDown,
1676
+ style: {
1677
+ ...styles?.textarea,
1678
+ ...style
1679
+ },
1680
+ className: clsx([`${prefixCls} ${prefixCls}-${size} ${prefixCls}-${variant} ${className}`, {
1681
+ [`${prefixCls}-bordered`]: bordered,
1682
+ [`${prefixCls}-success`]: status === 'success',
1683
+ [`${prefixCls}-error`]: status === 'error' || error
1684
+ }])
1685
+ }), allowClear && inputValue && jsxRuntime.jsx("button", {
1686
+ className: `${prefixCls}-clear`,
1687
+ onClick: handleClear,
1688
+ children: "\u2715"
1689
+ })]
1690
+ });
1616
1691
  });
1617
1692
  Textarea.displayName = 'Textarea';
1618
1693
 
@@ -1664,40 +1739,49 @@ const InputComponent = /*#__PURE__*/react.forwardRef(({
1664
1739
  onPressEnter(e);
1665
1740
  }
1666
1741
  };
1667
- return /*#__PURE__*/React.createElement("div", {
1742
+ return jsxRuntime.jsxs("div", {
1668
1743
  className: clsx([`${prefixCls}-container`, {
1669
1744
  [`${prefixCls}-error`]: error,
1670
1745
  [`${prefixCls}-disabled`]: disabled,
1671
1746
  [`${prefixCls}-${size}`]: size,
1672
1747
  noStyle: noStyle
1673
1748
  }, className]),
1674
- style: props.style
1675
- }, addonBefore && /*#__PURE__*/React.createElement("span", {
1676
- className: `${prefixCls}-addon ${prefixCls}-before`
1677
- }, addonBefore), /*#__PURE__*/React.createElement("div", {
1678
- className: `${prefixCls}-wrapper`
1679
- }, prefix && /*#__PURE__*/React.createElement("span", {
1680
- className: `${prefixCls}-prefix`
1681
- }, prefix), /*#__PURE__*/React.createElement("input", _extends({}, props, {
1682
- ref: inputRef
1683
- }, props.type === 'password' && iconRender ? {
1684
- type: iconRenderVisible ? 'text' : 'password'
1685
- } : {}, {
1686
- disabled: disabled,
1687
- value: internalValue,
1688
- onChange: handleChange,
1689
- onKeyDown: handleOnKeyDown,
1690
- className: clsx([prefixCls, className])
1691
- })), /*#__PURE__*/React.createElement("span", {
1692
- className: `${prefixCls}-clear`,
1693
- onClick: handleClear
1694
- }, allowClear && internalValue ? /*#__PURE__*/React.createElement(ErrorIcon, null) : null), (suffix || iconRender) && /*#__PURE__*/React.createElement("span", _extends({
1695
- className: `${prefixCls}-suffix`
1696
- }, iconRender !== undefined ? {
1697
- onClick: () => setIconRenderVisible(icon => !icon)
1698
- } : {}), suffix || iconRender?.(iconRenderVisible), error && feedbackIcons ? /*#__PURE__*/React.createElement(ErrorIcon, null) : null)), addonAfter ? /*#__PURE__*/React.createElement("span", {
1699
- className: `${prefixCls}-addon ${prefixCls}-after`
1700
- }, addonAfter) : null);
1749
+ style: props.style,
1750
+ children: [addonBefore && jsxRuntime.jsx("span", {
1751
+ className: `${prefixCls}-addon ${prefixCls}-before`,
1752
+ children: addonBefore
1753
+ }), jsxRuntime.jsxs("div", {
1754
+ className: `${prefixCls}-wrapper`,
1755
+ children: [prefix && jsxRuntime.jsx("span", {
1756
+ className: `${prefixCls}-prefix`,
1757
+ children: prefix
1758
+ }), jsxRuntime.jsx("input", {
1759
+ ...props,
1760
+ ref: inputRef,
1761
+ ...(props.type === 'password' && iconRender ? {
1762
+ type: iconRenderVisible ? 'text' : 'password'
1763
+ } : {}),
1764
+ disabled: disabled,
1765
+ value: internalValue,
1766
+ onChange: handleChange,
1767
+ onKeyDown: handleOnKeyDown,
1768
+ className: clsx([prefixCls, className])
1769
+ }), jsxRuntime.jsx("span", {
1770
+ className: `${prefixCls}-clear`,
1771
+ onClick: handleClear,
1772
+ children: allowClear && internalValue ? jsxRuntime.jsx(ErrorIcon, {}) : null
1773
+ }), (suffix || iconRender) && jsxRuntime.jsxs("span", {
1774
+ className: `${prefixCls}-suffix`,
1775
+ ...(iconRender !== undefined ? {
1776
+ onClick: () => setIconRenderVisible(icon => !icon)
1777
+ } : {}),
1778
+ children: [suffix || iconRender?.(iconRenderVisible), error && feedbackIcons ? jsxRuntime.jsx(ErrorIcon, {}) : null]
1779
+ })]
1780
+ }), addonAfter ? jsxRuntime.jsx("span", {
1781
+ className: `${prefixCls}-addon ${prefixCls}-after`,
1782
+ children: addonAfter
1783
+ }) : null]
1784
+ });
1701
1785
  });
1702
1786
  InputComponent.displayName = 'Input';
1703
1787
  const Input = InputComponent;
@@ -1715,7 +1799,8 @@ const RadioButton = ({
1715
1799
  size = 'large',
1716
1800
  ...props
1717
1801
  }) => {
1718
- return /*#__PURE__*/React.createElement(Radio, _extends({}, props, {
1802
+ return jsxRuntime.jsx(Radio, {
1803
+ ...props,
1719
1804
  checked: checked,
1720
1805
  disabled: disabled,
1721
1806
  className: clsx([`${prefixCls}-button`, {
@@ -1723,10 +1808,12 @@ const RadioButton = ({
1723
1808
  [className]: className,
1724
1809
  [`${prefixCls}-button-${size}`]: size,
1725
1810
  [`${prefixCls}-button-checked`]: checked
1726
- }])
1727
- }), /*#__PURE__*/React.createElement("span", {
1728
- className: `${prefixCls}-button-content`
1729
- }, children ?? props.value));
1811
+ }]),
1812
+ children: jsxRuntime.jsx("span", {
1813
+ className: `${prefixCls}-button-content`,
1814
+ children: children ?? props.value
1815
+ })
1816
+ });
1730
1817
  };
1731
1818
 
1732
1819
  var css_248z$d = ".xUi-radio-group.xUi-radio-group-small{height:24px}.xUi-radio-group.xUi-radio-group-small .xUi-radio-button:first-child{border-radius:var(--xui-border-radius-sm) 0 0 var(--xui-border-radius-sm)}.xUi-radio-group.xUi-radio-group-small .xUi-radio-button:last-child{border-radius:0 var(--xui-border-radius-sm) var(--xui-border-radius-sm) 0}.xUi-radio-group.xUi-radio-group-middle{height:32px}.xUi-radio-group.xUi-radio-group-middle .xUi-radio-button:first-child{border-radius:var(--xui-border-radius-md) 0 0 var(--xui-border-radius-md)}.xUi-radio-group.xUi-radio-group-middle .xUi-radio-button:last-child{border-radius:0 var(--xui-border-radius-md) var(--xui-border-radius-md) 0}.xUi-radio-group.xUi-radio-group-large{height:40px}.xUi-radio-group.xUi-radio-group-large .xUi-radio-button:first-child{border-radius:var(--xui-border-radius-lg) 0 0 var(--xui-border-radius-lg)}.xUi-radio-group.xUi-radio-group-large .xUi-radio-button:last-child{border-radius:0 var(--xui-border-radius-lg) var(--xui-border-radius-lg) 0}.xUi-radio-group .xUi-radio-button:not(:first-child){border-radius:0}.xUi-radio-group.block{display:inline-flex;width:100%}.xUi-radio-group.block .xUi-radio-button{width:100%}.xUi-radio-group:not(.xUi-radio-group-solid) .xUi-radio-button-checked{background-color:var(--xui-background-color);color:var(--xui-primary-color)}";
@@ -1754,12 +1841,13 @@ const RadioGroup = ({
1754
1841
  return options.map((option, key) => {
1755
1842
  const optionValue = typeof option === 'object' ? option.value : option;
1756
1843
  const optionLabel = typeof option === 'object' ? option.label : option;
1757
- return /*#__PURE__*/React.createElement(Radio, _extends({
1844
+ return jsxRuntime.jsx(Radio, {
1758
1845
  value: optionValue,
1759
- key: `${key}_${optionValue}`,
1760
1846
  checked: selectedValue === optionValue,
1761
- disabled: disabled || typeof option === 'object' && option.disabled
1762
- }, props), optionLabel);
1847
+ disabled: disabled || typeof option === 'object' && option.disabled,
1848
+ ...props,
1849
+ children: optionLabel
1850
+ }, `${key}_${optionValue}`);
1763
1851
  });
1764
1852
  }
1765
1853
  return react.Children.map(children, child => {
@@ -1781,7 +1869,7 @@ const RadioGroup = ({
1781
1869
  return child;
1782
1870
  });
1783
1871
  };
1784
- return /*#__PURE__*/React.createElement("div", {
1872
+ return jsxRuntime.jsx("div", {
1785
1873
  id: id,
1786
1874
  style: style,
1787
1875
  className: clsx([`${prefixCls}-group`, {
@@ -1789,8 +1877,9 @@ const RadioGroup = ({
1789
1877
  className,
1790
1878
  [`${prefixCls}-group-${size}`]: size,
1791
1879
  [`${prefixCls}-group-solid`]: buttonStyle === 'solid'
1792
- }])
1793
- }, renderChildren());
1880
+ }]),
1881
+ children: renderChildren()
1882
+ });
1794
1883
  };
1795
1884
 
1796
1885
  var css_248z$c = ".xUi-radio-label{align-items:center;cursor:pointer;display:inline-flex;font-size:var(--xui-font-size-md);line-height:1;margin:16px 0;position:relative}.xUi-radio-label input{display:none}.xUi-radio{border:1px solid var(--xui-border-color);border-radius:50%;height:16px;position:relative;transition:all .3s;width:16px}.xUi-radio-error:not(.xUi-radio-disabled){border:1px solid var(--xui-error-color)}.xUi-radio-label input:checked+.xUi-radio-error:not(.xUi-radio-disabled){background:var(--xui-error-color)}.xUi-radio-group{display:flex}.xUi-radio-label .xUi-radio-enabled:not(.xUi-radio-error):hover{border:1px solid var(--xui-primary-color-light)!important}.xUi-radio-disabled{background-color:var(--xui-color-disabled)}.xUi-radio-title{color:var(--xui-text-color);padding-inline-end:8px;padding-inline-start:8px}.xUi-radio-label input:checked+.xUi-radio{background:var(--xui-primary-color)}.xUi-radio-label input:checked+.xUi-radio:after{background-color:#fff;border-radius:50%;content:\"\";height:6px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:6px}.xUi-radio-label.disabled{cursor:not-allowed;opacity:.5}";
@@ -1825,7 +1914,7 @@ const RadioComponent = /*#__PURE__*/react.forwardRef(({
1825
1914
  onChange?.(parseValue(value));
1826
1915
  }
1827
1916
  }, [defaultChecked, checked]);
1828
- return /*#__PURE__*/React.createElement("label", {
1917
+ return jsxRuntime.jsxs("label", {
1829
1918
  ref: ref,
1830
1919
  title: title,
1831
1920
  onMouseEnter: onMouseEnter,
@@ -1834,20 +1923,22 @@ const RadioComponent = /*#__PURE__*/react.forwardRef(({
1834
1923
  disabled,
1835
1924
  noStyle: noStyle,
1836
1925
  [className]: className
1837
- }])
1838
- }, /*#__PURE__*/React.createElement("input", {
1839
- name: name,
1840
- type: "radio",
1841
- onClick: onClick,
1842
- disabled: disabled,
1843
- onChange: handleChange,
1844
- onBlur: e => onBlur?.(e),
1845
- onFocus: e => onFocus?.(e)
1846
- }), /*#__PURE__*/React.createElement("span", {
1847
- className: clsx([`${prefixCls} ${prefixCls}-${disabled ? 'disabled' : 'enabled'}`])
1848
- }), /*#__PURE__*/React.createElement("span", {
1849
- className: `${prefixCls}-title`
1850
- }, children ?? title ?? value));
1926
+ }]),
1927
+ children: [jsxRuntime.jsx("input", {
1928
+ name: name,
1929
+ type: "radio",
1930
+ onClick: onClick,
1931
+ disabled: disabled,
1932
+ onChange: handleChange,
1933
+ onBlur: e => onBlur?.(e),
1934
+ onFocus: e => onFocus?.(e)
1935
+ }), jsxRuntime.jsx("span", {
1936
+ className: clsx([`${prefixCls} ${prefixCls}-${disabled ? 'disabled' : 'enabled'}`])
1937
+ }), jsxRuntime.jsx("span", {
1938
+ className: `${prefixCls}-title`,
1939
+ children: children ?? title ?? value
1940
+ })]
1941
+ });
1851
1942
  });
1852
1943
  RadioComponent.displayName = 'Radio';
1853
1944
  const Radio = Object.assign(RadioComponent, {
@@ -1876,16 +1967,18 @@ const Option = ({
1876
1967
  }
1877
1968
  onClick?.(e);
1878
1969
  };
1879
- return /*#__PURE__*/React.createElement("div", _extends({
1970
+ return jsxRuntime.jsx("div", {
1880
1971
  className: clsx([`${prefixCls}-option ${className} `, {
1881
1972
  selected: selected,
1882
1973
  disabled: disabled
1883
1974
  }]),
1884
1975
  style: style,
1885
- onClick: handleClick
1886
- }, title ? {
1887
- title
1888
- } : {}), render ? render(value) : children || value);
1976
+ onClick: handleClick,
1977
+ ...(title ? {
1978
+ title
1979
+ } : {}),
1980
+ children: render ? render(value) : children || value
1981
+ });
1889
1982
  };
1890
1983
 
1891
1984
  var css_248z$a = ".xUi-select .xUi-select-tag-container{display:flex;flex:auto;flex-wrap:wrap;gap:4px;line-height:12px;position:relative}.xUi-select.large .xUi-select-tag-container,.xUi-select.middle .xUi-select-tag-container{line-height:22px}.xUi-select .xUi-select-tag{align-items:center;align-self:center;background:rgba(0,0,0,.06);border:1px solid transparent;border-radius:var(--xui-border-radius-sm);box-sizing:border-box;cursor:default;display:flex;flex:none;height:100%;max-width:100%;overflow:hidden;padding:2px;text-overflow:ellipsis;transition:font-size .3s,line-height .3s,height .3s;white-space:nowrap}.xUi-select.middle .xUi-select-tag{padding:4px 8px}.xUi-select.large .xUi-select-tag{font-size:var(--xui-font-size-lg);padding:8px}.xUi-select .xUi-select-tag span{font-size:var(--xui-font-size-sm);margin:0 2px}.xUi-select .xUi-select-tag .xUi-select-tag-close-icon{color:rgba(0,0,0,.5);cursor:pointer;font-size:var(--xui-font-size-xs)}.xUi-select .xUi-select-tag .xUi-select-tag-close-icon:hover{color:var(--xui-text-color)}.xUi-select .xUi-select-tag:has([class=xUi-select-tag-input]){background:transparent;border:none;color:var(--xui-text-color);font-size:var(--xui-font-size-md);outline:none;padding:0}.xUi-select .xUi-select-tag:has([class=xUi-select-tag-input]) input{background-color:transparent;border:none;font-size:var(--xui-font-size-md);height:-webkit-fill-available;padding:0}.xUi-select .xUi-select-tag-input:focus{border:none;box-shadow:none;outline:none}";
@@ -1907,16 +2000,22 @@ const Tag = ({
1907
2000
  e.target.value = value;
1908
2001
  onClose(e);
1909
2002
  };
1910
- return /*#__PURE__*/React.createElement("div", {
2003
+ return jsxRuntime.jsxs("div", {
1911
2004
  style: {
1912
2005
  ...style,
1913
2006
  backgroundColor: color
1914
2007
  },
1915
- className: `${prefixCls}-tag`
1916
- }, /*#__PURE__*/React.createElement("span", null, label !== undefined ? label : value), closable && /*#__PURE__*/React.createElement("span", {
1917
- className: `${prefixCls}-tag-close-icon`,
1918
- onClick: handleOnClick
1919
- }, icon || /*#__PURE__*/React.createElement(React.Fragment, null, "\u2715")));
2008
+ className: `${prefixCls}-tag`,
2009
+ children: [jsxRuntime.jsx("span", {
2010
+ children: label !== undefined ? label : value
2011
+ }), closable && jsxRuntime.jsx("span", {
2012
+ className: `${prefixCls}-tag-close-icon`,
2013
+ onClick: handleOnClick,
2014
+ children: icon || jsxRuntime.jsx(jsxRuntime.Fragment, {
2015
+ children: "\u2715"
2016
+ })
2017
+ })]
2018
+ });
1920
2019
  };
1921
2020
 
1922
2021
  var css_248z$9 = ".xUi-empty{align-items:center;display:grid;gap:4px;justify-content:center;padding:14px}.xUi-empty-description{color:var(--xui-text-color);font-size:var(--xui-font-size-md);text-align:center}";
@@ -1929,35 +2028,43 @@ const EmptyContent = ({
1929
2028
  title = 'No Data',
1930
2029
  description = 'No data',
1931
2030
  prefixCls = prefixClsEmpty
1932
- }) => /*#__PURE__*/React.createElement("div", {
2031
+ }) => jsxRuntime.jsxs("div", {
1933
2032
  style: style,
1934
- className: `${prefixCls} ${prefixCls}-normal ${prefixCls}-small ${className}`
1935
- }, /*#__PURE__*/React.createElement("div", {
1936
- className: `${prefixCls}-image`
1937
- }, icon || /*#__PURE__*/React.createElement("svg", {
1938
- width: "64",
1939
- height: "41",
1940
- viewBox: "0 0 64 41",
1941
- xmlns: "http://www.w3.org/2000/svg"
1942
- }, /*#__PURE__*/React.createElement("title", null, title), /*#__PURE__*/React.createElement("g", {
1943
- transform: "translate(0 1)",
1944
- fill: "none"
1945
- }, /*#__PURE__*/React.createElement("ellipse", {
1946
- fill: "#f5f5f5",
1947
- cx: "32",
1948
- cy: "33",
1949
- rx: "32",
1950
- ry: "7"
1951
- }), /*#__PURE__*/React.createElement("g", {
1952
- stroke: "#d9d9d9"
1953
- }, /*#__PURE__*/React.createElement("path", {
1954
- d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"
1955
- }), /*#__PURE__*/React.createElement("path", {
1956
- d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",
1957
- fill: "#fafafa"
1958
- }))))), /*#__PURE__*/React.createElement("div", {
1959
- className: `${prefixCls}-description`
1960
- }, description));
2033
+ className: `${prefixCls} ${prefixCls}-normal ${prefixCls}-small ${className}`,
2034
+ children: [jsxRuntime.jsx("div", {
2035
+ className: `${prefixCls}-image`,
2036
+ children: icon || jsxRuntime.jsxs("svg", {
2037
+ width: "64",
2038
+ height: "41",
2039
+ viewBox: "0 0 64 41",
2040
+ xmlns: "http://www.w3.org/2000/svg",
2041
+ children: [jsxRuntime.jsx("title", {
2042
+ children: title
2043
+ }), jsxRuntime.jsxs("g", {
2044
+ transform: "translate(0 1)",
2045
+ fill: "none",
2046
+ children: [jsxRuntime.jsx("ellipse", {
2047
+ fill: "#f5f5f5",
2048
+ cx: "32",
2049
+ cy: "33",
2050
+ rx: "32",
2051
+ ry: "7"
2052
+ }), jsxRuntime.jsxs("g", {
2053
+ stroke: "#d9d9d9",
2054
+ children: [jsxRuntime.jsx("path", {
2055
+ d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"
2056
+ }), jsxRuntime.jsx("path", {
2057
+ d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",
2058
+ fill: "#fafafa"
2059
+ })]
2060
+ })]
2061
+ })]
2062
+ })
2063
+ }), jsxRuntime.jsx("div", {
2064
+ className: `${prefixCls}-description`,
2065
+ children: description
2066
+ })]
2067
+ });
1961
2068
 
1962
2069
  var css_248z$8 = "@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.xUi-select{background-color:transparent;border:1px solid var(--xui-border-color);border-radius:var(--xui-border-radius-sm);box-sizing:border-box;color:var(--xui-text-color);display:inline-flex;flex-direction:row-reverse;margin-bottom:15px;min-height:24px;padding:2px 8px;position:relative;width:100%}.xUi-select-disabled{background:rgba(0,0,0,.04)}.xUi-select-arrow{align-items:center;color:var(--xui-text-color-light);display:flex;gap:6px;margin:0 4px}.xUi-select-arrow svg{align-items:center;display:flex;justify-content:center}.xUi-select-loading{animation:spin 1s linear infinite;color:var(--xui-text-color-light);display:inline-block;margin:0 8px}.xUi-select .xUi-select-trigger{align-items:center;background:transparent;border-radius:var(--xui-border-radius-sm);cursor:pointer;display:flex;justify-content:end;width:100%}.xUi-select .xUi-select-clear-btn{background:none;border:none;color:#999;cursor:pointer;font-size:var(--xui-font-size-lg);line-height:1;margin:0 8px;padding:0}.xUi-select .xUi-select-clear-btn:hover{color:var(--xui-primary-color)}.xUi-select-dropdown{background-color:var(--xui-select-background-color);border-radius:var(--xui-border-radius-sm);box-shadow:0 4px 12px rgba(0,0,0,.15);left:0;margin-top:5px;max-height:200px;min-width:max-content;overflow-y:auto;position:absolute;right:unset;top:100%;width:inherit;z-index:10}.xUi-select-dropdown.bottomRight,.xUi-select-dropdown.topRight{left:unset;right:0}.xUi-select .xUi-select-loading-spinner{color:#999;padding:10px;text-align:center}.xUi-select:focus-within{border-color:var(--xui-primary-color-light);box-shadow:none}.xUi-select:hover:not(.xUi-select-disabled){border-color:var(--xui-primary-color)}.xUi-select-disabled,.xUi-select-disabled .xUi-select-input,.xUi-select-disabled .xUi-select-trigger{cursor:not-allowed!important;opacity:.6!important}.xUi-select-selected-icon{color:var(--xui-primary-color-light)}.xUi-select-error{border-color:var(--xui-error-color)}.xUi-select-arrow .error-svg-icon,.xUi-select-error .error-svg-icon{color:var(--xui-error-color)}.xUi-select .xUi-select-input{align-items:center;background:transparent;border:none;color:var(--xui-text-color);cursor:pointer;display:inline-flex;font-size:var(--xui-font-size-md);height:-webkit-fill-available;outline:none;padding:0;user-select:none;width:100%}.xUi-select .xUi-select-input:focus{border:none;box-shadow:none;outline:none}.xUi-select.middle{border-radius:var(--xui-border-radius-md);min-height:30px}.xUi-select.middle,.xUi-select.middle input{font-size:var(--xui-font-size-md)}.xUi-select.middle .xUi-select-trigger{border-radius:var(--xui-border-radius-md)}.xUi-select.large{font-size:var(--xui-font-size-lg);min-height:40px}.xUi-select.large,.xUi-select.large .xUi-select-trigger{border-radius:var(--xui-border-radius-lg)}.xUi-select input{font-size:var(--xui-font-size-lg)}";
1963
2070
  styleInject(css_248z$8);
@@ -2166,9 +2273,11 @@ const SelectComponent = /*#__PURE__*/react.forwardRef(({
2166
2273
  if (!showArrow) {
2167
2274
  return null;
2168
2275
  }
2169
- return showSearch && isOpen ? /*#__PURE__*/React.createElement(SearchIcon, null) : /*#__PURE__*/React.createElement("span", null, suffixIcon || showArrow && /*#__PURE__*/React.createElement(ArrowIcon, {
2170
- isOpen: isOpen
2171
- }));
2276
+ return showSearch && isOpen ? jsxRuntime.jsx(SearchIcon, {}) : jsxRuntime.jsx("span", {
2277
+ children: suffixIcon || showArrow && jsxRuntime.jsx(ArrowIcon, {
2278
+ isOpen: isOpen
2279
+ })
2280
+ });
2172
2281
  }, [showArrow, showSearch, isOpen, suffixIcon]);
2173
2282
  const popupContainer = react.useMemo(() => {
2174
2283
  return selectRef.current ? getPopupContainer?.(selectRef.current) : selectRef.current;
@@ -2210,9 +2319,8 @@ const SelectComponent = /*#__PURE__*/react.forwardRef(({
2210
2319
  ...props
2211
2320
  }) => {
2212
2321
  const isSelected = hasMode ? selected.includes(props.value) : props.value === selected;
2213
- return /*#__PURE__*/React.createElement(Option, _extends({
2214
- key: `${props.value}`
2215
- }, props, {
2322
+ return jsxRuntime.jsxs(Option, {
2323
+ ...props,
2216
2324
  selected: isSelected,
2217
2325
  className: clsx([className, {
2218
2326
  [`${prefixCls}-focused`]: hasMode ? isSelected : props.value === selected,
@@ -2228,14 +2336,16 @@ const SelectComponent = /*#__PURE__*/react.forwardRef(({
2228
2336
  ...props
2229
2337
  });
2230
2338
  },
2231
- "data-value": props.value
2232
- }), children || props.value, hasMode && isSelected && /*#__PURE__*/React.createElement("span", {
2233
- className: `${prefixCls}-selected-icon`
2234
- }, menuItemSelectedIcon === true ? /*#__PURE__*/React.createElement(CheckIcon, null) : menuItemSelectedIcon));
2339
+ "data-value": props.value,
2340
+ children: [children || props.value, hasMode && isSelected && jsxRuntime.jsx("span", {
2341
+ className: `${prefixCls}-selected-icon`,
2342
+ children: menuItemSelectedIcon === true ? jsxRuntime.jsx(CheckIcon, {}) : menuItemSelectedIcon
2343
+ })]
2344
+ }, `${props.value}`);
2235
2345
  });
2236
2346
  return dropdownRender ? dropdownRender(options) : options;
2237
2347
  })();
2238
- const dropdownContent = !loading && isOpen && /*#__PURE__*/React.createElement("div", {
2348
+ const dropdownContent = !loading && isOpen && jsxRuntime.jsxs("div", {
2239
2349
  className: clsx([`${prefixCls}-dropdown`, {
2240
2350
  [placement]: placement,
2241
2351
  [dropdownClassName]: dropdownClassName
@@ -2246,28 +2356,31 @@ const SelectComponent = /*#__PURE__*/react.forwardRef(({
2246
2356
  ...(['topLeft', 'topRight'].includes(placement) ? {
2247
2357
  top: -((selectRef.current?.querySelector(`.${prefixCls}-dropdown`)?.clientHeight || listHeight) + PADDING_PLACEMENT) + (selectRef.current?.clientHeight || 0)
2248
2358
  } : {})
2249
- }
2250
- }, filterable && /*#__PURE__*/React.createElement("input", {
2251
- type: "text",
2252
- className: `${prefixCls}-search`,
2253
- value: searchQuery,
2254
- onChange: handleSearch,
2255
- placeholder: "Search..."
2256
- }), !loading && /*#__PURE__*/React.createElement("div", {
2257
- className: `${prefixCls}-options globalEllipsis`,
2258
- style: {
2259
- maxHeight: listHeight,
2260
- overflowY: 'auto'
2261
- }
2262
- }, asTag && !!searchQuery && /*#__PURE__*/React.createElement(Option, {
2263
- value: searchQuery,
2264
- className: `${prefixCls}-focused`,
2265
- onClick: e => {
2266
- handleSelect(e, searchQuery);
2267
2359
  },
2268
- "data-value": searchQuery
2269
- }, searchQuery), filteredOptions.length ? dataRender : !asTag ? notFoundContent || /*#__PURE__*/React.createElement(EmptyContent, null) : null));
2270
- return /*#__PURE__*/React.createElement("div", {
2360
+ children: [filterable && jsxRuntime.jsx("input", {
2361
+ type: "text",
2362
+ className: `${prefixCls}-search`,
2363
+ value: searchQuery,
2364
+ onChange: handleSearch,
2365
+ placeholder: "Search..."
2366
+ }), !loading && jsxRuntime.jsxs("div", {
2367
+ className: `${prefixCls}-options globalEllipsis`,
2368
+ style: {
2369
+ maxHeight: listHeight,
2370
+ overflowY: 'auto'
2371
+ },
2372
+ children: [asTag && !!searchQuery && jsxRuntime.jsx(Option, {
2373
+ value: searchQuery,
2374
+ className: `${prefixCls}-focused`,
2375
+ onClick: e => {
2376
+ handleSelect(e, searchQuery);
2377
+ },
2378
+ "data-value": searchQuery,
2379
+ children: searchQuery
2380
+ }), filteredOptions.length ? dataRender : !asTag ? notFoundContent || jsxRuntime.jsx(EmptyContent, {}) : null]
2381
+ })]
2382
+ });
2383
+ return jsxRuntime.jsxs("div", {
2271
2384
  id: id,
2272
2385
  ref: selectRef,
2273
2386
  style: style,
@@ -2278,77 +2391,88 @@ const SelectComponent = /*#__PURE__*/react.forwardRef(({
2278
2391
  [`${prefixCls}-error`]: error,
2279
2392
  [`${prefixCls}-multi`]: hasMode,
2280
2393
  [`${prefixCls}-disabled`]: disabled
2281
- }])
2282
- }, /*#__PURE__*/React.createElement("div", {
2283
- onClick: handleTriggerClick,
2284
- onMouseEnter: handleMouseEnter,
2285
- onMouseLeave: handleMouseLeave,
2286
- className: `${prefixCls}-trigger`
2287
- }, showSearch ? /*#__PURE__*/React.createElement("div", {
2288
- style: {
2289
- ...style,
2290
- ...(isOpen ? {
2291
- maxWidth: `${searchInputWidth}px`
2292
- } : {}),
2293
- minWidth: `${searchInputWidth}px`
2294
- },
2295
- className: `${prefixCls}-tag-container`
2296
- }, hasMode && selected.map((tag, index) => tagRender ? /*#__PURE__*/React.createElement("div", {
2297
- key: `${index}_${tag}`
2298
- }, tagRender?.({
2299
- label: extractedOptions.find(e => e.value === tag)?.children || tag,
2300
- value: tag,
2301
- onClose: handleRemoveTag,
2302
- closable: true
2303
- })) : /*#__PURE__*/React.createElement(Tag, {
2304
- closable: true,
2305
- value: tag,
2306
- label: tag === '' ? placeholder : extractedOptions.find(e => e.value === tag)?.children || tag,
2307
- onClose: handleRemoveTag,
2308
- key: `${index}_${tag}`
2309
- })), isOpen ? /*#__PURE__*/React.createElement("div", {
2310
- className: `${prefixCls}-tag`
2311
- }, /*#__PURE__*/React.createElement("div", {
2312
- onClick: e => {
2313
- if (disabled) {
2314
- e.preventDefault();
2315
- e.stopPropagation();
2316
- return;
2317
- }
2318
- },
2319
- onKeyDown: handleOnKeyDown,
2320
- style: {
2321
- width: 'auto',
2322
- display: 'ruby',
2323
- textAlign: 'center'
2324
- },
2325
- contentEditable: "plaintext-only",
2326
- id: `${prefixCls}-search-tag-input`,
2327
- className: `${prefixCls}-tag-input`
2328
- })) : !hasMode ? /*#__PURE__*/React.createElement("div", {
2329
- className: `${prefixCls}-input`,
2330
- style: {
2331
- opacity: isOpen || selected === '' ? '0.6' : '1'
2332
- }
2333
- }, selected === '' ? placeholder : extractedOptions.find(e => e.value === selected)?.children || selected) : null) : !hasMode ? /*#__PURE__*/React.createElement("div", {
2334
- className: `${prefixCls}-input`,
2335
- onClick: () => !disabled && setIsOpen(!isOpen || open),
2336
- style: {
2337
- opacity: isOpen || selected === '' ? '0.6' : '1'
2338
- }
2339
- }, selected === '' ? placeholder : (() => {
2340
- const option = extractedOptions.find(e => e.value === selected);
2341
- return option?.children || option?.value || null;
2342
- })()) : null, isHover && !loading ? allowClear && selected ? /*#__PURE__*/React.createElement("button", {
2343
- className: `${prefixCls}-clear-btn`,
2344
- onClick: handleClear
2345
- }, removeIcon || /*#__PURE__*/React.createElement(ClearIcon, null)) : /*#__PURE__*/React.createElement("span", {
2346
- className: `${prefixCls}-arrow`
2347
- }, ArrowContainer, error && feedbackIcons ? /*#__PURE__*/React.createElement(ErrorIcon, null) : null) : /*#__PURE__*/React.createElement(React.Fragment, null, !loading && /*#__PURE__*/React.createElement("span", {
2348
- className: `${prefixCls}-arrow`
2349
- }, ArrowContainer, error && feedbackIcons ? /*#__PURE__*/React.createElement(ErrorIcon, null) : null), loading && /*#__PURE__*/React.createElement("span", {
2350
- className: `${prefixCls}-loading`
2351
- }, /*#__PURE__*/React.createElement(LoadingIcon, null)))), popupContainer ? /*#__PURE__*/reactDom.createPortal(dropdownContent, popupContainer) : dropdownContent);
2394
+ }]),
2395
+ children: [jsxRuntime.jsxs("div", {
2396
+ onClick: handleTriggerClick,
2397
+ onMouseEnter: handleMouseEnter,
2398
+ onMouseLeave: handleMouseLeave,
2399
+ className: `${prefixCls}-trigger`,
2400
+ children: [showSearch ? jsxRuntime.jsxs("div", {
2401
+ style: {
2402
+ ...style,
2403
+ ...(isOpen ? {
2404
+ maxWidth: `${searchInputWidth}px`
2405
+ } : {}),
2406
+ minWidth: `${searchInputWidth}px`
2407
+ },
2408
+ className: `${prefixCls}-tag-container`,
2409
+ children: [hasMode && selected.map((tag, index) => tagRender ? jsxRuntime.jsx("div", {
2410
+ children: tagRender?.({
2411
+ label: extractedOptions.find(e => e.value === tag)?.children || tag,
2412
+ value: tag,
2413
+ onClose: handleRemoveTag,
2414
+ closable: true
2415
+ })
2416
+ }, `${index}_${tag}`) : jsxRuntime.jsx(Tag, {
2417
+ closable: true,
2418
+ value: tag,
2419
+ label: tag === '' ? placeholder : extractedOptions.find(e => e.value === tag)?.children || tag,
2420
+ onClose: handleRemoveTag
2421
+ }, `${index}_${tag}`)), isOpen ? jsxRuntime.jsx("div", {
2422
+ className: `${prefixCls}-tag`,
2423
+ children: jsxRuntime.jsx("div", {
2424
+ onClick: e => {
2425
+ if (disabled) {
2426
+ e.preventDefault();
2427
+ e.stopPropagation();
2428
+ return;
2429
+ }
2430
+ },
2431
+ onKeyDown: handleOnKeyDown,
2432
+ style: {
2433
+ width: 'auto',
2434
+ display: 'ruby',
2435
+ textAlign: 'center'
2436
+ },
2437
+ contentEditable: "plaintext-only",
2438
+ id: `${prefixCls}-search-tag-input`,
2439
+ className: `${prefixCls}-tag-input`
2440
+ })
2441
+ }) : !hasMode ? jsxRuntime.jsx("div", {
2442
+ className: `${prefixCls}-input`,
2443
+ style: {
2444
+ opacity: isOpen || selected === '' ? '0.6' : '1'
2445
+ },
2446
+ children: selected === '' ? placeholder : extractedOptions.find(e => e.value === selected)?.children || selected
2447
+ }) : null]
2448
+ }) : !hasMode ? jsxRuntime.jsx("div", {
2449
+ className: `${prefixCls}-input`,
2450
+ onClick: () => !disabled && setIsOpen(!isOpen || open),
2451
+ style: {
2452
+ opacity: isOpen || selected === '' ? '0.6' : '1'
2453
+ },
2454
+ children: selected === '' ? placeholder : (() => {
2455
+ const option = extractedOptions.find(e => e.value === selected);
2456
+ return option?.children || option?.value || null;
2457
+ })()
2458
+ }) : null, isHover && !loading ? allowClear && selected ? jsxRuntime.jsx("button", {
2459
+ className: `${prefixCls}-clear-btn`,
2460
+ onClick: handleClear,
2461
+ children: removeIcon || jsxRuntime.jsx(ClearIcon, {})
2462
+ }) : jsxRuntime.jsxs("span", {
2463
+ className: `${prefixCls}-arrow`,
2464
+ children: [ArrowContainer, error && feedbackIcons ? jsxRuntime.jsx(ErrorIcon, {}) : null]
2465
+ }) : jsxRuntime.jsxs(jsxRuntime.Fragment, {
2466
+ children: [!loading && jsxRuntime.jsxs("span", {
2467
+ className: `${prefixCls}-arrow`,
2468
+ children: [ArrowContainer, error && feedbackIcons ? jsxRuntime.jsx(ErrorIcon, {}) : null]
2469
+ }), loading && jsxRuntime.jsx("span", {
2470
+ className: `${prefixCls}-loading`,
2471
+ children: jsxRuntime.jsx(LoadingIcon, {})
2472
+ })]
2473
+ })]
2474
+ }), popupContainer ? /*#__PURE__*/reactDom.createPortal(dropdownContent, popupContainer) : dropdownContent]
2475
+ });
2352
2476
  });
2353
2477
  SelectComponent.displayName = 'Select';
2354
2478
  const Select = Object.assign(SelectComponent, {
@@ -2371,15 +2495,16 @@ const SkeletonButton = ({
2371
2495
  size = 'default',
2372
2496
  applyElementStyle = true
2373
2497
  }) => {
2374
- return /*#__PURE__*/React.createElement("div", {
2498
+ return jsxRuntime.jsx("div", {
2375
2499
  className: clsx([`${prefixCls}`, {
2376
2500
  [`${prefixCls}-element`]: applyElementStyle,
2377
2501
  [`${prefixCls}-active`]: active
2378
- }, className])
2379
- }, /*#__PURE__*/React.createElement("span", {
2380
- className: clsx([`${prefixCls}-button `, BUTTON_SKELETON_SIZE[size], className]),
2381
- style: style
2382
- }));
2502
+ }, className]),
2503
+ children: jsxRuntime.jsx("span", {
2504
+ className: clsx([`${prefixCls}-button `, BUTTON_SKELETON_SIZE[size], className]),
2505
+ style: style
2506
+ })
2507
+ });
2383
2508
  };
2384
2509
 
2385
2510
  var css_248z$6 = "@keyframes xUi-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.xUi-skeleton-avatar{animation:xUi-skeleton-loading 1.4s ease infinite;background:linear-gradient(90deg,hsla(0,0%,75%,.2) 25%,hsla(0,0%,51%,.24) 37%,hsla(0,0%,75%,.2) 63%);background-size:400% 100%;display:block;height:40px;line-height:40px;width:40px}.xUi-skeleton-avatar-circle{border-radius:50%}.xUi-skeleton-avatar-square{border-radius:4px}";
@@ -2409,23 +2534,25 @@ const SkeletonAvatar = ({
2409
2534
  applyElementStyle = true,
2410
2535
  ...props
2411
2536
  }) => {
2412
- return /*#__PURE__*/React.createElement("div", _extends({
2537
+ return jsxRuntime.jsx("div", {
2413
2538
  className: clsx([`${prefixCls}`, {
2414
2539
  [`${prefixCls}-element`]: applyElementStyle,
2415
2540
  [`${prefixCls}-active`]: active
2416
2541
  }, className]),
2417
- style: wrapperStyle
2418
- }, props), /*#__PURE__*/React.createElement("span", {
2419
- className: clsx([`${prefixCls}-avatar ${prefixCls}-avatar-${shape}`]),
2420
- style: {
2421
- ...(size ? {
2422
- width: size,
2423
- height: size,
2424
- lineHeight: size
2425
- } : {}),
2426
- ...(style || {})
2427
- }
2428
- }));
2542
+ style: wrapperStyle,
2543
+ ...props,
2544
+ children: jsxRuntime.jsx("span", {
2545
+ className: clsx([`${prefixCls}-avatar ${prefixCls}-avatar-${shape}`]),
2546
+ style: {
2547
+ ...(size ? {
2548
+ width: size,
2549
+ height: size,
2550
+ lineHeight: size
2551
+ } : {}),
2552
+ ...(style || {})
2553
+ }
2554
+ })
2555
+ });
2429
2556
  };
2430
2557
 
2431
2558
  var css_248z$5 = ".xUi-skeleton-image{align-items:center;background:hsla(0,0%,75%,.2);display:flex;height:96px;justify-content:center;line-height:96px;vertical-align:top;width:96px}.xUi-skeleton-image .xUi-skeleton-icon{font-size:inherit!important}.xUi-skeleton-image svg{height:100%;line-height:48px;max-width:192px;width:48px}";
@@ -2437,31 +2564,34 @@ const SkeletonImage = ({
2437
2564
  className,
2438
2565
  style = {}
2439
2566
  }) => {
2440
- return /*#__PURE__*/React.createElement("div", {
2567
+ return jsxRuntime.jsx("div", {
2441
2568
  className: `${prefixCls}-image ${className || ''}`,
2442
- style: style
2443
- }, /*#__PURE__*/React.createElement("span", {
2444
- className: `${prefixCls}-icon`,
2445
- style: {
2446
- fontSize: `${style?.width || CUSTOm_ICON_SIZE}px`,
2447
- color: '#bfbfbf',
2448
- position: 'relative',
2449
- width: '100%',
2450
- height: '100%',
2451
- ...(style?.backgroundColor ? {
2452
- backgroundColor: style?.backgroundColor
2453
- } : {})
2454
- }
2455
- }, /*#__PURE__*/React.createElement("svg", {
2456
- viewBox: "0 0 1098 1024",
2457
- xmlns: "http://www.w3.org/2000/svg",
2458
- width: "1em",
2459
- height: "1em",
2460
- fill: "currentColor"
2461
- }, /*#__PURE__*/React.createElement("path", {
2462
- d: "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",
2463
- className: `${prefixCls}-image-path`
2464
- }))));
2569
+ style: style,
2570
+ children: jsxRuntime.jsx("span", {
2571
+ className: `${prefixCls}-icon`,
2572
+ style: {
2573
+ fontSize: `${style?.width || CUSTOm_ICON_SIZE}px`,
2574
+ color: '#bfbfbf',
2575
+ position: 'relative',
2576
+ width: '100%',
2577
+ height: '100%',
2578
+ ...(style?.backgroundColor ? {
2579
+ backgroundColor: style?.backgroundColor
2580
+ } : {})
2581
+ },
2582
+ children: jsxRuntime.jsx("svg", {
2583
+ viewBox: "0 0 1098 1024",
2584
+ xmlns: "http://www.w3.org/2000/svg",
2585
+ width: "1em",
2586
+ height: "1em",
2587
+ fill: "currentColor",
2588
+ children: jsxRuntime.jsx("path", {
2589
+ d: "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",
2590
+ className: `${prefixCls}-image-path`
2591
+ })
2592
+ })
2593
+ })
2594
+ });
2465
2595
  };
2466
2596
 
2467
2597
  var css_248z$4 = "@keyframes xUi-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.xUi-skeleton-element{display:inline-block!important;width:auto!important}.xUi-skeleton-input{background:hsla(0,0%,75%,.2);display:inline-block;height:32px;line-height:32px;min-width:160px;vertical-align:top;width:160px}.xUi-skeleton-input-sm{height:24px;line-height:24px;min-width:120px;width:120px}.xUi-skeleton-input-lg{height:40px;line-height:40px;min-width:200px;width:200px}.xUi-skeleton-active .xUi-skeleton-input{animation:xUi-skeleton-loading 1.4s ease infinite;background:linear-gradient(90deg,hsla(0,0%,75%,.2) 25%,hsla(0,0%,51%,.24) 37%,hsla(0,0%,75%,.2) 63%);background-size:400% 100%}.xUi-skeleton-block,.xUi-skeleton-block .xUi-skeleton-input{width:100%}";
@@ -2480,15 +2610,16 @@ const SkeletonInput = ({
2480
2610
  className,
2481
2611
  size = 'default'
2482
2612
  }) => {
2483
- return /*#__PURE__*/React.createElement("div", {
2613
+ return jsxRuntime.jsx("div", {
2484
2614
  className: clsx([`${prefixCls}-element`, {
2485
2615
  [`${prefixCls}-active`]: active,
2486
2616
  [`${prefixCls}-block`]: block
2487
- }, className])
2488
- }, /*#__PURE__*/React.createElement("span", {
2489
- className: `${prefixCls}-input ${INPUT_SKELETON_SIZE[size]} ${className || ''}`,
2490
- style: style
2491
- }));
2617
+ }, className]),
2618
+ children: jsxRuntime.jsx("span", {
2619
+ className: `${prefixCls}-input ${INPUT_SKELETON_SIZE[size]} ${className || ''}`,
2620
+ style: style
2621
+ })
2622
+ });
2492
2623
  };
2493
2624
 
2494
2625
  var css_248z$3 = "@keyframes xUi-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.xUi-skeleton{display:table;width:100%}.xUi-skeleton__withAvatar{display:flex;gap:12px}.xUi-skeleton-content{width:100%}.xUi-skeleton-content,.xUi-skeleton__header{display:table-cell;vertical-align:top}.xUi-skeleton-title{background:hsla(0,0%,75%,.2);border-radius:4px;height:16px;margin-top:16px;width:38%}.xUi-skeleton-title-avatar{margin-top:12px;width:100%}.xUi-skeleton-title+.xUi-skeleton-paragraph{margin-top:24px}.xUi-skeleton-paragraph{padding:0}.xUi-skeleton-paragraph li{background:hsla(0,0%,75%,.2);border-radius:4px;height:16px;list-style:none;width:100%}.xUi-skeleton-paragraph li+li{margin-top:16px}.xUi-skeleton-paragraph li:last-child:not(:first-child){width:61%}.xUi-skeleton-active .xUi-skeleton-paragraph>li,.xUi-skeleton-active .xUi-skeleton-title{animation:xUi-skeleton-loading 1.4s ease infinite;background:linear-gradient(90deg,hsla(0,0%,75%,.2) 25%,hsla(0,0%,51%,.24) 37%,hsla(0,0%,75%,.2) 63%);background-size:400% 100%}.xUi-skeleton-round .xUi-skeleton-content,.xUi-skeleton-round .xUi-skeleton-paragraph>li,.xUi-skeleton-round .xUi-skeleton-title{border-radius:100px}";
@@ -2516,30 +2647,34 @@ const Skeleton = ({
2516
2647
  } : {};
2517
2648
  const PARAGRAPH_ROWS = avatar ? PARAGRAPH_AVATAR_ROWS : PARAGRAPH_DEFAULT_ROWS;
2518
2649
  const HAS_PHARAGRAPH = typeof paragraph === 'boolean' || !paragraph ? PARAGRAPH_ROWS : paragraph?.rows ?? PARAGRAPH_ROWS;
2519
- return /*#__PURE__*/React.createElement("div", {
2650
+ return jsxRuntime.jsxs("div", {
2520
2651
  className: clsx([prefixCls, {
2521
2652
  [`${prefixCls}__withAvatar`]: avatar,
2522
2653
  [`${prefixCls}-active`]: active,
2523
2654
  [`${prefixCls}-round`]: round
2524
2655
  }, className]),
2525
- style: style
2526
- }, avatar && teamLogo && /*#__PURE__*/React.createElement("div", {
2527
- className: `${prefixCls}__header`
2528
- }, /*#__PURE__*/React.createElement(SkeletonAvatar, GET_AVATAR_SKELETON_PROPS(avatar))), /*#__PURE__*/React.createElement("div", {
2529
- className: `${prefixCls}-content`
2530
- }, /*#__PURE__*/React.createElement("h3", {
2531
- className: clsx([`${prefixCls}-title ${GET_TITLE_SKELETON_PROPS.className}`, {
2532
- [`${prefixCls}-title-avatar`]: avatar
2533
- }]),
2534
- style: GET_TITLE_SKELETON_PROPS.style
2535
- }), paragraph !== false && /*#__PURE__*/React.createElement("ul", {
2536
- className: `${prefixCls}-paragraph`,
2537
- style: {
2538
- ...(typeof paragraph !== 'boolean' && paragraph ? paragraph.style : {})
2539
- }
2540
- }, createArray(HAS_PHARAGRAPH).map(key => /*#__PURE__*/React.createElement("li", {
2541
- key: key
2542
- })))));
2656
+ style: style,
2657
+ children: [avatar && teamLogo && jsxRuntime.jsx("div", {
2658
+ className: `${prefixCls}__header`,
2659
+ children: jsxRuntime.jsx(SkeletonAvatar, {
2660
+ ...GET_AVATAR_SKELETON_PROPS(avatar)
2661
+ })
2662
+ }), jsxRuntime.jsxs("div", {
2663
+ className: `${prefixCls}-content`,
2664
+ children: [jsxRuntime.jsx("h3", {
2665
+ className: clsx([`${prefixCls}-title ${GET_TITLE_SKELETON_PROPS.className}`, {
2666
+ [`${prefixCls}-title-avatar`]: avatar
2667
+ }]),
2668
+ style: GET_TITLE_SKELETON_PROPS.style
2669
+ }), paragraph !== false && jsxRuntime.jsx("ul", {
2670
+ className: `${prefixCls}-paragraph`,
2671
+ style: {
2672
+ ...(typeof paragraph !== 'boolean' && paragraph ? paragraph.style : {})
2673
+ },
2674
+ children: createArray(HAS_PHARAGRAPH).map(key => jsxRuntime.jsx("li", {}, key))
2675
+ })]
2676
+ })]
2677
+ });
2543
2678
  };
2544
2679
  Skeleton.Image = SkeletonImage;
2545
2680
  Skeleton.Input = SkeletonInput;
@@ -2580,27 +2715,35 @@ const ButtonBase = ({
2580
2715
  [`${prefixCls}-disabled`]: disabled
2581
2716
  }, className);
2582
2717
  const mergedDisabled = disabled || isLoading;
2583
- const content = /*#__PURE__*/React.createElement(React.Fragment, null, iconNode && iconPosition === 'start' && /*#__PURE__*/React.createElement("span", {
2584
- className: clsx(`${prefixCls}-icon`, customClassNames.icon),
2585
- style: styles.icon
2586
- }, iconNode), /*#__PURE__*/React.createElement("span", {
2587
- className: `${prefixCls}-content`
2588
- }, children), iconNode && iconPosition === 'end' && /*#__PURE__*/React.createElement("span", {
2589
- className: clsx(`${prefixCls}-icon`, customClassNames.icon),
2590
- style: styles.icon
2591
- }, iconNode));
2718
+ const content = jsxRuntime.jsxs(jsxRuntime.Fragment, {
2719
+ children: [iconNode && iconPosition === 'start' && jsxRuntime.jsx("span", {
2720
+ className: clsx(`${prefixCls}-icon`, customClassNames.icon),
2721
+ style: styles.icon,
2722
+ children: iconNode
2723
+ }), jsxRuntime.jsx("span", {
2724
+ className: `${prefixCls}-content`,
2725
+ children: children
2726
+ }), iconNode && iconPosition === 'end' && jsxRuntime.jsx("span", {
2727
+ className: clsx(`${prefixCls}-icon`, customClassNames.icon),
2728
+ style: styles.icon,
2729
+ children: iconNode
2730
+ })]
2731
+ });
2592
2732
  if (href) {
2593
- return /*#__PURE__*/React.createElement("a", {
2733
+ return jsxRuntime.jsx("a", {
2594
2734
  className: classes,
2595
2735
  href: mergedDisabled ? undefined : href,
2596
- "aria-disabled": mergedDisabled
2597
- }, content);
2736
+ "aria-disabled": mergedDisabled,
2737
+ children: content
2738
+ });
2598
2739
  }
2599
- return /*#__PURE__*/React.createElement("button", _extends({
2740
+ return jsxRuntime.jsx("button", {
2600
2741
  type: htmlType,
2601
2742
  className: classes,
2602
- disabled: mergedDisabled
2603
- }, restProps), content);
2743
+ disabled: mergedDisabled,
2744
+ ...restProps,
2745
+ children: content
2746
+ });
2604
2747
  };
2605
2748
 
2606
2749
  const MyButton = props => {
@@ -2621,14 +2764,15 @@ const MyButton = props => {
2621
2764
  }
2622
2765
  }, [loading]);
2623
2766
  const iconNode = react.useMemo(() => {
2624
- return innerLoading ? typeof loading === 'object' && loading.icon || /*#__PURE__*/React.createElement("span", {
2767
+ return innerLoading ? typeof loading === 'object' && loading.icon || jsxRuntime.jsx("span", {
2625
2768
  className: `${prefixCls}-spinner`
2626
2769
  }) : icon;
2627
2770
  }, [icon, innerLoading, loading, prefixCls]);
2628
- return /*#__PURE__*/React.createElement(ButtonBase, _extends({}, props, {
2771
+ return jsxRuntime.jsx(ButtonBase, {
2772
+ ...props,
2629
2773
  isLoading: innerLoading,
2630
2774
  iconNode: iconNode
2631
- }));
2775
+ });
2632
2776
  };
2633
2777
 
2634
2778
  var css_248z$1 = ".xUi-upload-wrapper{font-family:Arial,sans-serif;width:100%}.xUi-upload{align-items:center;border-radius:6px;color:#666;cursor:pointer;display:flex;justify-content:flex-start;text-align:center;transition:all .3s}.xUi-upload:hover{border-color:var(--xui-primary-color,var(--xui-primary-color));color:var(--xui-primary-color,var(--xui-primary-color))}.xUi-upload-disabled{cursor:not-allowed;opacity:.6}.xUi-upload-disabled .xUi-upload-picture button{cursor:not-allowed}.xUi-upload-input{display:none}.xUi-upload-list{list-style:none;margin:0;padding:0}.xUi-upload-list-picture .xUi-upload-item{border:1px dashed var(--xui-border-color);line-height:unset;margin-top:8px;padding:8px}.xUi-upload-list-picture .xUi-upload-item-done{border:1px solid var(--xui-border-color)}.xUi-upload-list-picture .xUi-upload-item-error{border:1px solid var(--xui-error-color)}.xUi-upload-list-picture .xUi-upload-item-error .xUi-upload-item-title{color:var(--xui-error-color)}.xUi-upload-item{align-items:center;border-radius:8px;color:#333;display:flex;font-size:14px;gap:8px;line-height:35px;margin:0;transition:background .3s}.xUi-upload-item.uploading{color:var(--xui-primary-color)}.xUi-upload-item.done{color:var(--xui-success-color)}.xUi-upload-item.error{color:var(--xui-error-color)}.xUi-upload-remove{color:rgba(0,0,0,.45)}.xUi-upload-item-title{align-items:center;color:var(--xui-text-color);display:flex;justify-content:space-between}.xUi-upload-item-title svg{color:var(--xui-error-color)}.xUi-upload-list-picture-card{display:flex;flex-wrap:wrap;gap:8px}.xUi-upload-list-picture-card .xUi-upload-item{align-items:center;border-radius:4px;display:flex;flex-direction:column;height:104px;justify-content:center;position:relative;width:104px}.xUi-upload-list-picture-card .xUi-upload-item img{max-height:100%;max-width:100%;object-fit:cover}.xUi-upload-list-picture-card .xUi-upload-remove{border-radius:50%;color:#fff;font-size:12px;line-height:1;padding:2px 6px;position:absolute;right:4px;top:4px}.xUi-upload-item-thumbnail{border-radius:4px;height:40px;object-fit:cover;width:40px}.xUi-upload-item-progress-line{border:1px solid var(--xui-border-color);height:0;width:calc(100% - 8px)}.xUi-upload-item-progress-line-percent{border:1px solid red;height:0;position:relative;top:-2px}";
@@ -2774,71 +2918,80 @@ const Upload = ({
2774
2918
  uploadRef.current.click();
2775
2919
  }
2776
2920
  };
2777
- return /*#__PURE__*/React.createElement("div", {
2921
+ return jsxRuntime.jsxs("div", {
2778
2922
  className: clsx([`${prefixCls}-wrapper`, className, rootClassName, {
2779
2923
  noStyle: noStyle,
2780
2924
  [`${prefixCls}-disabled`]: disabled
2781
2925
  }]),
2782
- style: style
2783
- }, /*#__PURE__*/React.createElement("span", {
2784
- className: clsx([`${prefixCls}`, `${prefixCls}-${listType}`]),
2785
- onClick: handleClick
2786
- }, children, /*#__PURE__*/React.createElement("input", _extends({
2787
- type: "file",
2788
- ref: uploadRef,
2789
- accept: accept,
2790
- multiple: multiple,
2791
- onChange: handleFileChange,
2792
- className: `${prefixCls}-input`,
2793
- disabled: disabled
2794
- }, directory ? {
2795
- directory: true,
2796
- webkitdirectory: true
2797
- } : {}))), showUploadList && fileList.length > 0 && /*#__PURE__*/React.createElement("ul", {
2798
- className: `${prefixCls}-list ${prefixCls}-list-${listType}`
2799
- }, fileList.map(file => /*#__PURE__*/React.createElement("li", {
2800
- key: file.uid,
2801
- className: `${prefixCls}-item ${prefixCls}-item-${file.status}`
2802
- }, /*#__PURE__*/React.createElement("span", {
2803
- className: `${prefixCls}-remove`,
2804
- onClick: () => handleRemove(file.uid)
2805
- }, listType === 'picture' && (file.originFileObj || file.url) ?
2806
- /*#__PURE__*/
2807
- // eslint-disable-next-line @next/next/no-img-element
2808
- React.createElement("img", {
2809
- width: IMAGE_SIZE,
2810
- height: IMAGE_SIZE,
2811
- alt: file.name,
2812
- src: file.url || URL.createObjectURL(file.originFileObj),
2813
- className: `${prefixCls}-item-thumbnail`
2814
- }) : /*#__PURE__*/React.createElement(StampleIcon, null)), /*#__PURE__*/React.createElement("div", {
2815
- style: {
2816
- width: '100%'
2817
- }
2818
- }, /*#__PURE__*/React.createElement("div", {
2819
- className: `${prefixCls}-item-title`,
2820
- style: {
2821
- ...(file.status === 'uploading' ? {
2822
- marginBottom: 12
2823
- } : {})
2824
- }
2825
- }, /*#__PURE__*/React.createElement("span", {
2826
- className: `${prefixCls}-item-remove-icon`,
2827
- onClick: () => handleRemove(file.uid),
2828
- style: {
2829
- cursor: 'pointer',
2830
- marginLeft: 'auto'
2831
- },
2832
- role: "button",
2833
- "aria-label": "Remove file"
2834
- }, /*#__PURE__*/React.createElement(TrashIcon, null))), file.status === 'uploading' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2835
- className: `${prefixCls}-item-progress-line`
2836
- }), /*#__PURE__*/React.createElement("div", {
2837
- className: `${prefixCls}-item-progress-line-percent`,
2838
- style: {
2839
- width: `${file.percent}%`
2840
- }
2841
- })))))));
2926
+ style: style,
2927
+ children: [jsxRuntime.jsxs("span", {
2928
+ className: clsx([`${prefixCls}`, `${prefixCls}-${listType}`]),
2929
+ onClick: handleClick,
2930
+ children: [children, jsxRuntime.jsx("input", {
2931
+ type: "file",
2932
+ ref: uploadRef,
2933
+ accept: accept,
2934
+ multiple: multiple,
2935
+ onChange: handleFileChange,
2936
+ className: `${prefixCls}-input`,
2937
+ disabled: disabled,
2938
+ ...(directory ? {
2939
+ directory: true,
2940
+ webkitdirectory: true
2941
+ } : {})
2942
+ })]
2943
+ }), showUploadList && fileList.length > 0 && jsxRuntime.jsx("ul", {
2944
+ className: `${prefixCls}-list ${prefixCls}-list-${listType}`,
2945
+ children: fileList.map(file => jsxRuntime.jsxs("li", {
2946
+ className: `${prefixCls}-item ${prefixCls}-item-${file.status}`,
2947
+ children: [jsxRuntime.jsx("span", {
2948
+ className: `${prefixCls}-remove`,
2949
+ onClick: () => handleRemove(file.uid),
2950
+ children: listType === 'picture' && (file.originFileObj || file.url) ?
2951
+ // eslint-disable-next-line @next/next/no-img-element
2952
+ jsxRuntime.jsx("img", {
2953
+ width: IMAGE_SIZE,
2954
+ height: IMAGE_SIZE,
2955
+ alt: file.name,
2956
+ src: file.url || URL.createObjectURL(file.originFileObj),
2957
+ className: `${prefixCls}-item-thumbnail`
2958
+ }) : jsxRuntime.jsx(StampleIcon, {})
2959
+ }), jsxRuntime.jsxs("div", {
2960
+ style: {
2961
+ width: '100%'
2962
+ },
2963
+ children: [jsxRuntime.jsx("div", {
2964
+ className: `${prefixCls}-item-title`,
2965
+ style: {
2966
+ ...(file.status === 'uploading' ? {
2967
+ marginBottom: 12
2968
+ } : {})
2969
+ },
2970
+ children: jsxRuntime.jsx("span", {
2971
+ className: `${prefixCls}-item-remove-icon`,
2972
+ onClick: () => handleRemove(file.uid),
2973
+ style: {
2974
+ cursor: 'pointer',
2975
+ marginLeft: 'auto'
2976
+ },
2977
+ role: "button",
2978
+ "aria-label": "Remove file",
2979
+ children: jsxRuntime.jsx(TrashIcon, {})
2980
+ })
2981
+ }), file.status === 'uploading' && jsxRuntime.jsxs(jsxRuntime.Fragment, {
2982
+ children: [jsxRuntime.jsx("div", {
2983
+ className: `${prefixCls}-item-progress-line`
2984
+ }), jsxRuntime.jsx("div", {
2985
+ className: `${prefixCls}-item-progress-line-percent`,
2986
+ style: {
2987
+ width: `${file.percent}%`
2988
+ }
2989
+ })]
2990
+ })]
2991
+ })]
2992
+ }, file.uid))
2993
+ })]
2994
+ });
2842
2995
  };
2843
2996
 
2844
2997
  var css_248z = ".xUi-checkbox-wrapper{align-items:center;color:var(--xui-main-color);cursor:pointer;display:inline-flex;font-size:var(--xui-font-size-md);margin:16px 0}.xUi-checkbox{background-color:transparent;border:1px solid var(--xui-border-color);border-radius:var(--xui-border-radius-sm);display:inline-block;height:14px;position:relative;transition:all .3s;width:14px}.xUi-checkbox.xUi-checkbox-checked{background-color:#f0f5ff;border-color:var(--xui-primary-color)}.xUi-checkbox input{cursor:pointer;inset:0;opacity:0;position:absolute}.xUi-checkbox-inner{border-left:0;border-top:0;border:2px solid var(--xui-background-color);height:6px;left:50%;position:absolute;top:50%;transform:rotate(45deg) scale(0);transition:transform .2s ease-in-out;width:10px}.xUi-checkbox-check{background-color:var(--xui-primary-color);border-color:var(--xui-primary-color);display:block;height:100%;position:relative;transition:.1s ease;width:100%}.xUi-checkbox-check:after{border:solid #fff;border-width:0 2px 2px 0;content:\"\";height:8px;left:3px;position:absolute;top:1px;transform:rotate(45deg);width:5px}.xUi-checkbox-disabled,.xUi-checkbox-disabled .xUi-checkbox-check{background-color:var(--xui-color-disabled);border-color:var(--xui-border-color)!important;cursor:not-allowed;opacity:.5}.xUi-checkbox-label{font-size:14px;margin-left:8px;user-select:none}.xUi-checkbox:focus:not(.disabled),.xUi-checkbox:hover:not(.disabled){border-color:var(--xui-primary-color);cursor:pointer}.xUi-checkbox.disabled{cursor:not-allowed;opacity:.5}";
@@ -2884,39 +3037,43 @@ const Checkbox = /*#__PURE__*/react.forwardRef(({
2884
3037
  setInternalChecked(checked);
2885
3038
  }
2886
3039
  }, [checked]);
2887
- return /*#__PURE__*/React.createElement("div", {
2888
- className: `${prefixCls}-wrapper`
2889
- }, /*#__PURE__*/React.createElement("div", {
2890
- ref: ref,
2891
- style: style,
2892
- onClick: handleClick,
2893
- className: clsx([prefixCls, className, {
2894
- noStyle: noStyle,
2895
- [`${prefixCls}-disabled`]: disabled,
2896
- [`${prefixCls}-checked`]: internalChecked
2897
- }])
2898
- }, /*#__PURE__*/React.createElement("input", {
2899
- id: id,
2900
- type: type,
2901
- name: name,
2902
- disabled: disabled,
2903
- tabIndex: tabIndex,
2904
- required: required,
2905
- autoFocus: autoFocus,
2906
- onKeyDown: onKeyDown,
2907
- onKeyPress: onKeyPress,
2908
- onMouseEnter: onMouseEnter,
2909
- onMouseLeave: onMouseLeave
2910
- }), /*#__PURE__*/React.createElement("span", {
2911
- className: `${prefixCls}-box`
2912
- }, /*#__PURE__*/React.createElement("span", {
2913
- className: `${prefixCls}-check`,
2914
- style: {
2915
- opacity: Number(internalChecked)
2916
- }
2917
- }))), children && /*#__PURE__*/React.createElement("span", {
2918
- className: `${prefixCls}-label`
2919
- }, children));
3040
+ return jsxRuntime.jsxs("div", {
3041
+ className: `${prefixCls}-wrapper`,
3042
+ children: [jsxRuntime.jsxs("div", {
3043
+ ref: ref,
3044
+ style: style,
3045
+ onClick: handleClick,
3046
+ className: clsx([prefixCls, className, {
3047
+ noStyle: noStyle,
3048
+ [`${prefixCls}-disabled`]: disabled,
3049
+ [`${prefixCls}-checked`]: internalChecked
3050
+ }]),
3051
+ children: [jsxRuntime.jsx("input", {
3052
+ id: id,
3053
+ type: type,
3054
+ name: name,
3055
+ disabled: disabled,
3056
+ tabIndex: tabIndex,
3057
+ required: required,
3058
+ autoFocus: autoFocus,
3059
+ onKeyDown: onKeyDown,
3060
+ onKeyPress: onKeyPress,
3061
+ onMouseEnter: onMouseEnter,
3062
+ onMouseLeave: onMouseLeave
3063
+ }), jsxRuntime.jsx("span", {
3064
+ className: `${prefixCls}-box`,
3065
+ children: jsxRuntime.jsx("span", {
3066
+ className: `${prefixCls}-check`,
3067
+ style: {
3068
+ opacity: Number(internalChecked)
3069
+ }
3070
+ })
3071
+ })]
3072
+ }), children && jsxRuntime.jsx("span", {
3073
+ className: `${prefixCls}-label`,
3074
+ children: children
3075
+ })]
3076
+ });
2920
3077
  });
2921
3078
  Checkbox.displayName = 'Checkbox';
2922
3079