@rockshin/tao-ui 0.0.45 → 0.0.46
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/README.md +3 -1
- package/component-manifest.json +32 -3
- package/dist/components/alert/alert.js +20 -17
- package/dist/components/avatar/avatar.js +2 -1
- package/dist/components/breadcrumb/breadcrumb.js +81 -77
- package/dist/components/calendar/calendar.d.ts +0 -1
- package/dist/components/calendar/calendar.js +41 -30
- package/dist/components/color-picker/color-picker.js +273 -269
- package/dist/components/date-picker/calendar/calendar-grid.js +10 -4
- package/dist/components/date-picker/calendar/use-calendar.d.ts +2 -2
- package/dist/components/date-picker/calendar/use-calendar.js +2 -3
- package/dist/components/date-picker/date-localization.d.ts +3 -0
- package/dist/components/date-picker/date-localization.js +76 -0
- package/dist/components/date-picker/date-picker.js +35 -27
- package/dist/components/date-picker/range-picker.js +28 -20
- package/dist/components/dropdown/dropdown.js +21 -20
- package/dist/components/float-button/float-button.js +3 -2
- package/dist/components/form/form.js +88 -103
- package/dist/components/image/image.js +202 -137
- package/dist/components/list/list-pagination.js +148 -147
- package/dist/components/modal/confirm-dialog.js +4 -2
- package/dist/components/modal/modal.js +385 -383
- package/dist/components/pagination/pagination.js +115 -110
- package/dist/components/popconfirm/popconfirm.js +109 -107
- package/dist/components/qr-code/qr-code.js +22 -21
- package/dist/components/scroll-area/scroll-area.js +41 -38
- package/dist/components/select/mobile-select.d.ts +1 -1
- package/dist/components/select/mobile-select.js +2 -1
- package/dist/components/sonner/sonner.js +10 -10
- package/dist/components/spinner/spinner.js +1 -1
- package/dist/components/splitter/splitter.js +24 -21
- package/dist/components/statistic/statistic.d.ts +2 -0
- package/dist/components/statistic/statistic.js +203 -187
- package/dist/components/table/table-filter.js +61 -52
- package/dist/components/table/table-icons.js +3 -1
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.js +5 -4
- package/dist/components/tag/tag.js +22 -19
- package/dist/components/time-picker/time-picker.d.ts +0 -1
- package/dist/components/time-picker/time-picker.js +139 -96
- package/dist/components/transfer/transfer-list.js +224 -488
- package/dist/components/transfer/transfer-parts.js +2 -2
- package/dist/components/transfer/transfer-types.d.ts +1 -0
- package/dist/components/transfer/transfer.js +13 -16
- package/dist/components/upload/upload.js +30 -26
- package/dist/docs/component-docs.d.ts +13 -2
- package/dist/docs/components/headless-input-number.doc.d.ts +5 -0
- package/dist/docs/components/headless-input-number.doc.js +7 -0
- package/dist/docs/components/input-number.doc.d.ts +5 -0
- package/dist/docs/components/input-number.doc.js +7 -0
- package/dist/docs/components/statistic.doc.d.ts +5 -0
- package/dist/docs/components/statistic.doc.js +7 -0
- package/dist/docs/components/tao-provider.doc.d.ts +8 -2
- package/dist/docs/components/tao-provider.doc.js +10 -2
- package/dist/docs/components/tooltip.doc.d.ts +2 -2
- package/dist/entries/provider.d.ts +1 -0
- package/dist/entries/provider.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/locales/ar-EG.d.ts +3 -0
- package/dist/locales/ar-EG.js +199 -0
- package/dist/locales/create-locale.d.ts +41 -0
- package/dist/locales/create-locale.js +88 -0
- package/dist/locales/de-DE.d.ts +3 -0
- package/dist/locales/de-DE.js +195 -0
- package/dist/locales/en-US.d.ts +2 -0
- package/dist/locales/en-US.js +194 -0
- package/dist/locales/es-ES.d.ts +3 -0
- package/dist/locales/es-ES.js +195 -0
- package/dist/locales/fr-FR.d.ts +3 -0
- package/dist/locales/fr-FR.js +195 -0
- package/dist/locales/hi-IN.d.ts +3 -0
- package/dist/locales/hi-IN.js +194 -0
- package/dist/locales/id-ID.d.ts +3 -0
- package/dist/locales/id-ID.js +194 -0
- package/dist/locales/index.d.ts +18 -0
- package/dist/locales/index.js +17 -0
- package/dist/locales/it-IT.d.ts +3 -0
- package/dist/locales/it-IT.js +195 -0
- package/dist/locales/ja-JP.d.ts +3 -0
- package/dist/locales/ja-JP.js +194 -0
- package/dist/locales/ko-KR.d.ts +3 -0
- package/dist/locales/ko-KR.js +194 -0
- package/dist/locales/pt-BR.d.ts +3 -0
- package/dist/locales/pt-BR.js +195 -0
- package/dist/locales/ru-RU.d.ts +3 -0
- package/dist/locales/ru-RU.js +197 -0
- package/dist/locales/th-TH.d.ts +3 -0
- package/dist/locales/th-TH.js +194 -0
- package/dist/locales/tr-TR.d.ts +3 -0
- package/dist/locales/tr-TR.js +194 -0
- package/dist/locales/types.d.ts +176 -0
- package/dist/locales/types.js +0 -0
- package/dist/locales/vi-VN.d.ts +3 -0
- package/dist/locales/vi-VN.js +194 -0
- package/dist/locales/zh-CN.d.ts +3 -0
- package/dist/locales/zh-CN.js +194 -0
- package/dist/locales/zh-TW.d.ts +3 -0
- package/dist/locales/zh-TW.js +194 -0
- package/dist/number-input/format.d.ts +4 -3
- package/dist/number-input/format.js +9 -7
- package/dist/number-input/locale.d.ts +19 -0
- package/dist/number-input/locale.js +44 -0
- package/dist/number-input/number-input.js +1 -0
- package/dist/number-input/use-number-input.d.ts +2 -0
- package/dist/number-input/use-number-input.js +180 -176
- package/dist/provider/locale.d.ts +3 -65
- package/dist/provider/locale.js +2 -146
- package/dist/provider/merge-locale.d.ts +8 -0
- package/dist/provider/merge-locale.js +53 -0
- package/dist/provider/tao-provider.d.ts +6 -2
- package/dist/provider/tao-provider.js +2 -4
- package/llms.txt +1 -1
- package/package.json +5 -1
|
@@ -67,7 +67,7 @@ function ChevronRight() {
|
|
|
67
67
|
return t0;
|
|
68
68
|
}
|
|
69
69
|
function Pagination(t0) {
|
|
70
|
-
const $ = c(
|
|
70
|
+
const $ = c(67);
|
|
71
71
|
const { current: currentProp, defaultCurrent: t1, pageSize: pageSizeProp, defaultPageSize: t2, total, onChange, showSizeChanger: t3, pageSizeOptions: t4, showTotal, size, disabled, className, classNames, styles } = t0;
|
|
72
72
|
const defaultCurrent = void 0 === t1 ? 1 : t1;
|
|
73
73
|
const defaultPageSize = void 0 === t2 ? 10 : t2;
|
|
@@ -125,18 +125,19 @@ function Pagination(t0) {
|
|
|
125
125
|
const rangeStart = Math.min((current - 1) * pageSize + 1, total);
|
|
126
126
|
const rangeEnd = Math.min(current * pageSize, total);
|
|
127
127
|
const t8 = resolvedDisabled || void 0;
|
|
128
|
-
const t9 =
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
const t9 = ctx.locale.messages.pagination;
|
|
129
|
+
const t10 = classNames?.root;
|
|
130
|
+
let t11;
|
|
131
|
+
if ($[11] !== className || $[12] !== t10) {
|
|
132
|
+
t11 = cx(t10, className);
|
|
132
133
|
$[11] = className;
|
|
133
|
-
$[12] =
|
|
134
|
-
$[13] =
|
|
135
|
-
} else
|
|
136
|
-
const
|
|
137
|
-
let
|
|
134
|
+
$[12] = t10;
|
|
135
|
+
$[13] = t11;
|
|
136
|
+
} else t11 = $[13];
|
|
137
|
+
const t12 = styles?.root;
|
|
138
|
+
let t13;
|
|
138
139
|
if ($[14] !== classNames?.total || $[15] !== rangeEnd || $[16] !== rangeStart || $[17] !== showTotal || $[18] !== styles?.total || $[19] !== total) {
|
|
139
|
-
|
|
140
|
+
t13 = showTotal && /*#__PURE__*/ jsx("span", {
|
|
140
141
|
"data-tao-pagination-total": "",
|
|
141
142
|
className: classNames?.total,
|
|
142
143
|
style: styles?.total,
|
|
@@ -151,44 +152,45 @@ function Pagination(t0) {
|
|
|
151
152
|
$[17] = showTotal;
|
|
152
153
|
$[18] = styles?.total;
|
|
153
154
|
$[19] = total;
|
|
154
|
-
$[20] =
|
|
155
|
-
} else
|
|
156
|
-
const
|
|
157
|
-
let
|
|
155
|
+
$[20] = t13;
|
|
156
|
+
} else t13 = $[20];
|
|
157
|
+
const t14 = resolvedDisabled || current <= 1;
|
|
158
|
+
let t15;
|
|
158
159
|
if ($[21] !== current || $[22] !== goTo) {
|
|
159
|
-
|
|
160
|
+
t15 = ()=>goTo(current - 1);
|
|
160
161
|
$[21] = current;
|
|
161
162
|
$[22] = goTo;
|
|
162
|
-
$[23] =
|
|
163
|
-
} else
|
|
164
|
-
const
|
|
165
|
-
const
|
|
166
|
-
let t17;
|
|
167
|
-
if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
|
|
168
|
-
t17 = /*#__PURE__*/ jsx(ChevronLeft, {});
|
|
169
|
-
$[24] = t17;
|
|
170
|
-
} else t17 = $[24];
|
|
163
|
+
$[23] = t15;
|
|
164
|
+
} else t15 = $[23];
|
|
165
|
+
const t16 = classNames?.item;
|
|
166
|
+
const t17 = styles?.item;
|
|
171
167
|
let t18;
|
|
172
|
-
if ($[
|
|
173
|
-
t18 = /*#__PURE__*/ jsx(
|
|
168
|
+
if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
|
|
169
|
+
t18 = /*#__PURE__*/ jsx(ChevronLeft, {});
|
|
170
|
+
$[24] = t18;
|
|
171
|
+
} else t18 = $[24];
|
|
172
|
+
let t19;
|
|
173
|
+
if ($[25] !== ctx.locale.messages.previousPage || $[26] !== t14 || $[27] !== t15 || $[28] !== t16 || $[29] !== t17) {
|
|
174
|
+
t19 = /*#__PURE__*/ jsx("button", {
|
|
174
175
|
type: "button",
|
|
175
176
|
"data-tao-pagination-btn": "",
|
|
176
|
-
disabled:
|
|
177
|
-
"aria-label":
|
|
178
|
-
onClick:
|
|
179
|
-
className:
|
|
180
|
-
style:
|
|
181
|
-
children:
|
|
177
|
+
disabled: t14,
|
|
178
|
+
"aria-label": ctx.locale.messages.previousPage,
|
|
179
|
+
onClick: t15,
|
|
180
|
+
className: t16,
|
|
181
|
+
style: t17,
|
|
182
|
+
children: t18
|
|
182
183
|
});
|
|
183
|
-
$[25] =
|
|
184
|
+
$[25] = ctx.locale.messages.previousPage;
|
|
184
185
|
$[26] = t14;
|
|
185
186
|
$[27] = t15;
|
|
186
187
|
$[28] = t16;
|
|
187
|
-
$[29] =
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
188
|
+
$[29] = t17;
|
|
189
|
+
$[30] = t19;
|
|
190
|
+
} else t19 = $[30];
|
|
191
|
+
let t20;
|
|
192
|
+
if ($[31] !== classNames?.item || $[32] !== ctx.locale.messages || $[33] !== current || $[34] !== goTo || $[35] !== pages || $[36] !== resolvedDisabled || $[37] !== styles?.item) {
|
|
193
|
+
t20 = pages.map((item, i)=>"ellipsis" === item ? /*#__PURE__*/ jsx("span", {
|
|
192
194
|
"data-tao-pagination-ellipsis": "",
|
|
193
195
|
children: "\xb7\xb7\xb7"
|
|
194
196
|
}, `ellipsis-${pages[i - 1]}-${pages[i + 1]}`) : /*#__PURE__*/ jsx("button", {
|
|
@@ -196,57 +198,59 @@ function Pagination(t0) {
|
|
|
196
198
|
"data-tao-pagination-btn": "",
|
|
197
199
|
"data-tao-active": item === current || void 0,
|
|
198
200
|
disabled: resolvedDisabled,
|
|
199
|
-
"aria-label":
|
|
201
|
+
"aria-label": ctx.locale.messages.page(item),
|
|
200
202
|
"aria-current": item === current ? "page" : void 0,
|
|
201
203
|
onClick: ()=>goTo(item),
|
|
202
204
|
className: classNames?.item,
|
|
203
205
|
style: styles?.item,
|
|
204
206
|
children: item
|
|
205
207
|
}, item));
|
|
206
|
-
$[
|
|
207
|
-
$[
|
|
208
|
-
$[
|
|
209
|
-
$[
|
|
210
|
-
$[
|
|
211
|
-
$[
|
|
212
|
-
$[
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
const t23 =
|
|
224
|
-
|
|
225
|
-
if ($[40] === Symbol.for("react.memo_cache_sentinel")) {
|
|
226
|
-
t24 = /*#__PURE__*/ jsx(ChevronRight, {});
|
|
227
|
-
$[40] = t24;
|
|
228
|
-
} else t24 = $[40];
|
|
208
|
+
$[31] = classNames?.item;
|
|
209
|
+
$[32] = ctx.locale.messages;
|
|
210
|
+
$[33] = current;
|
|
211
|
+
$[34] = goTo;
|
|
212
|
+
$[35] = pages;
|
|
213
|
+
$[36] = resolvedDisabled;
|
|
214
|
+
$[37] = styles?.item;
|
|
215
|
+
$[38] = t20;
|
|
216
|
+
} else t20 = $[38];
|
|
217
|
+
const t21 = resolvedDisabled || current >= totalPages;
|
|
218
|
+
let t22;
|
|
219
|
+
if ($[39] !== current || $[40] !== goTo) {
|
|
220
|
+
t22 = ()=>goTo(current + 1);
|
|
221
|
+
$[39] = current;
|
|
222
|
+
$[40] = goTo;
|
|
223
|
+
$[41] = t22;
|
|
224
|
+
} else t22 = $[41];
|
|
225
|
+
const t23 = classNames?.item;
|
|
226
|
+
const t24 = styles?.item;
|
|
229
227
|
let t25;
|
|
230
|
-
if ($[
|
|
231
|
-
t25 = /*#__PURE__*/ jsx(
|
|
228
|
+
if ($[42] === Symbol.for("react.memo_cache_sentinel")) {
|
|
229
|
+
t25 = /*#__PURE__*/ jsx(ChevronRight, {});
|
|
230
|
+
$[42] = t25;
|
|
231
|
+
} else t25 = $[42];
|
|
232
|
+
let t26;
|
|
233
|
+
if ($[43] !== ctx.locale.messages.nextPage || $[44] !== t21 || $[45] !== t22 || $[46] !== t23 || $[47] !== t24) {
|
|
234
|
+
t26 = /*#__PURE__*/ jsx("button", {
|
|
232
235
|
type: "button",
|
|
233
236
|
"data-tao-pagination-btn": "",
|
|
234
|
-
disabled:
|
|
235
|
-
"aria-label":
|
|
236
|
-
onClick:
|
|
237
|
-
className:
|
|
238
|
-
style:
|
|
239
|
-
children:
|
|
237
|
+
disabled: t21,
|
|
238
|
+
"aria-label": ctx.locale.messages.nextPage,
|
|
239
|
+
onClick: t22,
|
|
240
|
+
className: t23,
|
|
241
|
+
style: t24,
|
|
242
|
+
children: t25
|
|
240
243
|
});
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
244
|
-
$[
|
|
245
|
-
$[
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
244
|
+
$[43] = ctx.locale.messages.nextPage;
|
|
245
|
+
$[44] = t21;
|
|
246
|
+
$[45] = t22;
|
|
247
|
+
$[46] = t23;
|
|
248
|
+
$[47] = t24;
|
|
249
|
+
$[48] = t26;
|
|
250
|
+
} else t26 = $[48];
|
|
251
|
+
let t27;
|
|
252
|
+
if ($[49] !== goTo || $[50] !== pageSize || $[51] !== pageSizeOptions || $[52] !== resolvedDisabled || $[53] !== resolvedSize || $[54] !== showSizeChanger) {
|
|
253
|
+
t27 = showSizeChanger && /*#__PURE__*/ jsx(Select, {
|
|
250
254
|
style: {
|
|
251
255
|
width: "auto"
|
|
252
256
|
},
|
|
@@ -259,43 +263,44 @@ function Pagination(t0) {
|
|
|
259
263
|
disabled: resolvedDisabled,
|
|
260
264
|
size: "large" === resolvedSize ? "medium" : resolvedSize
|
|
261
265
|
});
|
|
262
|
-
$[
|
|
263
|
-
$[
|
|
264
|
-
$[
|
|
265
|
-
$[
|
|
266
|
-
$[
|
|
267
|
-
$[
|
|
268
|
-
$[
|
|
269
|
-
} else
|
|
270
|
-
let
|
|
271
|
-
if ($[
|
|
272
|
-
|
|
266
|
+
$[49] = goTo;
|
|
267
|
+
$[50] = pageSize;
|
|
268
|
+
$[51] = pageSizeOptions;
|
|
269
|
+
$[52] = resolvedDisabled;
|
|
270
|
+
$[53] = resolvedSize;
|
|
271
|
+
$[54] = showSizeChanger;
|
|
272
|
+
$[55] = t27;
|
|
273
|
+
} else t27 = $[55];
|
|
274
|
+
let t28;
|
|
275
|
+
if ($[56] !== ctx.locale.messages.pagination || $[57] !== resolvedSize || $[58] !== t11 || $[59] !== t12 || $[60] !== t13 || $[61] !== t19 || $[62] !== t20 || $[63] !== t26 || $[64] !== t27 || $[65] !== t8) {
|
|
276
|
+
t28 = /*#__PURE__*/ jsxs("nav", {
|
|
273
277
|
"data-tao-pagination": "",
|
|
274
278
|
"data-tao-size": resolvedSize,
|
|
275
279
|
"data-tao-disabled": t8,
|
|
276
|
-
"aria-label":
|
|
277
|
-
className:
|
|
278
|
-
style:
|
|
280
|
+
"aria-label": t9,
|
|
281
|
+
className: t11,
|
|
282
|
+
style: t12,
|
|
279
283
|
children: [
|
|
280
|
-
|
|
281
|
-
t18,
|
|
284
|
+
t13,
|
|
282
285
|
t19,
|
|
283
|
-
|
|
284
|
-
t26
|
|
286
|
+
t20,
|
|
287
|
+
t26,
|
|
288
|
+
t27
|
|
285
289
|
]
|
|
286
290
|
});
|
|
287
|
-
$[
|
|
288
|
-
$[
|
|
289
|
-
$[
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
294
|
-
$[
|
|
295
|
-
$[
|
|
296
|
-
$[
|
|
297
|
-
|
|
298
|
-
|
|
291
|
+
$[56] = ctx.locale.messages.pagination;
|
|
292
|
+
$[57] = resolvedSize;
|
|
293
|
+
$[58] = t11;
|
|
294
|
+
$[59] = t12;
|
|
295
|
+
$[60] = t13;
|
|
296
|
+
$[61] = t19;
|
|
297
|
+
$[62] = t20;
|
|
298
|
+
$[63] = t26;
|
|
299
|
+
$[64] = t27;
|
|
300
|
+
$[65] = t8;
|
|
301
|
+
$[66] = t28;
|
|
302
|
+
} else t28 = $[66];
|
|
303
|
+
return t28;
|
|
299
304
|
}
|
|
300
305
|
function _temp(opt) {
|
|
301
306
|
return {
|
|
@@ -7,85 +7,85 @@ import { Button } from "../button/button.js";
|
|
|
7
7
|
import { Popover } from "../popover/popover.js";
|
|
8
8
|
import { StatusIcon } from "../status-icon/status-icon.js";
|
|
9
9
|
import "./popconfirm.css";
|
|
10
|
+
import { useTaoConfig } from "../../provider/tao-provider.js";
|
|
10
11
|
function Popconfirm(t0) {
|
|
11
12
|
const $ = c(67);
|
|
12
|
-
const { title, description, onConfirm, onCancel, okText
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const placement = void 0 === t4 ? "top" : t4;
|
|
13
|
+
const { title, description, onConfirm, onCancel, okText, cancelText, okButtonProps, cancelButtonProps, icon, disabled: t1, open, defaultOpen, onOpenChange, placement: t2, className, style, classNames, styles, children } = t0;
|
|
14
|
+
const disabled = void 0 === t1 ? false : t1;
|
|
15
|
+
const placement = void 0 === t2 ? "top" : t2;
|
|
16
|
+
const { locale } = useTaoConfig();
|
|
17
17
|
const titleId = useId();
|
|
18
18
|
const descriptionId = useId();
|
|
19
|
-
const
|
|
20
|
-
let
|
|
21
|
-
if ($[0] !== defaultOpen || $[1] !== onOpenChange || $[2] !== open || $[3] !==
|
|
22
|
-
|
|
19
|
+
const t3 = !disabled;
|
|
20
|
+
let t4;
|
|
21
|
+
if ($[0] !== defaultOpen || $[1] !== onOpenChange || $[2] !== open || $[3] !== t3) {
|
|
22
|
+
t4 = {
|
|
23
23
|
open,
|
|
24
24
|
defaultOpen,
|
|
25
25
|
onOpenChange,
|
|
26
|
-
canOpen:
|
|
26
|
+
canOpen: t3
|
|
27
27
|
};
|
|
28
28
|
$[0] = defaultOpen;
|
|
29
29
|
$[1] = onOpenChange;
|
|
30
30
|
$[2] = open;
|
|
31
|
-
$[3] =
|
|
32
|
-
$[4] =
|
|
33
|
-
} else
|
|
34
|
-
const [realOpen, setOpen] = useControlledOpen(
|
|
35
|
-
let
|
|
31
|
+
$[3] = t3;
|
|
32
|
+
$[4] = t4;
|
|
33
|
+
} else t4 = $[4];
|
|
34
|
+
const [realOpen, setOpen] = useControlledOpen(t4);
|
|
35
|
+
let t5;
|
|
36
36
|
if ($[5] !== onConfirm || $[6] !== setOpen) {
|
|
37
|
-
|
|
37
|
+
t5 = (e)=>{
|
|
38
38
|
onConfirm?.(e);
|
|
39
39
|
setOpen(false);
|
|
40
40
|
};
|
|
41
41
|
$[5] = onConfirm;
|
|
42
42
|
$[6] = setOpen;
|
|
43
|
-
$[7] =
|
|
44
|
-
} else
|
|
45
|
-
const handleConfirm =
|
|
46
|
-
let
|
|
43
|
+
$[7] = t5;
|
|
44
|
+
} else t5 = $[7];
|
|
45
|
+
const handleConfirm = t5;
|
|
46
|
+
let t6;
|
|
47
47
|
if ($[8] !== onCancel || $[9] !== setOpen) {
|
|
48
|
-
|
|
48
|
+
t6 = (e_0)=>{
|
|
49
49
|
onCancel?.(e_0);
|
|
50
50
|
setOpen(false);
|
|
51
51
|
};
|
|
52
52
|
$[8] = onCancel;
|
|
53
53
|
$[9] = setOpen;
|
|
54
|
-
$[10] =
|
|
55
|
-
} else
|
|
56
|
-
const handleCancel =
|
|
57
|
-
let
|
|
54
|
+
$[10] = t6;
|
|
55
|
+
} else t6 = $[10];
|
|
56
|
+
const handleCancel = t6;
|
|
57
|
+
let t7;
|
|
58
58
|
if ($[11] !== icon) {
|
|
59
|
-
|
|
59
|
+
t7 = null === icon ? null : icon ?? /*#__PURE__*/ jsx(StatusIcon, {
|
|
60
60
|
type: "warning",
|
|
61
61
|
size: 16
|
|
62
62
|
});
|
|
63
63
|
$[11] = icon;
|
|
64
|
-
$[12] =
|
|
65
|
-
} else
|
|
66
|
-
const iconNode =
|
|
67
|
-
const
|
|
68
|
-
let
|
|
69
|
-
if ($[13] !== className || $[14] !==
|
|
70
|
-
|
|
64
|
+
$[12] = t7;
|
|
65
|
+
} else t7 = $[12];
|
|
66
|
+
const iconNode = t7;
|
|
67
|
+
const t8 = classNames?.content;
|
|
68
|
+
let t9;
|
|
69
|
+
if ($[13] !== className || $[14] !== t8) {
|
|
70
|
+
t9 = cx(t8, className);
|
|
71
71
|
$[13] = className;
|
|
72
|
-
$[14] =
|
|
73
|
-
$[15] =
|
|
74
|
-
} else
|
|
75
|
-
const
|
|
76
|
-
let
|
|
77
|
-
if ($[16] !== style || $[17] !==
|
|
78
|
-
|
|
79
|
-
...
|
|
72
|
+
$[14] = t8;
|
|
73
|
+
$[15] = t9;
|
|
74
|
+
} else t9 = $[15];
|
|
75
|
+
const t10 = styles?.content;
|
|
76
|
+
let t11;
|
|
77
|
+
if ($[16] !== style || $[17] !== t10) {
|
|
78
|
+
t11 = {
|
|
79
|
+
...t10,
|
|
80
80
|
...style
|
|
81
81
|
};
|
|
82
82
|
$[16] = style;
|
|
83
|
-
$[17] =
|
|
84
|
-
$[18] =
|
|
85
|
-
} else
|
|
86
|
-
let
|
|
83
|
+
$[17] = t10;
|
|
84
|
+
$[18] = t11;
|
|
85
|
+
} else t11 = $[18];
|
|
86
|
+
let t12;
|
|
87
87
|
if ($[19] !== classNames?.icon || $[20] !== iconNode || $[21] !== styles?.icon) {
|
|
88
|
-
|
|
88
|
+
t12 = null != iconNode && /*#__PURE__*/ jsx("span", {
|
|
89
89
|
"data-tao-popconfirm-icon": "",
|
|
90
90
|
className: cx(classNames?.icon),
|
|
91
91
|
style: styles?.icon,
|
|
@@ -94,11 +94,11 @@ function Popconfirm(t0) {
|
|
|
94
94
|
$[19] = classNames?.icon;
|
|
95
95
|
$[20] = iconNode;
|
|
96
96
|
$[21] = styles?.icon;
|
|
97
|
-
$[22] =
|
|
98
|
-
} else
|
|
99
|
-
let
|
|
97
|
+
$[22] = t12;
|
|
98
|
+
} else t12 = $[22];
|
|
99
|
+
let t13;
|
|
100
100
|
if ($[23] !== classNames?.title || $[24] !== styles?.title || $[25] !== title || $[26] !== titleId) {
|
|
101
|
-
|
|
101
|
+
t13 = null != title && /*#__PURE__*/ jsx("div", {
|
|
102
102
|
"data-tao-popconfirm-title": "",
|
|
103
103
|
id: titleId,
|
|
104
104
|
className: cx(classNames?.title),
|
|
@@ -109,11 +109,11 @@ function Popconfirm(t0) {
|
|
|
109
109
|
$[24] = styles?.title;
|
|
110
110
|
$[25] = title;
|
|
111
111
|
$[26] = titleId;
|
|
112
|
-
$[27] =
|
|
113
|
-
} else
|
|
114
|
-
let
|
|
112
|
+
$[27] = t13;
|
|
113
|
+
} else t13 = $[27];
|
|
114
|
+
let t14;
|
|
115
115
|
if ($[28] !== classNames?.description || $[29] !== description || $[30] !== descriptionId || $[31] !== styles?.description) {
|
|
116
|
-
|
|
116
|
+
t14 = null != description && /*#__PURE__*/ jsx("div", {
|
|
117
117
|
"data-tao-popconfirm-description": "",
|
|
118
118
|
id: descriptionId,
|
|
119
119
|
className: cx(classNames?.description),
|
|
@@ -124,102 +124,104 @@ function Popconfirm(t0) {
|
|
|
124
124
|
$[29] = description;
|
|
125
125
|
$[30] = descriptionId;
|
|
126
126
|
$[31] = styles?.description;
|
|
127
|
-
$[32] =
|
|
128
|
-
} else
|
|
129
|
-
let
|
|
130
|
-
if ($[33] !==
|
|
131
|
-
|
|
127
|
+
$[32] = t14;
|
|
128
|
+
} else t14 = $[32];
|
|
129
|
+
let t15;
|
|
130
|
+
if ($[33] !== t13 || $[34] !== t14) {
|
|
131
|
+
t15 = /*#__PURE__*/ jsxs("div", {
|
|
132
132
|
"data-tao-popconfirm-text": "",
|
|
133
133
|
children: [
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
t13,
|
|
135
|
+
t14
|
|
136
136
|
]
|
|
137
137
|
});
|
|
138
|
-
$[33] =
|
|
139
|
-
$[34] =
|
|
140
|
-
$[35] =
|
|
141
|
-
} else
|
|
142
|
-
let
|
|
143
|
-
if ($[36] !==
|
|
144
|
-
|
|
138
|
+
$[33] = t13;
|
|
139
|
+
$[34] = t14;
|
|
140
|
+
$[35] = t15;
|
|
141
|
+
} else t15 = $[35];
|
|
142
|
+
let t16;
|
|
143
|
+
if ($[36] !== t12 || $[37] !== t15) {
|
|
144
|
+
t16 = /*#__PURE__*/ jsxs("div", {
|
|
145
145
|
"data-tao-popconfirm-message": "",
|
|
146
146
|
children: [
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
t12,
|
|
148
|
+
t15
|
|
149
149
|
]
|
|
150
150
|
});
|
|
151
|
-
$[36] =
|
|
152
|
-
$[37] =
|
|
153
|
-
$[38] =
|
|
154
|
-
} else
|
|
155
|
-
const
|
|
156
|
-
let
|
|
157
|
-
if ($[39] !==
|
|
158
|
-
|
|
159
|
-
$[39] =
|
|
160
|
-
$[40] =
|
|
161
|
-
} else
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
151
|
+
$[36] = t12;
|
|
152
|
+
$[37] = t15;
|
|
153
|
+
$[38] = t16;
|
|
154
|
+
} else t16 = $[38];
|
|
155
|
+
const t17 = classNames?.footer;
|
|
156
|
+
let t18;
|
|
157
|
+
if ($[39] !== t17) {
|
|
158
|
+
t18 = cx(t17);
|
|
159
|
+
$[39] = t17;
|
|
160
|
+
$[40] = t18;
|
|
161
|
+
} else t18 = $[40];
|
|
162
|
+
const t19 = styles?.footer;
|
|
163
|
+
const t20 = void 0 === cancelText ? locale.cancel : cancelText;
|
|
164
|
+
let t21;
|
|
165
|
+
if ($[41] !== cancelButtonProps || $[42] !== handleCancel || $[43] !== t20) {
|
|
166
|
+
t21 = /*#__PURE__*/ jsx(Button, {
|
|
166
167
|
variant: "secondary",
|
|
167
168
|
size: "small",
|
|
168
169
|
onClick: handleCancel,
|
|
169
170
|
...cancelButtonProps,
|
|
170
|
-
children:
|
|
171
|
+
children: t20
|
|
171
172
|
});
|
|
172
173
|
$[41] = cancelButtonProps;
|
|
173
|
-
$[42] =
|
|
174
|
-
$[43] =
|
|
175
|
-
$[44] =
|
|
176
|
-
} else
|
|
174
|
+
$[42] = handleCancel;
|
|
175
|
+
$[43] = t20;
|
|
176
|
+
$[44] = t21;
|
|
177
|
+
} else t21 = $[44];
|
|
178
|
+
const t22 = void 0 === okText ? locale.ok : okText;
|
|
177
179
|
let t23;
|
|
178
|
-
if ($[45] !== handleConfirm || $[46] !== okButtonProps || $[47] !==
|
|
180
|
+
if ($[45] !== handleConfirm || $[46] !== okButtonProps || $[47] !== t22) {
|
|
179
181
|
t23 = /*#__PURE__*/ jsx(Button, {
|
|
180
182
|
variant: "primary",
|
|
181
183
|
size: "small",
|
|
182
184
|
onClick: handleConfirm,
|
|
183
185
|
...okButtonProps,
|
|
184
|
-
children:
|
|
186
|
+
children: t22
|
|
185
187
|
});
|
|
186
188
|
$[45] = handleConfirm;
|
|
187
189
|
$[46] = okButtonProps;
|
|
188
|
-
$[47] =
|
|
190
|
+
$[47] = t22;
|
|
189
191
|
$[48] = t23;
|
|
190
192
|
} else t23 = $[48];
|
|
191
193
|
let t24;
|
|
192
|
-
if ($[49] !==
|
|
194
|
+
if ($[49] !== t18 || $[50] !== t19 || $[51] !== t21 || $[52] !== t23) {
|
|
193
195
|
t24 = /*#__PURE__*/ jsxs("div", {
|
|
194
196
|
"data-tao-popconfirm-footer": "",
|
|
195
|
-
className:
|
|
196
|
-
style:
|
|
197
|
+
className: t18,
|
|
198
|
+
style: t19,
|
|
197
199
|
children: [
|
|
198
|
-
|
|
200
|
+
t21,
|
|
199
201
|
t23
|
|
200
202
|
]
|
|
201
203
|
});
|
|
202
|
-
$[49] =
|
|
203
|
-
$[50] =
|
|
204
|
-
$[51] =
|
|
204
|
+
$[49] = t18;
|
|
205
|
+
$[50] = t19;
|
|
206
|
+
$[51] = t21;
|
|
205
207
|
$[52] = t23;
|
|
206
208
|
$[53] = t24;
|
|
207
209
|
} else t24 = $[53];
|
|
208
210
|
let t25;
|
|
209
|
-
if ($[54] !== t11 || $[55] !==
|
|
211
|
+
if ($[54] !== t11 || $[55] !== t16 || $[56] !== t24 || $[57] !== t9) {
|
|
210
212
|
t25 = /*#__PURE__*/ jsxs("div", {
|
|
211
213
|
"data-tao-popconfirm": "",
|
|
212
|
-
className:
|
|
213
|
-
style:
|
|
214
|
+
className: t9,
|
|
215
|
+
style: t11,
|
|
214
216
|
children: [
|
|
215
|
-
|
|
217
|
+
t16,
|
|
216
218
|
t24
|
|
217
219
|
]
|
|
218
220
|
});
|
|
219
221
|
$[54] = t11;
|
|
220
|
-
$[55] =
|
|
221
|
-
$[56] =
|
|
222
|
-
$[57] =
|
|
222
|
+
$[55] = t16;
|
|
223
|
+
$[56] = t24;
|
|
224
|
+
$[57] = t9;
|
|
223
225
|
$[58] = t25;
|
|
224
226
|
} else t25 = $[58];
|
|
225
227
|
const content = t25;
|