@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
|
@@ -6,8 +6,8 @@ import { cx } from "../../utils/semantic.js";
|
|
|
6
6
|
import "./form.css";
|
|
7
7
|
const hasContent = (value)=>null != value && '' !== value && 'boolean' != typeof value;
|
|
8
8
|
function FormFieldView(t0) {
|
|
9
|
-
const $ = c(
|
|
10
|
-
const { formItem, reserveMessage, label, htmlFor, required, error, invalid, warning, description, extra, layout: t1, controlProps, renderControl, children, className, style, classNames, styles } = t0;
|
|
9
|
+
const $ = c(108);
|
|
10
|
+
const { formItem, reserveMessage, label, htmlFor, required, error, nestedErrors, invalid, warning, description, extra, layout: t1, controlProps, renderControl, children, className, style, classNames, styles } = t0;
|
|
11
11
|
const layout = void 0 === t1 ? "vertical" : t1;
|
|
12
12
|
const generatedId = useId();
|
|
13
13
|
const child = /*#__PURE__*/ isValidElement(children) && children.type !== Fragment ? children : null;
|
|
@@ -125,127 +125,192 @@ function FormFieldView(t0) {
|
|
|
125
125
|
$[38] = t11;
|
|
126
126
|
} else t11 = $[38];
|
|
127
127
|
const message = t11;
|
|
128
|
-
|
|
129
|
-
const t12 = classNames?.root;
|
|
128
|
+
let t12;
|
|
130
129
|
let t13;
|
|
131
|
-
|
|
132
|
-
t13 = cx(t12, className);
|
|
133
|
-
$[39] = className;
|
|
134
|
-
$[40] = t12;
|
|
135
|
-
$[41] = t13;
|
|
136
|
-
} else t13 = $[41];
|
|
137
|
-
const t14 = styles?.root;
|
|
130
|
+
let t14;
|
|
138
131
|
let t15;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
...style
|
|
143
|
-
};
|
|
144
|
-
$[42] = style;
|
|
145
|
-
$[43] = t14;
|
|
146
|
-
$[44] = t15;
|
|
147
|
-
} else t15 = $[44];
|
|
148
|
-
const t16 = formItem ? "" : void 0;
|
|
149
|
-
const t17 = hasMessage ? "" : void 0;
|
|
150
|
-
const t18 = "horizontal" === layout ? "horizontal" : void 0;
|
|
132
|
+
let t16;
|
|
133
|
+
let t17;
|
|
134
|
+
let t18;
|
|
151
135
|
let t19;
|
|
152
|
-
|
|
153
|
-
t19 = hasLabel && /*#__PURE__*/ jsxs("label", {
|
|
154
|
-
id: labelId,
|
|
155
|
-
htmlFor: controlId,
|
|
156
|
-
className: classNames?.label,
|
|
157
|
-
style: styles?.label,
|
|
158
|
-
"data-tao-form-label": "",
|
|
159
|
-
children: [
|
|
160
|
-
label,
|
|
161
|
-
required && /*#__PURE__*/ jsx("span", {
|
|
162
|
-
"data-tao-required": "",
|
|
163
|
-
"aria-hidden": "true",
|
|
164
|
-
children: "*"
|
|
165
|
-
})
|
|
166
|
-
]
|
|
167
|
-
});
|
|
168
|
-
$[45] = classNames?.label;
|
|
169
|
-
$[46] = controlId;
|
|
170
|
-
$[47] = hasLabel;
|
|
171
|
-
$[48] = label;
|
|
172
|
-
$[49] = labelId;
|
|
173
|
-
$[50] = required;
|
|
174
|
-
$[51] = styles?.label;
|
|
175
|
-
$[52] = t19;
|
|
176
|
-
} else t19 = $[52];
|
|
177
|
-
const t20 = hasLabel ? label : void 0;
|
|
136
|
+
let t20;
|
|
178
137
|
let t21;
|
|
179
|
-
if ($[
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
$[
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
138
|
+
if ($[39] !== child || $[40] !== className || $[41] !== classNames?.error || $[42] !== classNames?.label || $[43] !== classNames?.root || $[44] !== control || $[45] !== controlId || $[46] !== descriptionMessage || $[47] !== extra || $[48] !== extraId || $[49] !== formItem || $[50] !== hasExtra || $[51] !== hasLabel || $[52] !== label || $[53] !== labelId || $[54] !== layout || $[55] !== message || $[56] !== nestedErrors || $[57] !== renderControl || $[58] !== required || $[59] !== reserveMessage || $[60] !== style || $[61] !== styles?.error || $[62] !== styles?.label || $[63] !== styles?.root) {
|
|
139
|
+
const childErrors = Object.entries(nestedErrors ?? {});
|
|
140
|
+
const hasMessage = formItem && (reserveMessage || null !== message || hasExtra || childErrors.length > 0);
|
|
141
|
+
const t22 = classNames?.root;
|
|
142
|
+
if ($[74] !== className || $[75] !== t22) {
|
|
143
|
+
t15 = cx(t22, className);
|
|
144
|
+
$[74] = className;
|
|
145
|
+
$[75] = t22;
|
|
146
|
+
$[76] = t15;
|
|
147
|
+
} else t15 = $[76];
|
|
148
|
+
const t23 = styles?.root;
|
|
149
|
+
if ($[77] !== style || $[78] !== t23) {
|
|
150
|
+
t16 = {
|
|
151
|
+
...t23,
|
|
152
|
+
...style
|
|
153
|
+
};
|
|
154
|
+
$[77] = style;
|
|
155
|
+
$[78] = t23;
|
|
156
|
+
$[79] = t16;
|
|
157
|
+
} else t16 = $[79];
|
|
158
|
+
t17 = "";
|
|
159
|
+
t18 = formItem ? "" : void 0;
|
|
160
|
+
t19 = hasMessage ? "" : void 0;
|
|
161
|
+
t20 = "horizontal" === layout ? "horizontal" : void 0;
|
|
162
|
+
if ($[80] !== classNames?.label || $[81] !== controlId || $[82] !== hasLabel || $[83] !== label || $[84] !== labelId || $[85] !== required || $[86] !== styles?.label) {
|
|
163
|
+
t21 = hasLabel && /*#__PURE__*/ jsxs("label", {
|
|
164
|
+
id: labelId,
|
|
165
|
+
htmlFor: controlId,
|
|
166
|
+
className: classNames?.label,
|
|
167
|
+
style: styles?.label,
|
|
168
|
+
"data-tao-form-label": "",
|
|
169
|
+
children: [
|
|
170
|
+
label,
|
|
171
|
+
required && /*#__PURE__*/ jsx("span", {
|
|
172
|
+
"data-tao-required": "",
|
|
173
|
+
"aria-hidden": "true",
|
|
174
|
+
children: "*"
|
|
175
|
+
})
|
|
176
|
+
]
|
|
177
|
+
});
|
|
178
|
+
$[80] = classNames?.label;
|
|
179
|
+
$[81] = controlId;
|
|
180
|
+
$[82] = hasLabel;
|
|
181
|
+
$[83] = label;
|
|
182
|
+
$[84] = labelId;
|
|
183
|
+
$[85] = required;
|
|
184
|
+
$[86] = styles?.label;
|
|
185
|
+
$[87] = t21;
|
|
186
|
+
} else t21 = $[87];
|
|
187
|
+
t12 = "";
|
|
188
|
+
const t24 = hasLabel ? label : void 0;
|
|
189
|
+
let t25;
|
|
190
|
+
if ($[88] !== child || $[89] !== control || $[90] !== renderControl) {
|
|
191
|
+
t25 = renderControl && child && /*#__PURE__*/ isValidElement(control) ? renderControl(control) : control;
|
|
192
|
+
$[88] = child;
|
|
193
|
+
$[89] = control;
|
|
194
|
+
$[90] = renderControl;
|
|
195
|
+
$[91] = t25;
|
|
196
|
+
} else t25 = $[91];
|
|
197
|
+
if ($[92] !== t24 || $[93] !== t25) {
|
|
198
|
+
t13 = /*#__PURE__*/ jsx(FieldLabelContext.Provider, {
|
|
199
|
+
value: t24,
|
|
200
|
+
children: t25
|
|
201
|
+
});
|
|
202
|
+
$[92] = t24;
|
|
203
|
+
$[93] = t25;
|
|
204
|
+
$[94] = t13;
|
|
205
|
+
} else t13 = $[94];
|
|
206
|
+
t14 = hasMessage ? /*#__PURE__*/ jsxs("div", {
|
|
199
207
|
"data-tao-form-message": "",
|
|
200
208
|
children: [
|
|
201
209
|
message,
|
|
210
|
+
childErrors.map((t26)=>{
|
|
211
|
+
const [id_0, errors] = t26;
|
|
212
|
+
return /*#__PURE__*/ jsx("div", {
|
|
213
|
+
id: id_0,
|
|
214
|
+
role: "alert",
|
|
215
|
+
className: classNames?.error,
|
|
216
|
+
style: styles?.error,
|
|
217
|
+
"data-tao-form-error": "",
|
|
218
|
+
children: errors.map(_temp)
|
|
219
|
+
}, id_0);
|
|
220
|
+
}),
|
|
202
221
|
hasExtra && descriptionMessage(extraId, extra)
|
|
203
222
|
]
|
|
204
223
|
}) : message;
|
|
205
|
-
$[
|
|
206
|
-
$[
|
|
207
|
-
$[
|
|
208
|
-
$[
|
|
209
|
-
$[
|
|
210
|
-
$[
|
|
211
|
-
$[
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
224
|
+
$[39] = child;
|
|
225
|
+
$[40] = className;
|
|
226
|
+
$[41] = classNames?.error;
|
|
227
|
+
$[42] = classNames?.label;
|
|
228
|
+
$[43] = classNames?.root;
|
|
229
|
+
$[44] = control;
|
|
230
|
+
$[45] = controlId;
|
|
231
|
+
$[46] = descriptionMessage;
|
|
232
|
+
$[47] = extra;
|
|
233
|
+
$[48] = extraId;
|
|
234
|
+
$[49] = formItem;
|
|
235
|
+
$[50] = hasExtra;
|
|
236
|
+
$[51] = hasLabel;
|
|
237
|
+
$[52] = label;
|
|
238
|
+
$[53] = labelId;
|
|
239
|
+
$[54] = layout;
|
|
240
|
+
$[55] = message;
|
|
241
|
+
$[56] = nestedErrors;
|
|
242
|
+
$[57] = renderControl;
|
|
243
|
+
$[58] = required;
|
|
244
|
+
$[59] = reserveMessage;
|
|
245
|
+
$[60] = style;
|
|
246
|
+
$[61] = styles?.error;
|
|
247
|
+
$[62] = styles?.label;
|
|
248
|
+
$[63] = styles?.root;
|
|
249
|
+
$[64] = t12;
|
|
250
|
+
$[65] = t13;
|
|
251
|
+
$[66] = t14;
|
|
252
|
+
$[67] = t15;
|
|
253
|
+
$[68] = t16;
|
|
254
|
+
$[69] = t17;
|
|
255
|
+
$[70] = t18;
|
|
256
|
+
$[71] = t19;
|
|
257
|
+
$[72] = t20;
|
|
258
|
+
$[73] = t21;
|
|
259
|
+
} else {
|
|
260
|
+
t12 = $[64];
|
|
261
|
+
t13 = $[65];
|
|
262
|
+
t14 = $[66];
|
|
263
|
+
t15 = $[67];
|
|
264
|
+
t16 = $[68];
|
|
265
|
+
t17 = $[69];
|
|
266
|
+
t18 = $[70];
|
|
267
|
+
t19 = $[71];
|
|
268
|
+
t20 = $[72];
|
|
269
|
+
t21 = $[73];
|
|
270
|
+
}
|
|
271
|
+
let t22;
|
|
272
|
+
if ($[95] !== t12 || $[96] !== t13 || $[97] !== t14) {
|
|
273
|
+
t22 = /*#__PURE__*/ jsxs("div", {
|
|
274
|
+
"data-tao-form-control": t12,
|
|
217
275
|
children: [
|
|
218
|
-
|
|
219
|
-
|
|
276
|
+
t13,
|
|
277
|
+
t14
|
|
220
278
|
]
|
|
221
279
|
});
|
|
222
|
-
$[
|
|
223
|
-
$[
|
|
224
|
-
$[
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
"data-tao-form-
|
|
233
|
-
"data-tao-form-
|
|
234
|
-
"data-tao-
|
|
280
|
+
$[95] = t12;
|
|
281
|
+
$[96] = t13;
|
|
282
|
+
$[97] = t14;
|
|
283
|
+
$[98] = t22;
|
|
284
|
+
} else t22 = $[98];
|
|
285
|
+
let t23;
|
|
286
|
+
if ($[99] !== t15 || $[100] !== t16 || $[101] !== t17 || $[102] !== t18 || $[103] !== t19 || $[104] !== t20 || $[105] !== t21 || $[106] !== t22) {
|
|
287
|
+
t23 = /*#__PURE__*/ jsxs("div", {
|
|
288
|
+
className: t15,
|
|
289
|
+
style: t16,
|
|
290
|
+
"data-tao-form-field": t17,
|
|
291
|
+
"data-tao-form-item": t18,
|
|
292
|
+
"data-tao-form-feedback": t19,
|
|
293
|
+
"data-tao-layout": t20,
|
|
235
294
|
children: [
|
|
236
|
-
|
|
237
|
-
|
|
295
|
+
t21,
|
|
296
|
+
t22
|
|
238
297
|
]
|
|
239
298
|
});
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
244
|
-
$[
|
|
245
|
-
$[
|
|
246
|
-
$[
|
|
247
|
-
$[
|
|
248
|
-
|
|
249
|
-
|
|
299
|
+
$[99] = t15;
|
|
300
|
+
$[100] = t16;
|
|
301
|
+
$[101] = t17;
|
|
302
|
+
$[102] = t18;
|
|
303
|
+
$[103] = t19;
|
|
304
|
+
$[104] = t20;
|
|
305
|
+
$[105] = t21;
|
|
306
|
+
$[106] = t22;
|
|
307
|
+
$[107] = t23;
|
|
308
|
+
} else t23 = $[107];
|
|
309
|
+
return t23;
|
|
310
|
+
}
|
|
311
|
+
function _temp(error_0) {
|
|
312
|
+
return /*#__PURE__*/ jsx("div", {
|
|
313
|
+
children: error_0
|
|
314
|
+
}, error_0);
|
|
250
315
|
}
|
|
251
316
|
export { FormFieldView };
|
|
@@ -537,7 +537,7 @@ function ImageProgress(t0) {
|
|
|
537
537
|
return t21;
|
|
538
538
|
}
|
|
539
539
|
function ImageBase(props) {
|
|
540
|
-
const $ = c(
|
|
540
|
+
const $ = c(68);
|
|
541
541
|
const { tokenStyle } = useTaoInternalConfig();
|
|
542
542
|
const [internalOpen, setInternalOpen] = useState(false);
|
|
543
543
|
let classNames;
|
|
@@ -587,7 +587,6 @@ function ImageBase(props) {
|
|
|
587
587
|
$[13] = t2;
|
|
588
588
|
} else t2 = $[13];
|
|
589
589
|
const css = t2;
|
|
590
|
-
const { disabled, config, hiddenMask, blurMask, maskCover } = usePreviewOptions(preview, internalOpen);
|
|
591
590
|
let t3;
|
|
592
591
|
if ($[14] !== preview) {
|
|
593
592
|
t3 = "object" == typeof preview ? preview : {};
|
|
@@ -595,158 +594,151 @@ function ImageBase(props) {
|
|
|
595
594
|
$[15] = t3;
|
|
596
595
|
} else t3 = $[15];
|
|
597
596
|
const raw = t3;
|
|
598
|
-
|
|
599
|
-
if ($[16] !== placeholder) {
|
|
600
|
-
t4 = null !== placeholder && "object" == typeof placeholder && !/*#__PURE__*/ isValidElement(placeholder) && "progress" in placeholder;
|
|
601
|
-
$[16] = placeholder;
|
|
602
|
-
$[17] = t4;
|
|
603
|
-
} else t4 = $[17];
|
|
604
|
-
const isProgressConfig = t4;
|
|
597
|
+
const isProgressConfig = null !== placeholder && "object" == typeof placeholder && !/*#__PURE__*/ isValidElement(placeholder) && "progress" in placeholder;
|
|
605
598
|
const progress = isProgressConfig ? placeholder.progress : void 0;
|
|
606
599
|
const showPlaceholder = !!progress || !props.src && (!!placeholder || 0 === placeholder) && !isProgressConfig;
|
|
600
|
+
const { disabled, config, hiddenMask, blurMask, maskCover } = usePreviewOptions(showPlaceholder ? false : preview, internalOpen);
|
|
601
|
+
let t4;
|
|
607
602
|
let t5;
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
if (disabled || void 0 !== config.open || showPlaceholder) setInternalOpen(false);
|
|
603
|
+
if ($[16] !== config.open || $[17] !== disabled) {
|
|
604
|
+
t4 = ()=>{
|
|
605
|
+
if (disabled || void 0 !== config.open) setInternalOpen(false);
|
|
612
606
|
};
|
|
613
|
-
|
|
607
|
+
t5 = [
|
|
614
608
|
disabled,
|
|
615
|
-
config.open
|
|
616
|
-
showPlaceholder
|
|
609
|
+
config.open
|
|
617
610
|
];
|
|
618
|
-
$[
|
|
619
|
-
$[
|
|
620
|
-
$[
|
|
621
|
-
$[
|
|
622
|
-
$[22] = t6;
|
|
611
|
+
$[16] = config.open;
|
|
612
|
+
$[17] = disabled;
|
|
613
|
+
$[18] = t4;
|
|
614
|
+
$[19] = t5;
|
|
623
615
|
} else {
|
|
624
|
-
|
|
625
|
-
|
|
616
|
+
t4 = $[18];
|
|
617
|
+
t5 = $[19];
|
|
626
618
|
}
|
|
627
|
-
useEffect(
|
|
619
|
+
useEffect(t4, t5);
|
|
628
620
|
if (showPlaceholder) {
|
|
629
|
-
let
|
|
630
|
-
if ($[
|
|
631
|
-
|
|
632
|
-
$[
|
|
633
|
-
$[
|
|
634
|
-
} else
|
|
635
|
-
const
|
|
636
|
-
let
|
|
637
|
-
if ($[
|
|
638
|
-
|
|
621
|
+
let t6;
|
|
622
|
+
if ($[20] !== progress) {
|
|
623
|
+
t6 = true === progress ? {} : progress || void 0;
|
|
624
|
+
$[20] = progress;
|
|
625
|
+
$[21] = t6;
|
|
626
|
+
} else t6 = $[21];
|
|
627
|
+
const t7 = isProgressConfig ? void 0 : placeholder;
|
|
628
|
+
let t8;
|
|
629
|
+
if ($[22] !== props || $[23] !== t6 || $[24] !== t7) {
|
|
630
|
+
t8 = /*#__PURE__*/ jsx(ImageProgress, {
|
|
639
631
|
props: props,
|
|
640
|
-
progress:
|
|
641
|
-
placeholder:
|
|
632
|
+
progress: t6,
|
|
633
|
+
placeholder: t7
|
|
642
634
|
});
|
|
643
|
-
$[
|
|
644
|
-
$[
|
|
645
|
-
$[
|
|
646
|
-
$[
|
|
647
|
-
} else
|
|
648
|
-
return
|
|
635
|
+
$[22] = props;
|
|
636
|
+
$[23] = t6;
|
|
637
|
+
$[24] = t7;
|
|
638
|
+
$[25] = t8;
|
|
639
|
+
} else t8 = $[25];
|
|
640
|
+
return t8;
|
|
649
641
|
}
|
|
650
|
-
const
|
|
642
|
+
const t6 = classes?.cover;
|
|
643
|
+
let t7;
|
|
644
|
+
if ($[26] !== raw.maskClassName || $[27] !== t6) {
|
|
645
|
+
t7 = cx(t6, raw.maskClassName);
|
|
646
|
+
$[26] = raw.maskClassName;
|
|
647
|
+
$[27] = t6;
|
|
648
|
+
$[28] = t7;
|
|
649
|
+
} else t7 = $[28];
|
|
651
650
|
let t8;
|
|
652
|
-
if ($[29] !==
|
|
653
|
-
t8 =
|
|
654
|
-
|
|
651
|
+
if ($[29] !== classes || $[30] !== t7) {
|
|
652
|
+
t8 = {
|
|
653
|
+
...classes,
|
|
654
|
+
cover: t7
|
|
655
|
+
};
|
|
656
|
+
$[29] = classes;
|
|
655
657
|
$[30] = t7;
|
|
656
658
|
$[31] = t8;
|
|
657
659
|
} else t8 = $[31];
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
cover: t8
|
|
663
|
-
};
|
|
664
|
-
$[32] = classes;
|
|
665
|
-
$[33] = t8;
|
|
666
|
-
$[34] = t9;
|
|
667
|
-
} else t9 = $[34];
|
|
668
|
-
const t10 = css?.root;
|
|
669
|
-
let t11;
|
|
670
|
-
if ($[35] !== t10 || $[36] !== tokenStyle || $[37] !== wrapperStyle) {
|
|
671
|
-
t11 = {
|
|
660
|
+
const t9 = css?.root;
|
|
661
|
+
let t10;
|
|
662
|
+
if ($[32] !== t9 || $[33] !== tokenStyle || $[34] !== wrapperStyle) {
|
|
663
|
+
t10 = {
|
|
672
664
|
...tokenStyle,
|
|
673
665
|
...wrapperStyle,
|
|
674
|
-
...
|
|
666
|
+
...t9
|
|
675
667
|
};
|
|
668
|
+
$[32] = t9;
|
|
669
|
+
$[33] = tokenStyle;
|
|
670
|
+
$[34] = wrapperStyle;
|
|
676
671
|
$[35] = t10;
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
let t14;
|
|
684
|
-
if ($[39] !== t13 || $[40] !== tokenStyle) {
|
|
685
|
-
t14 = {
|
|
672
|
+
} else t10 = $[35];
|
|
673
|
+
const t11 = css?.popup;
|
|
674
|
+
const t12 = css?.popup?.root;
|
|
675
|
+
let t13;
|
|
676
|
+
if ($[36] !== t12 || $[37] !== tokenStyle) {
|
|
677
|
+
t13 = {
|
|
686
678
|
...tokenStyle,
|
|
687
|
-
...
|
|
679
|
+
...t12
|
|
688
680
|
};
|
|
689
|
-
$[
|
|
690
|
-
$[
|
|
691
|
-
$[
|
|
692
|
-
} else
|
|
693
|
-
let
|
|
694
|
-
if ($[
|
|
695
|
-
|
|
681
|
+
$[36] = t12;
|
|
682
|
+
$[37] = tokenStyle;
|
|
683
|
+
$[38] = t13;
|
|
684
|
+
} else t13 = $[38];
|
|
685
|
+
let t14;
|
|
686
|
+
if ($[39] !== hiddenMask) {
|
|
687
|
+
t14 = hiddenMask ? {
|
|
696
688
|
background: "transparent"
|
|
697
689
|
} : {};
|
|
698
|
-
$[
|
|
699
|
-
$[
|
|
700
|
-
} else
|
|
701
|
-
let
|
|
702
|
-
if ($[
|
|
703
|
-
|
|
690
|
+
$[39] = hiddenMask;
|
|
691
|
+
$[40] = t14;
|
|
692
|
+
} else t14 = $[40];
|
|
693
|
+
let t15;
|
|
694
|
+
if ($[41] !== blurMask) {
|
|
695
|
+
t15 = blurMask ? {
|
|
704
696
|
backdropFilter: "blur(4px)"
|
|
705
697
|
} : {};
|
|
706
|
-
$[
|
|
698
|
+
$[41] = blurMask;
|
|
699
|
+
$[42] = t15;
|
|
700
|
+
} else t15 = $[42];
|
|
701
|
+
const t16 = css?.popup?.mask;
|
|
702
|
+
let t17;
|
|
703
|
+
if ($[43] !== t14 || $[44] !== t15 || $[45] !== t16) {
|
|
704
|
+
t17 = {
|
|
705
|
+
...t14,
|
|
706
|
+
...t15,
|
|
707
|
+
...t16
|
|
708
|
+
};
|
|
709
|
+
$[43] = t14;
|
|
710
|
+
$[44] = t15;
|
|
707
711
|
$[45] = t16;
|
|
708
|
-
|
|
709
|
-
|
|
712
|
+
$[46] = t17;
|
|
713
|
+
} else t17 = $[46];
|
|
710
714
|
let t18;
|
|
711
|
-
if ($[
|
|
715
|
+
if ($[47] !== t11 || $[48] !== t13 || $[49] !== t17) {
|
|
712
716
|
t18 = {
|
|
713
|
-
...
|
|
714
|
-
|
|
715
|
-
|
|
717
|
+
...t11,
|
|
718
|
+
root: t13,
|
|
719
|
+
mask: t17
|
|
716
720
|
};
|
|
717
|
-
$[
|
|
718
|
-
$[
|
|
719
|
-
$[
|
|
720
|
-
$[
|
|
721
|
-
} else t18 = $[
|
|
721
|
+
$[47] = t11;
|
|
722
|
+
$[48] = t13;
|
|
723
|
+
$[49] = t17;
|
|
724
|
+
$[50] = t18;
|
|
725
|
+
} else t18 = $[50];
|
|
722
726
|
let t19;
|
|
723
|
-
if ($[
|
|
727
|
+
if ($[51] !== css || $[52] !== t10 || $[53] !== t18) {
|
|
724
728
|
t19 = {
|
|
725
|
-
...t12,
|
|
726
|
-
root: t14,
|
|
727
|
-
mask: t18
|
|
728
|
-
};
|
|
729
|
-
$[50] = t12;
|
|
730
|
-
$[51] = t14;
|
|
731
|
-
$[52] = t18;
|
|
732
|
-
$[53] = t19;
|
|
733
|
-
} else t19 = $[53];
|
|
734
|
-
let t20;
|
|
735
|
-
if ($[54] !== css || $[55] !== t11 || $[56] !== t19) {
|
|
736
|
-
t20 = {
|
|
737
729
|
...css,
|
|
738
|
-
root:
|
|
739
|
-
popup:
|
|
730
|
+
root: t10,
|
|
731
|
+
popup: t18
|
|
740
732
|
};
|
|
741
|
-
$[
|
|
742
|
-
$[
|
|
743
|
-
$[
|
|
744
|
-
$[
|
|
745
|
-
} else
|
|
746
|
-
const
|
|
747
|
-
let
|
|
748
|
-
if ($[
|
|
749
|
-
|
|
733
|
+
$[51] = css;
|
|
734
|
+
$[52] = t10;
|
|
735
|
+
$[53] = t18;
|
|
736
|
+
$[54] = t19;
|
|
737
|
+
} else t19 = $[54];
|
|
738
|
+
const t20 = isProgressConfig ? void 0 : placeholder;
|
|
739
|
+
let t21;
|
|
740
|
+
if ($[55] !== config || $[56] !== disabled || $[57] !== internalOpen || $[58] !== maskCover || $[59] !== raw) {
|
|
741
|
+
t21 = disabled ? false : {
|
|
750
742
|
...config,
|
|
751
743
|
open: config.open ?? internalOpen,
|
|
752
744
|
cover: raw.cover ?? maskCover ?? /*#__PURE__*/ jsx("span", {
|
|
@@ -759,37 +751,37 @@ function ImageBase(props) {
|
|
|
759
751
|
else raw.onVisibleChange?.(open, !open);
|
|
760
752
|
}
|
|
761
753
|
};
|
|
762
|
-
$[
|
|
763
|
-
$[
|
|
764
|
-
$[
|
|
765
|
-
$[
|
|
766
|
-
$[
|
|
767
|
-
$[
|
|
768
|
-
} else
|
|
769
|
-
let
|
|
770
|
-
if ($[
|
|
771
|
-
|
|
754
|
+
$[55] = config;
|
|
755
|
+
$[56] = disabled;
|
|
756
|
+
$[57] = internalOpen;
|
|
757
|
+
$[58] = maskCover;
|
|
758
|
+
$[59] = raw;
|
|
759
|
+
$[60] = t21;
|
|
760
|
+
} else t21 = $[60];
|
|
761
|
+
let t22;
|
|
762
|
+
if ($[61] !== prefixCls || $[62] !== rest || $[63] !== t19 || $[64] !== t20 || $[65] !== t21 || $[66] !== t8) {
|
|
763
|
+
t22 = /*#__PURE__*/ jsx("span", {
|
|
772
764
|
"data-tao-image-inline": "",
|
|
773
765
|
children: /*#__PURE__*/ jsx(RcImageComponent, {
|
|
774
766
|
...rest,
|
|
775
767
|
"data-tao-image": "",
|
|
776
768
|
prefixCls: prefixCls,
|
|
777
769
|
previewPrefixCls: "tao-image-preview",
|
|
778
|
-
classNames:
|
|
779
|
-
styles:
|
|
780
|
-
placeholder:
|
|
781
|
-
preview:
|
|
770
|
+
classNames: t8,
|
|
771
|
+
styles: t19,
|
|
772
|
+
placeholder: t20,
|
|
773
|
+
preview: t21
|
|
782
774
|
})
|
|
783
775
|
});
|
|
784
|
-
$[
|
|
785
|
-
$[
|
|
786
|
-
$[
|
|
787
|
-
$[
|
|
788
|
-
$[
|
|
789
|
-
$[
|
|
790
|
-
$[
|
|
791
|
-
} else
|
|
792
|
-
return
|
|
776
|
+
$[61] = prefixCls;
|
|
777
|
+
$[62] = rest;
|
|
778
|
+
$[63] = t19;
|
|
779
|
+
$[64] = t20;
|
|
780
|
+
$[65] = t21;
|
|
781
|
+
$[66] = t8;
|
|
782
|
+
$[67] = t22;
|
|
783
|
+
} else t22 = $[67];
|
|
784
|
+
return t22;
|
|
793
785
|
}
|
|
794
786
|
function ImagePreviewGroup(props) {
|
|
795
787
|
const $ = c(53);
|