@tu-design/vue 0.5.6 → 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 +32 -32
  2. package/dist/index.mjs +11 -3
  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 +2 -2
  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.d.mts CHANGED
@@ -98,10 +98,10 @@ declare const __VLS_base$34: import("vue").DefineComponent<import("vue").Extract
98
98
  }>, {
99
99
  class: string;
100
100
  name: string;
101
+ form: string;
101
102
  disabled: boolean;
102
103
  checked: boolean | "indeterminate";
103
104
  defaultChecked: boolean;
104
- form: string;
105
105
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
106
106
  declare const __VLS_export$52: __VLS_WithSlots$34<typeof __VLS_base$34, __VLS_Slots$34>;
107
107
  declare const _default$9: typeof __VLS_export$52;
@@ -197,10 +197,10 @@ declare const __VLS_export$51: import("vue").DefineComponent<import("vue").Extra
197
197
  "onUpdate:modelValue"?: (value: number) => any;
198
198
  }>, {
199
199
  class: string;
200
+ invalid: boolean;
200
201
  modelValue: number;
201
202
  placeholder: string;
202
203
  disabled: boolean;
203
- invalid: boolean;
204
204
  labelUnit: CurrencyUnit;
205
205
  valueUnit: CurrencyUnit;
206
206
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -370,6 +370,7 @@ declare const __VLS_export$50: import("vue").DefineComponent<import("vue").Extra
370
370
  "onUpdate:open"?: (open: boolean) => any;
371
371
  }>, {
372
372
  class: string;
373
+ invalid: boolean;
373
374
  max: string;
374
375
  modelValue: string;
375
376
  defaultValue: string;
@@ -377,13 +378,12 @@ declare const __VLS_export$50: import("vue").DefineComponent<import("vue").Extra
377
378
  defaultOpen: boolean;
378
379
  placeholder: string;
379
380
  disabled: boolean;
380
- invalid: boolean;
381
381
  readOnly: boolean;
382
382
  min: string;
383
- isDateUnavailable: (date: DateValue) => boolean;
384
383
  closeOnSelect: boolean;
385
384
  locale: string;
386
385
  positioning: import("@zag-js/popper").PositioningOptions;
386
+ isDateUnavailable: (date: DateValue) => boolean;
387
387
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
388
388
  declare const _default$12: typeof __VLS_export$50;
389
389
  //#endregion
@@ -546,6 +546,7 @@ declare const __VLS_export$49: import("vue").DefineComponent<import("vue").Extra
546
546
  "onUpdate:open"?: (open: boolean) => any;
547
547
  }>, {
548
548
  class: string;
549
+ invalid: boolean;
549
550
  max: string;
550
551
  modelValue: [string, string];
551
552
  defaultValue: [string, string];
@@ -553,14 +554,13 @@ declare const __VLS_export$49: import("vue").DefineComponent<import("vue").Extra
553
554
  defaultOpen: boolean;
554
555
  placeholder: string;
555
556
  disabled: boolean;
556
- invalid: boolean;
557
557
  readOnly: boolean;
558
558
  min: string;
559
- isDateUnavailable: (date: DateValue) => boolean;
560
559
  closeOnSelect: boolean;
561
560
  locale: string;
562
561
  positioning: import("@zag-js/popper").PositioningOptions;
563
562
  numOfMonths: number;
563
+ isDateUnavailable: (date: DateValue) => boolean;
564
564
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
565
565
  declare const _default$13: typeof __VLS_export$49;
566
566
  //#endregion
@@ -723,6 +723,7 @@ declare const __VLS_export$47: import("vue").DefineComponent<import("vue").Extra
723
723
  "onUpdate:open"?: (open: boolean) => any;
724
724
  }>, {
725
725
  class: string;
726
+ invalid: boolean;
726
727
  max: string;
727
728
  modelValue: string;
728
729
  defaultValue: string;
@@ -730,7 +731,6 @@ declare const __VLS_export$47: import("vue").DefineComponent<import("vue").Extra
730
731
  defaultOpen: boolean;
731
732
  placeholder: string;
732
733
  disabled: boolean;
733
- invalid: boolean;
734
734
  readOnly: boolean;
735
735
  min: string;
736
736
  closeOnSelect: boolean;
@@ -892,6 +892,7 @@ declare const __VLS_export$46: import("vue").DefineComponent<import("vue").Extra
892
892
  "onUpdate:open"?: (open: boolean) => any;
893
893
  }>, {
894
894
  class: string;
895
+ invalid: boolean;
895
896
  max: string;
896
897
  modelValue: string;
897
898
  defaultValue: string;
@@ -899,13 +900,12 @@ declare const __VLS_export$46: import("vue").DefineComponent<import("vue").Extra
899
900
  defaultOpen: boolean;
900
901
  placeholder: string;
901
902
  disabled: boolean;
902
- invalid: boolean;
903
903
  readOnly: boolean;
904
904
  min: string;
905
- isDateUnavailable: (date: DateValue) => boolean;
906
905
  closeOnSelect: boolean;
907
906
  locale: string;
908
907
  positioning: import("@zag-js/popper").PositioningOptions;
908
+ isDateUnavailable: (date: DateValue) => boolean;
909
909
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
910
910
  declare const _default$51: typeof __VLS_export$46;
911
911
  //#endregion
@@ -990,10 +990,10 @@ declare const __VLS_base$33: import("vue").DefineComponent<import("vue").Extract
990
990
  "onUpdate:modelValue"?: (value: number) => any;
991
991
  }>, {
992
992
  class: string;
993
+ invalid: boolean;
993
994
  max: number;
994
995
  modelValue: number;
995
996
  disabled: boolean;
996
- invalid: boolean;
997
997
  min: number;
998
998
  step: number;
999
999
  formatOptions: Intl.NumberFormatOptions;
@@ -1090,10 +1090,10 @@ declare const __VLS_base$32: import("vue").DefineComponent<import("vue").Extract
1090
1090
  "onUpdate:visible"?: (visible: boolean) => any;
1091
1091
  }>, {
1092
1092
  class: string;
1093
+ invalid: boolean;
1093
1094
  modelValue: string;
1094
1095
  placeholder: string;
1095
1096
  disabled: boolean;
1096
- invalid: boolean;
1097
1097
  visible: boolean;
1098
1098
  autoComplete: "current-password" | "new-password";
1099
1099
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1969,6 +1969,7 @@ declare const __VLS_export$36: import("vue").DefineComponent<import("vue").Extra
1969
1969
  "onUpdate:open"?: (open: boolean) => any;
1970
1970
  }>, {
1971
1971
  class: string;
1972
+ invalid: boolean;
1972
1973
  max: string;
1973
1974
  modelValue: string;
1974
1975
  defaultValue: string;
@@ -1976,7 +1977,6 @@ declare const __VLS_export$36: import("vue").DefineComponent<import("vue").Extra
1976
1977
  defaultOpen: boolean;
1977
1978
  placeholder: string;
1978
1979
  disabled: boolean;
1979
- invalid: boolean;
1980
1980
  readOnly: boolean;
1981
1981
  min: string;
1982
1982
  closeOnSelect: boolean;
@@ -2598,9 +2598,9 @@ declare const __VLS_base$23: import("vue").DefineComponent<import("vue").Extract
2598
2598
  modelValue: string;
2599
2599
  defaultValue: string;
2600
2600
  min: string;
2601
- isDateUnavailable: (date: DateValue) => boolean;
2602
2601
  locale: string;
2603
2602
  numOfMonths: number;
2603
+ isDateUnavailable: (date: DateValue) => boolean;
2604
2604
  week: boolean;
2605
2605
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2606
2606
  declare const __VLS_export$30: __VLS_WithSlots$23<typeof __VLS_base$23, __VLS_Slots$23>;
@@ -2784,14 +2784,14 @@ declare const __VLS_base$21: import("vue").DefineComponent<import("vue").Extract
2784
2784
  }>> & Readonly<{
2785
2785
  "onUpdate:open"?: (open: boolean) => any;
2786
2786
  }>, {
2787
+ title: string;
2787
2788
  open: boolean;
2788
2789
  defaultOpen: boolean;
2789
2790
  lazyMount: boolean;
2790
2791
  unmountOnExit: boolean;
2791
- title: string;
2792
+ contentClass: string;
2792
2793
  description: string;
2793
2794
  showCloseButton: boolean;
2794
- contentClass: string;
2795
2795
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2796
2796
  declare const __VLS_export$28: __VLS_WithSlots$21<typeof __VLS_base$21, __VLS_Slots$21>;
2797
2797
  declare const _default$14: typeof __VLS_export$28;
@@ -2875,10 +2875,10 @@ declare const __VLS_base$20: import("vue").DefineComponent<import("vue").Extract
2875
2875
  default: any;
2876
2876
  };
2877
2877
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2878
- "update:open": (open: boolean) => any;
2879
2878
  select: (details: {
2880
2879
  value: string;
2881
2880
  }) => any;
2881
+ "update:open": (open: boolean) => any;
2882
2882
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
2883
2883
  /** 菜单项描述列表(item/label/separator/group 四种形态,group 可嵌套) */
2884
2884
  items: {
@@ -2920,10 +2920,10 @@ declare const __VLS_base$20: import("vue").DefineComponent<import("vue").Extract
2920
2920
  default: any;
2921
2921
  };
2922
2922
  }>> & Readonly<{
2923
- "onUpdate:open"?: (open: boolean) => any;
2924
2923
  onSelect?: (details: {
2925
2924
  value: string;
2926
2925
  }) => any;
2926
+ "onUpdate:open"?: (open: boolean) => any;
2927
2927
  }>, {
2928
2928
  open: boolean;
2929
2929
  defaultOpen: boolean;
@@ -3235,11 +3235,11 @@ declare const __VLS_base$13: import("vue").DefineComponent<import("vue").Extract
3235
3235
  }>, {
3236
3236
  class: string;
3237
3237
  length: number;
3238
+ invalid: boolean;
3238
3239
  type: "numeric" | "alphanumeric";
3239
3240
  modelValue: string[];
3240
3241
  placeholder: string;
3241
3242
  disabled: boolean;
3242
- invalid: boolean;
3243
3243
  otp: boolean;
3244
3244
  mask: boolean;
3245
3245
  autoSubmit: boolean;
@@ -3476,8 +3476,6 @@ declare const __VLS_base$12: import("vue").DefineComponent<import("vue").Extract
3476
3476
  disabled: boolean;
3477
3477
  lazyMount: boolean;
3478
3478
  unmountOnExit: boolean;
3479
- contentClass: string;
3480
- contentProps: Record<string, unknown>;
3481
3479
  trigger: TriggerMode;
3482
3480
  openDelay: number;
3483
3481
  closeDelay: number;
@@ -3490,6 +3488,8 @@ declare const __VLS_base$12: import("vue").DefineComponent<import("vue").Extract
3490
3488
  to: string | HTMLElement;
3491
3489
  matchTriggerWidth: boolean;
3492
3490
  zIndex: number;
3491
+ contentClass: string;
3492
+ contentProps: Record<string, unknown>;
3493
3493
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3494
3494
  declare const __VLS_export$16: __VLS_WithSlots$12<typeof __VLS_base$12, __VLS_Slots$12>;
3495
3495
  declare const _default$34: typeof __VLS_export$16;
@@ -4387,10 +4387,10 @@ declare const __VLS_base$9: import("vue").DefineComponent<import("vue").ExtractP
4387
4387
  lazyMount: boolean;
4388
4388
  unmountOnExit: boolean;
4389
4389
  contentClass: string;
4390
+ contentProps: Record<string, unknown>;
4390
4391
  content: string;
4391
4392
  delayDuration: number;
4392
4393
  closeDuration: number;
4393
- contentProps: Record<string, unknown>;
4394
4394
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4395
4395
  declare const __VLS_export$10: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
4396
4396
  declare const _default$49: typeof __VLS_export$10;
@@ -4425,11 +4425,11 @@ type __VLS_Slots$8 = {} & {
4425
4425
  close?: (props: typeof __VLS_7) => any;
4426
4426
  };
4427
4427
  declare const __VLS_base$8: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4428
- "update:modelValue": (value: boolean) => any;
4429
4428
  close: () => any;
4429
+ "update:modelValue": (value: boolean) => any;
4430
4430
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
4431
- "onUpdate:modelValue"?: (value: boolean) => any;
4432
4431
  onClose?: () => any;
4432
+ "onUpdate:modelValue"?: (value: boolean) => any;
4433
4433
  }>, {
4434
4434
  variant: AlertVariants["variant"];
4435
4435
  class: string;
@@ -4448,11 +4448,11 @@ type __VLS_WithSlots$8<T, S> = T & {
4448
4448
  //#endregion
4449
4449
  //#region src/components/alert/index.d.ts
4450
4450
  export declare const alertVariants: (props?: {
4451
- variant?: "default" | "info" | "success" | "warning" | "error";
4451
+ variant?: "default" | "success" | "warning" | "info" | "error";
4452
4452
  } & import("class-variance-authority/types").ClassProp) => string;
4453
4453
  export type AlertVariants = VariantProps<typeof alertVariants>;
4454
4454
  export declare const alertIconVariants: (props?: {
4455
- variant?: "default" | "info" | "success" | "warning" | "error";
4455
+ variant?: "default" | "success" | "warning" | "info" | "error";
4456
4456
  } & import("class-variance-authority/types").ClassProp) => string;
4457
4457
  /**
4458
4458
  * 内置图标路径(按 variant 形状差异化,保证色弱用户可辨别):
@@ -4535,8 +4535,8 @@ type __VLS_Slots$6 = {} & {
4535
4535
  };
4536
4536
  declare const __VLS_base$6: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
4537
4537
  size: "sm" | "default" | "lg";
4538
- spinning: boolean;
4539
4538
  label: string;
4539
+ spinning: boolean;
4540
4540
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4541
4541
  declare const __VLS_export$6: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
4542
4542
  declare const _default$41: typeof __VLS_export$6;
@@ -4683,8 +4683,8 @@ declare const __VLS_base$4: import("vue").DefineComponent<import("vue").ExtractP
4683
4683
  default: boolean;
4684
4684
  };
4685
4685
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4686
- "update:open": (open: boolean) => any;
4687
4686
  cancel: () => any;
4687
+ "update:open": (open: boolean) => any;
4688
4688
  confirm: () => any;
4689
4689
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
4690
4690
  /** 受控开关(配合 v-model:open);不传时为非受控,由内部状态管理 */
@@ -4718,8 +4718,8 @@ declare const __VLS_base$4: import("vue").DefineComponent<import("vue").ExtractP
4718
4718
  default: boolean;
4719
4719
  };
4720
4720
  }>> & Readonly<{
4721
- "onUpdate:open"?: (open: boolean) => any;
4722
4721
  onCancel?: () => any;
4722
+ "onUpdate:open"?: (open: boolean) => any;
4723
4723
  onConfirm?: () => any;
4724
4724
  }>, {
4725
4725
  destructive: boolean;
@@ -4905,12 +4905,12 @@ declare const __VLS_base$2: import("vue").DefineComponent<import("vue").ExtractP
4905
4905
  "onUpdate:open"?: (open: boolean) => any;
4906
4906
  }>, {
4907
4907
  size: Size;
4908
+ title: string;
4908
4909
  open: boolean;
4909
4910
  defaultOpen: boolean;
4910
4911
  placement: Placement;
4911
4912
  lazyMount: boolean;
4912
4913
  unmountOnExit: boolean;
4913
- title: string;
4914
4914
  description: string;
4915
4915
  showCloseButton: boolean;
4916
4916
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -4959,8 +4959,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<import("vue").ExtractP
4959
4959
  default: any;
4960
4960
  };
4961
4961
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4962
- "update:open": (open: boolean) => any;
4963
4962
  cancel: () => any;
4963
+ "update:open": (open: boolean) => any;
4964
4964
  confirm: () => any;
4965
4965
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
4966
4966
  /** 气泡标题(渲染为 Ark Popover.Title,content 自动接线 aria-labelledby) */
@@ -4994,8 +4994,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<import("vue").ExtractP
4994
4994
  default: any;
4995
4995
  };
4996
4996
  }>> & Readonly<{
4997
- "onUpdate:open"?: (open: boolean) => any;
4998
4997
  onCancel?: () => any;
4998
+ "onUpdate:open"?: (open: boolean) => any;
4999
4999
  onConfirm?: () => any;
5000
5000
  }>, {
5001
5001
  variant: "default" | "destructive";
@@ -5073,7 +5073,7 @@ export type TimelineItemVariants = VariantProps<typeof timelineItemVariants>;
5073
5073
  export declare const timelineDotVariants: (props?: {
5074
5074
  mode?: "right" | "alternate";
5075
5075
  size?: "sm" | "default";
5076
- color?: "destructive" | "success" | "warning" | "primary" | "muted";
5076
+ color?: "destructive" | "primary" | "success" | "warning" | "muted";
5077
5077
  hollow?: boolean;
5078
5078
  } & import("class-variance-authority/types").ClassProp) => string;
5079
5079
  export type TimelineDotVariants = VariantProps<typeof timelineDotVariants>;
package/dist/index.mjs CHANGED
@@ -3121,7 +3121,10 @@ const _sfc_main$37 = /*@__PURE__*/ defineComponent({
3121
3121
  defaultValue: () => props.defaultOpen,
3122
3122
  onChange: (open) => emit("update:open", open)
3123
3123
  });
3124
- const rootPositioning = computed(() => withSandboxStrategy(props.positioning, { ...props.positioning }));
3124
+ const rootPositioning = computed(() => withSandboxStrategy(props.positioning, {
3125
+ sameWidth: true,
3126
+ ...props.positioning
3127
+ }));
3125
3128
  return (_ctx, _cache) => {
3126
3129
  return openBlock(), createBlock(unref(Select).Root, {
3127
3130
  ids: unref(rootIds),
@@ -3157,7 +3160,7 @@ const _sfc_main$37 = /*@__PURE__*/ defineComponent({
3157
3160
  item: entry.raw,
3158
3161
  label: entry.item.label,
3159
3162
  selected: entry.item.value === modelValue.value
3160
- }, () => [createVNode(unref(Select).ItemText, null, {
3163
+ }, () => [createVNode(unref(Select).ItemText, { class: "truncate" }, {
3161
3164
  default: withCtx(() => [createTextVNode(toDisplayString(entry.item.label), 1)]),
3162
3165
  _: 2
3163
3166
  }, 1024), createVNode(unref(Select).ItemIndicator, { class: "absolute right-2" }, {
@@ -7686,6 +7689,11 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
7686
7689
  if (hasSelection.value && selection.value.width > 0) sum += selection.value.width;
7687
7690
  return sum;
7688
7691
  });
7692
+ /** 列宽 inline style 值(R33):数字补 px 单位——Vue :style 不自动加单位,
7693
+ * 裸数字会被浏览器当非法 CSS 值丢弃,列宽即失效;字符串视为已带单位原样输出。 */
7694
+ function widthOf(width) {
7695
+ return typeof width === "number" ? `${width}px` : width;
7696
+ }
7689
7697
  /** 表头全选三态(S10):本页可选行与选中集求交派生(TanStack getter 追踪不稳,自算) */
7690
7698
  const selectableKeys = computed(() => rows.value.filter((row) => row.getCanSelect()).map((row) => rowKeyOf(row.original, row.index)));
7691
7699
  const headerChecked = computed(() => hasSelection.value && selection.value.type === "checkbox" && selectableKeys.value.length > 0 && selectableKeys.value.every((key) => selectedKeys.value.has(key)));
@@ -7990,7 +7998,7 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
7990
7998
  scope: "col",
7991
7999
  class: normalizeClass(["h-10 px-2 align-middle font-medium text-muted-foreground", [unref(stickyClass)(stickyOf.value, column.key), unref(theadThClass)]]),
7992
8000
  style: normalizeStyle([{
7993
- width: column.width,
8001
+ width: widthOf(column.width),
7994
8002
  textAlign: column.align
7995
8003
  }, unref(stickyStyle)(stickyOf.value, column.key, true)]),
7996
8004
  "aria-sort": ariaSort(column)
@@ -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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
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.6",
4
+ "version": "0.5.7",
5
5
  "type": "registry:ui",
6
6
  "description": "月份选择器:输入框 + 锁定月视图的日历弹层,值以 \"yyyy-MM\" 字符串受控,min/max 为月粒度闭区间(内部换算到当月末日)。",
7
7
  "registryDependencies": ["utils", "date-shared", "calendar"],