@rockshin/tao-ui 0.0.47 → 0.0.49
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 +20 -16
- package/dist/components/alert/alert.js +114 -99
- package/dist/components/app/app-modals.js +134 -96
- package/dist/components/app/app-notices.js +39 -23
- package/dist/components/auto-complete/auto-complete.js +21 -7
- package/dist/components/avatar/avatar.js +31 -11
- package/dist/components/badge/badge.css +1 -1
- package/dist/components/badge/badge.js +72 -257
- package/dist/components/border-beam/border-beam.js +21 -17
- package/dist/components/breadcrumb/breadcrumb.js +178 -159
- package/dist/components/button/button.js +61 -53
- package/dist/components/calendar/calendar.js +6 -4
- package/dist/components/card/card.js +24 -8
- package/dist/components/carousel/carousel.d.ts +1 -1
- package/dist/components/carousel/carousel.js +105 -68
- package/dist/components/cascader/cascader.js +54 -19
- package/dist/components/checkbox/checkbox.css +13 -2
- package/dist/components/checkbox/checkbox.d.ts +2 -0
- package/dist/components/checkbox/checkbox.js +320 -229
- package/dist/components/collapse/collapse-panels.d.ts +1 -1
- package/dist/components/collapse/collapse-panels.js +122 -113
- package/dist/components/collapse/collapse.js +98 -63
- package/dist/components/color-picker/color-picker.js +539 -441
- package/dist/components/color-picker/color.js +1 -1
- package/dist/components/context-menu/context-menu.d.ts +1 -1
- package/dist/components/context-menu/context-menu.js +108 -68
- package/dist/components/date-picker/calendar/calendar-grid.js +42 -39
- package/dist/components/date-picker/calendar/month-grid.d.ts +8 -1
- package/dist/components/date-picker/calendar/month-grid.js +79 -37
- package/dist/components/date-picker/calendar/time-panel.d.ts +2 -1
- package/dist/components/date-picker/calendar/time-panel.js +94 -89
- package/dist/components/date-picker/calendar/year-grid.d.ts +8 -1
- package/dist/components/date-picker/calendar/year-grid.js +66 -35
- package/dist/components/date-picker/date-picker.css +24 -1
- package/dist/components/date-picker/date-picker.js +99 -53
- package/dist/components/date-picker/presets.d.ts +2 -1
- package/dist/components/date-picker/presets.js +27 -24
- package/dist/components/date-picker/range-picker.js +308 -153
- package/dist/components/descriptions/descriptions.js +7 -3
- package/dist/components/divider/divider.css +1 -1
- package/dist/components/divider/divider.js +1 -1
- package/dist/components/drawer/drawer.js +201 -369
- package/dist/components/dropdown/dropdown.d.ts +1 -1
- package/dist/components/dropdown/dropdown.js +183 -279
- package/dist/components/empty/empty.js +57 -78
- package/dist/components/float-button/float-button.d.ts +1 -0
- package/dist/components/float-button/float-button.js +47 -30
- package/dist/components/form/field-control.d.ts +4 -2
- package/dist/components/form/field-control.js +17 -9
- package/dist/components/form/form-context.d.ts +8 -2
- package/dist/components/form/form-context.js +2 -1
- package/dist/components/form/form-item.js +85 -63
- package/dist/components/form/form.css +3 -2
- package/dist/components/form/use-form.d.ts +2 -1
- package/dist/components/form/use-form.js +2 -1
- package/dist/components/form-field/form-field-view.d.ts +3 -1
- package/dist/components/form-field/form-field-view.js +194 -141
- package/dist/components/form-section/form-section.d.ts +1 -1
- package/dist/components/form-section/form-section.js +52 -45
- package/dist/components/image/image.js +585 -477
- package/dist/components/input/base-input.js +8 -9
- package/dist/components/input/input-shared.d.ts +5 -2
- package/dist/components/input/input-shared.js +42 -18
- package/dist/components/input/otp.js +236 -217
- package/dist/components/input/password.js +2 -1
- package/dist/components/input/search.js +8 -7
- package/dist/components/list/list-pagination.js +41 -36
- package/dist/components/list/list.js +141 -125
- package/dist/components/listy/listy.js +175 -106
- package/dist/components/masonry/masonry.js +108 -85
- package/dist/components/mentions/mentions.js +12 -3
- package/dist/components/menu/menu-render.d.ts +9 -3
- package/dist/components/menu/menu-render.js +99 -36
- package/dist/components/modal/confirm-dialog.js +10 -4
- package/dist/components/modal/confirm.js +3 -7
- package/dist/components/modal/index.js +9 -3
- package/dist/components/modal/modal.js +390 -365
- package/dist/components/pagination/pagination.js +105 -96
- package/dist/components/popconfirm/popconfirm.d.ts +1 -1
- package/dist/components/popconfirm/popconfirm.js +219 -168
- package/dist/components/popover/popover.js +330 -243
- package/dist/components/progress/progress.css +2 -2
- package/dist/components/progress/progress.js +232 -458
- package/dist/components/qr-code/qr-code.js +72 -66
- package/dist/components/radio/radio.css +15 -4
- package/dist/components/radio/radio.d.ts +2 -1
- package/dist/components/radio/radio.js +260 -198
- package/dist/components/rate/rate.js +173 -113
- package/dist/components/scroll-area/scroll-area.js +241 -211
- package/dist/components/segmented/segmented.js +73 -41
- package/dist/components/select/mobile-select.d.ts +2 -1
- package/dist/components/select/mobile-select.js +24 -13
- package/dist/components/select/select-searchable-list.d.ts +2 -1
- package/dist/components/select/select-searchable-list.js +2 -3
- package/dist/components/select/select.js +49 -25
- package/dist/components/select/use-select-selection.d.ts +1 -1
- package/dist/components/select/use-select-selection.js +7 -4
- package/dist/components/skeleton/skeleton.js +56 -48
- package/dist/components/slider/slider.js +87 -212
- package/dist/components/sonner/sonner.js +109 -93
- package/dist/components/spinner/spinner.js +147 -138
- package/dist/components/splitter/splitter.js +222 -159
- package/dist/components/statistic/statistic.js +7 -6
- package/dist/components/steps/steps.js +88 -81
- package/dist/components/steps/use-display-steps.js +1 -1
- package/dist/components/switch/switch.js +89 -89
- package/dist/components/table/table-filter.js +66 -56
- package/dist/components/table/table-icons.d.ts +2 -1
- package/dist/components/table/table-icons.js +11 -9
- package/dist/components/table/table-model.js +1 -1
- package/dist/components/table/table.js +107 -83
- package/dist/components/table/use-table-data.d.ts +6 -3
- package/dist/components/table/use-table-data.js +166 -130
- package/dist/components/tabs/tabs.css +1 -1
- package/dist/components/tabs/tabs.js +236 -179
- package/dist/components/tag/tag.d.ts +2 -2
- package/dist/components/tag/tag.js +111 -108
- package/dist/components/textarea/textarea.js +22 -17
- package/dist/components/time-picker/time-picker.js +5 -3
- package/dist/components/timeline/timeline.css +6 -1
- package/dist/components/timeline/timeline.js +21 -11
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/components/tooltip/tooltip.js +123 -233
- package/dist/components/tour/tour.css +4 -0
- package/dist/components/tour/tour.js +400 -331
- package/dist/components/transfer/transfer-list.js +29 -11
- package/dist/components/transfer/transfer-parts.js +1 -1
- package/dist/components/transfer/transfer-types.d.ts +1 -0
- package/dist/components/transfer/transfer.js +29 -14
- package/dist/components/tree/tree-keyboard.d.ts +1 -1
- package/dist/components/tree/tree-keyboard.js +5 -3
- package/dist/components/tree/tree.js +74 -59
- package/dist/components/tree-select/select-engine.d.ts +3 -2
- package/dist/components/tree-select/select-engine.js +18 -16
- package/dist/components/tree-select/tree-select.js +21 -5
- package/dist/components/upload/upload.css +8 -0
- package/dist/components/upload/upload.js +160 -72
- package/dist/components/watermark/watermark.js +36 -29
- package/dist/number-input/use-number-input.js +129 -90
- package/dist/number-input/validate.js +32 -5
- package/dist/provider/merge-locale.js +12 -9
- package/dist/provider/tao-provider.d.ts +3 -1
- package/dist/provider/tao-provider.js +123 -86
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { useId } from "react";
|
|
3
|
+
import { useEffect, useId } from "react";
|
|
4
4
|
import { useControlledOpen } from "../../utils/overlay.js";
|
|
5
5
|
import { cx } from "../../utils/semantic.js";
|
|
6
6
|
import { Button } from "../button/button.js";
|
|
@@ -9,245 +9,296 @@ import { StatusIcon } from "../status-icon/status-icon.js";
|
|
|
9
9
|
import "./popconfirm.css";
|
|
10
10
|
import { useTaoConfig } from "../../provider/tao-provider.js";
|
|
11
11
|
function Popconfirm(t0) {
|
|
12
|
-
const $ = c(
|
|
13
|
-
const { title, description, onConfirm, onCancel, okText, cancelText, okButtonProps, cancelButtonProps, icon, disabled:
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
12
|
+
const $ = c(81);
|
|
13
|
+
const { title, description, onConfirm, onCancel, okText, cancelText, okButtonProps, cancelButtonProps, icon, disabled: disabledProp, open, defaultOpen, onOpenChange, placement: t1, className, style, classNames, styles, children } = t0;
|
|
14
|
+
const placement = void 0 === t1 ? "top" : t1;
|
|
15
|
+
const { locale, disabled: providerDisabled } = useTaoConfig();
|
|
16
|
+
const disabled = disabledProp ?? providerDisabled;
|
|
17
17
|
const titleId = useId();
|
|
18
18
|
const descriptionId = useId();
|
|
19
|
+
const t2 = !disabled && defaultOpen;
|
|
19
20
|
const t3 = !disabled;
|
|
20
21
|
let t4;
|
|
21
|
-
if ($[0] !==
|
|
22
|
+
if ($[0] !== onOpenChange || $[1] !== open || $[2] !== t2 || $[3] !== t3) {
|
|
22
23
|
t4 = {
|
|
23
24
|
open,
|
|
24
|
-
defaultOpen,
|
|
25
|
+
defaultOpen: t2,
|
|
25
26
|
onOpenChange,
|
|
26
27
|
canOpen: t3
|
|
27
28
|
};
|
|
28
|
-
$[0] =
|
|
29
|
-
$[1] =
|
|
30
|
-
$[2] =
|
|
29
|
+
$[0] = onOpenChange;
|
|
30
|
+
$[1] = open;
|
|
31
|
+
$[2] = t2;
|
|
31
32
|
$[3] = t3;
|
|
32
33
|
$[4] = t4;
|
|
33
34
|
} else t4 = $[4];
|
|
34
35
|
const [realOpen, setOpen] = useControlledOpen(t4);
|
|
35
36
|
let t5;
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
let t6;
|
|
38
|
+
if ($[5] !== disabled || $[6] !== open || $[7] !== realOpen || $[8] !== setOpen) {
|
|
39
|
+
t5 = ()=>{
|
|
40
|
+
if (disabled && realOpen && null == open) setOpen(false);
|
|
41
|
+
};
|
|
42
|
+
t6 = [
|
|
43
|
+
disabled,
|
|
44
|
+
open,
|
|
45
|
+
realOpen,
|
|
46
|
+
setOpen
|
|
47
|
+
];
|
|
48
|
+
$[5] = disabled;
|
|
49
|
+
$[6] = open;
|
|
50
|
+
$[7] = realOpen;
|
|
51
|
+
$[8] = setOpen;
|
|
52
|
+
$[9] = t5;
|
|
53
|
+
$[10] = t6;
|
|
54
|
+
} else {
|
|
55
|
+
t5 = $[9];
|
|
56
|
+
t6 = $[10];
|
|
57
|
+
}
|
|
58
|
+
useEffect(t5, t6);
|
|
59
|
+
let t7;
|
|
60
|
+
if ($[11] !== onConfirm || $[12] !== setOpen) {
|
|
61
|
+
t7 = (e)=>{
|
|
38
62
|
onConfirm?.(e);
|
|
39
63
|
setOpen(false);
|
|
40
64
|
};
|
|
41
|
-
$[
|
|
42
|
-
$[
|
|
43
|
-
$[
|
|
44
|
-
} else
|
|
45
|
-
const handleConfirm =
|
|
46
|
-
let
|
|
47
|
-
if ($[
|
|
48
|
-
|
|
65
|
+
$[11] = onConfirm;
|
|
66
|
+
$[12] = setOpen;
|
|
67
|
+
$[13] = t7;
|
|
68
|
+
} else t7 = $[13];
|
|
69
|
+
const handleConfirm = t7;
|
|
70
|
+
let t8;
|
|
71
|
+
if ($[14] !== onCancel || $[15] !== setOpen) {
|
|
72
|
+
t8 = (e_0)=>{
|
|
49
73
|
onCancel?.(e_0);
|
|
50
74
|
setOpen(false);
|
|
51
75
|
};
|
|
52
|
-
$[
|
|
53
|
-
$[
|
|
54
|
-
$[
|
|
55
|
-
} else
|
|
56
|
-
const handleCancel =
|
|
57
|
-
let
|
|
58
|
-
if ($[
|
|
59
|
-
|
|
76
|
+
$[14] = onCancel;
|
|
77
|
+
$[15] = setOpen;
|
|
78
|
+
$[16] = t8;
|
|
79
|
+
} else t8 = $[16];
|
|
80
|
+
const handleCancel = t8;
|
|
81
|
+
let t9;
|
|
82
|
+
if ($[17] !== icon) {
|
|
83
|
+
t9 = null === icon ? null : icon ?? /*#__PURE__*/ jsx(StatusIcon, {
|
|
60
84
|
type: "warning",
|
|
61
85
|
size: 16
|
|
62
86
|
});
|
|
63
|
-
$[
|
|
64
|
-
$[
|
|
65
|
-
} else
|
|
66
|
-
const iconNode =
|
|
67
|
-
const
|
|
68
|
-
let t9;
|
|
69
|
-
if ($[13] !== className || $[14] !== t8) {
|
|
70
|
-
t9 = cx(t8, className);
|
|
71
|
-
$[13] = className;
|
|
72
|
-
$[14] = t8;
|
|
73
|
-
$[15] = t9;
|
|
74
|
-
} else t9 = $[15];
|
|
75
|
-
const t10 = styles?.content;
|
|
87
|
+
$[17] = icon;
|
|
88
|
+
$[18] = t9;
|
|
89
|
+
} else t9 = $[18];
|
|
90
|
+
const iconNode = t9;
|
|
91
|
+
const t10 = classNames?.content;
|
|
76
92
|
let t11;
|
|
77
|
-
if ($[
|
|
78
|
-
t11 =
|
|
79
|
-
|
|
93
|
+
if ($[19] !== className || $[20] !== t10) {
|
|
94
|
+
t11 = cx(t10, className);
|
|
95
|
+
$[19] = className;
|
|
96
|
+
$[20] = t10;
|
|
97
|
+
$[21] = t11;
|
|
98
|
+
} else t11 = $[21];
|
|
99
|
+
const t12 = styles?.content;
|
|
100
|
+
let t13;
|
|
101
|
+
if ($[22] !== style || $[23] !== t12) {
|
|
102
|
+
t13 = {
|
|
103
|
+
...t12,
|
|
80
104
|
...style
|
|
81
105
|
};
|
|
82
|
-
$[
|
|
83
|
-
$[
|
|
84
|
-
$[
|
|
85
|
-
} else
|
|
86
|
-
let
|
|
87
|
-
if ($[
|
|
88
|
-
|
|
106
|
+
$[22] = style;
|
|
107
|
+
$[23] = t12;
|
|
108
|
+
$[24] = t13;
|
|
109
|
+
} else t13 = $[24];
|
|
110
|
+
let t14;
|
|
111
|
+
if ($[25] !== classNames?.icon || $[26] !== iconNode || $[27] !== styles?.icon) {
|
|
112
|
+
t14 = null != iconNode && /*#__PURE__*/ jsx("span", {
|
|
89
113
|
"data-tao-popconfirm-icon": "",
|
|
90
114
|
className: cx(classNames?.icon),
|
|
91
115
|
style: styles?.icon,
|
|
92
116
|
children: iconNode
|
|
93
117
|
});
|
|
94
|
-
$[
|
|
95
|
-
$[
|
|
96
|
-
$[
|
|
97
|
-
$[
|
|
98
|
-
} else
|
|
99
|
-
let
|
|
100
|
-
if ($[
|
|
101
|
-
|
|
118
|
+
$[25] = classNames?.icon;
|
|
119
|
+
$[26] = iconNode;
|
|
120
|
+
$[27] = styles?.icon;
|
|
121
|
+
$[28] = t14;
|
|
122
|
+
} else t14 = $[28];
|
|
123
|
+
let t15;
|
|
124
|
+
if ($[29] !== classNames?.title || $[30] !== styles?.title || $[31] !== title || $[32] !== titleId) {
|
|
125
|
+
t15 = null != title && /*#__PURE__*/ jsx("div", {
|
|
102
126
|
"data-tao-popconfirm-title": "",
|
|
103
127
|
id: titleId,
|
|
104
128
|
className: cx(classNames?.title),
|
|
105
129
|
style: styles?.title,
|
|
106
130
|
children: title
|
|
107
131
|
});
|
|
108
|
-
$[
|
|
109
|
-
$[
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
112
|
-
$[
|
|
113
|
-
} else
|
|
114
|
-
let
|
|
115
|
-
if ($[
|
|
116
|
-
|
|
132
|
+
$[29] = classNames?.title;
|
|
133
|
+
$[30] = styles?.title;
|
|
134
|
+
$[31] = title;
|
|
135
|
+
$[32] = titleId;
|
|
136
|
+
$[33] = t15;
|
|
137
|
+
} else t15 = $[33];
|
|
138
|
+
let t16;
|
|
139
|
+
if ($[34] !== classNames?.description || $[35] !== description || $[36] !== descriptionId || $[37] !== styles?.description) {
|
|
140
|
+
t16 = null != description && /*#__PURE__*/ jsx("div", {
|
|
117
141
|
"data-tao-popconfirm-description": "",
|
|
118
142
|
id: descriptionId,
|
|
119
143
|
className: cx(classNames?.description),
|
|
120
144
|
style: styles?.description,
|
|
121
145
|
children: description
|
|
122
146
|
});
|
|
123
|
-
$[
|
|
124
|
-
$[
|
|
125
|
-
$[
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
128
|
-
} else
|
|
129
|
-
let
|
|
130
|
-
if ($[
|
|
131
|
-
|
|
147
|
+
$[34] = classNames?.description;
|
|
148
|
+
$[35] = description;
|
|
149
|
+
$[36] = descriptionId;
|
|
150
|
+
$[37] = styles?.description;
|
|
151
|
+
$[38] = t16;
|
|
152
|
+
} else t16 = $[38];
|
|
153
|
+
let t17;
|
|
154
|
+
if ($[39] !== t15 || $[40] !== t16) {
|
|
155
|
+
t17 = /*#__PURE__*/ jsxs("div", {
|
|
132
156
|
"data-tao-popconfirm-text": "",
|
|
133
157
|
children: [
|
|
134
|
-
|
|
135
|
-
|
|
158
|
+
t15,
|
|
159
|
+
t16
|
|
136
160
|
]
|
|
137
161
|
});
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
} else
|
|
142
|
-
let
|
|
143
|
-
if ($[
|
|
144
|
-
|
|
162
|
+
$[39] = t15;
|
|
163
|
+
$[40] = t16;
|
|
164
|
+
$[41] = t17;
|
|
165
|
+
} else t17 = $[41];
|
|
166
|
+
let t18;
|
|
167
|
+
if ($[42] !== t14 || $[43] !== t17) {
|
|
168
|
+
t18 = /*#__PURE__*/ jsxs("div", {
|
|
145
169
|
"data-tao-popconfirm-message": "",
|
|
146
170
|
children: [
|
|
147
|
-
|
|
148
|
-
|
|
171
|
+
t14,
|
|
172
|
+
t17
|
|
149
173
|
]
|
|
150
174
|
});
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
} else
|
|
155
|
-
const
|
|
156
|
-
let
|
|
157
|
-
if ($[
|
|
158
|
-
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
} else
|
|
162
|
-
const
|
|
163
|
-
const
|
|
164
|
-
let
|
|
165
|
-
if ($[
|
|
166
|
-
|
|
175
|
+
$[42] = t14;
|
|
176
|
+
$[43] = t17;
|
|
177
|
+
$[44] = t18;
|
|
178
|
+
} else t18 = $[44];
|
|
179
|
+
const t19 = classNames?.footer;
|
|
180
|
+
let t20;
|
|
181
|
+
if ($[45] !== t19) {
|
|
182
|
+
t20 = cx(t19);
|
|
183
|
+
$[45] = t19;
|
|
184
|
+
$[46] = t20;
|
|
185
|
+
} else t20 = $[46];
|
|
186
|
+
const t21 = styles?.footer;
|
|
187
|
+
const t22 = cancelButtonProps?.disabled ?? disabled;
|
|
188
|
+
let t23;
|
|
189
|
+
if ($[47] !== cancelButtonProps || $[48] !== handleCancel) {
|
|
190
|
+
t23 = (event)=>{
|
|
191
|
+
cancelButtonProps?.onClick?.(event);
|
|
192
|
+
if (!event.defaultPrevented) handleCancel(event);
|
|
193
|
+
};
|
|
194
|
+
$[47] = cancelButtonProps;
|
|
195
|
+
$[48] = handleCancel;
|
|
196
|
+
$[49] = t23;
|
|
197
|
+
} else t23 = $[49];
|
|
198
|
+
const t24 = void 0 === cancelText ? locale.cancel : cancelText;
|
|
199
|
+
let t25;
|
|
200
|
+
if ($[50] !== cancelButtonProps || $[51] !== t22 || $[52] !== t23 || $[53] !== t24) {
|
|
201
|
+
t25 = /*#__PURE__*/ jsx(Button, {
|
|
167
202
|
variant: "secondary",
|
|
168
203
|
size: "small",
|
|
169
|
-
onClick: handleCancel,
|
|
170
204
|
...cancelButtonProps,
|
|
171
|
-
|
|
205
|
+
disabled: t22,
|
|
206
|
+
onClick: t23,
|
|
207
|
+
children: t24
|
|
172
208
|
});
|
|
173
|
-
$[
|
|
174
|
-
$[
|
|
175
|
-
$[
|
|
176
|
-
$[
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
209
|
+
$[50] = cancelButtonProps;
|
|
210
|
+
$[51] = t22;
|
|
211
|
+
$[52] = t23;
|
|
212
|
+
$[53] = t24;
|
|
213
|
+
$[54] = t25;
|
|
214
|
+
} else t25 = $[54];
|
|
215
|
+
const t26 = okButtonProps?.disabled ?? disabled;
|
|
216
|
+
let t27;
|
|
217
|
+
if ($[55] !== handleConfirm || $[56] !== okButtonProps) {
|
|
218
|
+
t27 = (event_0)=>{
|
|
219
|
+
okButtonProps?.onClick?.(event_0);
|
|
220
|
+
if (!event_0.defaultPrevented) handleConfirm(event_0);
|
|
221
|
+
};
|
|
222
|
+
$[55] = handleConfirm;
|
|
223
|
+
$[56] = okButtonProps;
|
|
224
|
+
$[57] = t27;
|
|
225
|
+
} else t27 = $[57];
|
|
226
|
+
const t28 = void 0 === okText ? locale.ok : okText;
|
|
227
|
+
let t29;
|
|
228
|
+
if ($[58] !== okButtonProps || $[59] !== t26 || $[60] !== t27 || $[61] !== t28) {
|
|
229
|
+
t29 = /*#__PURE__*/ jsx(Button, {
|
|
182
230
|
variant: "primary",
|
|
183
231
|
size: "small",
|
|
184
|
-
onClick: handleConfirm,
|
|
185
232
|
...okButtonProps,
|
|
186
|
-
|
|
233
|
+
disabled: t26,
|
|
234
|
+
onClick: t27,
|
|
235
|
+
children: t28
|
|
187
236
|
});
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
190
|
-
$[
|
|
191
|
-
$[
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
237
|
+
$[58] = okButtonProps;
|
|
238
|
+
$[59] = t26;
|
|
239
|
+
$[60] = t27;
|
|
240
|
+
$[61] = t28;
|
|
241
|
+
$[62] = t29;
|
|
242
|
+
} else t29 = $[62];
|
|
243
|
+
let t30;
|
|
244
|
+
if ($[63] !== t20 || $[64] !== t21 || $[65] !== t25 || $[66] !== t29) {
|
|
245
|
+
t30 = /*#__PURE__*/ jsxs("div", {
|
|
196
246
|
"data-tao-popconfirm-footer": "",
|
|
197
|
-
className:
|
|
198
|
-
style:
|
|
247
|
+
className: t20,
|
|
248
|
+
style: t21,
|
|
199
249
|
children: [
|
|
200
|
-
|
|
201
|
-
|
|
250
|
+
t25,
|
|
251
|
+
t29
|
|
202
252
|
]
|
|
203
253
|
});
|
|
204
|
-
$[
|
|
205
|
-
$[
|
|
206
|
-
$[
|
|
207
|
-
$[
|
|
208
|
-
$[
|
|
209
|
-
} else
|
|
210
|
-
let
|
|
211
|
-
if ($[
|
|
212
|
-
|
|
254
|
+
$[63] = t20;
|
|
255
|
+
$[64] = t21;
|
|
256
|
+
$[65] = t25;
|
|
257
|
+
$[66] = t29;
|
|
258
|
+
$[67] = t30;
|
|
259
|
+
} else t30 = $[67];
|
|
260
|
+
let t31;
|
|
261
|
+
if ($[68] !== t11 || $[69] !== t13 || $[70] !== t18 || $[71] !== t30) {
|
|
262
|
+
t31 = /*#__PURE__*/ jsxs("div", {
|
|
213
263
|
"data-tao-popconfirm": "",
|
|
214
|
-
className:
|
|
215
|
-
style:
|
|
264
|
+
className: t11,
|
|
265
|
+
style: t13,
|
|
216
266
|
children: [
|
|
217
|
-
|
|
218
|
-
|
|
267
|
+
t18,
|
|
268
|
+
t30
|
|
219
269
|
]
|
|
220
270
|
});
|
|
221
|
-
$[
|
|
222
|
-
$[
|
|
223
|
-
$[
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
} else
|
|
227
|
-
const content =
|
|
228
|
-
const
|
|
229
|
-
const
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
271
|
+
$[68] = t11;
|
|
272
|
+
$[69] = t13;
|
|
273
|
+
$[70] = t18;
|
|
274
|
+
$[71] = t30;
|
|
275
|
+
$[72] = t31;
|
|
276
|
+
} else t31 = $[72];
|
|
277
|
+
const content = t31;
|
|
278
|
+
const t32 = realOpen && !disabled;
|
|
279
|
+
const t33 = null != title ? titleId : void 0;
|
|
280
|
+
const t34 = null != description ? descriptionId : void 0;
|
|
281
|
+
let t35;
|
|
282
|
+
if ($[73] !== children || $[74] !== content || $[75] !== placement || $[76] !== setOpen || $[77] !== t32 || $[78] !== t33 || $[79] !== t34) {
|
|
283
|
+
t35 = /*#__PURE__*/ jsx(Popover, {
|
|
233
284
|
trigger: "click",
|
|
234
285
|
placement: placement,
|
|
235
|
-
open:
|
|
286
|
+
open: t32,
|
|
236
287
|
onOpenChange: setOpen,
|
|
237
288
|
content: content,
|
|
238
|
-
"aria-labelledby":
|
|
239
|
-
"aria-describedby":
|
|
289
|
+
"aria-labelledby": t33,
|
|
290
|
+
"aria-describedby": t34,
|
|
240
291
|
children: children
|
|
241
292
|
});
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
244
|
-
$[
|
|
245
|
-
$[
|
|
246
|
-
$[
|
|
247
|
-
$[
|
|
248
|
-
$[
|
|
249
|
-
$[
|
|
250
|
-
} else
|
|
251
|
-
return
|
|
293
|
+
$[73] = children;
|
|
294
|
+
$[74] = content;
|
|
295
|
+
$[75] = placement;
|
|
296
|
+
$[76] = setOpen;
|
|
297
|
+
$[77] = t32;
|
|
298
|
+
$[78] = t33;
|
|
299
|
+
$[79] = t34;
|
|
300
|
+
$[80] = t35;
|
|
301
|
+
} else t35 = $[80];
|
|
302
|
+
return t35;
|
|
252
303
|
}
|
|
253
304
|
export { Popconfirm };
|