@rockshin/tao-ui 0.0.57 → 0.0.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/components/affix/affix.js +38 -4
  2. package/dist/components/app/app-modals.js +11 -6
  3. package/dist/components/app/app-notices.js +112 -47
  4. package/dist/components/auto-complete/auto-complete.js +9 -2
  5. package/dist/components/avatar/avatar.js +1 -1
  6. package/dist/components/badge/badge.js +2 -2
  7. package/dist/components/breadcrumb/breadcrumb.js +5 -1
  8. package/dist/components/calendar/calendar.js +24 -17
  9. package/dist/components/carousel/carousel.js +35 -16
  10. package/dist/components/cascader/cascader.js +17 -12
  11. package/dist/components/checkbox/checkbox.d.ts +3 -1
  12. package/dist/components/checkbox/checkbox.js +65 -58
  13. package/dist/components/collapse/collapse-panels.js +68 -67
  14. package/dist/components/color-picker/color-picker.js +383 -360
  15. package/dist/components/date-picker/calendar/calendar-grid.d.ts +5 -3
  16. package/dist/components/date-picker/calendar/calendar-grid.js +9 -4
  17. package/dist/components/date-picker/calendar/month-grid.d.ts +2 -1
  18. package/dist/components/date-picker/calendar/month-grid.js +61 -45
  19. package/dist/components/date-picker/calendar/time-panel.d.ts +8 -1
  20. package/dist/components/date-picker/calendar/time-panel.js +89 -88
  21. package/dist/components/date-picker/calendar/year-grid.d.ts +2 -1
  22. package/dist/components/date-picker/calendar/year-grid.js +60 -44
  23. package/dist/components/date-picker/date-localization.js +12 -14
  24. package/dist/components/date-picker/date-picker.css +9 -0
  25. package/dist/components/date-picker/date-picker.js +22 -13
  26. package/dist/components/date-picker/range-picker.d.ts +2 -0
  27. package/dist/components/date-picker/range-picker.js +127 -70
  28. package/dist/components/date-picker/types.js +1 -1
  29. package/dist/components/divider/divider.js +1 -1
  30. package/dist/components/drawer/drawer.d.ts +1 -1
  31. package/dist/components/drawer/drawer.js +4 -3
  32. package/dist/components/dropdown/dropdown.js +11 -9
  33. package/dist/components/float-button/float-button.js +11 -9
  34. package/dist/components/form/form-item.d.ts +1 -1
  35. package/dist/components/form/form-item.js +160 -120
  36. package/dist/components/form-field/form-field-view.d.ts +2 -1
  37. package/dist/components/form-field/form-field-view.js +173 -108
  38. package/dist/components/image/image.js +135 -143
  39. package/dist/components/input/input-shared.js +3 -2
  40. package/dist/components/input/otp.js +120 -110
  41. package/dist/components/input/password.js +55 -61
  42. package/dist/components/input/search.js +13 -7
  43. package/dist/components/list/list.js +106 -105
  44. package/dist/components/masonry/masonry.js +1 -1
  45. package/dist/components/mentions/mentions.js +1 -0
  46. package/dist/components/menu/menu-render.js +1 -0
  47. package/dist/components/modal/confirm-dialog.js +11 -4
  48. package/dist/components/modal/modal.js +320 -315
  49. package/dist/components/pagination/pagination.d.ts +3 -0
  50. package/dist/components/pagination/pagination.js +5 -0
  51. package/dist/components/popover/popover.js +325 -289
  52. package/dist/components/qr-code/qr-code.js +157 -150
  53. package/dist/components/radio/radio.d.ts +3 -1
  54. package/dist/components/radio/radio.js +73 -64
  55. package/dist/components/rate/rate.js +83 -72
  56. package/dist/components/scroll-area/scroll-area.css +1 -1
  57. package/dist/components/scroll-area/scroll-area.js +294 -222
  58. package/dist/components/select/mobile-select.js +6 -3
  59. package/dist/components/select/select-model.js +2 -2
  60. package/dist/components/select/select.js +78 -39
  61. package/dist/components/select/use-select-selection.d.ts +1 -1
  62. package/dist/components/select/use-select-selection.js +91 -84
  63. package/dist/components/slider/slider.d.ts +2 -2
  64. package/dist/components/slider/slider.js +13 -2
  65. package/dist/components/sonner/sonner.js +2 -2
  66. package/dist/components/splitter/splitter.css +1 -0
  67. package/dist/components/splitter/splitter.js +152 -126
  68. package/dist/components/statistic/statistic.js +84 -78
  69. package/dist/components/steps/steps.js +1 -1
  70. package/dist/components/switch/switch.js +45 -39
  71. package/dist/components/table/table.js +5 -1
  72. package/dist/components/table/use-table-data.js +2 -2
  73. package/dist/components/time-picker/time-picker.js +31 -1
  74. package/dist/components/tooltip/tooltip.js +237 -99
  75. package/dist/components/tree/tree.js +31 -3
  76. package/dist/components/tree-select/tree-select.js +1 -1
  77. package/dist/components/upload/upload.js +69 -42
  78. package/dist/locales/ar-EG.js +2 -0
  79. package/dist/locales/de-DE.js +2 -0
  80. package/dist/locales/en-US.js +2 -0
  81. package/dist/locales/es-ES.js +2 -0
  82. package/dist/locales/fr-FR.js +2 -0
  83. package/dist/locales/hi-IN.js +2 -0
  84. package/dist/locales/id-ID.js +2 -0
  85. package/dist/locales/it-IT.js +2 -0
  86. package/dist/locales/ja-JP.js +2 -0
  87. package/dist/locales/ko-KR.js +2 -0
  88. package/dist/locales/pt-BR.js +2 -0
  89. package/dist/locales/ru-RU.js +2 -0
  90. package/dist/locales/th-TH.js +2 -0
  91. package/dist/locales/tr-TR.js +2 -0
  92. package/dist/locales/types.d.ts +2 -0
  93. package/dist/locales/vi-VN.js +2 -0
  94. package/dist/locales/zh-CN.js +2 -0
  95. package/dist/locales/zh-TW.js +2 -0
  96. package/dist/number-input/cursor.js +20 -8
  97. package/dist/number-input/format.js +13 -5
  98. package/dist/number-input/use-number-input.js +166 -318
  99. package/dist/number-input/validate.d.ts +1 -0
  100. package/dist/number-input/validate.js +1 -1
  101. package/dist/provider/tao-provider.d.ts +2 -2
  102. package/dist/provider/tao-provider.js +49 -49
  103. package/dist/utils/composed-parent.d.ts +1 -0
  104. package/dist/utils/composed-parent.js +7 -0
  105. package/dist/utils/portal.d.ts +5 -0
  106. package/dist/utils/portal.js +7 -1
  107. package/dist/utils/refs.d.ts +3 -1
  108. package/dist/utils/refs.js +25 -1
  109. package/package.json +1 -1
@@ -63,7 +63,8 @@ function InternalCascader(props, ref) {
63
63
  const screens = useBreakpoint();
64
64
  const requestedMobile = mobile ?? screens.xs;
65
65
  const [internalOpen, setInternalOpen] = useState(defaultOpen);
66
- const open = openProp ?? internalOpen;
66
+ if (disabled && internalOpen) setInternalOpen(false);
67
+ const open = openProp ?? (!disabled && internalOpen);
67
68
  const [mobilePresentation, setMobilePresentation] = useState(requestedMobile);
68
69
  if ((!open || void 0 === mobilePresentation) && mobilePresentation !== requestedMobile) setMobilePresentation(requestedMobile);
69
70
  const isMobile = (open ? mobilePresentation : requestedMobile) ?? false;
@@ -108,8 +109,11 @@ function InternalCascader(props, ref) {
108
109
  (onOpenChange ?? onPopupVisibleChange ?? onDropdownVisibleChange)?.(next_0);
109
110
  };
110
111
  const commit = (...args)=>{
111
- setInternalValue(args[0]);
112
- onChange?.(...args);
112
+ const [next_1, selected] = args;
113
+ setInternalValue(next_1);
114
+ onChange?.(null == next_1 ? next_1 : next_1.map((value_0)=>Array.isArray(value_0) ? [
115
+ ...value_0
116
+ ] : value_0), selected);
113
117
  };
114
118
  const changeValue = (...args_0)=>{
115
119
  if (mobileOpen && multiple) {
@@ -117,13 +121,11 @@ function InternalCascader(props, ref) {
117
121
  if (searchConfig.autoClearSearchValue ?? props.autoClearSearchValue ?? true) setInternalSearch('');
118
122
  return;
119
123
  }
124
+ const last = mobileOpen ? args_0[1]?.at(-1) : void 0;
125
+ const children = last?.[props.fieldNames?.children ?? 'children'];
126
+ const selectionFinished = mobileOpen && (!last || (last.isLeaf ?? !children?.length));
120
127
  commit(...args_0);
121
- if (mobileOpen) {
122
- const selected = args_0[1];
123
- const last = selected?.at(-1);
124
- const children = last?.[props.fieldNames?.children ?? 'children'];
125
- if (!last || (last.isLeaf ?? !children?.length)) changeOpen(false);
126
- }
128
+ if (selectionFinished) changeOpen(false);
127
129
  };
128
130
  const navigateMobile = (event)=>{
129
131
  if (event.nativeEvent.isComposing || 229 === event.keyCode) return;
@@ -220,8 +222,8 @@ function InternalCascader(props, ref) {
220
222
  });
221
223
  },
222
224
  popupMenuColumnStyle: popupMenuColumnStyle ?? dropdownMenuColumnStyle,
223
- onPopupVisibleChange: (next_1)=>{
224
- if (!isMobile || next_1) changeOpen(next_1);
225
+ onPopupVisibleChange: (next_2)=>{
226
+ if (!isMobile || next_2) changeOpen(next_2);
225
227
  }
226
228
  }),
227
229
  isMobile && /*#__PURE__*/ jsxs(Drawer, {
@@ -293,7 +295,7 @@ function CascaderPanel(props) {
293
295
  const config = useTaoInternalConfig();
294
296
  const { multiple, className, rootClassName, style, prefixCls = 'tao-cascader', disabled = config.disabled, notFoundContent = config.locale.noResults, expandIcon = /*#__PURE__*/ jsx(ExpandIcon, {}), loadingIcon = /*#__PURE__*/ jsx(Spinner, {
295
297
  size: "small"
296
- }), value, ...rest } = props;
298
+ }), value, onChange, ...rest } = props;
297
299
  const [direction, directionRef] = useTaoDirection(props.direction);
298
300
  return /*#__PURE__*/ jsx("div", {
299
301
  ref: directionRef,
@@ -306,6 +308,9 @@ function CascaderPanel(props) {
306
308
  ...rest,
307
309
  direction: direction,
308
310
  value: 'value' in props ? value ?? [] : void 0,
311
+ onChange: onChange && ((next, selected)=>onChange(null == next ? next : next.map((path)=>Array.isArray(path) ? [
312
+ ...path
313
+ ] : path), selected)),
309
314
  prefixCls: prefixCls,
310
315
  checkable: multiple,
311
316
  disabled: disabled,
@@ -1,4 +1,4 @@
1
- import { type AriaAttributes, type ChangeEvent, type ReactNode, type Ref } from 'react';
1
+ import { type AriaAttributes, type ChangeEvent, type FocusEventHandler, type ReactNode, type Ref } from 'react';
2
2
  import { type TaoSize } from '../../provider/tao-provider.js';
3
3
  import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic.js';
4
4
  import './checkbox.css';
@@ -30,6 +30,8 @@ export interface CheckboxGroupProps extends Pick<AriaAttributes, 'aria-label' |
30
30
  value?: string[];
31
31
  defaultValue?: string[];
32
32
  onChange?: (values: string[]) => void;
33
+ /** Fires when focus leaves any checkbox in the group (Form validateTrigger). */
34
+ onBlur?: FocusEventHandler<HTMLFieldSetElement>;
33
35
  disabled?: boolean;
34
36
  size?: TaoSize;
35
37
  direction?: 'horizontal' | 'vertical';
@@ -254,8 +254,8 @@ const checkbox_Checkbox = /*#__PURE__*/ forwardRef(function(props, ref) {
254
254
  return t26;
255
255
  });
256
256
  function CheckboxGroup(props) {
257
- const $ = c(56);
258
- const { options, value, defaultValue, onChange, disabled, size, direction: t0, children } = props;
257
+ const $ = c(59);
258
+ const { options, value, defaultValue, onChange, onBlur, disabled, size, direction: t0, children } = props;
259
259
  const direction = void 0 === t0 ? "horizontal" : t0;
260
260
  const ctx = useTaoConfig();
261
261
  const resolvedDisabled = disabled ?? ctx.disabled ?? false;
@@ -365,11 +365,12 @@ function CheckboxGroup(props) {
365
365
  let t17;
366
366
  let t18;
367
367
  let t19;
368
+ let t20;
368
369
  let t9;
369
- if ($[24] !== children || $[25] !== direction || $[26] !== groupCtxValue || $[27] !== options || $[28] !== props) {
370
+ if ($[24] !== children || $[25] !== direction || $[26] !== groupCtxValue || $[27] !== onBlur || $[28] !== options || $[29] !== props) {
370
371
  const normalizedOptions = options?.map(_temp);
371
372
  T0 = CheckboxGroupContext.Provider;
372
- t19 = groupCtxValue;
373
+ t20 = groupCtxValue;
373
374
  t9 = root;
374
375
  t10 = "";
375
376
  t11 = direction;
@@ -379,41 +380,45 @@ function CheckboxGroup(props) {
379
380
  t15 = props["aria-describedby"];
380
381
  t16 = props["aria-errormessage"];
381
382
  t17 = props["aria-invalid"];
382
- t18 = normalizedOptions ? normalizedOptions.map(_temp2) : children;
383
+ t18 = onBlur;
384
+ t19 = normalizedOptions ? normalizedOptions.map(_temp2) : children;
383
385
  $[24] = children;
384
386
  $[25] = direction;
385
387
  $[26] = groupCtxValue;
386
- $[27] = options;
387
- $[28] = props;
388
- $[29] = T0;
389
- $[30] = t10;
390
- $[31] = t11;
391
- $[32] = t12;
392
- $[33] = t13;
393
- $[34] = t14;
394
- $[35] = t15;
395
- $[36] = t16;
396
- $[37] = t17;
397
- $[38] = t18;
398
- $[39] = t19;
399
- $[40] = t9;
388
+ $[27] = onBlur;
389
+ $[28] = options;
390
+ $[29] = props;
391
+ $[30] = T0;
392
+ $[31] = t10;
393
+ $[32] = t11;
394
+ $[33] = t12;
395
+ $[34] = t13;
396
+ $[35] = t14;
397
+ $[36] = t15;
398
+ $[37] = t16;
399
+ $[38] = t17;
400
+ $[39] = t18;
401
+ $[40] = t19;
402
+ $[41] = t20;
403
+ $[42] = t9;
400
404
  } else {
401
- T0 = $[29];
402
- t10 = $[30];
403
- t11 = $[31];
404
- t12 = $[32];
405
- t13 = $[33];
406
- t14 = $[34];
407
- t15 = $[35];
408
- t16 = $[36];
409
- t17 = $[37];
410
- t18 = $[38];
411
- t19 = $[39];
412
- t9 = $[40];
405
+ T0 = $[30];
406
+ t10 = $[31];
407
+ t11 = $[32];
408
+ t12 = $[33];
409
+ t13 = $[34];
410
+ t14 = $[35];
411
+ t15 = $[36];
412
+ t16 = $[37];
413
+ t17 = $[38];
414
+ t18 = $[39];
415
+ t19 = $[40];
416
+ t20 = $[41];
417
+ t9 = $[42];
413
418
  }
414
- let t20;
415
- if ($[41] !== t10 || $[42] !== t11 || $[43] !== t12 || $[44] !== t13 || $[45] !== t14 || $[46] !== t15 || $[47] !== t16 || $[48] !== t17 || $[49] !== t18 || $[50] !== t9) {
416
- t20 = /*#__PURE__*/ jsx("fieldset", {
419
+ let t21;
420
+ if ($[43] !== t10 || $[44] !== t11 || $[45] !== t12 || $[46] !== t13 || $[47] !== t14 || $[48] !== t15 || $[49] !== t16 || $[50] !== t17 || $[51] !== t18 || $[52] !== t19 || $[53] !== t9) {
421
+ t21 = /*#__PURE__*/ jsx("fieldset", {
417
422
  ref: t9,
418
423
  "data-tao-checkbox-group": t10,
419
424
  "data-tao-direction": t11,
@@ -423,32 +428,34 @@ function CheckboxGroup(props) {
423
428
  "aria-describedby": t15,
424
429
  "aria-errormessage": t16,
425
430
  "aria-invalid": t17,
426
- children: t18
431
+ onBlur: t18,
432
+ children: t19
427
433
  });
428
- $[41] = t10;
429
- $[42] = t11;
430
- $[43] = t12;
431
- $[44] = t13;
432
- $[45] = t14;
433
- $[46] = t15;
434
- $[47] = t16;
435
- $[48] = t17;
436
- $[49] = t18;
437
- $[50] = t9;
438
- $[51] = t20;
439
- } else t20 = $[51];
440
- let t21;
441
- if ($[52] !== T0 || $[53] !== t19 || $[54] !== t20) {
442
- t21 = /*#__PURE__*/ jsx(T0, {
443
- value: t19,
444
- children: t20
434
+ $[43] = t10;
435
+ $[44] = t11;
436
+ $[45] = t12;
437
+ $[46] = t13;
438
+ $[47] = t14;
439
+ $[48] = t15;
440
+ $[49] = t16;
441
+ $[50] = t17;
442
+ $[51] = t18;
443
+ $[52] = t19;
444
+ $[53] = t9;
445
+ $[54] = t21;
446
+ } else t21 = $[54];
447
+ let t22;
448
+ if ($[55] !== T0 || $[56] !== t20 || $[57] !== t21) {
449
+ t22 = /*#__PURE__*/ jsx(T0, {
450
+ value: t20,
451
+ children: t21
445
452
  });
446
- $[52] = T0;
447
- $[53] = t19;
448
- $[54] = t20;
449
- $[55] = t21;
450
- } else t21 = $[55];
451
- return t21;
453
+ $[55] = T0;
454
+ $[56] = t20;
455
+ $[57] = t21;
456
+ $[58] = t22;
457
+ } else t22 = $[58];
458
+ return t22;
452
459
  }
453
460
  function _temp2(opt_0) {
454
461
  return /*#__PURE__*/ jsx(checkbox_Checkbox, {
@@ -281,12 +281,13 @@ function CollapsePanel(t0) {
281
281
  } else t19 = $[27];
282
282
  const t20 = open ? "open" : "closed";
283
283
  const t21 = disabled || void 0;
284
- const t22 = classNames?.trigger;
285
- const t23 = styles?.trigger;
286
- const t24 = !iconOnly && title;
287
- let t25;
288
- if ($[28] !== bodyId || $[29] !== disabled || $[30] !== icon || $[31] !== onToggle || $[32] !== open || $[33] !== t20 || $[34] !== t21 || $[35] !== t22 || $[36] !== t23 || $[37] !== t24 || $[38] !== titleId) {
289
- t25 = /*#__PURE__*/ jsxs("button", {
284
+ const t22 = renderBody ? bodyId : void 0;
285
+ const t23 = classNames?.trigger;
286
+ const t24 = styles?.trigger;
287
+ const t25 = !iconOnly && title;
288
+ let t26;
289
+ if ($[28] !== disabled || $[29] !== icon || $[30] !== onToggle || $[31] !== open || $[32] !== t20 || $[33] !== t21 || $[34] !== t22 || $[35] !== t23 || $[36] !== t24 || $[37] !== t25 || $[38] !== titleId) {
290
+ t26 = /*#__PURE__*/ jsxs("button", {
290
291
  type: "button",
291
292
  "data-tao-collapse-trigger": "",
292
293
  "data-tao-collapse-panel-trigger": "",
@@ -294,33 +295,33 @@ function CollapsePanel(t0) {
294
295
  "data-disabled": t21,
295
296
  disabled: disabled,
296
297
  "aria-expanded": open,
297
- "aria-controls": bodyId,
298
+ "aria-controls": t22,
298
299
  "aria-labelledby": titleId,
299
300
  onClick: onToggle,
300
- className: t22,
301
- style: t23,
301
+ className: t23,
302
+ style: t24,
302
303
  children: [
303
304
  icon,
304
- t24
305
+ t25
305
306
  ]
306
307
  });
307
- $[28] = bodyId;
308
- $[29] = disabled;
309
- $[30] = icon;
310
- $[31] = onToggle;
311
- $[32] = open;
312
- $[33] = t20;
313
- $[34] = t21;
314
- $[35] = t22;
315
- $[36] = t23;
316
- $[37] = t24;
308
+ $[28] = disabled;
309
+ $[29] = icon;
310
+ $[30] = onToggle;
311
+ $[31] = open;
312
+ $[32] = t20;
313
+ $[33] = t21;
314
+ $[34] = t22;
315
+ $[35] = t23;
316
+ $[36] = t24;
317
+ $[37] = t25;
317
318
  $[38] = titleId;
318
- $[39] = t25;
319
- } else t25 = $[39];
320
- const t26 = iconOnly && title;
321
- let t27;
319
+ $[39] = t26;
320
+ } else t26 = $[39];
321
+ const t27 = iconOnly && title;
322
+ let t28;
322
323
  if ($[40] !== classNames?.extra || $[41] !== item.extra || $[42] !== styles?.extra) {
323
- t27 = null != item.extra && /*#__PURE__*/ jsx("span", {
324
+ t28 = null != item.extra && /*#__PURE__*/ jsx("span", {
324
325
  "data-tao-collapse-extra": "",
325
326
  className: classNames?.extra,
326
327
  style: styles?.extra,
@@ -329,37 +330,37 @@ function CollapsePanel(t0) {
329
330
  $[40] = classNames?.extra;
330
331
  $[41] = item.extra;
331
332
  $[42] = styles?.extra;
332
- $[43] = t27;
333
- } else t27 = $[43];
334
- let t28;
335
- if ($[44] !== expandIconPlacement || $[45] !== t13 || $[46] !== t16 || $[47] !== t19 || $[48] !== t25 || $[49] !== t26 || $[50] !== t27) {
336
- t28 = /*#__PURE__*/ jsxs("div", {
333
+ $[43] = t28;
334
+ } else t28 = $[43];
335
+ let t29;
336
+ if ($[44] !== expandIconPlacement || $[45] !== t13 || $[46] !== t16 || $[47] !== t19 || $[48] !== t26 || $[49] !== t27 || $[50] !== t28) {
337
+ t29 = /*#__PURE__*/ jsxs("div", {
337
338
  "data-tao-collapse-header": "",
338
339
  "data-tao-trigger-mode": t13,
339
340
  "data-tao-icon-placement": expandIconPlacement,
340
341
  className: t16,
341
342
  style: t19,
342
343
  children: [
343
- t25,
344
344
  t26,
345
- t27
345
+ t27,
346
+ t28
346
347
  ]
347
348
  });
348
349
  $[44] = expandIconPlacement;
349
350
  $[45] = t13;
350
351
  $[46] = t16;
351
352
  $[47] = t19;
352
- $[48] = t25;
353
- $[49] = t26;
354
- $[50] = t27;
355
- $[51] = t28;
356
- } else t28 = $[51];
357
- const t29 = !open;
358
- const t30 = classNames?.content;
359
- const t31 = styles?.content;
360
- let t32;
353
+ $[48] = t26;
354
+ $[49] = t27;
355
+ $[50] = t28;
356
+ $[51] = t29;
357
+ } else t29 = $[51];
358
+ const t30 = !open;
359
+ const t31 = classNames?.content;
360
+ const t32 = styles?.content;
361
+ let t33;
361
362
  if ($[52] !== classNames?.body || $[53] !== item.children || $[54] !== item.classNames?.body || $[55] !== item.styles?.body || $[56] !== renderBody || $[57] !== styles?.body) {
362
- t32 = renderBody && /*#__PURE__*/ jsx("div", {
363
+ t33 = renderBody && /*#__PURE__*/ jsx("div", {
363
364
  "data-tao-collapse-body": "",
364
365
  className: cx(classNames?.body, item.classNames?.body),
365
366
  style: {
@@ -374,49 +375,49 @@ function CollapsePanel(t0) {
374
375
  $[55] = item.styles?.body;
375
376
  $[56] = renderBody;
376
377
  $[57] = styles?.body;
377
- $[58] = t32;
378
- } else t32 = $[58];
379
- let t33;
380
- if ($[59] !== bodyId || $[60] !== t29 || $[61] !== t30 || $[62] !== t31 || $[63] !== t32 || $[64] !== titleId) {
381
- t33 = /*#__PURE__*/ jsx("section", {
378
+ $[58] = t33;
379
+ } else t33 = $[58];
380
+ let t34;
381
+ if ($[59] !== bodyId || $[60] !== t30 || $[61] !== t31 || $[62] !== t32 || $[63] !== t33 || $[64] !== titleId) {
382
+ t34 = /*#__PURE__*/ jsx("section", {
382
383
  id: bodyId,
383
384
  "aria-labelledby": titleId,
384
- hidden: t29,
385
+ hidden: t30,
385
386
  "data-tao-collapse-content": "",
386
387
  "data-tao-collapse-panel-content": "",
387
- className: t30,
388
- style: t31,
389
- children: t32
388
+ className: t31,
389
+ style: t32,
390
+ children: t33
390
391
  });
391
392
  $[59] = bodyId;
392
- $[60] = t29;
393
- $[61] = t30;
394
- $[62] = t31;
395
- $[63] = t32;
393
+ $[60] = t30;
394
+ $[61] = t31;
395
+ $[62] = t32;
396
+ $[63] = t33;
396
397
  $[64] = titleId;
397
- $[65] = t33;
398
- } else t33 = $[65];
399
- let t34;
400
- if ($[66] !== t10 || $[67] !== t12 || $[68] !== t28 || $[69] !== t33 || $[70] !== t7 || $[71] !== t8) {
401
- t34 = /*#__PURE__*/ jsxs("div", {
398
+ $[65] = t34;
399
+ } else t34 = $[65];
400
+ let t35;
401
+ if ($[66] !== t10 || $[67] !== t12 || $[68] !== t29 || $[69] !== t34 || $[70] !== t7 || $[71] !== t8) {
402
+ t35 = /*#__PURE__*/ jsxs("div", {
402
403
  "data-tao-collapse-item": "",
403
404
  "data-state": t7,
404
405
  "data-disabled": t8,
405
406
  className: t10,
406
407
  style: t12,
407
408
  children: [
408
- t28,
409
- t33
409
+ t29,
410
+ t34
410
411
  ]
411
412
  });
412
413
  $[66] = t10;
413
414
  $[67] = t12;
414
- $[68] = t28;
415
- $[69] = t33;
415
+ $[68] = t29;
416
+ $[69] = t34;
416
417
  $[70] = t7;
417
418
  $[71] = t8;
418
- $[72] = t34;
419
- } else t34 = $[72];
420
- return t34;
419
+ $[72] = t35;
420
+ } else t35 = $[72];
421
+ return t35;
421
422
  }
422
423
  export { CollapsePanels };