@tu-design/vue 0.4.3 → 0.5.0

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 (55) hide show
  1. package/dist/index.d.mts +25 -25
  2. package/dist/index.mjs +7 -7
  3. package/dist/registry/vue/alert-dialog.json +1 -1
  4. package/dist/registry/vue/alert.json +2 -2
  5. package/dist/registry/vue/avatar-group.json +1 -1
  6. package/dist/registry/vue/avatar.json +1 -1
  7. package/dist/registry/vue/badge.json +2 -2
  8. package/dist/registry/vue/button.json +2 -2
  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 +1 -1
  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/input.json +1 -1
  25. package/dist/registry/vue/label.json +1 -1
  26. package/dist/registry/vue/month-picker.json +1 -1
  27. package/dist/registry/vue/number-input.json +1 -1
  28. package/dist/registry/vue/overlay-shared.json +1 -1
  29. package/dist/registry/vue/password-input.json +1 -1
  30. package/dist/registry/vue/pin-input.json +1 -1
  31. package/dist/registry/vue/popconfirm.json +1 -1
  32. package/dist/registry/vue/popover.json +1 -1
  33. package/dist/registry/vue/progress.json +1 -1
  34. package/dist/registry/vue/radio-group.json +1 -1
  35. package/dist/registry/vue/registry.json +51 -51
  36. package/dist/registry/vue/select.json +1 -1
  37. package/dist/registry/vue/separator.json +1 -1
  38. package/dist/registry/vue/skeleton.json +1 -1
  39. package/dist/registry/vue/slider.json +1 -1
  40. package/dist/registry/vue/slot.json +1 -1
  41. package/dist/registry/vue/spin.json +1 -1
  42. package/dist/registry/vue/switch.json +1 -1
  43. package/dist/registry/vue/table-render.json +1 -1
  44. package/dist/registry/vue/tabs.json +1 -1
  45. package/dist/registry/vue/textarea.json +1 -1
  46. package/dist/registry/vue/timeline.json +1 -1
  47. package/dist/registry/vue/toast.json +2 -2
  48. package/dist/registry/vue/tokens.json +2 -2
  49. package/dist/registry/vue/tooltip.json +1 -1
  50. package/dist/registry/vue/tree-select.json +1 -1
  51. package/dist/registry/vue/tree-shared.json +1 -1
  52. package/dist/registry/vue/utils.json +1 -1
  53. package/dist/registry/vue/week-picker.json +1 -1
  54. package/dist/registry/vue/year-picker.json +1 -1
  55. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -92,10 +92,10 @@ declare const __VLS_base$32: import("vue").DefineComponent<import("vue").Extract
92
92
  "onUpdate:checked"?: (checked: boolean) => any;
93
93
  }>, {
94
94
  class: string;
95
- disabled: boolean;
96
- name: string;
97
95
  checked: boolean | "indeterminate";
98
96
  defaultChecked: boolean;
97
+ disabled: boolean;
98
+ name: string;
99
99
  form: string;
100
100
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
101
101
  declare const __VLS_export$51: __VLS_WithSlots$32<typeof __VLS_base$32, __VLS_Slots$32>;
@@ -192,9 +192,9 @@ declare const __VLS_export$50: import("vue").DefineComponent<import("vue").Extra
192
192
  "onUpdate:modelValue"?: (value: number) => any;
193
193
  }>, {
194
194
  class: string;
195
+ disabled: boolean;
195
196
  modelValue: number;
196
197
  placeholder: string;
197
- disabled: boolean;
198
198
  invalid: boolean;
199
199
  labelUnit: CurrencyUnit;
200
200
  valueUnit: CurrencyUnit;
@@ -338,19 +338,19 @@ declare const __VLS_export$49: import("vue").DefineComponent<import("vue").Extra
338
338
  "onUpdate:open"?: (open: boolean) => any;
339
339
  }>, {
340
340
  class: string;
341
+ disabled: boolean;
341
342
  modelValue: string;
342
343
  defaultValue: string;
343
344
  open: boolean;
344
345
  defaultOpen: boolean;
345
346
  placeholder: string;
346
- disabled: boolean;
347
347
  invalid: boolean;
348
348
  readOnly: boolean;
349
349
  min: string;
350
350
  max: string;
351
+ isDateUnavailable: (date: DateValue) => boolean;
351
352
  closeOnSelect: boolean;
352
353
  locale: string;
353
- isDateUnavailable: (date: DateValue) => boolean;
354
354
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
355
355
  declare const _default$12: typeof __VLS_export$49;
356
356
  //#endregion
@@ -501,20 +501,20 @@ declare const __VLS_export$48: import("vue").DefineComponent<import("vue").Extra
501
501
  "onUpdate:open"?: (open: boolean) => any;
502
502
  }>, {
503
503
  class: string;
504
+ disabled: boolean;
504
505
  modelValue: [string, string];
505
506
  defaultValue: [string, string];
506
507
  open: boolean;
507
508
  defaultOpen: boolean;
508
509
  placeholder: string;
509
- disabled: boolean;
510
510
  invalid: boolean;
511
511
  readOnly: boolean;
512
512
  min: string;
513
513
  max: string;
514
+ isDateUnavailable: (date: DateValue) => boolean;
514
515
  closeOnSelect: boolean;
515
516
  locale: string;
516
517
  numOfMonths: number;
517
- isDateUnavailable: (date: DateValue) => boolean;
518
518
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
519
519
  declare const _default$13: typeof __VLS_export$48;
520
520
  //#endregion
@@ -663,12 +663,12 @@ declare const __VLS_export$46: import("vue").DefineComponent<import("vue").Extra
663
663
  "onUpdate:open"?: (open: boolean) => any;
664
664
  }>, {
665
665
  class: string;
666
+ disabled: boolean;
666
667
  modelValue: string;
667
668
  defaultValue: string;
668
669
  open: boolean;
669
670
  defaultOpen: boolean;
670
671
  placeholder: string;
671
- disabled: boolean;
672
672
  invalid: boolean;
673
673
  readOnly: boolean;
674
674
  min: string;
@@ -817,19 +817,19 @@ declare const __VLS_export$45: import("vue").DefineComponent<import("vue").Extra
817
817
  "onUpdate:open"?: (open: boolean) => any;
818
818
  }>, {
819
819
  class: string;
820
+ disabled: boolean;
820
821
  modelValue: string;
821
822
  defaultValue: string;
822
823
  open: boolean;
823
824
  defaultOpen: boolean;
824
825
  placeholder: string;
825
- disabled: boolean;
826
826
  invalid: boolean;
827
827
  readOnly: boolean;
828
828
  min: string;
829
829
  max: string;
830
+ isDateUnavailable: (date: DateValue) => boolean;
830
831
  closeOnSelect: boolean;
831
832
  locale: string;
832
- isDateUnavailable: (date: DateValue) => boolean;
833
833
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
834
834
  declare const _default$50: typeof __VLS_export$45;
835
835
  //#endregion
@@ -914,8 +914,8 @@ declare const __VLS_base$31: import("vue").DefineComponent<import("vue").Extract
914
914
  "onUpdate:modelValue"?: (value: number) => any;
915
915
  }>, {
916
916
  class: string;
917
- modelValue: number;
918
917
  disabled: boolean;
918
+ modelValue: number;
919
919
  invalid: boolean;
920
920
  min: number;
921
921
  max: number;
@@ -1014,9 +1014,9 @@ declare const __VLS_base$30: import("vue").DefineComponent<import("vue").Extract
1014
1014
  "onUpdate:visible"?: (visible: boolean) => any;
1015
1015
  }>, {
1016
1016
  class: string;
1017
+ disabled: boolean;
1017
1018
  modelValue: string;
1018
1019
  placeholder: string;
1019
- disabled: boolean;
1020
1020
  invalid: boolean;
1021
1021
  visible: boolean;
1022
1022
  autoComplete: "current-password" | "new-password";
@@ -1273,12 +1273,12 @@ declare const __VLS_export$41: import("vue").DefineComponent<import("vue").Extra
1273
1273
  "onUpdate:show"?: (open: boolean) => any;
1274
1274
  }>, {
1275
1275
  class: string;
1276
+ disabled: boolean;
1276
1277
  modelValue: Key | Key[];
1277
1278
  defaultValue: Key | Key[];
1278
1279
  open: boolean;
1279
1280
  defaultOpen: boolean;
1280
1281
  placeholder: string;
1281
- disabled: boolean;
1282
1282
  multiple: boolean;
1283
1283
  checkable: boolean;
1284
1284
  cascade: boolean;
@@ -1474,12 +1474,12 @@ declare const __VLS_export$40: import("vue").DefineComponent<import("vue").Extra
1474
1474
  "onUpdate:expandedKeys"?: (keys: Key[]) => any;
1475
1475
  }>, {
1476
1476
  class: string;
1477
+ disabled: boolean;
1477
1478
  modelValue: Key | Key[];
1478
1479
  defaultValue: Key | Key[];
1479
1480
  open: boolean;
1480
1481
  defaultOpen: boolean;
1481
1482
  placeholder: string;
1482
- disabled: boolean;
1483
1483
  multiple: boolean;
1484
1484
  checkable: boolean;
1485
1485
  cascade: boolean;
@@ -1679,9 +1679,9 @@ declare const __VLS_base$27: import("vue").DefineComponent<import("vue").Extract
1679
1679
  "onUpdate:checked"?: (checked: boolean) => any;
1680
1680
  }>, {
1681
1681
  class: string;
1682
- disabled: boolean;
1683
1682
  checked: boolean;
1684
1683
  defaultChecked: boolean;
1684
+ disabled: boolean;
1685
1685
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1686
1686
  declare const __VLS_export$37: __VLS_WithSlots$27<typeof __VLS_base$27, __VLS_Slots$27>;
1687
1687
  declare const _default$42: typeof __VLS_export$37;
@@ -1836,12 +1836,12 @@ declare const __VLS_export$35: import("vue").DefineComponent<import("vue").Extra
1836
1836
  "onUpdate:open"?: (open: boolean) => any;
1837
1837
  }>, {
1838
1838
  class: string;
1839
+ disabled: boolean;
1839
1840
  modelValue: string;
1840
1841
  defaultValue: string;
1841
1842
  open: boolean;
1842
1843
  defaultOpen: boolean;
1843
1844
  placeholder: string;
1844
- disabled: boolean;
1845
1845
  invalid: boolean;
1846
1846
  readOnly: boolean;
1847
1847
  min: string;
@@ -2417,9 +2417,9 @@ declare const __VLS_export$29: import("vue").DefineComponent<import("vue").Extra
2417
2417
  defaultValue: string;
2418
2418
  min: string;
2419
2419
  max: string;
2420
+ isDateUnavailable: (date: DateValue) => boolean;
2420
2421
  locale: string;
2421
2422
  numOfMonths: number;
2422
- isDateUnavailable: (date: DateValue) => boolean;
2423
2423
  week: boolean;
2424
2424
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2425
2425
  declare const _default$6: typeof __VLS_export$29;
@@ -3031,10 +3031,10 @@ declare const __VLS_base$12: import("vue").DefineComponent<import("vue").Extract
3031
3031
  }>, {
3032
3032
  class: string;
3033
3033
  length: number;
3034
- modelValue: string[];
3035
3034
  type: "numeric" | "alphanumeric";
3036
- placeholder: string;
3037
3035
  disabled: boolean;
3036
+ modelValue: string[];
3037
+ placeholder: string;
3038
3038
  invalid: boolean;
3039
3039
  otp: boolean;
3040
3040
  mask: boolean;
@@ -4009,8 +4009,8 @@ declare const __VLS_export$7: import("vue").DefineComponent<__VLS_Props$1, {}, {
4009
4009
  "onUpdate:value"?: (value: number) => any;
4010
4010
  }>, {
4011
4011
  variant: ProgressVariant;
4012
- max: number;
4013
4012
  indeterminate: boolean;
4013
+ max: number;
4014
4014
  showValue: boolean;
4015
4015
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4016
4016
  declare const _default$35: typeof __VLS_export$7;
@@ -4031,8 +4031,8 @@ type __VLS_Slots$5 = {} & {
4031
4031
  };
4032
4032
  declare const __VLS_base$5: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
4033
4033
  size: "sm" | "default" | "lg";
4034
- spinning: boolean;
4035
4034
  label: string;
4035
+ spinning: boolean;
4036
4036
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4037
4037
  declare const __VLS_export$6: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
4038
4038
  declare const _default$41: typeof __VLS_export$6;
@@ -4168,8 +4168,8 @@ declare const __VLS_base$4: import("vue").DefineComponent<import("vue").ExtractP
4168
4168
  };
4169
4169
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4170
4170
  "update:open": (open: boolean) => any;
4171
- confirm: () => any;
4172
4171
  cancel: () => any;
4172
+ confirm: () => any;
4173
4173
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
4174
4174
  /** 受控开关(配合 v-model:open);不传时为非受控,由内部状态管理 */
4175
4175
  open: {
@@ -4203,8 +4203,8 @@ declare const __VLS_base$4: import("vue").DefineComponent<import("vue").ExtractP
4203
4203
  };
4204
4204
  }>> & Readonly<{
4205
4205
  "onUpdate:open"?: (open: boolean) => any;
4206
- onConfirm?: () => any;
4207
4206
  onCancel?: () => any;
4207
+ onConfirm?: () => any;
4208
4208
  }>, {
4209
4209
  destructive: boolean;
4210
4210
  open: boolean;
@@ -4426,8 +4426,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<import("vue").ExtractP
4426
4426
  };
4427
4427
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4428
4428
  "update:open": (open: boolean) => any;
4429
- confirm: () => any;
4430
4429
  cancel: () => any;
4430
+ confirm: () => any;
4431
4431
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
4432
4432
  /** 气泡标题(渲染为 Ark Popover.Title,content 自动接线 aria-labelledby) */
4433
4433
  title: {
@@ -4461,8 +4461,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<import("vue").ExtractP
4461
4461
  };
4462
4462
  }>> & Readonly<{
4463
4463
  "onUpdate:open"?: (open: boolean) => any;
4464
- onConfirm?: () => any;
4465
4464
  onCancel?: () => any;
4465
+ onConfirm?: () => any;
4466
4466
  }>, {
4467
4467
  variant: "default" | "destructive";
4468
4468
  open: boolean;
package/dist/index.mjs CHANGED
@@ -197,7 +197,7 @@ const buttonVariants = cva("inline-flex select-none items-center justify-center
197
197
  variants: {
198
198
  variant: {
199
199
  default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90 hover:shadow-sm",
200
- destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90",
200
+ destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",
201
201
  outline: "border border-input bg-background hover:border-muted-foreground/25 hover:bg-muted",
202
202
  secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
203
203
  ghost: "hover:bg-muted",
@@ -5308,7 +5308,7 @@ const badgeVariants = cva("inline-flex items-center justify-center rounded-md bo
5308
5308
  variants: { variant: {
5309
5309
  default: "bg-primary text-primary-foreground",
5310
5310
  secondary: "bg-secondary text-secondary-foreground",
5311
- destructive: "bg-destructive text-white",
5311
+ destructive: "bg-destructive text-destructive-foreground",
5312
5312
  outline: "text-foreground border border-input"
5313
5313
  } },
5314
5314
  defaultVariants: { variant: "default" }
@@ -7791,10 +7791,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
7791
7791
  const alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm flex gap-3 items-start", {
7792
7792
  variants: { variant: {
7793
7793
  default: "border-border bg-card text-card-foreground",
7794
- info: "border-[color-mix(in_oklab,var(--color-info)_35%,transparent)] bg-[color-mix(in_oklab,var(--color-info)_10%,transparent)] text-foreground",
7795
- success: "border-[color-mix(in_oklab,var(--color-success)_35%,transparent)] bg-[color-mix(in_oklab,var(--color-success)_10%,transparent)] text-foreground",
7796
- warning: "border-[color-mix(in_oklab,var(--color-warning)_35%,transparent)] bg-[color-mix(in_oklab,var(--color-warning)_10%,transparent)] text-foreground",
7797
- error: "border-[color-mix(in_oklab,var(--color-destructive)_35%,transparent)] bg-[color-mix(in_oklab,var(--color-destructive)_10%,transparent)] text-foreground"
7794
+ info: "border-[color-mix(in_oklab,var(--color-info)_35%,transparent)] bg-info-soft text-foreground",
7795
+ success: "border-[color-mix(in_oklab,var(--color-success)_35%,transparent)] bg-success-soft text-foreground",
7796
+ warning: "border-[color-mix(in_oklab,var(--color-warning)_35%,transparent)] bg-warning-soft text-foreground",
7797
+ error: "border-[color-mix(in_oklab,var(--color-destructive)_35%,transparent)] bg-destructive-soft text-foreground"
7798
7798
  } },
7799
7799
  defaultVariants: { variant: "default" }
7800
7800
  });
@@ -8160,7 +8160,7 @@ const _sfc_main$47 = /*@__PURE__*/ defineComponent({
8160
8160
  /** 语义 type → token 样式(tokens.css 的 success/warning/info/destructive) */
8161
8161
  const typeClass = {
8162
8162
  success: "bg-success text-success-foreground",
8163
- error: "bg-destructive text-white",
8163
+ error: "bg-destructive text-destructive-foreground",
8164
8164
  warning: "bg-warning text-warning-foreground",
8165
8165
  info: "bg-info text-info-foreground",
8166
8166
  loading: "bg-primary text-primary-foreground",
@@ -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.4.3",
4
+ "version": "0.5.0",
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.4.3",
4
+ "version": "0.5.0",
5
5
  "type": "registry:ui",
6
6
  "description": "语义化警示条,支持五种变体、内置图标与可关闭交互。",
7
7
  "registryDependencies": ["utils"],
@@ -17,7 +17,7 @@
17
17
  "path": "alert/index.ts",
18
18
  "type": "registry:lib",
19
19
  "target": "components/ui/alert/index.ts",
20
- "content": "import { cva, type VariantProps } from \"class-variance-authority\";\n\nexport { default as Alert } from \"./Alert.vue\";\n\nexport const alertVariants = cva(\n \"relative w-full rounded-lg border px-4 py-3 text-sm flex gap-3 items-start\",\n {\n variants: {\n variant: {\n default: \"border-border bg-card text-card-foreground\",\n info: \"border-[color-mix(in_oklab,var(--color-info)_35%,transparent)] bg-[color-mix(in_oklab,var(--color-info)_10%,transparent)] text-foreground\",\n success:\n \"border-[color-mix(in_oklab,var(--color-success)_35%,transparent)] bg-[color-mix(in_oklab,var(--color-success)_10%,transparent)] text-foreground\",\n warning:\n \"border-[color-mix(in_oklab,var(--color-warning)_35%,transparent)] bg-[color-mix(in_oklab,var(--color-warning)_10%,transparent)] text-foreground\",\n error:\n \"border-[color-mix(in_oklab,var(--color-destructive)_35%,transparent)] bg-[color-mix(in_oklab,var(--color-destructive)_10%,transparent)] text-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n },\n);\n\nexport type AlertVariants = VariantProps<typeof alertVariants>;\n\nexport const alertIconVariants = cva(\"size-4 shrink-0 mt-0.5\", {\n variants: {\n variant: {\n default: \"text-foreground\",\n info: \"text-info\",\n success: \"text-success\",\n warning: \"text-warning\",\n error: \"text-destructive\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n});\n\n/**\n * 内置图标路径(按 variant 形状差异化,保证色弱用户可辨别):\n * - default:圆圈 + i(信息)\n * - info:圆圈 + 感叹号\n * - success:圆圈 + 对勾\n * - warning:三角 + 感叹号\n * - error:圆圈 + 叉号\n */\nexport const alertIconPaths: Record<string, string> = {\n default: \"M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20ZM12 16v-4m0-4h.01\",\n info: \"M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0ZM12 8v4m0 4h.01\",\n success: \"M22 11.08V12a10 10 0 1 1-5.93-9.14M22 4 12 14.01l-3-3\",\n warning:\n \"M12 9v4m0 4h.01M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z\",\n error: \"M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0ZM15 9l-6 6m0-6 6 6\",\n};\n"
20
+ "content": "import { cva, type VariantProps } from \"class-variance-authority\";\n\nexport { default as Alert } from \"./Alert.vue\";\n\nexport const alertVariants = cva(\n \"relative w-full rounded-lg border px-4 py-3 text-sm flex gap-3 items-start\",\n {\n variants: {\n variant: {\n default: \"border-border bg-card text-card-foreground\",\n // border 35% color-mix 为强度派生:引用实色 token 自动跟随主题,不与 10% 浅底(-soft)共用令牌\n info: \"border-[color-mix(in_oklab,var(--color-info)_35%,transparent)] bg-info-soft text-foreground\",\n success:\n \"border-[color-mix(in_oklab,var(--color-success)_35%,transparent)] bg-success-soft text-foreground\",\n warning:\n \"border-[color-mix(in_oklab,var(--color-warning)_35%,transparent)] bg-warning-soft text-foreground\",\n error:\n \"border-[color-mix(in_oklab,var(--color-destructive)_35%,transparent)] bg-destructive-soft text-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n },\n);\n\nexport type AlertVariants = VariantProps<typeof alertVariants>;\n\nexport const alertIconVariants = cva(\"size-4 shrink-0 mt-0.5\", {\n variants: {\n variant: {\n default: \"text-foreground\",\n info: \"text-info\",\n success: \"text-success\",\n warning: \"text-warning\",\n error: \"text-destructive\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n});\n\n/**\n * 内置图标路径(按 variant 形状差异化,保证色弱用户可辨别):\n * - default:圆圈 + i(信息)\n * - info:圆圈 + 感叹号\n * - success:圆圈 + 对勾\n * - warning:三角 + 感叹号\n * - error:圆圈 + 叉号\n */\nexport const alertIconPaths: Record<string, string> = {\n default: \"M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20ZM12 16v-4m0-4h.01\",\n info: \"M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0ZM12 8v4m0 4h.01\",\n success: \"M22 11.08V12a10 10 0 1 1-5.93-9.14M22 4 12 14.01l-3-3\",\n warning:\n \"M12 9v4m0 4h.01M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z\",\n error: \"M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0ZM15 9l-6 6m0-6 6 6\",\n};\n"
21
21
  }
22
22
  ]
23
23
  }
@@ -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.4.3",
4
+ "version": "0.5.0",
5
5
  "type": "registry:ui",
6
6
  "description": "头像组,数量折叠、悬停展开与垂直排列。",
7
7
  "registryDependencies": ["utils", "avatar"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "avatar",
4
- "version": "0.4.3",
4
+ "version": "0.5.0",
5
5
  "type": "registry:ui",
6
6
  "description": "头像,支持尺寸/形状、加载占位与失败回退(Ark UI)。",
7
7
  "registryDependencies": ["utils"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "badge",
4
- "version": "0.4.3",
4
+ "version": "0.5.0",
5
5
  "type": "registry:ui",
6
6
  "description": "轻量状态徽标,支持四种变体。",
7
7
  "registryDependencies": ["utils"],
@@ -17,7 +17,7 @@
17
17
  "path": "badge/index.ts",
18
18
  "type": "registry:lib",
19
19
  "target": "components/ui/badge/index.ts",
20
- "content": "import { cva, type VariantProps } from \"class-variance-authority\";\n\nexport { default as Badge } from \"./Badge.vue\";\n\nexport const badgeVariants = cva(\n \"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground\",\n secondary: \"bg-secondary text-secondary-foreground\",\n destructive: \"bg-destructive text-white\",\n outline: \"text-foreground border border-input\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n },\n);\n\nexport type BadgeVariants = VariantProps<typeof badgeVariants>;\n"
20
+ "content": "import { cva, type VariantProps } from \"class-variance-authority\";\n\nexport { default as Badge } from \"./Badge.vue\";\n\nexport const badgeVariants = cva(\n \"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground\",\n secondary: \"bg-secondary text-secondary-foreground\",\n destructive: \"bg-destructive text-destructive-foreground\",\n outline: \"text-foreground border border-input\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n },\n);\n\nexport type BadgeVariants = VariantProps<typeof badgeVariants>;\n"
21
21
  }
22
22
  ]
23
23
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "button",
4
- "version": "0.4.3",
4
+ "version": "0.5.0",
5
5
  "type": "registry:ui",
6
6
  "description": "带变体与尺寸的按钮,支持 as 标签切换与 asChild 组合。",
7
7
  "registryDependencies": ["utils", "slot"],
@@ -17,7 +17,7 @@
17
17
  "path": "button/index.ts",
18
18
  "type": "registry:lib",
19
19
  "target": "components/ui/button/index.ts",
20
- "content": "import { cva, type VariantProps } from \"class-variance-authority\";\n\nexport { default as Button } from \"./Button.vue\";\n\nexport const buttonVariants = cva(\n \"inline-flex select-none items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-[color,background-color,border-color,box-shadow,transform] [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background active:scale-[0.98]\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90 hover:shadow-sm\",\n destructive: \"bg-destructive text-white shadow-xs hover:bg-destructive/90\",\n outline:\n \"border border-input bg-background hover:border-muted-foreground/25 hover:bg-muted\",\n secondary: \"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80\",\n ghost: \"hover:bg-muted\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-9 px-4 py-2\",\n sm: \"h-8 px-3\",\n lg: \"h-10 px-6\",\n icon: \"size-9\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nexport type ButtonVariants = VariantProps<typeof buttonVariants>;\n"
20
+ "content": "import { cva, type VariantProps } from \"class-variance-authority\";\n\nexport { default as Button } from \"./Button.vue\";\n\nexport const buttonVariants = cva(\n \"inline-flex select-none items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-[color,background-color,border-color,box-shadow,transform] [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background active:scale-[0.98]\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90 hover:shadow-sm\",\n destructive: \"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90\",\n outline:\n \"border border-input bg-background hover:border-muted-foreground/25 hover:bg-muted\",\n secondary: \"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80\",\n ghost: \"hover:bg-muted\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-9 px-4 py-2\",\n sm: \"h-8 px-3\",\n lg: \"h-10 px-6\",\n icon: \"size-9\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nexport type ButtonVariants = VariantProps<typeof buttonVariants>;\n"
21
21
  }
22
22
  ]
23
23
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "calendar",
4
- "version": "0.4.3",
4
+ "version": "0.5.0",
5
5
  "type": "registry:ui",
6
6
  "description": "日历(TCalendar):紧凑日历卡。Picker 弹层内为 embedded 内嵌形态(TDatePicker/TDateRangePicker 自动挂靠,纯卡片内核);独立使用即 standalone 独立形态(自带日历状态与 v-model,恒开展示)。",
7
7
  "registryDependencies": ["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.4.3",
4
+ "version": "0.5.0",
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.4.3",
4
+ "version": "0.5.0",
5
5
  "type": "registry:ui",
6
6
  "description": "级联选择:一站式 props 驱动,多列联动、勾选级联、路径回显与多标签。",
7
7
  "registryDependencies": ["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.4.3",
4
+ "version": "0.5.0",
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.4.3",
4
+ "version": "0.5.0",
5
5
  "type": "registry:ui",
6
6
  "description": "右键菜单:单组件模式,items 描述菜单项(与 dropdown-menu 同构,含分组/标题/分隔线,支持嵌套),默认插槽为触发元素(ContextTrigger as-child,右键唤出并定位到指针处),内置键盘导航与选中回调。",
7
7
  "registryDependencies": ["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.4.3",
4
+ "version": "0.5.0",
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.4.3",
4
+ "version": "0.5.0",
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.4.3",
4
+ "version": "0.5.0",
5
5
  "type": "registry:ui",
6
6
  "description": "日期范围选择器:双月日历弹层(月/年视图切换),点选起点与终点,值以 [\"yyyy-MM-dd\", \"yyyy-MM-dd\"] 有序元组受控,空值归一 null。",
7
7
  "registryDependencies": ["utils", "date-shared", "calendar", "overlay-shared"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "date-shared",
4
- "version": "0.4.3",
4
+ "version": "0.5.0",
5
5
  "type": "registry:ui",
6
6
  "description": "日期家族共享模块:ISO 值域解析(日期/月/年/区间)、日历样式常量与单值选择器外壳(PickerShell/usePickerBridge)。",
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": "dialog",
4
- "version": "0.4.3",
4
+ "version": "0.5.0",
5
5
  "type": "registry:ui",
6
6
  "description": "模态对话框单组件:#trigger 放触发元素,title/description 传文案,#footer 注入 close 关闭;基于 Ark UI Dialog 原语,含焦点圈定、Escape/遮罩关闭与进出场动画,支持 v-model:open。",
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": "drawer",
4
- "version": "0.4.3",
4
+ "version": "0.5.0",
5
5
  "type": "registry:ui",
6
6
  "description": "抽屉单组件:从四方向滑出的侧边/顶底面板,#trigger 放触发元素,title/description 传文案,#footer 注入 close 关闭;基于 Ark UI Drawer 原语,进出场动画随 placement 方向自适应,含焦点圈定、Escape/遮罩关闭,支持 v-model:open。",
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": "dropdown-menu",
4
- "version": "0.4.3",
4
+ "version": "0.5.0",
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.4.3",
4
+ "version": "0.5.0",
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.4.3",
4
+ "version": "0.5.0",
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.4.3",
4
+ "version": "0.5.0",
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": "input",
4
- "version": "0.4.3",
4
+ "version": "0.5.0",
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.4.3",
4
+ "version": "0.5.0",
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.4.3",
4
+ "version": "0.5.0",
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.4.3",
4
+ "version": "0.5.0",
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.4.3",
4
+ "version": "0.5.0",
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.4.3",
4
+ "version": "0.5.0",
5
5
  "type": "registry:ui",
6
6
  "description": "密码输入框:内置明文/掩码切换按钮(Eye/EyeOff,带 aria 语义),值与可见性均支持 v-model 受控。",
7
7
  "registryDependencies": ["utils"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "pin-input",
4
- "version": "0.4.3",
4
+ "version": "0.5.0",
5
5
  "type": "registry:ui",
6
6
  "description": "多格验证码输入:length 指定格数,支持 otp/mask/字符类型、焦点自动跳格与填满回调,可选分隔符插槽。",
7
7
  "registryDependencies": ["utils"],