@tu-design/vue 0.5.5 → 0.5.7

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 (56) hide show
  1. package/dist/index.d.mts +89 -87
  2. package/dist/index.mjs +54 -35
  3. package/dist/registry/vue/alert-dialog.json +1 -1
  4. package/dist/registry/vue/alert.json +1 -1
  5. package/dist/registry/vue/avatar-group.json +1 -1
  6. package/dist/registry/vue/avatar.json +2 -2
  7. package/dist/registry/vue/badge.json +1 -1
  8. package/dist/registry/vue/button.json +1 -1
  9. package/dist/registry/vue/calendar.json +1 -1
  10. package/dist/registry/vue/card.json +1 -1
  11. package/dist/registry/vue/cascader.json +1 -1
  12. package/dist/registry/vue/checkbox.json +1 -1
  13. package/dist/registry/vue/context-menu.json +1 -1
  14. package/dist/registry/vue/currency-input.json +1 -1
  15. package/dist/registry/vue/date-picker.json +1 -1
  16. package/dist/registry/vue/date-range-picker.json +1 -1
  17. package/dist/registry/vue/date-shared.json +2 -2
  18. package/dist/registry/vue/dialog.json +1 -1
  19. package/dist/registry/vue/drawer.json +1 -1
  20. package/dist/registry/vue/dropdown-menu.json +1 -1
  21. package/dist/registry/vue/empty.json +1 -1
  22. package/dist/registry/vue/form-render.json +1 -1
  23. package/dist/registry/vue/form.json +1 -1
  24. package/dist/registry/vue/icon-shared.json +1 -1
  25. package/dist/registry/vue/input.json +1 -1
  26. package/dist/registry/vue/label.json +1 -1
  27. package/dist/registry/vue/month-picker.json +1 -1
  28. package/dist/registry/vue/number-input.json +1 -1
  29. package/dist/registry/vue/overlay-shared.json +1 -1
  30. package/dist/registry/vue/password-input.json +1 -1
  31. package/dist/registry/vue/pin-input.json +1 -1
  32. package/dist/registry/vue/popconfirm.json +1 -1
  33. package/dist/registry/vue/popover.json +2 -2
  34. package/dist/registry/vue/progress.json +1 -1
  35. package/dist/registry/vue/radio-group.json +1 -1
  36. package/dist/registry/vue/registry.json +52 -52
  37. package/dist/registry/vue/select.json +2 -2
  38. package/dist/registry/vue/separator.json +1 -1
  39. package/dist/registry/vue/skeleton.json +1 -1
  40. package/dist/registry/vue/slider.json +1 -1
  41. package/dist/registry/vue/slot.json +2 -1
  42. package/dist/registry/vue/spin.json +1 -1
  43. package/dist/registry/vue/switch.json +1 -1
  44. package/dist/registry/vue/table-render.json +3 -3
  45. package/dist/registry/vue/tabs.json +2 -1
  46. package/dist/registry/vue/textarea.json +1 -1
  47. package/dist/registry/vue/timeline.json +1 -1
  48. package/dist/registry/vue/toast.json +1 -1
  49. package/dist/registry/vue/tokens.json +1 -1
  50. package/dist/registry/vue/tooltip.json +1 -1
  51. package/dist/registry/vue/tree-select.json +1 -1
  52. package/dist/registry/vue/tree-shared.json +1 -1
  53. package/dist/registry/vue/utils.json +1 -1
  54. package/dist/registry/vue/week-picker.json +1 -1
  55. package/dist/registry/vue/year-picker.json +1 -1
  56. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -279,7 +279,7 @@ const _sfc_main$19 = defineComponent({
279
279
  });
280
280
  //#endregion
281
281
  //#region src/components/form/FormDescription.vue
282
- const _hoisted_1$31 = ["id"];
282
+ const _hoisted_1$32 = ["id"];
283
283
  const _sfc_main$20 = /*@__PURE__*/ defineComponent({
284
284
  __name: "FormDescription",
285
285
  props: { class: {} },
@@ -293,7 +293,7 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
293
293
  return openBlock(), createElementBlock("p", {
294
294
  id: unref(itemCtx)?.descriptionId,
295
295
  class: normalizeClass(unref(cn)("text-muted-foreground text-sm", props.class))
296
- }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$31);
296
+ }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$32);
297
297
  };
298
298
  }
299
299
  });
@@ -344,7 +344,7 @@ const _sfc_main$21 = defineComponent({
344
344
  });
345
345
  //#endregion
346
346
  //#region src/components/form/FormItem.vue
347
- const _hoisted_1$30 = ["data-invalid"];
347
+ const _hoisted_1$31 = ["data-invalid"];
348
348
  const _sfc_main$22 = /*@__PURE__*/ defineComponent({
349
349
  __name: "FormItem",
350
350
  setup(__props) {
@@ -369,13 +369,13 @@ const _sfc_main$22 = /*@__PURE__*/ defineComponent({
369
369
  return openBlock(), createElementBlock("div", {
370
370
  class: normalizeClass(unref(cn)("group flex flex-col gap-1.5")),
371
371
  "data-invalid": isInvalid.value ? "" : void 0
372
- }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$30);
372
+ }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$31);
373
373
  };
374
374
  }
375
375
  });
376
376
  //#endregion
377
377
  //#region src/components/form/FormLabel.vue
378
- const _hoisted_1$29 = ["for", "data-invalid"];
378
+ const _hoisted_1$30 = ["for", "data-invalid"];
379
379
  const _sfc_main$23 = /*@__PURE__*/ defineComponent({
380
380
  __name: "FormLabel",
381
381
  props: { class: {} },
@@ -389,13 +389,13 @@ const _sfc_main$23 = /*@__PURE__*/ defineComponent({
389
389
  for: unref(itemCtx)?.controlId,
390
390
  "data-invalid": isInvalid.value ? "" : void 0,
391
391
  class: normalizeClass(unref(cn)("text-sm font-medium leading-none data-invalid:text-destructive", props.class))
392
- }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$29);
392
+ }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$30);
393
393
  };
394
394
  }
395
395
  });
396
396
  //#endregion
397
397
  //#region src/components/form/FormMessage.vue
398
- const _hoisted_1$28 = ["id"];
398
+ const _hoisted_1$29 = ["id"];
399
399
  const _sfc_main$24 = /*@__PURE__*/ defineComponent({
400
400
  __name: "FormMessage",
401
401
  props: {
@@ -420,7 +420,7 @@ const _sfc_main$24 = /*@__PURE__*/ defineComponent({
420
420
  key: 0,
421
421
  id: unref(itemCtx)?.messageId,
422
422
  class: normalizeClass(unref(cn)("text-destructive text-sm", props.class))
423
- }, toDisplayString(errorText.value), 11, _hoisted_1$28)) : createCommentVNode("v-if", true);
423
+ }, toDisplayString(errorText.value), 11, _hoisted_1$29)) : createCommentVNode("v-if", true);
424
424
  };
425
425
  }
426
426
  });
@@ -492,7 +492,7 @@ const _sfc_main$64 = defineComponent({
492
492
  });
493
493
  //#endregion
494
494
  //#region src/components/checkbox/Checkbox.vue
495
- const _hoisted_1$27 = {
495
+ const _hoisted_1$28 = {
496
496
  key: 0,
497
497
  viewBox: "0 0 24 24",
498
498
  fill: "none",
@@ -565,7 +565,7 @@ const _sfc_main$9 = /*@__PURE__*/ defineComponent({
565
565
  createVNode(unref(Checkbox).HiddenInput),
566
566
  createVNode(unref(Checkbox).Control, { class: "border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 peer size-4 shrink-0 rounded-[4px] border bg-transparent shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50" }, {
567
567
  default: withCtx(() => [createVNode(unref(Checkbox).Indicator, { class: "flex items-center justify-center text-current" }, {
568
- default: withCtx(() => [createCommentVNode(" 半选态(data-state=indeterminate)显示短横线,选中态显示对勾 "), isChecked.value === "indeterminate" ? (openBlock(), createElementBlock("svg", _hoisted_1$27, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M5 12h14" }, null, -1)])])) : (openBlock(), createElementBlock("svg", _hoisted_2$18, [..._cache[1] || (_cache[1] = [createElementVNode("path", { d: "M20 6 9 17l-5-5" }, null, -1)])]))]),
568
+ default: withCtx(() => [createCommentVNode(" 半选态(data-state=indeterminate)显示短横线,选中态显示对勾 "), isChecked.value === "indeterminate" ? (openBlock(), createElementBlock("svg", _hoisted_1$28, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M5 12h14" }, null, -1)])])) : (openBlock(), createElementBlock("svg", _hoisted_2$18, [..._cache[1] || (_cache[1] = [createElementVNode("path", { d: "M20 6 9 17l-5-5" }, null, -1)])]))]),
569
569
  _: 1
570
570
  })]),
571
571
  _: 1
@@ -750,7 +750,7 @@ function formatCurrency(value, valueUnit, labelUnit) {
750
750
  }
751
751
  //#endregion
752
752
  //#region src/components/currency-input/CurrencyInput.vue
753
- const _hoisted_1$26 = ["data-invalid"];
753
+ const _hoisted_1$27 = ["data-invalid"];
754
754
  const _hoisted_2$17 = [
755
755
  "value",
756
756
  "placeholder",
@@ -829,7 +829,7 @@ const _sfc_main$11 = /*@__PURE__*/ defineComponent({
829
829
  }), null, 16, _hoisted_2$17), createElementVNode("div", {
830
830
  "aria-hidden": "true",
831
831
  class: normalizeClass(unref(cn)("border-input text-muted-foreground flex h-full shrink-0 items-center border-l bg-muted/40 px-3 text-sm", props.disabled && "opacity-50"))
832
- }, toDisplayString(props.labelUnit), 3)], 10, _hoisted_1$26);
832
+ }, toDisplayString(props.labelUnit), 3)], 10, _hoisted_1$27);
833
833
  };
834
834
  }
835
835
  });
@@ -943,7 +943,7 @@ var export_helper_default = (sfc, props) => {
943
943
  //#endregion
944
944
  //#region src/components/icon-shared/ChevronIcon.vue
945
945
  const _sfc_main$63 = {};
946
- const _hoisted_1$25 = {
946
+ const _hoisted_1$26 = {
947
947
  viewBox: "0 0 24 24",
948
948
  fill: "none",
949
949
  stroke: "currentColor",
@@ -953,7 +953,7 @@ const _hoisted_1$25 = {
953
953
  "aria-hidden": "true"
954
954
  };
955
955
  function _sfc_render$2(_ctx, _cache) {
956
- return openBlock(), createElementBlock("svg", _hoisted_1$25, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "m9 18 6-6-6-6" }, null, -1)])]);
956
+ return openBlock(), createElementBlock("svg", _hoisted_1$26, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "m9 18 6-6-6-6" }, null, -1)])]);
957
957
  }
958
958
  var ChevronIcon_default = /*#__PURE__*/ export_helper_default(_sfc_main$63, [["render", _sfc_render$2]]);
959
959
  //#endregion
@@ -1023,7 +1023,7 @@ view: {
1023
1023
  });
1024
1024
  //#endregion
1025
1025
  //#region src/components/calendar/CalendarBody.vue
1026
- const _hoisted_1$24 = { class: "flex gap-6" };
1026
+ const _hoisted_1$25 = { class: "flex gap-6" };
1027
1027
  const dayTriggerCls = "group relative flex h-8 w-full cursor-pointer items-center justify-center outline-none data-[outside-view]:pointer-events-none data-[disabled]:pointer-events-none data-[in-range]:not-data-[outside-view]:not-data-[range-start]:not-data-[range-end]:bg-primary/10 data-[range-start]:rounded-l-[3px] data-[range-end]:rounded-r-[3px] data-[week-selected]:bg-primary data-[week-selected]:data-[outside-view]:bg-primary/40 data-[week-selected]:hover:data-[outside-view]:bg-primary/40 group-hover/week-row:not-data-[week-selected]:not-data-[outside-view]:bg-primary/10 group-hover/week-row:data-[outside-view]:not-data-[week-selected]:bg-primary/5";
1028
1028
  const dayDotCls = "flex size-6 items-center justify-center rounded-[3px] text-sm transition-colors group-hover:not-group-data-[week-selected]:bg-accent group-data-[focus]:not-group-data-[outside-view]:not-group-data-[week-selected]:bg-accent group-data-[selected]:not-group-data-[week-selected]:not-group-data-[outside-view]:bg-primary group-data-[selected]:not-group-data-[week-selected]:not-group-data-[outside-view]:font-medium group-data-[selected]:not-group-data-[week-selected]:not-group-data-[outside-view]:text-primary-foreground group-data-[week-selected]:bg-transparent group-data-[week-selected]:font-medium group-data-[week-selected]:text-primary-foreground group-data-[week-selected]:hover:bg-white/20 group-data-[today]:not-group-data-[selected]:text-primary group-data-[today]:not-group-data-[selected]:font-semibold group-data-[unavailable]:line-through group-data-[unavailable]:opacity-30 group-data-[disabled]:opacity-40 group-data-[outside-view]:opacity-30";
1029
1029
  const cellCls = "flex h-9 w-full items-center justify-center rounded-[3px] text-sm outline-none hover:bg-accent data-[selected]:bg-primary data-[selected]:font-medium data-[selected]:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-40";
@@ -1083,7 +1083,7 @@ const _sfc_main$61 = /*@__PURE__*/ defineComponent({
1083
1083
  key: "1"
1084
1084
  } : void 0]), 1024),
1085
1085
  createVNode(unref(DatePicker).Context, null, {
1086
- default: withCtx((context) => [createElementVNode("div", _hoisted_1$24, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.numOfMonths, (i) => {
1086
+ default: withCtx((context) => [createElementVNode("div", _hoisted_1$25, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.numOfMonths, (i) => {
1087
1087
  return openBlock(), createBlock(unref(DatePicker).Table, {
1088
1088
  key: i,
1089
1089
  class: normalizeClass(tableCls)
@@ -1469,7 +1469,7 @@ const _sfc_main$6 = /*@__PURE__*/ defineComponent({
1469
1469
  //#endregion
1470
1470
  //#region src/components/icon-shared/CalendarIcon.vue
1471
1471
  const _sfc_main$60 = {};
1472
- const _hoisted_1$23 = {
1472
+ const _hoisted_1$24 = {
1473
1473
  viewBox: "0 0 24 24",
1474
1474
  fill: "none",
1475
1475
  stroke: "currentColor",
@@ -1479,7 +1479,7 @@ const _hoisted_1$23 = {
1479
1479
  "aria-hidden": "true"
1480
1480
  };
1481
1481
  function _sfc_render$1(_ctx, _cache) {
1482
- return openBlock(), createElementBlock("svg", _hoisted_1$23, [..._cache[0] || (_cache[0] = [
1482
+ return openBlock(), createElementBlock("svg", _hoisted_1$24, [..._cache[0] || (_cache[0] = [
1483
1483
  createElementVNode("rect", {
1484
1484
  width: "18",
1485
1485
  height: "18",
@@ -1496,7 +1496,7 @@ var CalendarIcon_default = /*#__PURE__*/ export_helper_default(_sfc_main$60, [["
1496
1496
  //#endregion
1497
1497
  //#region src/components/icon-shared/CloseIcon.vue
1498
1498
  const _sfc_main$59 = {};
1499
- const _hoisted_1$22 = {
1499
+ const _hoisted_1$23 = {
1500
1500
  viewBox: "0 0 24 24",
1501
1501
  fill: "none",
1502
1502
  stroke: "currentColor",
@@ -1506,7 +1506,7 @@ const _hoisted_1$22 = {
1506
1506
  "aria-hidden": "true"
1507
1507
  };
1508
1508
  function _sfc_render(_ctx, _cache) {
1509
- return openBlock(), createElementBlock("svg", _hoisted_1$22, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M18 6 6 18" }, null, -1), createElementVNode("path", { d: "m6 6 12 12" }, null, -1)])]);
1509
+ return openBlock(), createElementBlock("svg", _hoisted_1$23, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M18 6 6 18" }, null, -1), createElementVNode("path", { d: "m6 6 12 12" }, null, -1)])]);
1510
1510
  }
1511
1511
  var CloseIcon_default = /*#__PURE__*/ export_helper_default(_sfc_main$59, [["render", _sfc_render]]);
1512
1512
  //#endregion
@@ -2425,7 +2425,7 @@ const _sfc_main$30 = /*@__PURE__*/ defineComponent({
2425
2425
  });
2426
2426
  //#endregion
2427
2427
  //#region src/components/password-input/PasswordInput.vue
2428
- const _hoisted_1$21 = ["data-invalid"];
2428
+ const _hoisted_1$22 = ["data-invalid"];
2429
2429
  const _hoisted_2$16 = [
2430
2430
  "type",
2431
2431
  "value",
@@ -2548,13 +2548,13 @@ const _sfc_main$31 = /*@__PURE__*/ defineComponent({
2548
2548
  cx: "12",
2549
2549
  cy: "12",
2550
2550
  r: "3"
2551
- }, null, -1)])]))])], 8, _hoisted_3$12)], 10, _hoisted_1$21);
2551
+ }, null, -1)])]))])], 8, _hoisted_3$12)], 10, _hoisted_1$22);
2552
2552
  };
2553
2553
  }
2554
2554
  });
2555
2555
  //#endregion
2556
2556
  //#region src/components/textarea/Textarea.vue
2557
- const _hoisted_1$20 = ["aria-invalid"];
2557
+ const _hoisted_1$21 = ["aria-invalid"];
2558
2558
  const _sfc_main$46 = /*@__PURE__*/ defineComponent({
2559
2559
  __name: "Textarea",
2560
2560
  props: /*@__PURE__*/ mergeModels({
@@ -2573,7 +2573,7 @@ const _sfc_main$46 = /*@__PURE__*/ defineComponent({
2573
2573
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
2574
2574
  "aria-invalid": props.invalid ? "true" : void 0,
2575
2575
  class: normalizeClass(unref(cn)("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive md:text-sm", props.class))
2576
- }, null, 10, _hoisted_1$20)), [[vModelText, modelValue.value]]);
2576
+ }, null, 10, _hoisted_1$21)), [[vModelText, modelValue.value]]);
2577
2577
  };
2578
2578
  }
2579
2579
  });
@@ -2940,7 +2940,7 @@ function renderWeekPickerItem(options = {}) {
2940
2940
  }
2941
2941
  //#endregion
2942
2942
  //#region src/components/input/Input.vue
2943
- const _hoisted_1$19 = ["aria-invalid"];
2943
+ const _hoisted_1$20 = ["aria-invalid"];
2944
2944
  const _sfc_main$27 = /*@__PURE__*/ defineComponent({
2945
2945
  __name: "Input",
2946
2946
  props: /*@__PURE__*/ mergeModels({
@@ -2959,7 +2959,7 @@ const _sfc_main$27 = /*@__PURE__*/ defineComponent({
2959
2959
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
2960
2960
  "aria-invalid": props.invalid ? "true" : void 0,
2961
2961
  class: normalizeClass(unref(cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive", props.class))
2962
- }, null, 10, _hoisted_1$19)), [[vModelText, modelValue.value]]);
2962
+ }, null, 10, _hoisted_1$20)), [[vModelText, modelValue.value]]);
2963
2963
  };
2964
2964
  }
2965
2965
  });
@@ -3033,6 +3033,7 @@ function normalizeSelectItem(item) {
3033
3033
  }
3034
3034
  //#endregion
3035
3035
  //#region src/components/select/Select.vue
3036
+ const _hoisted_1$19 = { class: "min-w-0 flex-1 truncate" };
3036
3037
  const _sfc_main$37 = /*@__PURE__*/ defineComponent({
3037
3038
  __name: "Select",
3038
3039
  props: {
@@ -3120,7 +3121,10 @@ const _sfc_main$37 = /*@__PURE__*/ defineComponent({
3120
3121
  defaultValue: () => props.defaultOpen,
3121
3122
  onChange: (open) => emit("update:open", open)
3122
3123
  });
3123
- const rootPositioning = computed(() => withSandboxStrategy(props.positioning, { ...props.positioning }));
3124
+ const rootPositioning = computed(() => withSandboxStrategy(props.positioning, {
3125
+ sameWidth: true,
3126
+ ...props.positioning
3127
+ }));
3124
3128
  return (_ctx, _cache) => {
3125
3129
  return openBlock(), createBlock(unref(Select).Root, {
3126
3130
  ids: unref(rootIds),
@@ -3133,11 +3137,11 @@ const _sfc_main$37 = /*@__PURE__*/ defineComponent({
3133
3137
  }, {
3134
3138
  default: withCtx(() => [
3135
3139
  createCommentVNode(" 触发器(收编自 SelectTrigger:内置选中回显与 chevron) "),
3136
- createVNode(unref(Select).Control, { class: "w-fit" }, {
3137
- default: withCtx(() => [createVNode(unref(Select).Trigger, { class: normalizeClass(unref(cn)("border-input data-[placeholder]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 flex h-9 w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs focus-visible:outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4", props.triggerClass)) }, {
3140
+ createVNode(unref(Select).Control, { class: "w-full" }, {
3141
+ default: withCtx(() => [createVNode(unref(Select).Trigger, { class: normalizeClass(unref(cn)("border-input data-[placeholder]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 flex h-9 w-full items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs focus-visible:outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4", props.triggerClass)) }, {
3138
3142
  default: withCtx(() => [
3139
- createCommentVNode(" 注意:不能向 ValueText 传插槽内容,其内部会对默认插槽做字符串化渲染 "),
3140
- createVNode(unref(Select).ValueText, { placeholder: props.placeholder }, null, 8, ["placeholder"]),
3143
+ createCommentVNode(" 截断层:触发器 w-full 定宽后,超长选中值/placeholder 走 ellipsis(flex 子项 overflow 非 visible 时自动最小尺寸归零,min-w-0 双保险)。\n 注意:不能向 ValueText 传插槽内容,其内部会对默认插槽做字符串化渲染 "),
3144
+ createElementVNode("span", _hoisted_1$19, [createVNode(unref(Select).ValueText, { placeholder: props.placeholder }, null, 8, ["placeholder"])]),
3141
3145
  renderSlot(_ctx.$slots, "trigger-icon", {}, () => [createVNode(ChevronIcon_default, { class: "size-4 rotate-90 opacity-50" })])
3142
3146
  ]),
3143
3147
  _: 3
@@ -3156,7 +3160,7 @@ const _sfc_main$37 = /*@__PURE__*/ defineComponent({
3156
3160
  item: entry.raw,
3157
3161
  label: entry.item.label,
3158
3162
  selected: entry.item.value === modelValue.value
3159
- }, () => [createVNode(unref(Select).ItemText, null, {
3163
+ }, () => [createVNode(unref(Select).ItemText, { class: "truncate" }, {
3160
3164
  default: withCtx(() => [createTextVNode(toDisplayString(entry.item.label), 1)]),
3161
3165
  _: 2
3162
3166
  }, 1024), createVNode(unref(Select).ItemIndicator, { class: "absolute right-2" }, {
@@ -7634,6 +7638,7 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
7634
7638
  /** 总列数 = 可见业务列 + 选择列(空态 colspan 与骨架行,S8/R23) */
7635
7639
  const columnCount = computed(() => visibleColumns.value.length + (hasSelection.value ? 1 : 0));
7636
7640
  for (const column of columns.value) if (column.fixed !== void 0 && typeof column.width !== "number") console.warn(`[tu-design] <TableRender> fixed 列 "${column.key}" 需要数字 width,已忽略 fixed。`);
7641
+ if (columns.value.length >= 10 && !columns.value.some((c) => typeof c.width === "number")) console.warn(`[tu-design] <TableRender> ${columns.value.length} 列均无数字 width,窄容器下不会出现横向滚动(R32);宽表请为列声明数字 width(px)。`);
7637
7642
  /** sticky 单元格映射(纯渲染层 computed,不进 TanStack pinning state):
7638
7643
  * 选择列视作最左 fixed 列参与累计(offset 0);fixed-left 按列序累加,
7639
7644
  * fixed-right 从最右列反向累计。edge = 该 sticky 组朝滚动方向的交界列(加分隔边框)。
@@ -7678,6 +7683,17 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
7678
7683
  }
7679
7684
  return map;
7680
7685
  });
7686
+ const tableMinWidth = computed(() => {
7687
+ let sum = 0;
7688
+ for (const column of visibleColumns.value) if (typeof column.width === "number" && column.width > 0) sum += column.width;
7689
+ if (hasSelection.value && selection.value.width > 0) sum += selection.value.width;
7690
+ return sum;
7691
+ });
7692
+ /** 列宽 inline style 值(R33):数字补 px 单位——Vue :style 不自动加单位,
7693
+ * 裸数字会被浏览器当非法 CSS 值丢弃,列宽即失效;字符串视为已带单位原样输出。 */
7694
+ function widthOf(width) {
7695
+ return typeof width === "number" ? `${width}px` : width;
7696
+ }
7681
7697
  /** 表头全选三态(S10):本页可选行与选中集求交派生(TanStack getter 追踪不稳,自算) */
7682
7698
  const selectableKeys = computed(() => rows.value.filter((row) => row.getCanSelect()).map((row) => rowKeyOf(row.original, row.index)));
7683
7699
  const headerChecked = computed(() => hasSelection.value && selection.value.type === "checkbox" && selectableKeys.value.length > 0 && selectableKeys.value.every((key) => selectedKeys.value.has(key)));
@@ -7956,7 +7972,10 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
7956
7972
  ref: scrollEl,
7957
7973
  class: normalizeClass(unref(cn)("overflow-x-auto", unref(fill) && "min-h-0 flex-1 overflow-y-auto")),
7958
7974
  style: normalizeStyle(scrollStyle.value)
7959
- }, [createElementVNode("table", { class: normalizeClass(["w-full caption-bottom text-sm", unref(tableClass)]) }, [createElementVNode("thead", {
7975
+ }, [createElementVNode("table", {
7976
+ class: normalizeClass(["w-full caption-bottom text-sm", unref(tableClass)]),
7977
+ style: normalizeStyle(tableMinWidth.value > 0 ? { minWidth: `${tableMinWidth.value}px` } : void 0)
7978
+ }, [createElementVNode("thead", {
7960
7979
  ref_key: "theadEl",
7961
7980
  ref: theadEl,
7962
7981
  class: normalizeClass(unref(theadSticky) ? void 0 : "[&_tr]:border-b")
@@ -7979,7 +7998,7 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
7979
7998
  scope: "col",
7980
7999
  class: normalizeClass(["h-10 px-2 align-middle font-medium text-muted-foreground", [unref(stickyClass)(stickyOf.value, column.key), unref(theadThClass)]]),
7981
8000
  style: normalizeStyle([{
7982
- width: column.width,
8001
+ width: widthOf(column.width),
7983
8002
  textAlign: column.align
7984
8003
  }, unref(stickyStyle)(stickyOf.value, column.key, true)]),
7985
8004
  "aria-sort": ariaSort(column)
@@ -8103,7 +8122,7 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
8103
8122
  colspan: columnCount.value,
8104
8123
  class: "p-8 text-center text-muted-foreground"
8105
8124
  }, [renderSlot(_ctx.$slots, "empty", {}, () => [createTextVNode(toDisplayString(__props.emptyText ?? "暂无数据"), 1)])], 8, _hoisted_17)])) : createCommentVNode("v-if", true)
8106
- ])], 2)], 6),
8125
+ ])], 6)], 6),
8107
8126
  createCommentVNode(" R31:手动接线(须经 onPageIndex/onPageSize 包装器保留受控去重);显式补 border-t 与 size select 保持现状 "),
8108
8127
  showPaginationBar.value ? (openBlock(), createBlock(_sfc_main$43, {
8109
8128
  key: 1,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "alert-dialog",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "确认弹窗单组件:v-model:open 控制显隐,title/description 传文案,@confirm/@cancel 处理确认与取消;确认处理器返回 Promise 时按钮进入 loading 并锁定 ESC/遮罩关闭,resolve 自动关闭、reject 保持打开;内容节点为 role=alertdialog。",
7
7
  "registryDependencies": ["button", "utils", "overlay-shared"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "alert",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "语义化警示条,支持五种变体、内置图标与可关闭交互。",
7
7
  "registryDependencies": ["icon-shared", "utils"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "avatar-group",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "头像组,数量折叠、悬停展开与垂直排列。",
7
7
  "registryDependencies": ["utils", "avatar"],
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "avatar",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "头像,支持尺寸/形状、加载占位与失败回退(Ark UI)。",
7
7
  "registryDependencies": ["utils"],
8
- "dependencies": ["@ark-ui/vue@^5.39.2"],
8
+ "dependencies": ["@ark-ui/vue@^5.39.2", "class-variance-authority@^0.7.1"],
9
9
  "files": [
10
10
  {
11
11
  "path": "avatar/Avatar.vue",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "badge",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "轻量状态徽标,支持四种变体。",
7
7
  "registryDependencies": ["utils"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "button",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "带变体与尺寸的按钮,支持 as 标签切换与 asChild 组合。",
7
7
  "registryDependencies": ["utils", "slot"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "calendar",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "日历(TCalendar):紧凑日历卡。Picker 弹层内为 embedded 内嵌形态(TDatePicker/TDateRangePicker 自动挂靠,纯卡片内核);独立使用即 standalone 独立形态(自带日历状态与 v-model,恒开展示)。",
7
7
  "registryDependencies": ["icon-shared", "utils", "date-shared"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "card",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "卡片容器:单组件 API,title/description 头部 + 命名插槽(cover/action/footer/header),支持尺寸、视觉变体、分段分隔与可关闭。",
7
7
  "registryDependencies": ["utils"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "cascader",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "级联选择:一站式 props 驱动,多列联动、勾选级联、路径回显与多标签。",
7
7
  "registryDependencies": ["icon-shared", "tree-shared", "utils", "date-shared", "overlay-shared"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "checkbox",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "复选框:基于 Ark UI Checkbox 原语,支持标签插槽、受控/非受控与禁用。",
7
7
  "registryDependencies": ["utils"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "context-menu",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "右键菜单:单组件模式,items 描述菜单项(与 dropdown-menu 同构,含分组/标题/分隔线,支持嵌套),默认插槽为触发元素(ContextTrigger as-child,右键唤出并定位到指针处),内置键盘导航与选中回调。",
7
7
  "registryDependencies": ["overlay-shared", "utils", "dropdown-menu"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "currency-input",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "金额输入框:内置万/元/角/分单位后缀,labelUnit 输入单位与 valueUnit 存储单位自动换算(整数分最小精度),值以 number|null 受控。",
7
7
  "registryDependencies": ["utils"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "date-picker",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "日期选择器:输入框 + 日历弹层(月/年视图切换),支持手动键入/清空/min-max 边界/不可选谓词,值以 \"yyyy-MM-dd\" 字符串受控。",
7
7
  "registryDependencies": ["utils", "date-shared", "calendar"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "date-range-picker",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "日期范围选择器:双月日历弹层(月/年视图切换),点选起点与终点,值以 [\"yyyy-MM-dd\", \"yyyy-MM-dd\"] 有序元组受控,空值归一 null。",
7
7
  "registryDependencies": ["icon-shared", "utils", "date-shared", "calendar", "overlay-shared"],
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "date-shared",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "日期家族共享模块:ISO 值域解析(日期/月/年/区间)、日历样式常量与单值选择器外壳(PickerShell/usePickerBridge)。",
7
7
  "registryDependencies": ["icon-shared", "utils", "overlay-shared"],
8
- "dependencies": ["@ark-ui/vue@^5.39.2"],
8
+ "dependencies": ["@ark-ui/vue@^5.39.2", "@zag-js/popper@^1.43.3"],
9
9
  "files": [
10
10
  {
11
11
  "path": "date-shared/PickerShell.vue",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "dialog",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "模态对话框单组件:#trigger 放触发元素,title/description 传文案,#footer 注入 close 关闭;基于 Ark UI Dialog 原语,含焦点圈定、Escape/遮罩关闭与进出场动画,支持 v-model:open。",
7
7
  "registryDependencies": ["icon-shared", "utils", "overlay-shared"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "drawer",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "抽屉单组件:从四方向滑出的侧边/顶底面板,#trigger 放触发元素,title/description 传文案,#footer 注入 close 关闭;基于 Ark UI Drawer 原语,进出场动画随 placement 方向自适应,含焦点圈定、Escape/遮罩关闭,支持 v-model:open。",
7
7
  "registryDependencies": ["icon-shared", "utils", "overlay-shared"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "dropdown-menu",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "下拉菜单:单组件模式,items 描述菜单项(含分组/标题/分隔线,支持嵌套),内置键盘导航与选中回调,默认插槽为触发元素(asChild 透传)。",
7
7
  "registryDependencies": ["utils", "overlay-shared"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "empty",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "空状态占位,含默认插画与描述文案。",
7
7
  "registryDependencies": ["utils"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "form-render",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "配置驱动表单渲染器:defineForm 聚合 TanStack Form 实例与字段配置,柯里化 widget DSL 声明控件,Tailwind 栅格自适应布局,复用 Form 家族 aria 接线。",
7
7
  "registryDependencies": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "form",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "表单状态与校验:基于 TanStack Form,配合 Valibot(Standard Schema)声明式校验,aria 自动接线。",
7
7
  "registryDependencies": ["utils", "input", "button", "label"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "icon-shared",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "内置功能性图标(CloseIcon/ChevronIcon/CalendarIcon),内部共享,非公共 API。图标组件零默认类:尺寸/旋转/过渡类由使用处显式传入,避免 fallthrough 拼接时同名工具类排序冲突。",
7
7
  "files": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "input",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "文本输入框,支持 v-model、attrs 透传与 invalid 校验态。",
7
7
  "registryDependencies": ["utils"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "label",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "表单标签。",
7
7
  "registryDependencies": ["utils"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "month-picker",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "月份选择器:输入框 + 锁定月视图的日历弹层,值以 \"yyyy-MM\" 字符串受控,min/max 为月粒度闭区间(内部换算到当月末日)。",
7
7
  "registryDependencies": ["utils", "date-shared", "calendar"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "number-input",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "数字输入框:内置加减步进按钮与数值边界,值以 number|null 受控(空值归一 null),支持 Intl 数字格式化。",
7
7
  "registryDependencies": ["utils"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "overlay-shared",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "弹层家族共享逻辑:受控开合桥接(useControlledBoolean)与确认 pending 语义(useConfirmPending)。",
7
7
  "files": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "password-input",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "密码输入框:内置明文/掩码切换按钮(Eye/EyeOff,带 aria 语义),值与可见性均支持 v-model 受控。",
7
7
  "registryDependencies": ["utils"],