@tu-design/vue 0.4.1 → 0.4.2

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/README.md +2 -2
  2. package/dist/index.d.mts +76 -75
  3. package/dist/index.mjs +1 -1
  4. package/dist/registry/vue/alert-dialog.json +1 -0
  5. package/dist/registry/vue/alert.json +1 -0
  6. package/dist/registry/vue/avatar-group.json +1 -0
  7. package/dist/registry/vue/avatar.json +1 -0
  8. package/dist/registry/vue/badge.json +1 -0
  9. package/dist/registry/vue/button.json +1 -0
  10. package/dist/registry/vue/calendar.json +1 -0
  11. package/dist/registry/vue/card.json +1 -0
  12. package/dist/registry/vue/cascader.json +1 -0
  13. package/dist/registry/vue/checkbox.json +1 -0
  14. package/dist/registry/vue/context-menu.json +1 -0
  15. package/dist/registry/vue/currency-input.json +1 -0
  16. package/dist/registry/vue/date-picker.json +1 -0
  17. package/dist/registry/vue/date-range-picker.json +1 -0
  18. package/dist/registry/vue/date-shared.json +1 -0
  19. package/dist/registry/vue/dialog.json +1 -0
  20. package/dist/registry/vue/drawer.json +1 -0
  21. package/dist/registry/vue/dropdown-menu.json +1 -0
  22. package/dist/registry/vue/empty.json +1 -0
  23. package/dist/registry/vue/form-render.json +1 -0
  24. package/dist/registry/vue/form.json +1 -0
  25. package/dist/registry/vue/input.json +1 -0
  26. package/dist/registry/vue/label.json +1 -0
  27. package/dist/registry/vue/month-picker.json +1 -0
  28. package/dist/registry/vue/number-input.json +1 -0
  29. package/dist/registry/vue/overlay-shared.json +1 -0
  30. package/dist/registry/vue/password-input.json +1 -0
  31. package/dist/registry/vue/pin-input.json +1 -0
  32. package/dist/registry/vue/popconfirm.json +1 -0
  33. package/dist/registry/vue/popover.json +1 -0
  34. package/dist/registry/vue/progress.json +1 -0
  35. package/dist/registry/vue/radio-group.json +1 -0
  36. package/dist/registry/vue/registry.json +50 -0
  37. package/dist/registry/vue/select.json +1 -0
  38. package/dist/registry/vue/separator.json +1 -0
  39. package/dist/registry/vue/skeleton.json +1 -0
  40. package/dist/registry/vue/slider.json +1 -0
  41. package/dist/registry/vue/slot.json +1 -0
  42. package/dist/registry/vue/spin.json +1 -0
  43. package/dist/registry/vue/switch.json +1 -0
  44. package/dist/registry/vue/table-render.json +1 -0
  45. package/dist/registry/vue/tabs.json +1 -0
  46. package/dist/registry/vue/textarea.json +1 -0
  47. package/dist/registry/vue/toast.json +1 -0
  48. package/dist/registry/vue/tokens.json +1 -0
  49. package/dist/registry/vue/tooltip.json +1 -0
  50. package/dist/registry/vue/tree-select.json +1 -0
  51. package/dist/registry/vue/tree-shared.json +3 -2
  52. package/dist/registry/vue/utils.json +1 -0
  53. package/dist/registry/vue/week-picker.json +1 -0
  54. package/dist/registry/vue/year-picker.json +1 -0
  55. package/package.json +1 -1
package/README.md CHANGED
@@ -10,8 +10,8 @@ shadcn 风格的 Vue 3 组件库 —— Tailwind CSS v4 + oklch CSS 变量主题
10
10
  和 shadcn/ui 一样,**推荐用法不是安装本包**,而是把组件源码复制进你的项目:
11
11
 
12
12
  ```bash
13
- npx tu-design init # 初始化 components.json / tokens / cn 工具
14
- npx tu-design add button # 添加组件源码到 src/components/ui/button/
13
+ npx @tu-design/cli init # 初始化 components.json / tokens / cn 工具
14
+ npx @tu-design/cli add button # 添加组件源码到 src/components/ui/button/
15
15
  ```
16
16
 
17
17
  源码进入你的项目后归你所有,可以直接修改;组件依赖的运行时只有 `clsx`、`tailwind-merge`、`class-variance-authority`(及组件自身声明的 Ark UI / TanStack 等 npm 依赖)。
package/dist/index.d.mts CHANGED
@@ -91,11 +91,11 @@ declare const __VLS_base$31: import("vue").DefineComponent<import("vue").Extract
91
91
  }>> & Readonly<{
92
92
  "onUpdate:checked"?: (checked: boolean) => any;
93
93
  }>, {
94
- disabled: boolean;
95
94
  class: string;
96
95
  name: string;
97
96
  checked: boolean | "indeterminate";
98
97
  defaultChecked: boolean;
98
+ disabled: boolean;
99
99
  form: string;
100
100
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
101
101
  declare const __VLS_export$50: __VLS_WithSlots$31<typeof __VLS_base$31, __VLS_Slots$31>;
@@ -191,11 +191,11 @@ declare const __VLS_export$49: import("vue").DefineComponent<import("vue").Extra
191
191
  }>> & Readonly<{
192
192
  "onUpdate:modelValue"?: (value: number) => any;
193
193
  }>, {
194
+ class: string;
195
+ disabled: boolean;
194
196
  modelValue: number;
195
197
  placeholder: string;
196
- disabled: boolean;
197
198
  invalid: boolean;
198
- class: string;
199
199
  labelUnit: CurrencyUnit;
200
200
  valueUnit: CurrencyUnit;
201
201
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -267,8 +267,8 @@ declare const __VLS_export$48: import("vue").DefineComponent<import("vue").Extra
267
267
  default: any;
268
268
  };
269
269
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
270
- "update:modelValue": (value: string) => any;
271
270
  "update:open": (open: boolean) => any;
271
+ "update:modelValue": (value: string) => any;
272
272
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
273
273
  /** 受控值("yyyy-MM-dd");undefined 走内部非受控,null 表示空 */
274
274
  modelValue: {
@@ -334,23 +334,23 @@ declare const __VLS_export$48: import("vue").DefineComponent<import("vue").Extra
334
334
  default: any;
335
335
  };
336
336
  }>> & Readonly<{
337
- "onUpdate:modelValue"?: (value: string) => any;
338
337
  "onUpdate:open"?: (open: boolean) => any;
338
+ "onUpdate:modelValue"?: (value: string) => any;
339
339
  }>, {
340
+ class: string;
341
+ max: string;
342
+ open: boolean;
343
+ disabled: boolean;
340
344
  modelValue: string;
341
345
  defaultValue: string;
342
- open: boolean;
343
346
  defaultOpen: boolean;
344
347
  placeholder: string;
345
- disabled: boolean;
346
348
  invalid: boolean;
347
349
  readOnly: boolean;
348
350
  min: string;
349
- max: string;
351
+ isDateUnavailable: (date: DateValue) => boolean;
350
352
  closeOnSelect: boolean;
351
353
  locale: string;
352
- class: string;
353
- isDateUnavailable: (date: DateValue) => boolean;
354
354
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
355
355
  declare const _default$12: typeof __VLS_export$48;
356
356
  //#endregion
@@ -425,8 +425,8 @@ declare const __VLS_export$47: import("vue").DefineComponent<import("vue").Extra
425
425
  default: any;
426
426
  };
427
427
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
428
- "update:modelValue": (value: [string, string]) => any;
429
428
  "update:open": (open: boolean) => any;
429
+ "update:modelValue": (value: [string, string]) => any;
430
430
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
431
431
  /** 受控值 [start, end]("yyyy-MM-dd",start ≤ end);undefined 走内部非受控,null 表示空 */
432
432
  modelValue: {
@@ -497,24 +497,24 @@ declare const __VLS_export$47: import("vue").DefineComponent<import("vue").Extra
497
497
  default: any;
498
498
  };
499
499
  }>> & Readonly<{
500
- "onUpdate:modelValue"?: (value: [string, string]) => any;
501
500
  "onUpdate:open"?: (open: boolean) => any;
501
+ "onUpdate:modelValue"?: (value: [string, string]) => any;
502
502
  }>, {
503
+ class: string;
504
+ max: string;
505
+ open: boolean;
506
+ disabled: boolean;
503
507
  modelValue: [string, string];
504
508
  defaultValue: [string, string];
505
- open: boolean;
506
509
  defaultOpen: boolean;
507
510
  placeholder: string;
508
- disabled: boolean;
509
511
  invalid: boolean;
510
512
  readOnly: boolean;
511
513
  min: string;
512
- max: string;
514
+ isDateUnavailable: (date: DateValue) => boolean;
513
515
  closeOnSelect: boolean;
514
516
  locale: string;
515
- class: 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$47;
520
520
  //#endregion
@@ -596,8 +596,8 @@ declare const __VLS_export$45: import("vue").DefineComponent<import("vue").Extra
596
596
  default: any;
597
597
  };
598
598
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
599
- "update:modelValue": (value: string) => any;
600
599
  "update:open": (open: boolean) => any;
600
+ "update:modelValue": (value: string) => any;
601
601
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
602
602
  /** 受控月份("yyyy-MM");undefined 走内部非受控,null 表示空 */
603
603
  modelValue: {
@@ -659,22 +659,22 @@ declare const __VLS_export$45: import("vue").DefineComponent<import("vue").Extra
659
659
  default: any;
660
660
  };
661
661
  }>> & Readonly<{
662
- "onUpdate:modelValue"?: (value: string) => any;
663
662
  "onUpdate:open"?: (open: boolean) => any;
663
+ "onUpdate:modelValue"?: (value: string) => any;
664
664
  }>, {
665
+ class: string;
666
+ max: string;
667
+ open: boolean;
668
+ disabled: boolean;
665
669
  modelValue: string;
666
670
  defaultValue: string;
667
- open: boolean;
668
671
  defaultOpen: boolean;
669
672
  placeholder: string;
670
- disabled: boolean;
671
673
  invalid: boolean;
672
674
  readOnly: boolean;
673
675
  min: string;
674
- max: string;
675
676
  closeOnSelect: boolean;
676
677
  locale: string;
677
- class: string;
678
678
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
679
679
  declare const _default$29: typeof __VLS_export$45;
680
680
  //#endregion
@@ -745,8 +745,8 @@ declare const __VLS_export$44: import("vue").DefineComponent<import("vue").Extra
745
745
  default: any;
746
746
  };
747
747
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
748
- "update:modelValue": (value: string) => any;
749
748
  "update:open": (open: boolean) => any;
749
+ "update:modelValue": (value: string) => any;
750
750
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
751
751
  /** 受控值("yyyy-MM-dd",语义=所在周起始日);undefined 走内部非受控,null 表示空 */
752
752
  modelValue: {
@@ -813,23 +813,23 @@ declare const __VLS_export$44: import("vue").DefineComponent<import("vue").Extra
813
813
  default: any;
814
814
  };
815
815
  }>> & Readonly<{
816
- "onUpdate:modelValue"?: (value: string) => any;
817
816
  "onUpdate:open"?: (open: boolean) => any;
817
+ "onUpdate:modelValue"?: (value: string) => any;
818
818
  }>, {
819
+ class: string;
820
+ max: string;
821
+ open: boolean;
822
+ disabled: boolean;
819
823
  modelValue: string;
820
824
  defaultValue: string;
821
- open: boolean;
822
825
  defaultOpen: boolean;
823
826
  placeholder: string;
824
- disabled: boolean;
825
827
  invalid: boolean;
826
828
  readOnly: boolean;
827
829
  min: string;
828
- max: string;
830
+ isDateUnavailable: (date: DateValue) => boolean;
829
831
  closeOnSelect: boolean;
830
832
  locale: string;
831
- class: string;
832
- isDateUnavailable: (date: DateValue) => boolean;
833
833
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
834
834
  declare const _default$49: typeof __VLS_export$44;
835
835
  //#endregion
@@ -913,12 +913,12 @@ declare const __VLS_base$30: import("vue").DefineComponent<import("vue").Extract
913
913
  }>> & Readonly<{
914
914
  "onUpdate:modelValue"?: (value: number) => any;
915
915
  }>, {
916
- modelValue: number;
916
+ class: string;
917
+ max: number;
917
918
  disabled: boolean;
919
+ modelValue: number;
918
920
  invalid: boolean;
919
921
  min: number;
920
- max: number;
921
- class: string;
922
922
  step: number;
923
923
  formatOptions: Intl.NumberFormatOptions;
924
924
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1013,11 +1013,11 @@ declare const __VLS_base$29: import("vue").DefineComponent<import("vue").Extract
1013
1013
  "onUpdate:modelValue"?: (value: string) => any;
1014
1014
  "onUpdate:visible"?: (visible: boolean) => any;
1015
1015
  }>, {
1016
+ class: string;
1017
+ disabled: boolean;
1016
1018
  modelValue: string;
1017
1019
  placeholder: string;
1018
- disabled: boolean;
1019
1020
  invalid: boolean;
1020
- class: string;
1021
1021
  visible: boolean;
1022
1022
  autoComplete: "current-password" | "new-password";
1023
1023
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1083,7 +1083,8 @@ type __VLS_WithSlots$28<T, S> = T & {
1083
1083
  /*!
1084
1084
  * 移植自 treemate v0.3.11 —— https://github.com/07akioni/treemate
1085
1085
  * MIT License · Copyright (c) 07akioni
1086
- * 本地改动:无实质改动(仅类型导入顺序与注释格式)。
1086
+ * 本地改动:GetChildren 返回类型由 `Array<R | G | I> | unknown` 塌缩为 `unknown`
1087
+ * (TS 中 `X | unknown` 恒等于 `unknown`,语义不变,消除 no-redundant-type-constituents 告警)。
1087
1088
  */
1088
1089
  type Key = string | number;
1089
1090
  type CheckStrategy = "all" | "child" | "parent";
@@ -1182,8 +1183,8 @@ declare const __VLS_export$40: import("vue").DefineComponent<import("vue").Extra
1182
1183
  default: any;
1183
1184
  };
1184
1185
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1185
- "update:modelValue": (value: Key | Key[]) => any;
1186
1186
  "update:open": (open: boolean) => any;
1187
+ "update:modelValue": (value: Key | Key[]) => any;
1187
1188
  "update:show": (open: boolean) => any;
1188
1189
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1189
1190
  /** 树形选项(key 必填,label 展示名,children 子级) */
@@ -1267,17 +1268,17 @@ declare const __VLS_export$40: import("vue").DefineComponent<import("vue").Extra
1267
1268
  default: any;
1268
1269
  };
1269
1270
  }>> & Readonly<{
1270
- "onUpdate:modelValue"?: (value: Key | Key[]) => any;
1271
1271
  "onUpdate:open"?: (open: boolean) => any;
1272
+ "onUpdate:modelValue"?: (value: Key | Key[]) => any;
1272
1273
  "onUpdate:show"?: (open: boolean) => any;
1273
1274
  }>, {
1275
+ class: string;
1276
+ open: boolean;
1277
+ disabled: boolean;
1274
1278
  modelValue: Key | Key[];
1275
1279
  defaultValue: Key | Key[];
1276
- open: boolean;
1277
1280
  defaultOpen: boolean;
1278
1281
  placeholder: string;
1279
- disabled: boolean;
1280
- class: string;
1281
1282
  multiple: boolean;
1282
1283
  checkable: boolean;
1283
1284
  cascade: boolean;
@@ -1377,8 +1378,8 @@ declare const __VLS_export$39: import("vue").DefineComponent<import("vue").Extra
1377
1378
  default: any;
1378
1379
  };
1379
1380
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1380
- "update:modelValue": (value: Key | Key[]) => any;
1381
1381
  "update:open": (open: boolean) => any;
1382
+ "update:modelValue": (value: Key | Key[]) => any;
1382
1383
  "update:show": (open: boolean) => any;
1383
1384
  "update:expandedKeys": (keys: Key[]) => any;
1384
1385
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -1467,18 +1468,18 @@ declare const __VLS_export$39: import("vue").DefineComponent<import("vue").Extra
1467
1468
  default: any;
1468
1469
  };
1469
1470
  }>> & Readonly<{
1470
- "onUpdate:modelValue"?: (value: Key | Key[]) => any;
1471
1471
  "onUpdate:open"?: (open: boolean) => any;
1472
+ "onUpdate:modelValue"?: (value: Key | Key[]) => any;
1472
1473
  "onUpdate:show"?: (open: boolean) => any;
1473
1474
  "onUpdate:expandedKeys"?: (keys: Key[]) => any;
1474
1475
  }>, {
1476
+ class: string;
1477
+ open: boolean;
1478
+ disabled: boolean;
1475
1479
  modelValue: Key | Key[];
1476
1480
  defaultValue: Key | Key[];
1477
- open: boolean;
1478
1481
  defaultOpen: boolean;
1479
1482
  placeholder: string;
1480
- disabled: boolean;
1481
- class: string;
1482
1483
  multiple: boolean;
1483
1484
  checkable: boolean;
1484
1485
  cascade: boolean;
@@ -1548,8 +1549,8 @@ declare const __VLS_base$27: import("vue").DefineComponent<import("vue").Extract
1548
1549
  default: any;
1549
1550
  };
1550
1551
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1551
- "update:modelValue": (value: string) => any;
1552
1552
  "update:open": (open: boolean) => any;
1553
+ "update:modelValue": (value: string) => any;
1553
1554
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1554
1555
  /** 选项列表:字符串(label = value)或 { label, value, disabled? } */
1555
1556
  items: {
@@ -1590,12 +1591,12 @@ declare const __VLS_base$27: import("vue").DefineComponent<import("vue").Extract
1590
1591
  default: any;
1591
1592
  };
1592
1593
  }>> & Readonly<{
1593
- "onUpdate:modelValue"?: (value: string) => any;
1594
1594
  "onUpdate:open"?: (open: boolean) => any;
1595
+ "onUpdate:modelValue"?: (value: string) => any;
1595
1596
  }>, {
1597
+ open: boolean;
1596
1598
  modelValue: string;
1597
1599
  defaultValue: string;
1598
- open: boolean;
1599
1600
  defaultOpen: boolean;
1600
1601
  placeholder: string;
1601
1602
  contentClass: string;
@@ -1627,8 +1628,8 @@ declare const __VLS_export$37: import("vue").DefineComponent<__VLS_Props$11, {},
1627
1628
  }, string, import("vue").PublicProps, Readonly<__VLS_Props$11> & Readonly<{
1628
1629
  "onUpdate:modelValue"?: (value: number[]) => any;
1629
1630
  }>, {
1630
- min: number;
1631
1631
  max: number;
1632
+ min: number;
1632
1633
  step: number;
1633
1634
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1634
1635
  declare const _default$40: typeof __VLS_export$37;
@@ -1677,10 +1678,10 @@ declare const __VLS_base$26: import("vue").DefineComponent<import("vue").Extract
1677
1678
  }>> & Readonly<{
1678
1679
  "onUpdate:checked"?: (checked: boolean) => any;
1679
1680
  }>, {
1680
- disabled: boolean;
1681
1681
  class: string;
1682
1682
  checked: boolean;
1683
1683
  defaultChecked: boolean;
1684
+ disabled: boolean;
1684
1685
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1685
1686
  declare const __VLS_export$36: __VLS_WithSlots$26<typeof __VLS_base$26, __VLS_Slots$26>;
1686
1687
  declare const _default$42: typeof __VLS_export$36;
@@ -1768,8 +1769,8 @@ declare const __VLS_export$34: import("vue").DefineComponent<import("vue").Extra
1768
1769
  default: any;
1769
1770
  };
1770
1771
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1771
- "update:modelValue": (value: string) => any;
1772
1772
  "update:open": (open: boolean) => any;
1773
+ "update:modelValue": (value: string) => any;
1773
1774
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1774
1775
  /** 受控年份("yyyy");undefined 走内部非受控,null 表示空 */
1775
1776
  modelValue: {
@@ -1831,22 +1832,22 @@ declare const __VLS_export$34: import("vue").DefineComponent<import("vue").Extra
1831
1832
  default: any;
1832
1833
  };
1833
1834
  }>> & Readonly<{
1834
- "onUpdate:modelValue"?: (value: string) => any;
1835
1835
  "onUpdate:open"?: (open: boolean) => any;
1836
+ "onUpdate:modelValue"?: (value: string) => any;
1836
1837
  }>, {
1838
+ class: string;
1839
+ max: string;
1840
+ open: boolean;
1841
+ disabled: boolean;
1837
1842
  modelValue: string;
1838
1843
  defaultValue: string;
1839
- open: boolean;
1840
1844
  defaultOpen: boolean;
1841
1845
  placeholder: string;
1842
- disabled: boolean;
1843
1846
  invalid: boolean;
1844
1847
  readOnly: boolean;
1845
1848
  min: string;
1846
- max: string;
1847
1849
  closeOnSelect: boolean;
1848
1850
  locale: string;
1849
- class: string;
1850
1851
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1851
1852
  declare const _default$50: typeof __VLS_export$34;
1852
1853
  //#endregion
@@ -2217,7 +2218,7 @@ type __VLS_WithSlots$24<T, S> = T & {
2217
2218
  //#endregion
2218
2219
  //#region src/components/avatar/index.d.ts
2219
2220
  export declare const avatarVariants: (props?: {
2220
- size?: "xs" | "sm" | "md" | "lg";
2221
+ size?: "sm" | "lg" | "xs" | "md";
2221
2222
  shape?: "circle" | "square";
2222
2223
  } & import("class-variance-authority/types").ClassProp) => string;
2223
2224
  export type AvatarVariants = VariantProps<typeof avatarVariants>;
@@ -2309,7 +2310,7 @@ type __VLS_WithSlots$21<T, S> = T & {
2309
2310
  //#region src/components/button/index.d.ts
2310
2311
  export declare const buttonVariants: (props?: {
2311
2312
  variant?: "default" | "secondary" | "destructive" | "outline" | "ghost" | "link";
2312
- size?: "sm" | "lg" | "default" | "icon";
2313
+ size?: "sm" | "default" | "lg" | "icon";
2313
2314
  } & import("class-variance-authority/types").ClassProp) => string;
2314
2315
  export type ButtonVariants = VariantProps<typeof buttonVariants>;
2315
2316
  //#endregion
@@ -2411,14 +2412,14 @@ declare const __VLS_export$28: import("vue").DefineComponent<import("vue").Extra
2411
2412
  }>> & Readonly<{
2412
2413
  "onUpdate:modelValue"?: (value: string) => any;
2413
2414
  }>, {
2415
+ max: string;
2414
2416
  modelValue: string;
2415
2417
  defaultValue: string;
2416
2418
  min: string;
2417
- max: string;
2419
+ isDateUnavailable: (date: DateValue) => boolean;
2418
2420
  locale: string;
2419
2421
  mode: "day" | "month" | "year";
2420
2422
  numOfMonths: number;
2421
- isDateUnavailable: (date: DateValue) => boolean;
2422
2423
  week: boolean;
2423
2424
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2424
2425
  declare const _default$6: typeof __VLS_export$28;
@@ -2481,7 +2482,7 @@ type __VLS_WithSlots$20<T, S> = T & {
2481
2482
  //#endregion
2482
2483
  //#region src/components/card/index.d.ts
2483
2484
  export declare const cardVariants: (props?: {
2484
- size?: "sm" | "lg" | "default";
2485
+ size?: "sm" | "default" | "lg";
2485
2486
  bordered?: boolean;
2486
2487
  hoverable?: boolean;
2487
2488
  interactive?: boolean;
@@ -2594,13 +2595,13 @@ declare const __VLS_base$19: import("vue").DefineComponent<import("vue").Extract
2594
2595
  }>> & Readonly<{
2595
2596
  "onUpdate:open"?: (open: boolean) => any;
2596
2597
  }>, {
2598
+ title: string;
2599
+ description: string;
2597
2600
  open: boolean;
2598
2601
  defaultOpen: boolean;
2599
2602
  lazyMount: boolean;
2600
2603
  unmountOnExit: boolean;
2601
2604
  contentClass: string;
2602
- title: string;
2603
- description: string;
2604
2605
  showCloseButton: boolean;
2605
2606
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2606
2607
  declare const __VLS_export$26: __VLS_WithSlots$19<typeof __VLS_base$19, __VLS_Slots$19>;
@@ -3028,13 +3029,13 @@ declare const __VLS_base$11: import("vue").DefineComponent<import("vue").Extract
3028
3029
  "onUpdate:modelValue"?: (value: string[]) => any;
3029
3030
  onComplete?: (value: string[]) => any;
3030
3031
  }>, {
3032
+ class: string;
3033
+ type: "numeric" | "alphanumeric";
3031
3034
  length: number;
3035
+ disabled: boolean;
3032
3036
  modelValue: string[];
3033
- type: "numeric" | "alphanumeric";
3034
3037
  placeholder: string;
3035
- disabled: boolean;
3036
3038
  invalid: boolean;
3037
- class: string;
3038
3039
  otp: boolean;
3039
3040
  mask: boolean;
3040
3041
  autoSubmit: boolean;
@@ -3138,9 +3139,9 @@ declare const __VLS_base$10: import("vue").DefineComponent<import("vue").Extract
3138
3139
  defaultOpen: boolean;
3139
3140
  lazyMount: boolean;
3140
3141
  unmountOnExit: boolean;
3141
- align: Align;
3142
3142
  contentClass: string;
3143
3143
  contentProps: Record<string, unknown>;
3144
+ align: Align;
3144
3145
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3145
3146
  declare const __VLS_export$14: __VLS_WithSlots$10<typeof __VLS_base$10, __VLS_Slots$10>;
3146
3147
  declare const _default$34: typeof __VLS_export$14;
@@ -3853,13 +3854,13 @@ declare const __VLS_base$7: import("vue").DefineComponent<import("vue").ExtractP
3853
3854
  }>, {
3854
3855
  open: boolean;
3855
3856
  defaultOpen: boolean;
3857
+ content: string;
3858
+ delayDuration: number;
3859
+ closeDuration: number;
3856
3860
  lazyMount: boolean;
3857
3861
  unmountOnExit: boolean;
3858
3862
  contentClass: string;
3859
3863
  contentProps: Record<string, unknown>;
3860
- content: string;
3861
- delayDuration: number;
3862
- closeDuration: number;
3863
3864
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3864
3865
  declare const __VLS_export$9: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
3865
3866
  declare const _default$47: typeof __VLS_export$9;
@@ -4178,10 +4179,10 @@ declare const __VLS_base$3: import("vue").DefineComponent<import("vue").ExtractP
4178
4179
  onCancel?: () => any;
4179
4180
  }>, {
4180
4181
  destructive: boolean;
4181
- open: boolean;
4182
4182
  description: string;
4183
4183
  confirmText: string;
4184
4184
  cancelText: string;
4185
+ open: boolean;
4185
4186
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4186
4187
  declare const __VLS_export$3: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
4187
4188
  declare const _default$1: typeof __VLS_export$3;
@@ -4342,12 +4343,12 @@ declare const __VLS_base$1: import("vue").DefineComponent<import("vue").ExtractP
4342
4343
  "onUpdate:open"?: (open: boolean) => any;
4343
4344
  }>, {
4344
4345
  size: Size;
4346
+ title: string;
4347
+ description: string;
4345
4348
  open: boolean;
4346
4349
  defaultOpen: boolean;
4347
4350
  lazyMount: boolean;
4348
4351
  unmountOnExit: boolean;
4349
- title: string;
4350
- description: string;
4351
4352
  showCloseButton: boolean;
4352
4353
  placement: Placement;
4353
4354
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -4436,10 +4437,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
4436
4437
  onCancel?: () => any;
4437
4438
  }>, {
4438
4439
  variant: "default" | "destructive";
4439
- open: boolean;
4440
4440
  description: string;
4441
4441
  confirmText: string;
4442
4442
  cancelText: string;
4443
+ open: boolean;
4443
4444
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4444
4445
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4445
4446
  declare const _default$33: typeof __VLS_export;
package/dist/index.mjs CHANGED
@@ -3238,7 +3238,7 @@ const _sfc_main$56 = /*@__PURE__*/ defineComponent({
3238
3238
  /*!
3239
3239
  * 移植自 treemate v0.3.11 —— https://github.com/07akioni/treemate
3240
3240
  * MIT License · Copyright (c) 07akioni
3241
- * 本地改动:无实质改动。
3241
+ * 本地改动:defaultGetChildren 返回类型同步 GetChildren 塌缩为 `unknown`(语义不变)。
3242
3242
  */
3243
3243
  function toArray(arg) {
3244
3244
  if (Array.isArray(arg)) return arg;
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "alert-dialog",
4
+ "version": "0.4.2",
4
5
  "type": "registry:ui",
5
6
  "description": "确认弹窗单组件:v-model:open 控制显隐,title/description 传文案,@confirm/@cancel 处理确认与取消;确认处理器返回 Promise 时按钮进入 loading 并锁定 ESC/遮罩关闭,resolve 自动关闭、reject 保持打开;内容节点为 role=alertdialog。",
6
7
  "registryDependencies": ["button", "utils", "overlay-shared"],
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "alert",
4
+ "version": "0.4.2",
4
5
  "type": "registry:ui",
5
6
  "description": "语义化警示条,支持五种变体、内置图标与可关闭交互。",
6
7
  "registryDependencies": ["utils"],
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "avatar-group",
4
+ "version": "0.4.2",
4
5
  "type": "registry:ui",
5
6
  "description": "头像组,数量折叠、悬停展开与垂直排列。",
6
7
  "registryDependencies": ["utils", "avatar"],
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "avatar",
4
+ "version": "0.4.2",
4
5
  "type": "registry:ui",
5
6
  "description": "头像,支持尺寸/形状、加载占位与失败回退(Ark UI)。",
6
7
  "registryDependencies": ["utils"],
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "badge",
4
+ "version": "0.4.2",
4
5
  "type": "registry:ui",
5
6
  "description": "轻量状态徽标,支持四种变体。",
6
7
  "registryDependencies": ["utils"],
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "button",
4
+ "version": "0.4.2",
4
5
  "type": "registry:ui",
5
6
  "description": "带变体与尺寸的按钮,支持 as 标签切换与 asChild 组合。",
6
7
  "registryDependencies": ["utils", "slot"],
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "calendar",
4
+ "version": "0.4.2",
4
5
  "type": "registry:ui",
5
6
  "description": "日历(TCalendar):紧凑日历卡。Picker 弹层内为 embedded 内嵌形态(TDatePicker/TDateRangePicker 自动挂靠,纯卡片内核);独立使用即 standalone 独立形态(自带日历状态与 v-model,恒开展示)。",
6
7
  "registryDependencies": ["utils", "date-shared"],
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "card",
4
+ "version": "0.4.2",
4
5
  "type": "registry:ui",
5
6
  "description": "卡片容器:单组件 API,title/description 头部 + 命名插槽(cover/action/footer/header),支持尺寸、视觉变体、分段分隔与可关闭。",
6
7
  "registryDependencies": ["utils"],
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "cascader",
4
+ "version": "0.4.2",
4
5
  "type": "registry:ui",
5
6
  "description": "级联选择:一站式 props 驱动,多列联动、勾选级联、路径回显与多标签。",
6
7
  "registryDependencies": ["tree-shared", "utils", "date-shared", "overlay-shared"],
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "checkbox",
4
+ "version": "0.4.2",
4
5
  "type": "registry:ui",
5
6
  "description": "复选框:基于 Ark UI Checkbox 原语,支持标签插槽、受控/非受控与禁用。",
6
7
  "registryDependencies": ["utils"],
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "context-menu",
4
+ "version": "0.4.2",
4
5
  "type": "registry:ui",
5
6
  "description": "右键菜单:单组件模式,items 描述菜单项(与 dropdown-menu 同构,含分组/标题/分隔线,支持嵌套),默认插槽为触发元素(ContextTrigger as-child,右键唤出并定位到指针处),内置键盘导航与选中回调。",
6
7
  "registryDependencies": ["utils", "dropdown-menu"],
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "currency-input",
4
+ "version": "0.4.2",
4
5
  "type": "registry:ui",
5
6
  "description": "金额输入框:内置万/元/角/分单位后缀,labelUnit 输入单位与 valueUnit 存储单位自动换算(整数分最小精度),值以 number|null 受控。",
6
7
  "registryDependencies": ["utils"],
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "date-picker",
4
+ "version": "0.4.2",
4
5
  "type": "registry:ui",
5
6
  "description": "日期选择器:输入框 + 日历弹层(月/年视图切换),支持手动键入/清空/min-max 边界/不可选谓词,值以 \"yyyy-MM-dd\" 字符串受控。",
6
7
  "registryDependencies": ["utils", "date-shared", "calendar"],
@@ -1,6 +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.2",
4
5
  "type": "registry:ui",
5
6
  "description": "日期范围选择器:双月日历弹层(月/年视图切换),点选起点与终点,值以 [\"yyyy-MM-dd\", \"yyyy-MM-dd\"] 有序元组受控,空值归一 null。",
6
7
  "registryDependencies": ["utils", "date-shared", "calendar", "overlay-shared"],
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
3
  "name": "date-shared",
4
+ "version": "0.4.2",
4
5
  "type": "registry:ui",
5
6
  "description": "日期家族共享模块:ISO 值域解析(日期/月/年/区间)、日历样式常量与单值选择器外壳(PickerShell/usePickerBridge)。",
6
7
  "registryDependencies": ["utils", "overlay-shared"],