@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.
- package/dist/components/affix/affix.js +38 -4
- package/dist/components/app/app-modals.js +11 -6
- package/dist/components/app/app-notices.js +112 -47
- package/dist/components/auto-complete/auto-complete.js +9 -2
- package/dist/components/avatar/avatar.js +1 -1
- package/dist/components/badge/badge.js +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +5 -1
- package/dist/components/calendar/calendar.js +24 -17
- package/dist/components/carousel/carousel.js +35 -16
- package/dist/components/cascader/cascader.js +17 -12
- package/dist/components/checkbox/checkbox.d.ts +3 -1
- package/dist/components/checkbox/checkbox.js +65 -58
- package/dist/components/collapse/collapse-panels.js +68 -67
- package/dist/components/color-picker/color-picker.js +383 -360
- package/dist/components/date-picker/calendar/calendar-grid.d.ts +5 -3
- package/dist/components/date-picker/calendar/calendar-grid.js +9 -4
- package/dist/components/date-picker/calendar/month-grid.d.ts +2 -1
- package/dist/components/date-picker/calendar/month-grid.js +61 -45
- package/dist/components/date-picker/calendar/time-panel.d.ts +8 -1
- package/dist/components/date-picker/calendar/time-panel.js +89 -88
- package/dist/components/date-picker/calendar/year-grid.d.ts +2 -1
- package/dist/components/date-picker/calendar/year-grid.js +60 -44
- package/dist/components/date-picker/date-localization.js +12 -14
- package/dist/components/date-picker/date-picker.css +9 -0
- package/dist/components/date-picker/date-picker.js +22 -13
- package/dist/components/date-picker/range-picker.d.ts +2 -0
- package/dist/components/date-picker/range-picker.js +127 -70
- package/dist/components/date-picker/types.js +1 -1
- package/dist/components/divider/divider.js +1 -1
- package/dist/components/drawer/drawer.d.ts +1 -1
- package/dist/components/drawer/drawer.js +4 -3
- package/dist/components/dropdown/dropdown.js +11 -9
- package/dist/components/float-button/float-button.js +11 -9
- package/dist/components/form/form-item.d.ts +1 -1
- package/dist/components/form/form-item.js +160 -120
- package/dist/components/form-field/form-field-view.d.ts +2 -1
- package/dist/components/form-field/form-field-view.js +173 -108
- package/dist/components/image/image.js +135 -143
- package/dist/components/input/input-shared.js +3 -2
- package/dist/components/input/otp.js +120 -110
- package/dist/components/input/password.js +55 -61
- package/dist/components/input/search.js +13 -7
- package/dist/components/list/list.js +106 -105
- package/dist/components/masonry/masonry.js +1 -1
- package/dist/components/mentions/mentions.js +1 -0
- package/dist/components/menu/menu-render.js +1 -0
- package/dist/components/modal/confirm-dialog.js +11 -4
- package/dist/components/modal/modal.js +320 -315
- package/dist/components/pagination/pagination.d.ts +3 -0
- package/dist/components/pagination/pagination.js +5 -0
- package/dist/components/popover/popover.js +325 -289
- package/dist/components/qr-code/qr-code.js +157 -150
- package/dist/components/radio/radio.d.ts +3 -1
- package/dist/components/radio/radio.js +73 -64
- package/dist/components/rate/rate.js +83 -72
- package/dist/components/scroll-area/scroll-area.css +1 -1
- package/dist/components/scroll-area/scroll-area.js +294 -222
- package/dist/components/select/mobile-select.js +6 -3
- package/dist/components/select/select-model.js +2 -2
- package/dist/components/select/select.js +78 -39
- package/dist/components/select/use-select-selection.d.ts +1 -1
- package/dist/components/select/use-select-selection.js +91 -84
- package/dist/components/slider/slider.d.ts +2 -2
- package/dist/components/slider/slider.js +13 -2
- package/dist/components/sonner/sonner.js +2 -2
- package/dist/components/splitter/splitter.css +1 -0
- package/dist/components/splitter/splitter.js +152 -126
- package/dist/components/statistic/statistic.js +84 -78
- package/dist/components/steps/steps.js +1 -1
- package/dist/components/switch/switch.js +45 -39
- package/dist/components/table/table.js +5 -1
- package/dist/components/table/use-table-data.js +2 -2
- package/dist/components/time-picker/time-picker.js +31 -1
- package/dist/components/tooltip/tooltip.js +237 -99
- package/dist/components/tree/tree.js +31 -3
- package/dist/components/tree-select/tree-select.js +1 -1
- package/dist/components/upload/upload.js +69 -42
- package/dist/locales/ar-EG.js +2 -0
- package/dist/locales/de-DE.js +2 -0
- package/dist/locales/en-US.js +2 -0
- package/dist/locales/es-ES.js +2 -0
- package/dist/locales/fr-FR.js +2 -0
- package/dist/locales/hi-IN.js +2 -0
- package/dist/locales/id-ID.js +2 -0
- package/dist/locales/it-IT.js +2 -0
- package/dist/locales/ja-JP.js +2 -0
- package/dist/locales/ko-KR.js +2 -0
- package/dist/locales/pt-BR.js +2 -0
- package/dist/locales/ru-RU.js +2 -0
- package/dist/locales/th-TH.js +2 -0
- package/dist/locales/tr-TR.js +2 -0
- package/dist/locales/types.d.ts +2 -0
- package/dist/locales/vi-VN.js +2 -0
- package/dist/locales/zh-CN.js +2 -0
- package/dist/locales/zh-TW.js +2 -0
- package/dist/number-input/cursor.js +20 -8
- package/dist/number-input/format.js +13 -5
- package/dist/number-input/use-number-input.js +166 -318
- package/dist/number-input/validate.d.ts +1 -0
- package/dist/number-input/validate.js +1 -1
- package/dist/provider/tao-provider.d.ts +2 -2
- package/dist/provider/tao-provider.js +49 -49
- package/dist/utils/composed-parent.d.ts +1 -0
- package/dist/utils/composed-parent.js +7 -0
- package/dist/utils/portal.d.ts +5 -0
- package/dist/utils/portal.js +7 -1
- package/dist/utils/refs.d.ts +3 -1
- package/dist/utils/refs.js +25 -1
- 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
|
-
|
|
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
|
-
|
|
112
|
-
|
|
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 (
|
|
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: (
|
|
224
|
-
if (!isMobile ||
|
|
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(
|
|
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] !==
|
|
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
|
-
|
|
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 =
|
|
383
|
+
t18 = onBlur;
|
|
384
|
+
t19 = normalizedOptions ? normalizedOptions.map(_temp2) : children;
|
|
383
385
|
$[24] = children;
|
|
384
386
|
$[25] = direction;
|
|
385
387
|
$[26] = groupCtxValue;
|
|
386
|
-
$[27] =
|
|
387
|
-
$[28] =
|
|
388
|
-
$[29] =
|
|
389
|
-
$[30] =
|
|
390
|
-
$[31] =
|
|
391
|
-
$[32] =
|
|
392
|
-
$[33] =
|
|
393
|
-
$[34] =
|
|
394
|
-
$[35] =
|
|
395
|
-
$[36] =
|
|
396
|
-
$[37] =
|
|
397
|
-
$[38] =
|
|
398
|
-
$[39] =
|
|
399
|
-
$[40] =
|
|
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 = $[
|
|
402
|
-
t10 = $[
|
|
403
|
-
t11 = $[
|
|
404
|
-
t12 = $[
|
|
405
|
-
t13 = $[
|
|
406
|
-
t14 = $[
|
|
407
|
-
t15 = $[
|
|
408
|
-
t16 = $[
|
|
409
|
-
t17 = $[
|
|
410
|
-
t18 = $[
|
|
411
|
-
t19 = $[
|
|
412
|
-
|
|
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
|
|
415
|
-
if ($[
|
|
416
|
-
|
|
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
|
-
|
|
431
|
+
onBlur: t18,
|
|
432
|
+
children: t19
|
|
427
433
|
});
|
|
428
|
-
$[
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
431
|
-
$[
|
|
432
|
-
$[
|
|
433
|
-
$[
|
|
434
|
-
$[
|
|
435
|
-
$[
|
|
436
|
-
$[
|
|
437
|
-
$[
|
|
438
|
-
$[
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
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
|
-
$[
|
|
447
|
-
$[
|
|
448
|
-
$[
|
|
449
|
-
$[
|
|
450
|
-
} else
|
|
451
|
-
return
|
|
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 =
|
|
285
|
-
const t23 =
|
|
286
|
-
const t24 =
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
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":
|
|
298
|
+
"aria-controls": t22,
|
|
298
299
|
"aria-labelledby": titleId,
|
|
299
300
|
onClick: onToggle,
|
|
300
|
-
className:
|
|
301
|
-
style:
|
|
301
|
+
className: t23,
|
|
302
|
+
style: t24,
|
|
302
303
|
children: [
|
|
303
304
|
icon,
|
|
304
|
-
|
|
305
|
+
t25
|
|
305
306
|
]
|
|
306
307
|
});
|
|
307
|
-
$[28] =
|
|
308
|
-
$[29] =
|
|
309
|
-
$[30] =
|
|
310
|
-
$[31] =
|
|
311
|
-
$[32] =
|
|
312
|
-
$[33] =
|
|
313
|
-
$[34] =
|
|
314
|
-
$[35] =
|
|
315
|
-
$[36] =
|
|
316
|
-
$[37] =
|
|
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] =
|
|
319
|
-
} else
|
|
320
|
-
const
|
|
321
|
-
let
|
|
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
|
-
|
|
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] =
|
|
333
|
-
} else
|
|
334
|
-
let
|
|
335
|
-
if ($[44] !== expandIconPlacement || $[45] !== t13 || $[46] !== t16 || $[47] !== t19 || $[48] !==
|
|
336
|
-
|
|
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] =
|
|
353
|
-
$[49] =
|
|
354
|
-
$[50] =
|
|
355
|
-
$[51] =
|
|
356
|
-
} else
|
|
357
|
-
const
|
|
358
|
-
const
|
|
359
|
-
const
|
|
360
|
-
let
|
|
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
|
-
|
|
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] =
|
|
378
|
-
} else
|
|
379
|
-
let
|
|
380
|
-
if ($[59] !== bodyId || $[60] !==
|
|
381
|
-
|
|
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:
|
|
385
|
+
hidden: t30,
|
|
385
386
|
"data-tao-collapse-content": "",
|
|
386
387
|
"data-tao-collapse-panel-content": "",
|
|
387
|
-
className:
|
|
388
|
-
style:
|
|
389
|
-
children:
|
|
388
|
+
className: t31,
|
|
389
|
+
style: t32,
|
|
390
|
+
children: t33
|
|
390
391
|
});
|
|
391
392
|
$[59] = bodyId;
|
|
392
|
-
$[60] =
|
|
393
|
-
$[61] =
|
|
394
|
-
$[62] =
|
|
395
|
-
$[63] =
|
|
393
|
+
$[60] = t30;
|
|
394
|
+
$[61] = t31;
|
|
395
|
+
$[62] = t32;
|
|
396
|
+
$[63] = t33;
|
|
396
397
|
$[64] = titleId;
|
|
397
|
-
$[65] =
|
|
398
|
-
} else
|
|
399
|
-
let
|
|
400
|
-
if ($[66] !== t10 || $[67] !== t12 || $[68] !==
|
|
401
|
-
|
|
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
|
-
|
|
409
|
-
|
|
409
|
+
t29,
|
|
410
|
+
t34
|
|
410
411
|
]
|
|
411
412
|
});
|
|
412
413
|
$[66] = t10;
|
|
413
414
|
$[67] = t12;
|
|
414
|
-
$[68] =
|
|
415
|
-
$[69] =
|
|
415
|
+
$[68] = t29;
|
|
416
|
+
$[69] = t34;
|
|
416
417
|
$[70] = t7;
|
|
417
418
|
$[71] = t8;
|
|
418
|
-
$[72] =
|
|
419
|
-
} else
|
|
420
|
-
return
|
|
419
|
+
$[72] = t35;
|
|
420
|
+
} else t35 = $[72];
|
|
421
|
+
return t35;
|
|
421
422
|
}
|
|
422
423
|
export { CollapsePanels };
|