@rockshin/tao-ui 0.0.58 → 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 +105 -47
- package/dist/components/auto-complete/auto-complete.js +9 -2
- package/dist/components/calendar/calendar.js +22 -18
- package/dist/components/carousel/carousel.js +27 -14
- 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/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-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/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 +4 -4
- 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/input/input-shared.js +3 -2
- package/dist/components/input/otp.js +114 -110
- package/dist/components/input/password.js +55 -61
- package/dist/components/input/search.js +8 -4
- 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 +1 -0
- package/dist/components/pagination/pagination.js +1 -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/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.js +58 -58
- 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/switch/switch.js +45 -39
- package/dist/components/table/table.js +1 -0
- 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 +67 -40
- 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/format.js +1 -1
- package/dist/number-input/use-number-input.js +166 -321
- 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
|
@@ -254,8 +254,8 @@ const checkbox_Checkbox = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
254
254
|
return t26;
|
|
255
255
|
});
|
|
256
256
|
function CheckboxGroup(props) {
|
|
257
|
-
const $ = c(
|
|
258
|
-
const { options, value, defaultValue, onChange, disabled, size, direction: t0, children } = props;
|
|
257
|
+
const $ = c(59);
|
|
258
|
+
const { options, value, defaultValue, onChange, onBlur, disabled, size, direction: t0, children } = props;
|
|
259
259
|
const direction = void 0 === t0 ? "horizontal" : t0;
|
|
260
260
|
const ctx = useTaoConfig();
|
|
261
261
|
const resolvedDisabled = disabled ?? ctx.disabled ?? false;
|
|
@@ -365,11 +365,12 @@ function CheckboxGroup(props) {
|
|
|
365
365
|
let t17;
|
|
366
366
|
let t18;
|
|
367
367
|
let t19;
|
|
368
|
+
let t20;
|
|
368
369
|
let t9;
|
|
369
|
-
if ($[24] !== children || $[25] !== direction || $[26] !== groupCtxValue || $[27] !==
|
|
370
|
+
if ($[24] !== children || $[25] !== direction || $[26] !== groupCtxValue || $[27] !== onBlur || $[28] !== options || $[29] !== props) {
|
|
370
371
|
const normalizedOptions = options?.map(_temp);
|
|
371
372
|
T0 = CheckboxGroupContext.Provider;
|
|
372
|
-
|
|
373
|
+
t20 = groupCtxValue;
|
|
373
374
|
t9 = root;
|
|
374
375
|
t10 = "";
|
|
375
376
|
t11 = direction;
|
|
@@ -379,41 +380,45 @@ function CheckboxGroup(props) {
|
|
|
379
380
|
t15 = props["aria-describedby"];
|
|
380
381
|
t16 = props["aria-errormessage"];
|
|
381
382
|
t17 = props["aria-invalid"];
|
|
382
|
-
t18 =
|
|
383
|
+
t18 = onBlur;
|
|
384
|
+
t19 = normalizedOptions ? normalizedOptions.map(_temp2) : children;
|
|
383
385
|
$[24] = children;
|
|
384
386
|
$[25] = direction;
|
|
385
387
|
$[26] = groupCtxValue;
|
|
386
|
-
$[27] =
|
|
387
|
-
$[28] =
|
|
388
|
-
$[29] =
|
|
389
|
-
$[30] =
|
|
390
|
-
$[31] =
|
|
391
|
-
$[32] =
|
|
392
|
-
$[33] =
|
|
393
|
-
$[34] =
|
|
394
|
-
$[35] =
|
|
395
|
-
$[36] =
|
|
396
|
-
$[37] =
|
|
397
|
-
$[38] =
|
|
398
|
-
$[39] =
|
|
399
|
-
$[40] =
|
|
388
|
+
$[27] = onBlur;
|
|
389
|
+
$[28] = options;
|
|
390
|
+
$[29] = props;
|
|
391
|
+
$[30] = T0;
|
|
392
|
+
$[31] = t10;
|
|
393
|
+
$[32] = t11;
|
|
394
|
+
$[33] = t12;
|
|
395
|
+
$[34] = t13;
|
|
396
|
+
$[35] = t14;
|
|
397
|
+
$[36] = t15;
|
|
398
|
+
$[37] = t16;
|
|
399
|
+
$[38] = t17;
|
|
400
|
+
$[39] = t18;
|
|
401
|
+
$[40] = t19;
|
|
402
|
+
$[41] = t20;
|
|
403
|
+
$[42] = t9;
|
|
400
404
|
} else {
|
|
401
|
-
T0 = $[
|
|
402
|
-
t10 = $[
|
|
403
|
-
t11 = $[
|
|
404
|
-
t12 = $[
|
|
405
|
-
t13 = $[
|
|
406
|
-
t14 = $[
|
|
407
|
-
t15 = $[
|
|
408
|
-
t16 = $[
|
|
409
|
-
t17 = $[
|
|
410
|
-
t18 = $[
|
|
411
|
-
t19 = $[
|
|
412
|
-
|
|
405
|
+
T0 = $[30];
|
|
406
|
+
t10 = $[31];
|
|
407
|
+
t11 = $[32];
|
|
408
|
+
t12 = $[33];
|
|
409
|
+
t13 = $[34];
|
|
410
|
+
t14 = $[35];
|
|
411
|
+
t15 = $[36];
|
|
412
|
+
t16 = $[37];
|
|
413
|
+
t17 = $[38];
|
|
414
|
+
t18 = $[39];
|
|
415
|
+
t19 = $[40];
|
|
416
|
+
t20 = $[41];
|
|
417
|
+
t9 = $[42];
|
|
413
418
|
}
|
|
414
|
-
let
|
|
415
|
-
if ($[
|
|
416
|
-
|
|
419
|
+
let t21;
|
|
420
|
+
if ($[43] !== t10 || $[44] !== t11 || $[45] !== t12 || $[46] !== t13 || $[47] !== t14 || $[48] !== t15 || $[49] !== t16 || $[50] !== t17 || $[51] !== t18 || $[52] !== t19 || $[53] !== t9) {
|
|
421
|
+
t21 = /*#__PURE__*/ jsx("fieldset", {
|
|
417
422
|
ref: t9,
|
|
418
423
|
"data-tao-checkbox-group": t10,
|
|
419
424
|
"data-tao-direction": t11,
|
|
@@ -423,32 +428,34 @@ function CheckboxGroup(props) {
|
|
|
423
428
|
"aria-describedby": t15,
|
|
424
429
|
"aria-errormessage": t16,
|
|
425
430
|
"aria-invalid": t17,
|
|
426
|
-
|
|
431
|
+
onBlur: t18,
|
|
432
|
+
children: t19
|
|
427
433
|
});
|
|
428
|
-
$[
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
431
|
-
$[
|
|
432
|
-
$[
|
|
433
|
-
$[
|
|
434
|
-
$[
|
|
435
|
-
$[
|
|
436
|
-
$[
|
|
437
|
-
$[
|
|
438
|
-
$[
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
434
|
+
$[43] = t10;
|
|
435
|
+
$[44] = t11;
|
|
436
|
+
$[45] = t12;
|
|
437
|
+
$[46] = t13;
|
|
438
|
+
$[47] = t14;
|
|
439
|
+
$[48] = t15;
|
|
440
|
+
$[49] = t16;
|
|
441
|
+
$[50] = t17;
|
|
442
|
+
$[51] = t18;
|
|
443
|
+
$[52] = t19;
|
|
444
|
+
$[53] = t9;
|
|
445
|
+
$[54] = t21;
|
|
446
|
+
} else t21 = $[54];
|
|
447
|
+
let t22;
|
|
448
|
+
if ($[55] !== T0 || $[56] !== t20 || $[57] !== t21) {
|
|
449
|
+
t22 = /*#__PURE__*/ jsx(T0, {
|
|
450
|
+
value: t20,
|
|
451
|
+
children: t21
|
|
445
452
|
});
|
|
446
|
-
$[
|
|
447
|
-
$[
|
|
448
|
-
$[
|
|
449
|
-
$[
|
|
450
|
-
} else
|
|
451
|
-
return
|
|
453
|
+
$[55] = T0;
|
|
454
|
+
$[56] = t20;
|
|
455
|
+
$[57] = t21;
|
|
456
|
+
$[58] = t22;
|
|
457
|
+
} else t22 = $[58];
|
|
458
|
+
return t22;
|
|
452
459
|
}
|
|
453
460
|
function _temp2(opt_0) {
|
|
454
461
|
return /*#__PURE__*/ jsx(checkbox_Checkbox, {
|