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