@cynnie/ui-shadcn 0.1.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 (114) hide show
  1. package/README.md +49 -0
  2. package/dist/Checkbox-DswwIgpU.js +38 -0
  3. package/dist/Checkbox-DswwIgpU.js.map +1 -0
  4. package/dist/DialogTitle-CCJNart2.js +107 -0
  5. package/dist/DialogTitle-CCJNart2.js.map +1 -0
  6. package/dist/Input-BQYIq9cS.js +24 -0
  7. package/dist/Input-BQYIq9cS.js.map +1 -0
  8. package/dist/Loader-DZyMmrI8.js +19 -0
  9. package/dist/Loader-DZyMmrI8.js.map +1 -0
  10. package/dist/ProButton-BQWpTTCy.js +84 -0
  11. package/dist/ProButton-BQWpTTCy.js.map +1 -0
  12. package/dist/ProCheckboxGroup-DX6c9gx-.js +71 -0
  13. package/dist/ProCheckboxGroup-DX6c9gx-.js.map +1 -0
  14. package/dist/ProConfirmButton-zcvp7NcN.js +175 -0
  15. package/dist/ProConfirmButton-zcvp7NcN.js.map +1 -0
  16. package/dist/ProDescriptions-B1znLzkY.js +45 -0
  17. package/dist/ProDescriptions-B1znLzkY.js.map +1 -0
  18. package/dist/ProFormBuilder-CsNShZ0y.js +1138 -0
  19. package/dist/ProFormBuilder-CsNShZ0y.js.map +1 -0
  20. package/dist/ProInput-D20F1Xx-.js +91 -0
  21. package/dist/ProInput-D20F1Xx-.js.map +1 -0
  22. package/dist/ProModal-DsIFQ8y5.js +109 -0
  23. package/dist/ProModal-DsIFQ8y5.js.map +1 -0
  24. package/dist/ProRadioGroup-CTxqLQjw.js +138 -0
  25. package/dist/ProRadioGroup-CTxqLQjw.js.map +1 -0
  26. package/dist/ProSelect-DT0zjDjT.js +90 -0
  27. package/dist/ProSelect-DT0zjDjT.js.map +1 -0
  28. package/dist/ProTable-CP1Mc52q.js +349 -0
  29. package/dist/ProTable-CP1Mc52q.js.map +1 -0
  30. package/dist/SelectValue-CWl9zUW3.js +163 -0
  31. package/dist/SelectValue-CWl9zUW3.js.map +1 -0
  32. package/dist/button-BQVT6mY3.js +60 -0
  33. package/dist/button-BQVT6mY3.js.map +1 -0
  34. package/dist/components/ProButton/ProCountdownButton.vue.d.ts +28 -0
  35. package/dist/components/ProButton/index.js +2 -0
  36. package/dist/components/ProButton/index.vue.d.ts +31 -0
  37. package/dist/components/ProCheckboxGroup/index.js +2 -0
  38. package/dist/components/ProCheckboxGroup/index.vue.d.ts +18 -0
  39. package/dist/components/ProConfirmButton/index.js +2 -0
  40. package/dist/components/ProConfirmButton/index.vue.d.ts +43 -0
  41. package/dist/components/ProDescriptions/index.js +2 -0
  42. package/dist/components/ProDescriptions/index.vue.d.ts +40 -0
  43. package/dist/components/ProFormBuilder/index.js +2 -0
  44. package/dist/components/ProFormBuilder/index.vue.d.ts +43 -0
  45. package/dist/components/ProInput/index.js +2 -0
  46. package/dist/components/ProInput/index.vue.d.ts +27 -0
  47. package/dist/components/ProModal/index.js +2 -0
  48. package/dist/components/ProModal/index.vue.d.ts +45 -0
  49. package/dist/components/ProRadioGroup/index.js +2 -0
  50. package/dist/components/ProRadioGroup/index.vue.d.ts +20 -0
  51. package/dist/components/ProSelect/index.js +2 -0
  52. package/dist/components/ProSelect/index.vue.d.ts +28 -0
  53. package/dist/components/ProTable/ProTableForm.vue.d.ts +91 -0
  54. package/dist/components/ProTable/index.js +2 -0
  55. package/dist/components/ProTable/index.vue.d.ts +36 -0
  56. package/dist/components/index.d.ts +12 -0
  57. package/dist/components/ui/alert/Alert.vue.d.ts +22 -0
  58. package/dist/components/ui/alert/index.d.ts +6 -0
  59. package/dist/components/ui/button/Button.vue.d.ts +27 -0
  60. package/dist/components/ui/button/index.d.ts +7 -0
  61. package/dist/components/ui/checkbox/Checkbox.vue.d.ts +11 -0
  62. package/dist/components/ui/checkbox/index.d.ts +1 -0
  63. package/dist/components/ui/dialog/Dialog.vue.d.ts +22 -0
  64. package/dist/components/ui/dialog/DialogClose.vue.d.ts +18 -0
  65. package/dist/components/ui/dialog/DialogContent.vue.d.ts +36 -0
  66. package/dist/components/ui/dialog/DialogDescription.vue.d.ts +22 -0
  67. package/dist/components/ui/dialog/DialogFooter.vue.d.ts +21 -0
  68. package/dist/components/ui/dialog/DialogHeader.vue.d.ts +21 -0
  69. package/dist/components/ui/dialog/DialogTitle.vue.d.ts +22 -0
  70. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +18 -0
  71. package/dist/components/ui/dialog/index.d.ts +8 -0
  72. package/dist/components/ui/index.d.ts +12 -0
  73. package/dist/components/ui/input/Input.vue.d.ts +13 -0
  74. package/dist/components/ui/input/index.d.ts +1 -0
  75. package/dist/components/ui/label/Label.vue.d.ts +24 -0
  76. package/dist/components/ui/label/index.d.ts +1 -0
  77. package/dist/components/ui/loader/Loader.vue.d.ts +6 -0
  78. package/dist/components/ui/loader/index.d.ts +1 -0
  79. package/dist/components/ui/popover/Popover.vue.d.ts +22 -0
  80. package/dist/components/ui/popover/PopoverContent.vue.d.ts +38 -0
  81. package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +18 -0
  82. package/dist/components/ui/popover/index.d.ts +3 -0
  83. package/dist/components/ui/radio-group/RadioGroup.vue.d.ts +22 -0
  84. package/dist/components/ui/radio-group/RadioGroupItem.vue.d.ts +7 -0
  85. package/dist/components/ui/radio-group/index.d.ts +2 -0
  86. package/dist/components/ui/select/Select.vue.d.ts +19 -0
  87. package/dist/components/ui/select/SelectContent.vue.d.ts +32 -0
  88. package/dist/components/ui/select/SelectItem.vue.d.ts +22 -0
  89. package/dist/components/ui/select/SelectTrigger.vue.d.ts +21 -0
  90. package/dist/components/ui/select/SelectValue.vue.d.ts +21 -0
  91. package/dist/components/ui/select/index.d.ts +5 -0
  92. package/dist/components/ui/table/Table.vue.d.ts +21 -0
  93. package/dist/components/ui/table/TableBody.vue.d.ts +21 -0
  94. package/dist/components/ui/table/TableCell.vue.d.ts +21 -0
  95. package/dist/components/ui/table/TableHead.vue.d.ts +21 -0
  96. package/dist/components/ui/table/TableHeader.vue.d.ts +21 -0
  97. package/dist/components/ui/table/TableRow.vue.d.ts +21 -0
  98. package/dist/components/ui/table/index.d.ts +6 -0
  99. package/dist/components/ui/textarea/Textarea.vue.d.ts +13 -0
  100. package/dist/components/ui/textarea/index.d.ts +1 -0
  101. package/dist/index.d.ts +8 -0
  102. package/dist/index.js +65 -0
  103. package/dist/index.js.map +1 -0
  104. package/dist/lib/utils.d.ts +3 -0
  105. package/dist/openDialog-CVp3qAfm.js +95 -0
  106. package/dist/openDialog-CVp3qAfm.js.map +1 -0
  107. package/dist/utils/openDialog.d.ts +25 -0
  108. package/dist/utils/openDialog.js +2 -0
  109. package/dist/utils/uiMessage.d.ts +8 -0
  110. package/dist/utils-Dg1mr-yh.js +8 -0
  111. package/dist/utils-Dg1mr-yh.js.map +1 -0
  112. package/package.json +108 -0
  113. package/src/style.css +14 -0
  114. package/src/tailwind.preset.css +139 -0
@@ -0,0 +1,60 @@
1
+ import { t as cn } from "./utils-Dg1mr-yh.js";
2
+ import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
3
+ import { cva } from "class-variance-authority";
4
+ import { Primitive } from "reka-ui";
5
+ var Button_default = /* @__PURE__ */ defineComponent({
6
+ __name: "Button",
7
+ props: {
8
+ variant: {},
9
+ size: {},
10
+ class: {},
11
+ asChild: { type: Boolean },
12
+ as: { default: "button" }
13
+ },
14
+ setup(__props) {
15
+ const props = __props;
16
+ return (_ctx, _cache) => {
17
+ return openBlock(), createBlock(unref(Primitive), {
18
+ "data-slot": "button",
19
+ as: _ctx.as,
20
+ "as-child": _ctx.asChild,
21
+ class: normalizeClass(unref(cn)(unref(buttonVariants)({
22
+ variant: _ctx.variant,
23
+ size: _ctx.size
24
+ }), props.class))
25
+ }, {
26
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
27
+ _: 3
28
+ }, 8, [
29
+ "as",
30
+ "as-child",
31
+ "class"
32
+ ]);
33
+ };
34
+ }
35
+ });
36
+ const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer", {
37
+ variants: {
38
+ variant: {
39
+ default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
40
+ destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
41
+ outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
42
+ secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
43
+ ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
44
+ link: "text-primary underline-offset-4 hover:underline"
45
+ },
46
+ size: {
47
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
48
+ sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
49
+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
50
+ icon: "size-9"
51
+ }
52
+ },
53
+ defaultVariants: {
54
+ variant: "default",
55
+ size: "default"
56
+ }
57
+ });
58
+ export { Button_default as t };
59
+
60
+ //# sourceMappingURL=button-BQVT6mY3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-BQVT6mY3.js","names":["as","asChild","variant","size"],"sources":["../src/components/ui/button/Button.vue","../src/components/ui/button/Button.vue","../src/components/ui/button/index.ts"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { PrimitiveProps } from \"reka-ui\";\nimport type { HTMLAttributes } from \"vue\";\nimport { Primitive } from \"reka-ui\";\nimport { type ButtonVariants, buttonVariants } from \".\";\nimport { cn } from \"../../../lib/utils\";\n\ninterface Props extends PrimitiveProps {\n variant?: ButtonVariants[\"variant\"];\n size?: ButtonVariants[\"size\"];\n class?: HTMLAttributes[\"class\"];\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n as: \"button\",\n});\n</script>\n\n<template>\n <Primitive\n data-slot=\"button\"\n :as=\"as\"\n :as-child=\"asChild\"\n :class=\"cn(buttonVariants({ variant, size }), props.class)\"\n >\n <slot />\n </Primitive>\n</template>\n","<script lang=\"ts\" setup>\nimport type { PrimitiveProps } from \"reka-ui\";\nimport type { HTMLAttributes } from \"vue\";\nimport { Primitive } from \"reka-ui\";\nimport { type ButtonVariants, buttonVariants } from \".\";\nimport { cn } from \"../../../lib/utils\";\n\ninterface Props extends PrimitiveProps {\n variant?: ButtonVariants[\"variant\"];\n size?: ButtonVariants[\"size\"];\n class?: HTMLAttributes[\"class\"];\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n as: \"button\",\n});\n</script>\n\n<template>\n <Primitive\n data-slot=\"button\"\n :as=\"as\"\n :as-child=\"asChild\"\n :class=\"cn(buttonVariants({ variant, size }), props.class)\"\n >\n <slot />\n </Primitive>\n</template>\n","import type { VariantProps } from \"class-variance-authority\";\nimport { cva } from \"class-variance-authority\";\n\nexport { default as Button } from \"./Button.vue\";\n\nexport const buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60\",\n outline: \"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50\",\n secondary: \"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-9 px-4 py-2 has-[>svg]:px-3\",\n sm: \"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5\",\n lg: \"h-10 rounded-md px-6 has-[>svg]:px-4\",\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"],"mappings":";;;;;;;;;;;;;;ECaA,MAAM,QAAQ;;uBAMZ,YAOY,MAAA,UAAA,EAAA;IANV,aAAU;IACT,IAAIA,KAAAA;IACJ,YAAUC,KAAAA;IACV,OAAK,eAAE,MAAA,GAAE,CAAC,MAAA,eAAc,CAAA;KAAA,SAAGC,KAAAA;KAAO,MAAEC,KAAAA;KAAI,CAAA,EAAK,MAAM,MAAK,CAAA;;2BAEjD,CAAR,WAAQ,KAAA,QAAA,UAAA,CAAA,CAAA;;;;;;;;;;ACpBZ,MAAa,iBAAiB,IAC5B,8cACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,aACE;GACF,SAAS;GACT,WAAW;GACX,OAAO;GACP,MAAM;GACP;EACD,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACJ,MAAM;GACP;EACF;CACD,iBAAiB;EACf,SAAS;EACT,MAAM;EACP;CACF,CACF"}
@@ -0,0 +1,28 @@
1
+ type __VLS_Props = {
2
+ /** 倒计时秒数 */
3
+ seconds?: number;
4
+ /** 倒计时期间按钮文案,{} 会替换为剩余秒数 */
5
+ countingText?: string;
6
+ /** 点击处理函数:返回 Promise 且 resolve 后才开始倒计时(适合发验证码接口) */
7
+ onClick?: (...args: any[]) => any;
8
+ };
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ default?(_: {}): any;
13
+ };
14
+ refs: {};
15
+ rootEl: any;
16
+ };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
19
+ seconds: number;
20
+ countingText: string;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,2 @@
1
+ import { t as ProButton_default } from "../../ProButton-BQWpTTCy.js";
2
+ export { ProButton_default as default };
@@ -0,0 +1,31 @@
1
+ type __VLS_Props = {
2
+ /** 按钮风格,对齐 antd 的 type + danger 组合:primary / default / dashed / text / link */
3
+ type?: "primary" | "default" | "dashed" | "text" | "link";
4
+ /** 危险按钮(红色) */
5
+ danger?: boolean;
6
+ /** 点击后 delay 毫秒内再次点击不生效(防抖) */
7
+ debounce?: number;
8
+ /** 点击处理函数:返回 Promise 时按钮自动进入 loading 直到结束 */
9
+ onClick?: (...args: any[]) => any;
10
+ };
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: {
14
+ default?(_: {}): any;
15
+ };
16
+ refs: {};
17
+ rootEl: any;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
21
+ type: "primary" | "default" | "dashed" | "text" | "link";
22
+ danger: boolean;
23
+ debounce: number;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
+ export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,2 @@
1
+ import { t as ProCheckboxGroup_default } from "../../ProCheckboxGroup-DX6c9gx-.js";
2
+ export { ProCheckboxGroup_default as default };
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ /** 选项数据源:静态数组 / 字符串数组 / 返回数组的函数(远程字典) */
3
+ options?: any;
4
+ /** options 里 label / value 的字段名 */
5
+ labelField?: string;
6
+ valueField?: string;
7
+ /** 远程字典的依赖值,变化时自动重新拉取 */
8
+ deps?: any;
9
+ };
10
+ type __VLS_PublicProps = {
11
+ modelValue?: any[];
12
+ } & __VLS_Props;
13
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ "update:modelValue": (value: any[]) => any;
15
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
+ "onUpdate:modelValue"?: (value: any[]) => any;
17
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
18
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { t as ProConfirmButton_default } from "../../ProConfirmButton-zcvp7NcN.js";
2
+ export { ProConfirmButton_default as default };
@@ -0,0 +1,43 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
2
+ /** 气泡确认框标题 */
3
+ title?: string;
4
+ /** 确认执行函数:返回 Promise 时确认按钮自动进入 loading */
5
+ onConfirm?: () => Promise<any> | any;
6
+ /** 按钮风格,对齐 antd 的 type */
7
+ type?: "primary" | "default" | "dashed" | "text" | "link";
8
+ /** 危险按钮(红色) */
9
+ danger?: boolean;
10
+ /** 确认按钮文案 */
11
+ okText?: string;
12
+ /** 取消按钮文案 */
13
+ cancelText?: string;
14
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
15
+ /** 气泡确认框标题 */
16
+ title?: string;
17
+ /** 确认执行函数:返回 Promise 时确认按钮自动进入 loading */
18
+ onConfirm?: () => Promise<any> | any;
19
+ /** 按钮风格,对齐 antd 的 type */
20
+ type?: "primary" | "default" | "dashed" | "text" | "link";
21
+ /** 危险按钮(红色) */
22
+ danger?: boolean;
23
+ /** 确认按钮文案 */
24
+ okText?: string;
25
+ /** 取消按钮文案 */
26
+ cancelText?: string;
27
+ }> & Readonly<{}>, {
28
+ type: "primary" | "default" | "dashed" | "text" | "link";
29
+ title: string;
30
+ danger: boolean;
31
+ okText: string;
32
+ cancelText: string;
33
+ }, {}, {
34
+ CircleAlertIcon: import('vue').FunctionalComponent<import('lucide-vue-next').LucideProps, {}, any, {}>;
35
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
36
+ default?(_: {}): any;
37
+ }>;
38
+ export default _default;
39
+ type __VLS_WithTemplateSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -0,0 +1,2 @@
1
+ import { t as ProDescriptions_default } from "../../ProDescriptions-B1znLzkY.js";
2
+ export { ProDescriptions_default as default };
@@ -0,0 +1,40 @@
1
+ export interface DescriptionItem {
2
+ /** 标签 */
3
+ label: string;
4
+ /** 字段名 */
5
+ key: string;
6
+ /** 自定义渲染,返回字符串或 vnode */
7
+ render?: (value: any, record: Record<string, any>) => any;
8
+ }
9
+ type __VLS_Props = {
10
+ /** 描述项配置 */
11
+ items: DescriptionItem[];
12
+ /** 数据对象 */
13
+ data: Record<string, any>;
14
+ /** 空值占位符 */
15
+ emptyText?: string;
16
+ /** 是否带边框(对齐 antd 的 bordered) */
17
+ bordered?: boolean;
18
+ /** 每行列数 */
19
+ column?: string | number;
20
+ };
21
+ declare function __VLS_template(): {
22
+ attrs: Partial<{}>;
23
+ slots: {
24
+ value?(_: {
25
+ label: string;
26
+ value: any;
27
+ }): any;
28
+ };
29
+ refs: {};
30
+ rootEl: any;
31
+ };
32
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
33
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
34
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
+ export default _default;
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,2 @@
1
+ import { t as ProFormBuilder_default } from "../../ProFormBuilder-CsNShZ0y.js";
2
+ export { ProFormBuilder_default as default };
@@ -0,0 +1,43 @@
1
+ import { FormItem } from '@cynnie/ui-core';
2
+ type __VLS_Props = {
3
+ formItems: FormItem[];
4
+ rules?: Record<string, any>;
5
+ /** 全局栅格数(24 分制),单项可用 item.span 覆盖 */
6
+ span?: number;
7
+ /** 兼容参数:shadcn 版暂不消费(保留与其他实现对齐) */
8
+ formConfig?: Record<string, any>;
9
+ };
10
+ /** 校验全部字段:通过 resolve,不通过 reject(与 a-form / el-form 行为对齐) */
11
+ declare function validate(): Promise<boolean>;
12
+ declare function clearValidate(): void;
13
+ type __VLS_PublicProps = {
14
+ modelValue?: Record<string, any>;
15
+ } & __VLS_Props;
16
+ declare function __VLS_template(): {
17
+ attrs: Partial<{}>;
18
+ slots: Partial<Record<string, (_: {}) => any>>;
19
+ refs: {
20
+ formRef: HTMLDivElement;
21
+ };
22
+ rootEl: HTMLDivElement;
23
+ };
24
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
25
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
26
+ validate: typeof validate;
27
+ clearValidate: typeof clearValidate;
28
+ errors: import('vue').Ref<Record<string, string>, Record<string, string>>;
29
+ formRef: import('vue').Ref<any, any>;
30
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
+ "update:modelValue": (value: Record<string, any>) => any;
32
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
33
+ "onUpdate:modelValue"?: (value: Record<string, any>) => any;
34
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
35
+ formRef: HTMLDivElement;
36
+ }, HTMLDivElement>;
37
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
38
+ export default _default;
39
+ type __VLS_WithTemplateSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -0,0 +1,2 @@
1
+ import { t as ProInput_default } from "../../ProInput-D20F1Xx-.js";
2
+ export { ProInput_default as default };
@@ -0,0 +1,27 @@
1
+ type __VLS_Props = {
2
+ /** 输入停止 delay 毫秒后才同步 v-model(防抖) */
3
+ debounce?: number;
4
+ /** 一键清空,对齐 antd 的 allow-clear */
5
+ allowClear?: boolean;
6
+ /** 是否显示为搜索框(回车时触发 search),对齐 a-input-search */
7
+ search?: boolean;
8
+ };
9
+ type __VLS_PublicProps = {
10
+ modelValue?: any;
11
+ } & __VLS_Props;
12
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ search: (...args: any[]) => void;
14
+ change: (...args: any[]) => void;
15
+ pressEnter: (...args: any[]) => void;
16
+ "update:modelValue": (value: any) => void;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
18
+ onSearch?: (...args: any[]) => any;
19
+ "onUpdate:modelValue"?: (value: any) => any;
20
+ onChange?: (...args: any[]) => any;
21
+ onPressEnter?: (...args: any[]) => any;
22
+ }>, {
23
+ search: boolean;
24
+ debounce: number;
25
+ allowClear: boolean;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
27
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { t as ProModal_default } from "../../ProModal-DsIFQ8y5.js";
2
+ export { ProModal_default as default };
@@ -0,0 +1,45 @@
1
+ type __VLS_Props = {
2
+ /** 点确定时先执行:返回 false 或 reject 则不关闭(适合放校验/保存逻辑) */
3
+ beforeOk?: () => Promise<any> | any;
4
+ /** 标题 */
5
+ title?: string;
6
+ /** 弹窗宽度,对齐 antd 的 width(数字按 px,字符串原样) */
7
+ width?: string | number;
8
+ /** 确定按钮文案 */
9
+ okText?: string;
10
+ /** 取消按钮文案 */
11
+ cancelText?: string;
12
+ };
13
+ type __VLS_PublicProps = {
14
+ "open"?: boolean;
15
+ } & __VLS_Props;
16
+ declare function __VLS_template(): {
17
+ attrs: Partial<{}>;
18
+ slots: {
19
+ default?(_: {}): any;
20
+ footer?(_: {}): any;
21
+ };
22
+ refs: {};
23
+ rootEl: any;
24
+ };
25
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ cancel: (...args: any[]) => void;
28
+ ok: (...args: any[]) => void;
29
+ "update:open": (value: boolean) => void;
30
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
31
+ "onUpdate:open"?: (value: boolean) => any;
32
+ onCancel?: (...args: any[]) => any;
33
+ onOk?: (...args: any[]) => any;
34
+ }>, {
35
+ title: string;
36
+ okText: string;
37
+ cancelText: string;
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
39
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
40
+ export default _default;
41
+ type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -0,0 +1,2 @@
1
+ import { t as ProRadioGroup_default } from "../../ProRadioGroup-CTxqLQjw.js";
2
+ export { ProRadioGroup_default as default };
@@ -0,0 +1,20 @@
1
+ type __VLS_Props = {
2
+ /** 选项数据源:静态数组 / 字符串数组 / 返回数组的函数(远程字典) */
3
+ options?: any;
4
+ /** options 里 label / value 的字段名 */
5
+ labelField?: string;
6
+ valueField?: string;
7
+ /** 远程字典的依赖值,变化时自动重新拉取 */
8
+ deps?: any;
9
+ /** 按钮样式(对齐 antd 的 option-type="button",shadcn 版渲染为胶囊分段控件) */
10
+ optionType?: string;
11
+ };
12
+ type __VLS_PublicProps = {
13
+ modelValue?: any;
14
+ } & __VLS_Props;
15
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ "update:modelValue": (value: any) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
18
+ "onUpdate:modelValue"?: (value: any) => any;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { t as ProSelect_default } from "../../ProSelect-DT0zjDjT.js";
2
+ export { ProSelect_default as default };
@@ -0,0 +1,28 @@
1
+ type __VLS_Props = {
2
+ /** 选项数据源:静态数组 / 字符串数组 / 返回数组的函数(远程字典) */
3
+ options?: any;
4
+ /** options 里 label / value 的字段名,元素不是 {label, value} 结构时用 */
5
+ labelField?: string;
6
+ valueField?: string;
7
+ /** 远程字典的依赖值,变化时自动重新拉取 */
8
+ deps?: any;
9
+ /** 占位文本 */
10
+ placeholder?: string;
11
+ /** 多选(对齐 antd 的 mode="multiple";也支持跨库统一的布尔 multiple) */
12
+ mode?: string;
13
+ /** 是否多选(布尔写法,与 ui-antd / ui-element 对齐) */
14
+ multiple?: boolean;
15
+ /** 禁用 */
16
+ disabled?: boolean;
17
+ };
18
+ type __VLS_PublicProps = {
19
+ modelValue?: any;
20
+ } & __VLS_Props;
21
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
+ change: (...args: any[]) => void;
23
+ "update:modelValue": (value: any) => void;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
+ "onUpdate:modelValue"?: (value: any) => any;
26
+ onChange?: (...args: any[]) => any;
27
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
28
+ export default _default;
@@ -0,0 +1,91 @@
1
+ type __VLS_Props = {
2
+ formItems: any[];
3
+ rules?: any;
4
+ formData: Record<string, any>;
5
+ requestApi: (data: Record<string, any>) => Promise<any>;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
8
+ submit(): Promise<any>;
9
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
10
+ formRef: {
11
+ $: import('vue').ComponentInternalInstance;
12
+ $data: {};
13
+ $props: {
14
+ readonly modelValue?: Record<string, any>;
15
+ readonly formItems: import('@cynnie/ui-core').FormItem[];
16
+ readonly rules?: Record<string, any>;
17
+ readonly span?: number;
18
+ readonly formConfig?: Record<string, any>;
19
+ readonly "onUpdate:modelValue"?: (value: Record<string, any>) => any;
20
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
21
+ $attrs: {
22
+ [x: string]: unknown;
23
+ };
24
+ $refs: {
25
+ [x: string]: unknown;
26
+ } & {
27
+ formRef: HTMLDivElement;
28
+ };
29
+ $slots: Readonly<{
30
+ [name: string]: import('vue').Slot<any>;
31
+ }>;
32
+ $root: import('vue').ComponentPublicInstance | null;
33
+ $parent: import('vue').ComponentPublicInstance | null;
34
+ $host: Element | null;
35
+ $emit: (event: "update:modelValue", value: Record<string, any>) => void;
36
+ $el: HTMLDivElement;
37
+ $options: import('vue').ComponentOptionsBase<Readonly<{
38
+ modelValue?: Record<string, any>;
39
+ } & {
40
+ formItems: import('@cynnie/ui-core').FormItem[];
41
+ rules?: Record<string, any>;
42
+ span?: number;
43
+ formConfig?: Record<string, any>;
44
+ }> & Readonly<{
45
+ "onUpdate:modelValue"?: (value: Record<string, any>) => any;
46
+ }>, {
47
+ validate: () => Promise<boolean>;
48
+ clearValidate: () => void;
49
+ errors: import('vue').Ref<Record<string, string>, Record<string, string>>;
50
+ formRef: import('vue').Ref<any, any>;
51
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
52
+ "update:modelValue": (value: Record<string, any>) => any;
53
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
54
+ beforeCreate?: (() => void) | (() => void)[];
55
+ created?: (() => void) | (() => void)[];
56
+ beforeMount?: (() => void) | (() => void)[];
57
+ mounted?: (() => void) | (() => void)[];
58
+ beforeUpdate?: (() => void) | (() => void)[];
59
+ updated?: (() => void) | (() => void)[];
60
+ activated?: (() => void) | (() => void)[];
61
+ deactivated?: (() => void) | (() => void)[];
62
+ beforeDestroy?: (() => void) | (() => void)[];
63
+ beforeUnmount?: (() => void) | (() => void)[];
64
+ destroyed?: (() => void) | (() => void)[];
65
+ unmounted?: (() => void) | (() => void)[];
66
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
67
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
68
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
69
+ };
70
+ $forceUpdate: () => void;
71
+ $nextTick: typeof import('vue').nextTick;
72
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
73
+ } & Readonly<{}> & Omit<Readonly<{
74
+ modelValue?: Record<string, any>;
75
+ } & {
76
+ formItems: import('@cynnie/ui-core').FormItem[];
77
+ rules?: Record<string, any>;
78
+ span?: number;
79
+ formConfig?: Record<string, any>;
80
+ }> & Readonly<{
81
+ "onUpdate:modelValue"?: (value: Record<string, any>) => any;
82
+ }>, "validate" | "clearValidate" | "errors" | "formRef"> & import('vue').ShallowUnwrapRef<{
83
+ validate: () => Promise<boolean>;
84
+ clearValidate: () => void;
85
+ errors: import('vue').Ref<Record<string, string>, Record<string, string>>;
86
+ formRef: import('vue').Ref<any, any>;
87
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
88
+ $slots: Partial<Record<string, (_: {}) => any>>;
89
+ };
90
+ }, HTMLDivElement>;
91
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { t as ProTable_default } from "../../ProTable-CP1Mc52q.js";
2
+ export { ProTable_default as default };
@@ -0,0 +1,36 @@
1
+ import { PageApis, TableColumn, FormItem, FormRules } from '@cynnie/ui-core';
2
+ type __VLS_Props = {
3
+ apis: PageApis;
4
+ rowKey?: string;
5
+ beforeCreate?: () => Promise<Record<string, any>>;
6
+ columns: TableColumn[];
7
+ formItems: FormItem[];
8
+ rules?: FormRules;
9
+ };
10
+ declare function loadData(): void;
11
+ type __VLS_PublicProps = {
12
+ "queryParams"?: any;
13
+ } & __VLS_Props;
14
+ declare function __VLS_template(): {
15
+ attrs: Partial<{}>;
16
+ slots: {
17
+ search?(_: {}): any;
18
+ };
19
+ refs: {};
20
+ rootEl: HTMLDivElement;
21
+ };
22
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
24
+ refresh: typeof loadData;
25
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
+ "update:queryParams": (value: any) => any;
27
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
+ "onUpdate:queryParams"?: (value: any) => any;
29
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
+ export default _default;
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,12 @@
1
+ export { default as ProTable } from './ProTable/index.vue';
2
+ export { default as ProTableForm } from './ProTable/ProTableForm.vue';
3
+ export { default as ProFormBuilder } from './ProFormBuilder/index.vue';
4
+ export { default as ProButton } from './ProButton/index.vue';
5
+ export { default as ProCountdownButton } from './ProButton/ProCountdownButton.vue';
6
+ export { default as ProInput } from './ProInput/index.vue';
7
+ export { default as ProSelect } from './ProSelect/index.vue';
8
+ export { default as ProCheckboxGroup } from './ProCheckboxGroup/index.vue';
9
+ export { default as ProRadioGroup } from './ProRadioGroup/index.vue';
10
+ export { default as ProModal } from './ProModal/index.vue';
11
+ export { default as ProConfirmButton } from './ProConfirmButton/index.vue';
12
+ export { default as ProDescriptions } from './ProDescriptions/index.vue';
@@ -0,0 +1,22 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ type __VLS_Props = {
3
+ class?: HTMLAttributes["class"];
4
+ variant?: "default" | "destructive";
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,6 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export { default as Alert } from './Alert.vue';
3
+ export declare const alertVariants: (props?: {
4
+ variant?: "default" | "destructive";
5
+ } & import('class-variance-authority/types').ClassProp) => string;
6
+ export type AlertVariants = VariantProps<typeof alertVariants>;