@mcistudio/unoui-vue 1.0.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 (187) hide show
  1. package/README.md +95 -0
  2. package/dist/alert/Alert.vue.d.ts +67 -0
  3. package/dist/alert/index.d.ts +40 -0
  4. package/dist/alert/index.js +2 -0
  5. package/dist/attrs.d.ts +11 -0
  6. package/dist/attrs.js +16 -0
  7. package/dist/attrs.js.map +1 -0
  8. package/dist/badge/Badge.vue.d.ts +57 -0
  9. package/dist/badge/BadgeRibbon.vue.d.ts +34 -0
  10. package/dist/badge/index.d.ts +42 -0
  11. package/dist/badge/index.js +2 -0
  12. package/dist/build.d.ts +2 -0
  13. package/dist/button/Button.vue.d.ts +46 -0
  14. package/dist/button/ButtonGroup.vue.d.ts +13 -0
  15. package/dist/button/index.d.ts +13 -0
  16. package/dist/button/index.js +2 -0
  17. package/dist/checkbox/Checkbox.vue.d.ts +47 -0
  18. package/dist/checkbox/CheckboxGroup.vue.d.ts +38 -0
  19. package/dist/checkbox/index.d.ts +30 -0
  20. package/dist/checkbox/index.js +2 -0
  21. package/dist/chunks/Progress-BL4KZ3HE.js +271 -0
  22. package/dist/chunks/Progress-BL4KZ3HE.js.map +1 -0
  23. package/dist/chunks/Skeleton-ohStUD4M.js +153 -0
  24. package/dist/chunks/Skeleton-ohStUD4M.js.map +1 -0
  25. package/dist/chunks/Table-DhXmuKQd.js +330 -0
  26. package/dist/chunks/Table-DhXmuKQd.js.map +1 -0
  27. package/dist/chunks/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  28. package/dist/chunks/alert-CczW_DKs.js +190 -0
  29. package/dist/chunks/alert-CczW_DKs.js.map +1 -0
  30. package/dist/chunks/badge-BHOZeImh.js +287 -0
  31. package/dist/chunks/badge-BHOZeImh.js.map +1 -0
  32. package/dist/chunks/button-pDObrN_X.js +168 -0
  33. package/dist/chunks/button-pDObrN_X.js.map +1 -0
  34. package/dist/chunks/checkbox-9_0oR4kg.js +260 -0
  35. package/dist/chunks/checkbox-9_0oR4kg.js.map +1 -0
  36. package/dist/chunks/colorpicker-CcizUCQv.js +594 -0
  37. package/dist/chunks/colorpicker-CcizUCQv.js.map +1 -0
  38. package/dist/chunks/datepicker-Cy808x7X.js +1414 -0
  39. package/dist/chunks/datepicker-Cy808x7X.js.map +1 -0
  40. package/dist/chunks/drawer-C3JZ28Xo.js +193 -0
  41. package/dist/chunks/drawer-C3JZ28Xo.js.map +1 -0
  42. package/dist/chunks/dropdown-0l967g7D.js +329 -0
  43. package/dist/chunks/dropdown-0l967g7D.js.map +1 -0
  44. package/dist/chunks/form-Qeqkd-HH.js +642 -0
  45. package/dist/chunks/form-Qeqkd-HH.js.map +1 -0
  46. package/dist/chunks/input-BDOXVCrK.js +1281 -0
  47. package/dist/chunks/input-BDOXVCrK.js.map +1 -0
  48. package/dist/chunks/inputOtp-Dyxj9lNj.js +261 -0
  49. package/dist/chunks/inputOtp-Dyxj9lNj.js.map +1 -0
  50. package/dist/chunks/message-xPfuG0EX.js +107 -0
  51. package/dist/chunks/message-xPfuG0EX.js.map +1 -0
  52. package/dist/chunks/millercolumns-Dp3fBrq6.js +426 -0
  53. package/dist/chunks/millercolumns-Dp3fBrq6.js.map +1 -0
  54. package/dist/chunks/modal-D6l1iIvE.js +81 -0
  55. package/dist/chunks/modal-D6l1iIvE.js.map +1 -0
  56. package/dist/chunks/pagination-Bc583AQX.js +265 -0
  57. package/dist/chunks/pagination-Bc583AQX.js.map +1 -0
  58. package/dist/chunks/popconfirm-D6lUfSxG.js +343 -0
  59. package/dist/chunks/popconfirm-D6lUfSxG.js.map +1 -0
  60. package/dist/chunks/qrcode-B0t_pZna.js +1099 -0
  61. package/dist/chunks/qrcode-B0t_pZna.js.map +1 -0
  62. package/dist/chunks/radio-DnYm59xH.js +477 -0
  63. package/dist/chunks/radio-DnYm59xH.js.map +1 -0
  64. package/dist/chunks/rate-0sme__Kb.js +309 -0
  65. package/dist/chunks/rate-0sme__Kb.js.map +1 -0
  66. package/dist/chunks/select-ChTfQM5u.js +417 -0
  67. package/dist/chunks/select-ChTfQM5u.js.map +1 -0
  68. package/dist/chunks/slider-C-W5GzTP.js +724 -0
  69. package/dist/chunks/slider-C-W5GzTP.js.map +1 -0
  70. package/dist/chunks/splitter-CgfiXY65.js +524 -0
  71. package/dist/chunks/splitter-CgfiXY65.js.map +1 -0
  72. package/dist/chunks/switch-BULGbODP.js +327 -0
  73. package/dist/chunks/switch-BULGbODP.js.map +1 -0
  74. package/dist/chunks/tab-Dxfg1_To.js +663 -0
  75. package/dist/chunks/tab-Dxfg1_To.js.map +1 -0
  76. package/dist/chunks/tag-BYmNsrZC.js +167 -0
  77. package/dist/chunks/tag-BYmNsrZC.js.map +1 -0
  78. package/dist/chunks/timepicker-DsGIdcf8.js +1059 -0
  79. package/dist/chunks/timepicker-DsGIdcf8.js.map +1 -0
  80. package/dist/chunks/tooltip-DMhiAqto.js +242 -0
  81. package/dist/chunks/tooltip-DMhiAqto.js.map +1 -0
  82. package/dist/colorpicker/ColorPicker.vue.d.ts +30 -0
  83. package/dist/colorpicker/color.d.ts +56 -0
  84. package/dist/colorpicker/color.js +99 -0
  85. package/dist/colorpicker/color.js.map +1 -0
  86. package/dist/colorpicker/index.d.ts +12 -0
  87. package/dist/colorpicker/index.js +2 -0
  88. package/dist/config.d.ts +55 -0
  89. package/dist/config.js +260 -0
  90. package/dist/config.js.map +1 -0
  91. package/dist/datepicker/DatePicker.vue.d.ts +82 -0
  92. package/dist/datepicker/RangePicker.vue.d.ts +87 -0
  93. package/dist/datepicker/index.d.ts +59 -0
  94. package/dist/datepicker/index.js +2 -0
  95. package/dist/drawer/Drawer.vue.d.ts +86 -0
  96. package/dist/drawer/index.d.ts +23 -0
  97. package/dist/drawer/index.js +2 -0
  98. package/dist/dropdown/Dropdown.vue.d.ts +118 -0
  99. package/dist/dropdown/index.d.ts +2 -0
  100. package/dist/dropdown/index.js +2 -0
  101. package/dist/form/Form.vue.d.ts +170 -0
  102. package/dist/form/FormItem.vue.d.ts +83 -0
  103. package/dist/form/index.d.ts +176 -0
  104. package/dist/form/index.js +2 -0
  105. package/dist/index.d.ts +31 -0
  106. package/dist/index.js +32 -0
  107. package/dist/input/Autocomplete.vue.d.ts +121 -0
  108. package/dist/input/Input.vue.d.ts +142 -0
  109. package/dist/input/InputI18n.vue.d.ts +80 -0
  110. package/dist/input/InputTag.vue.d.ts +114 -0
  111. package/dist/input/index.d.ts +41 -0
  112. package/dist/input/index.js +2 -0
  113. package/dist/inputOtp/InputOtp.vue.d.ts +60 -0
  114. package/dist/inputOtp/index.d.ts +21 -0
  115. package/dist/inputOtp/index.js +2 -0
  116. package/dist/message/MessageContainer.vue.d.ts +11 -0
  117. package/dist/message/index.d.ts +20 -0
  118. package/dist/message/index.js +2 -0
  119. package/dist/message/types.d.ts +25 -0
  120. package/dist/millercolumns/MillerColumns.vue.d.ts +88 -0
  121. package/dist/millercolumns/index.d.ts +39 -0
  122. package/dist/millercolumns/index.js +2 -0
  123. package/dist/modal/Modal.vue.d.ts +54 -0
  124. package/dist/modal/index.d.ts +2 -0
  125. package/dist/modal/index.js +2 -0
  126. package/dist/pagination/Pagination.vue.d.ts +70 -0
  127. package/dist/pagination/index.d.ts +12 -0
  128. package/dist/pagination/index.js +2 -0
  129. package/dist/popconfirm/Popconfirm.vue.d.ts +104 -0
  130. package/dist/popconfirm/index.d.ts +36 -0
  131. package/dist/popconfirm/index.js +2 -0
  132. package/dist/progress/Progress.vue.d.ts +64 -0
  133. package/dist/progress/index.d.ts +26 -0
  134. package/dist/progress/index.js +2 -0
  135. package/dist/qrcode/QRCode.vue.d.ts +87 -0
  136. package/dist/qrcode/index.d.ts +43 -0
  137. package/dist/qrcode/index.js +2 -0
  138. package/dist/qrcode/qr.d.ts +51 -0
  139. package/dist/qrcode/qrcodegen.d.ts +94 -0
  140. package/dist/radio/Radio.vue.d.ts +52 -0
  141. package/dist/radio/RadioGroup.vue.d.ts +44 -0
  142. package/dist/radio/index.d.ts +55 -0
  143. package/dist/radio/index.js +2 -0
  144. package/dist/rate/Rate.vue.d.ts +100 -0
  145. package/dist/rate/index.d.ts +38 -0
  146. package/dist/rate/index.js +2 -0
  147. package/dist/select/Select.vue.d.ts +129 -0
  148. package/dist/select/index.d.ts +33 -0
  149. package/dist/select/index.js +2 -0
  150. package/dist/skeleton/Skeleton.vue.d.ts +31 -0
  151. package/dist/skeleton/index.d.ts +2 -0
  152. package/dist/skeleton/index.js +2 -0
  153. package/dist/slider/Slider.vue.d.ts +81 -0
  154. package/dist/slider/index.d.ts +61 -0
  155. package/dist/slider/index.js +2 -0
  156. package/dist/splitter/Splitter.vue.d.ts +63 -0
  157. package/dist/splitter/SplitterPanel.vue.d.ts +53 -0
  158. package/dist/splitter/index.d.ts +39 -0
  159. package/dist/splitter/index.js +2 -0
  160. package/dist/style.css +2 -0
  161. package/dist/switch/Switch.vue.d.ts +97 -0
  162. package/dist/switch/index.d.ts +31 -0
  163. package/dist/switch/index.js +2 -0
  164. package/dist/tab/TabPane.vue.d.ts +32 -0
  165. package/dist/tab/Tabs.vue.d.ts +87 -0
  166. package/dist/tab/index.d.ts +78 -0
  167. package/dist/tab/index.js +2 -0
  168. package/dist/table/Table.vue.d.ts +96 -0
  169. package/dist/table/index.d.ts +3 -0
  170. package/dist/table/index.js +2 -0
  171. package/dist/table/types.d.ts +35 -0
  172. package/dist/table/types.js +0 -0
  173. package/dist/tag/Tag.vue.d.ts +46 -0
  174. package/dist/tag/index.d.ts +11 -0
  175. package/dist/tag/index.js +2 -0
  176. package/dist/timepicker/TimePicker.vue.d.ts +92 -0
  177. package/dist/timepicker/TimeRangePicker.vue.d.ts +90 -0
  178. package/dist/timepicker/index.d.ts +39 -0
  179. package/dist/timepicker/index.js +2 -0
  180. package/dist/tooltip/Tooltip.vue.d.ts +79 -0
  181. package/dist/tooltip/index.d.ts +14 -0
  182. package/dist/tooltip/index.js +2 -0
  183. package/dist/uno.d.ts +32 -0
  184. package/dist/uno.js +83 -0
  185. package/dist/uno.js.map +1 -0
  186. package/dist/utils/DnD.d.ts +38 -0
  187. package/package.json +115 -0
@@ -0,0 +1,12 @@
1
+ import type { VariantProps } from 'class-variance-authority';
2
+ export { default as Pagination } from './Pagination.vue';
3
+ /** PaginationLayoutToken 是 layout 字符串支持的片段。 */
4
+ export type PaginationLayoutToken = 'prev' | 'pager' | 'next' | 'sizes' | 'jumper' | 'total' | '->';
5
+ /** paginationPagerButton 定义页码按钮样式。 */
6
+ export declare const paginationPagerButton: (props?: ({
7
+ size?: "sm" | "md" | "lg" | null | undefined;
8
+ active?: boolean | null | undefined;
9
+ disabled?: boolean | null | undefined;
10
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
+ /** PaginationProps 是 paginationPagerButton 变体推导出的组件属性类型。 */
12
+ export type PaginationProps = VariantProps<typeof paginationPagerButton>;
@@ -0,0 +1,2 @@
1
+ import { n as e, t } from "../chunks/pagination-Bc583AQX.js";
2
+ export { e as Pagination, t as paginationPagerButton };
@@ -0,0 +1,104 @@
1
+ import { type PopconfirmArrow, type PopconfirmButtonProps, type PopconfirmOkType, type PopconfirmPlacement, type PopconfirmSemanticClassNames, type PopconfirmSemanticStyles, type PopconfirmTrigger } from '.';
2
+ type __VLS_Props = {
3
+ /** title 是确认框标题;复杂内容可使用 title 插槽。 */
4
+ title?: string | number;
5
+ /** description 是确认框详细描述;复杂内容可使用 description 插槽。 */
6
+ description?: string | number;
7
+ /** disabled 阻止触发器打开确认框。 */
8
+ disabled?: boolean;
9
+ /** icon 是自定义 UnoCSS/Iconify 图标类名。 */
10
+ icon?: string;
11
+ /** okText 是确认按钮文字。 */
12
+ okText?: string;
13
+ /** cancelText 是取消按钮文字。 */
14
+ cancelText?: string;
15
+ /** okType 映射确认按钮语义。 */
16
+ okType?: PopconfirmOkType;
17
+ /** showCancel 控制是否展示取消按钮。 */
18
+ showCancel?: boolean;
19
+ /** okButtonProps 是确认按钮的本地 Button 属性。 */
20
+ okButtonProps?: PopconfirmButtonProps;
21
+ /** cancelButtonProps 是取消按钮的本地 Button 属性。 */
22
+ cancelButtonProps?: PopconfirmButtonProps;
23
+ /** placement 是浮层位置。 */
24
+ placement?: PopconfirmPlacement;
25
+ /** trigger 是触发方式,可传单个或多个。 */
26
+ trigger?: PopconfirmTrigger | PopconfirmTrigger[];
27
+ /** open 是受控显隐状态。 */
28
+ open?: boolean;
29
+ /** defaultOpen 是非受控默认显隐状态。 */
30
+ defaultOpen?: boolean;
31
+ /** arrow 控制箭头展示,或设置 pointAtCenter。 */
32
+ arrow?: PopconfirmArrow;
33
+ /** autoAdjustOverflow 表示溢出视口时是否自动翻转和夹紧。 */
34
+ autoAdjustOverflow?: boolean;
35
+ /** destroyOnHidden 隐藏后是否销毁浮层节点。 */
36
+ destroyOnHidden?: boolean;
37
+ /** mouseEnterDelay 是 hover 打开延迟,单位秒。 */
38
+ mouseEnterDelay?: number;
39
+ /** mouseLeaveDelay 是 hover 关闭延迟,单位秒。 */
40
+ mouseLeaveDelay?: number;
41
+ /** zIndex 自定义浮层层级。 */
42
+ zIndex?: number;
43
+ /** color 自定义浮层背景颜色。 */
44
+ color?: string;
45
+ /** classNames 定义 root/container/arrow/icon/title/content/actions 语义结构类名。 */
46
+ classNames?: PopconfirmSemanticClassNames;
47
+ /** styles 定义 root/container/arrow/icon/title/content/actions 语义结构样式。 */
48
+ styles?: PopconfirmSemanticStyles;
49
+ };
50
+ declare var __VLS_1: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {};
51
+ type __VLS_Slots = {} & {
52
+ default?: (props: typeof __VLS_1) => any;
53
+ } & {
54
+ icon?: (props: typeof __VLS_9) => any;
55
+ } & {
56
+ title?: (props: typeof __VLS_11) => any;
57
+ } & {
58
+ description?: (props: typeof __VLS_13) => any;
59
+ };
60
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
61
+ cancel: (event: MouseEvent) => any;
62
+ "update:open": (value: boolean) => any;
63
+ openChange: (value: boolean) => any;
64
+ confirm: (event: MouseEvent) => any;
65
+ popupClick: (event: MouseEvent) => any;
66
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
67
+ onCancel?: ((event: MouseEvent) => any) | undefined;
68
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
69
+ onOpenChange?: ((value: boolean) => any) | undefined;
70
+ onConfirm?: ((event: MouseEvent) => any) | undefined;
71
+ onPopupClick?: ((event: MouseEvent) => any) | undefined;
72
+ }>, {
73
+ icon: string;
74
+ title: string | number;
75
+ description: string | number;
76
+ classNames: PopconfirmSemanticClassNames;
77
+ styles: PopconfirmSemanticStyles;
78
+ color: string;
79
+ open: boolean;
80
+ disabled: boolean;
81
+ placement: PopconfirmPlacement;
82
+ zIndex: number;
83
+ trigger: PopconfirmTrigger | PopconfirmTrigger[];
84
+ arrow: PopconfirmArrow;
85
+ autoAdjustOverflow: boolean;
86
+ destroyOnHidden: boolean;
87
+ defaultOpen: boolean;
88
+ mouseEnterDelay: number;
89
+ mouseLeaveDelay: number;
90
+ okText: string;
91
+ cancelText: string;
92
+ okType: PopconfirmOkType;
93
+ showCancel: boolean;
94
+ okButtonProps: PopconfirmButtonProps;
95
+ cancelButtonProps: PopconfirmButtonProps;
96
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
97
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
98
+ declare const _default: typeof __VLS_export;
99
+ export default _default;
100
+ type __VLS_WithSlots<T, S> = T & {
101
+ new (): {
102
+ $slots: S;
103
+ };
104
+ };
@@ -0,0 +1,36 @@
1
+ import type { VariantProps } from 'class-variance-authority';
2
+ import type { CSSProperties } from 'vue';
3
+ import type { ButtonProps } from '../button';
4
+ import type { TooltipArrow, TooltipPlacement, TooltipTrigger } from '../tooltip';
5
+ export { default as Popconfirm } from './Popconfirm.vue';
6
+ export type PopconfirmPlacement = TooltipPlacement;
7
+ export type PopconfirmTrigger = TooltipTrigger;
8
+ export type PopconfirmArrow = TooltipArrow;
9
+ export type PopconfirmOkType = 'primary' | 'danger' | 'default';
10
+ export type PopconfirmSemanticName = 'root' | 'container' | 'arrow' | 'icon' | 'title' | 'content' | 'actions';
11
+ export type PopconfirmSemanticClassNames = Partial<Record<PopconfirmSemanticName, string>>;
12
+ export type PopconfirmSemanticStyles = Partial<Record<PopconfirmSemanticName, CSSProperties | string>>;
13
+ export type PopconfirmButtonProps = Partial<Pick<ButtonProps, 'color' | 'variant' | 'size' | 'radius'>> & {
14
+ loading?: boolean;
15
+ disabled?: boolean;
16
+ icon?: string;
17
+ };
18
+ /** popconfirmRoot 定义确认浮层的固定定位和宽度。 */
19
+ export declare const popconfirmRoot: (props?: ({
20
+ interactive?: boolean | null | undefined;
21
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
22
+ /** popconfirmContainer 定义确认浮层卡片视觉。 */
23
+ export declare const popconfirmContainer: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
24
+ /** popconfirmArrow 定义确认浮层箭头,只保留暴露在卡片外侧的两条边框。 */
25
+ export declare const popconfirmArrow: (props?: ({
26
+ side?: "left" | "right" | "bottom" | "top" | null | undefined;
27
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
28
+ /** popconfirmIcon 定义默认确认图标样式。 */
29
+ export declare const popconfirmIcon: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
30
+ /** popconfirmTitle 定义确认标题。 */
31
+ export declare const popconfirmTitle: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
32
+ /** popconfirmContent 定义确认描述。 */
33
+ export declare const popconfirmContent: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
34
+ /** popconfirmActions 定义按钮操作区。 */
35
+ export declare const popconfirmActions: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
36
+ export type PopconfirmRootProps = VariantProps<typeof popconfirmRoot>;
@@ -0,0 +1,2 @@
1
+ import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "../chunks/popconfirm-D6lUfSxG.js";
2
+ export { t as Popconfirm, s as popconfirmActions, r as popconfirmArrow, a as popconfirmContainer, n as popconfirmContent, e as popconfirmIcon, i as popconfirmRoot, o as popconfirmTitle };
@@ -0,0 +1,64 @@
1
+ import type { ProgressFormat, ProgressGapPlacement, ProgressInfoSlotProps, ProgressSemanticClassNames, ProgressSemanticStyles, ProgressSize, ProgressStatus, ProgressStrokeColor, ProgressStrokeLinecap, ProgressSuccess, ProgressType } from '.';
2
+ type __VLS_Props = {
3
+ /** percent 是当前完成百分比,渲染时限制在 0 到 100。 */
4
+ percent?: number;
5
+ /** type 指定线形、圆形或仪表盘形态。 */
6
+ type?: ProgressType;
7
+ /** status 指定语义状态;未传时,达到 100% 会自动切换为 success。 */
8
+ status?: ProgressStatus;
9
+ /** showInfo 控制是否展示百分比或状态图标。 */
10
+ showInfo?: boolean;
11
+ /** strokeColor 定义进度色;步骤模式支持颜色数组,其余模式支持渐变对象。 */
12
+ strokeColor?: ProgressStrokeColor;
13
+ /** railColor 定义未完成轨道颜色。 */
14
+ railColor?: string;
15
+ /** strokeLinecap 定义进度端点形状。 */
16
+ strokeLinecap?: ProgressStrokeLinecap;
17
+ /** strokeWidth 定义轨道宽度;未传时由 size 决定。 */
18
+ strokeWidth?: number;
19
+ /** size 定义组件预设尺寸。 */
20
+ size?: ProgressSize;
21
+ /** success 定义已经成功完成的进度分段。 */
22
+ success?: ProgressSuccess;
23
+ /** steps 将线形进度拆分为指定数量的步骤。 */
24
+ steps?: number;
25
+ /** gapDegree 定义仪表盘缺口角度。 */
26
+ gapDegree?: number;
27
+ /** gapPlacement 定义仪表盘缺口位置。 */
28
+ gapPlacement?: ProgressGapPlacement;
29
+ /** format 自定义信息文案;复杂内容建议使用 info 插槽。 */
30
+ format?: ProgressFormat;
31
+ /** classNames 定义 root/rail/track/success/info 语义结构类名。 */
32
+ classNames?: ProgressSemanticClassNames;
33
+ /** styles 定义 root/rail/track/success/info 语义结构样式。 */
34
+ styles?: ProgressSemanticStyles;
35
+ };
36
+ type __VLS_Slots = {
37
+ info(props: ProgressInfoSlotProps): unknown;
38
+ };
39
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
40
+ success: ProgressSuccess;
41
+ type: ProgressType;
42
+ classNames: ProgressSemanticClassNames;
43
+ styles: ProgressSemanticStyles;
44
+ status: ProgressStatus;
45
+ size: ProgressSize;
46
+ percent: number;
47
+ format: ProgressFormat;
48
+ strokeColor: ProgressStrokeColor;
49
+ strokeLinecap: ProgressStrokeLinecap;
50
+ strokeWidth: number;
51
+ showInfo: boolean;
52
+ railColor: string;
53
+ steps: number;
54
+ gapDegree: number;
55
+ gapPlacement: ProgressGapPlacement;
56
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
57
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
58
+ declare const _default: typeof __VLS_export;
59
+ export default _default;
60
+ type __VLS_WithSlots<T, S> = T & {
61
+ new (): {
62
+ $slots: S;
63
+ };
64
+ };
@@ -0,0 +1,26 @@
1
+ import type { CSSProperties } from 'vue';
2
+ export { default as Progress } from './Progress.vue';
3
+ export type ProgressType = 'line' | 'circle' | 'dashboard';
4
+ export type ProgressStatus = 'normal' | 'active' | 'success' | 'exception';
5
+ export type ProgressSize = 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
6
+ export type ProgressStrokeLinecap = 'round' | 'butt' | 'square';
7
+ export type ProgressGapPlacement = 'top' | 'bottom' | 'start' | 'end';
8
+ export type ProgressSemanticName = 'root' | 'rail' | 'track' | 'success' | 'info';
9
+ export type ProgressSemanticClassNames = Partial<Record<ProgressSemanticName, string>>;
10
+ export type ProgressSemanticStyles = Partial<Record<ProgressSemanticName, CSSProperties | string>>;
11
+ export interface ProgressGradient {
12
+ from: string;
13
+ to: string;
14
+ direction?: string;
15
+ }
16
+ export interface ProgressSuccess {
17
+ percent: number;
18
+ strokeColor?: string;
19
+ }
20
+ export interface ProgressInfoSlotProps {
21
+ percent: number;
22
+ status: ProgressStatus;
23
+ successPercent: number;
24
+ }
25
+ export type ProgressStrokeColor = string | string[] | ProgressGradient;
26
+ export type ProgressFormat = (percent: number, successPercent: number) => string | number;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../chunks/Progress-BL4KZ3HE.js";
2
+ export { e as Progress };
@@ -0,0 +1,87 @@
1
+ import { type QRCodeErrorLevel, type QRCodeIconSize, type QRCodeMaskStatus, type QRCodeSemanticClassNames, type QRCodeSemanticStyles, type QRCodeStatus, type QRCodeStatusLocale, type QRCodeStatusRender, type QRCodeType } from '.';
2
+ type __VLS_Props = {
3
+ /** value 是二维码编码内容。 */
4
+ value: string;
5
+ /** type 指定渲染为 canvas 或 svg。 */
6
+ type?: QRCodeType;
7
+ /** size 是二维码外框尺寸,单位 px。 */
8
+ size?: number;
9
+ /** color 是二维码前景色。 */
10
+ color?: string;
11
+ /** bgColor 是二维码背景色。 */
12
+ bgColor?: string;
13
+ /** icon 是二维码中间的 logo 图片地址。 */
14
+ icon?: string;
15
+ /** iconSize 是 logo 尺寸,可传数字或宽高对象。 */
16
+ iconSize?: QRCodeIconSize;
17
+ /** status 控制二维码状态蒙层。 */
18
+ status?: QRCodeStatus;
19
+ /** bordered 控制是否展示边框和内边距。 */
20
+ bordered?: boolean;
21
+ /** errorLevel 是二维码纠错等级。 */
22
+ errorLevel?: QRCodeErrorLevel;
23
+ /** marginSize 是二维码安静区宽度,单位为模块格。 */
24
+ marginSize?: number;
25
+ /** boostLevel 控制编码器是否在不增加版本的情况下提升纠错等级。 */
26
+ boostLevel?: boolean;
27
+ /** title 是 svg title 或 canvas 无障碍名称。 */
28
+ title?: string;
29
+ /** expiredText 是过期状态文案。 */
30
+ expiredText?: string;
31
+ /** refreshText 是过期状态刷新按钮文案。 */
32
+ refreshText?: string;
33
+ /** scannedText 是已扫描状态文案。 */
34
+ scannedText?: string;
35
+ /** loadingText 是加载状态文案。 */
36
+ loadingText?: string;
37
+ /** statusRender 自定义状态蒙层内容。 */
38
+ statusRender?: QRCodeStatusRender;
39
+ /** classNames 定义 root/code/mask/status/refresh 语义结构类名。 */
40
+ classNames?: QRCodeSemanticClassNames;
41
+ /** styles 定义 root/code/mask/status/refresh 语义结构样式。 */
42
+ styles?: QRCodeSemanticStyles;
43
+ };
44
+ declare function toDataURL(type?: string, quality?: number): string | undefined;
45
+ declare var __VLS_1: {
46
+ status: QRCodeMaskStatus;
47
+ locale: QRCodeStatusLocale;
48
+ onRefresh: (event?: MouseEvent) => void;
49
+ };
50
+ type __VLS_Slots = {} & {
51
+ status?: (props: typeof __VLS_1) => any;
52
+ };
53
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
54
+ toDataURL: typeof toDataURL;
55
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
56
+ refresh: (event?: MouseEvent | undefined) => any;
57
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
58
+ onRefresh?: ((event?: MouseEvent | undefined) => any) | undefined;
59
+ }>, {
60
+ icon: string;
61
+ title: string;
62
+ type: QRCodeType;
63
+ classNames: QRCodeSemanticClassNames;
64
+ styles: QRCodeSemanticStyles;
65
+ status: QRCodeStatus;
66
+ color: string;
67
+ size: number;
68
+ iconSize: QRCodeIconSize;
69
+ loadingText: string;
70
+ bordered: boolean;
71
+ bgColor: string;
72
+ errorLevel: QRCodeErrorLevel;
73
+ marginSize: number;
74
+ boostLevel: boolean;
75
+ expiredText: string;
76
+ refreshText: string;
77
+ scannedText: string;
78
+ statusRender: QRCodeStatusRender;
79
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
80
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
81
+ declare const _default: typeof __VLS_export;
82
+ export default _default;
83
+ type __VLS_WithSlots<T, S> = T & {
84
+ new (): {
85
+ $slots: S;
86
+ };
87
+ };
@@ -0,0 +1,43 @@
1
+ import type { VariantProps } from 'class-variance-authority';
2
+ import type { CSSProperties, VNodeChild } from 'vue';
3
+ export { default as QRCode } from './QRCode.vue';
4
+ export type QRCodeType = 'canvas' | 'svg';
5
+ export type QRCodeStatus = 'active' | 'expired' | 'loading' | 'scanned';
6
+ export type QRCodeMaskStatus = Exclude<QRCodeStatus, 'active'>;
7
+ export type QRCodeErrorLevel = 'L' | 'M' | 'Q' | 'H';
8
+ export type QRCodeIconSize = number | {
9
+ width: number;
10
+ height: number;
11
+ };
12
+ export type QRCodeSemanticName = 'root' | 'code' | 'mask' | 'status' | 'refresh';
13
+ export type QRCodeSemanticClassNames = Partial<Record<QRCodeSemanticName, string>>;
14
+ export type QRCodeSemanticStyles = Partial<Record<QRCodeSemanticName, CSSProperties | string>>;
15
+ export interface QRCodeStatusLocale {
16
+ expired: string;
17
+ refresh: string;
18
+ scanned: string;
19
+ loading: string;
20
+ }
21
+ export interface QRCodeStatusRenderInfo {
22
+ status: QRCodeMaskStatus;
23
+ locale: QRCodeStatusLocale;
24
+ onRefresh: (event?: MouseEvent) => void;
25
+ }
26
+ export type QRCodeStatusRender = (info: QRCodeStatusRenderInfo) => VNodeChild;
27
+ /** qrcodeRoot 定义二维码外框、边框和固定尺寸容器。 */
28
+ export declare const qrcodeRoot: (props?: ({
29
+ bordered?: boolean | null | undefined;
30
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
31
+ /** qrcodeCode 定义 canvas/svg 二维码主体尺寸与渲染质量。 */
32
+ export declare const qrcodeCode: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
33
+ /** qrcodeMask 定义非 active 状态下覆盖二维码的蒙层。 */
34
+ export declare const qrcodeMask: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
35
+ /** qrcodeStatus 定义状态图标和说明文本的垂直布局。 */
36
+ export declare const qrcodeStatus: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
37
+ /** qrcodeStatusIcon 定义二维码状态图标的语义色。 */
38
+ export declare const qrcodeStatusIcon: (props?: ({
39
+ status?: "loading" | "expired" | "scanned" | null | undefined;
40
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
41
+ /** qrcodeRefreshButton 定义过期状态下的刷新操作。 */
42
+ export declare const qrcodeRefreshButton: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
43
+ export type QRCodeRootProps = VariantProps<typeof qrcodeRoot>;
@@ -0,0 +1,2 @@
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../chunks/qrcode-B0t_pZna.js";
2
+ export { a as QRCode, o as qrcodeCode, n as qrcodeMask, i as qrcodeRefreshButton, t as qrcodeRoot, e as qrcodeStatus, r as qrcodeStatusIcon };
@@ -0,0 +1,51 @@
1
+ import type { QRCodeErrorLevel, QRCodeIconSize } from '.';
2
+ export interface QRCodeIconLayout {
3
+ x: number;
4
+ y: number;
5
+ width: number;
6
+ height: number;
7
+ excavation: {
8
+ x: number;
9
+ y: number;
10
+ width: number;
11
+ height: number;
12
+ };
13
+ }
14
+ export interface QRCodeRenderData {
15
+ modules: boolean[][];
16
+ margin: number;
17
+ numCells: number;
18
+ path: string;
19
+ iconLayout?: QRCodeIconLayout;
20
+ }
21
+ /** createQRCodeModules 使用本地 Nayuki QR 编码器生成模块矩阵。 */
22
+ export declare function createQRCodeModules(value: string, errorLevel: QRCodeErrorLevel, boostLevel: boolean): boolean[][];
23
+ /** resolveQRCodeMargin 将 marginSize 归一成二维码模块单位留白。 */
24
+ export declare function resolveQRCodeMargin(marginSize?: number): number;
25
+ /** generateQRCodePath 把连续黑色模块合并成 SVG/Path2D 路径,减少节点和绘制次数。 */
26
+ export declare function generateQRCodePath(modules: boolean[][], margin?: number): string;
27
+ /** resolveIconSize 根据组件尺寸推导默认 logo 尺寸,并兼容数字和对象配置。 */
28
+ export declare function resolveIconSize(iconSize: QRCodeIconSize | undefined, size: number): {
29
+ width: number;
30
+ height: number;
31
+ };
32
+ /** getIconLayout 将像素尺寸换算为 QR 模块坐标,并给 logo 预留白底区域。 */
33
+ export declare function getIconLayout(modules: boolean[][], size: number, margin: number, iconSize: QRCodeIconSize | undefined): QRCodeIconLayout;
34
+ /** excavateQRCodeModules 清空 logo 覆盖区域,避免二维码黑块压住中心图标。 */
35
+ export declare function excavateQRCodeModules(modules: boolean[][], layout: QRCodeIconLayout): boolean[][];
36
+ /** createQRCodeRenderData 汇总二维码矩阵、留白、路径和可选 logo 布局。 */
37
+ export declare function createQRCodeRenderData(options: {
38
+ value: string;
39
+ errorLevel: QRCodeErrorLevel;
40
+ boostLevel: boolean;
41
+ marginSize?: number;
42
+ size: number;
43
+ icon?: string;
44
+ iconSize?: QRCodeIconSize;
45
+ }): {
46
+ modules: boolean[][];
47
+ margin: number;
48
+ numCells: number;
49
+ path: string;
50
+ iconLayout: QRCodeIconLayout | undefined;
51
+ };
@@ -0,0 +1,94 @@
1
+ declare namespace qrcodegen {
2
+ type bit = number;
3
+ type byte = number;
4
+ type int = number;
5
+ export class QrCode {
6
+ readonly version: int;
7
+ readonly errorCorrectionLevel: QrCode.Ecc;
8
+ static encodeText(text: string, ecl: QrCode.Ecc): QrCode;
9
+ static encodeBinary(data: Readonly<Array<byte>>, ecl: QrCode.Ecc): QrCode;
10
+ static encodeSegments(segs: Readonly<Array<QrSegment>>, ecl: QrCode.Ecc, minVersion?: int, maxVersion?: int, mask?: int, boostEcl?: boolean): QrCode;
11
+ readonly size: int;
12
+ readonly mask: int;
13
+ private readonly modules;
14
+ private readonly isFunction;
15
+ constructor(version: int, errorCorrectionLevel: QrCode.Ecc, dataCodewords: Readonly<Array<byte>>, msk: int);
16
+ getModule(x: int, y: int): boolean;
17
+ private drawFunctionPatterns;
18
+ private drawFormatBits;
19
+ private drawVersion;
20
+ private drawFinderPattern;
21
+ private drawAlignmentPattern;
22
+ private setFunctionModule;
23
+ private addEccAndInterleave;
24
+ private drawCodewords;
25
+ private applyMask;
26
+ private getPenaltyScore;
27
+ private getAlignmentPatternPositions;
28
+ private static getNumRawDataModules;
29
+ private static getNumDataCodewords;
30
+ private static reedSolomonComputeDivisor;
31
+ private static reedSolomonComputeRemainder;
32
+ private static reedSolomonMultiply;
33
+ private finderPenaltyCountPatterns;
34
+ private finderPenaltyTerminateAndCount;
35
+ private finderPenaltyAddHistory;
36
+ static readonly MIN_VERSION: int;
37
+ static readonly MAX_VERSION: int;
38
+ private static readonly PENALTY_N1;
39
+ private static readonly PENALTY_N2;
40
+ private static readonly PENALTY_N3;
41
+ private static readonly PENALTY_N4;
42
+ private static readonly ECC_CODEWORDS_PER_BLOCK;
43
+ private static readonly NUM_ERROR_CORRECTION_BLOCKS;
44
+ }
45
+ export class QrSegment {
46
+ readonly mode: QrSegment.Mode;
47
+ readonly numChars: int;
48
+ private readonly bitData;
49
+ static makeBytes(data: Readonly<Array<byte>>): QrSegment;
50
+ static makeNumeric(digits: string): QrSegment;
51
+ static makeAlphanumeric(text: string): QrSegment;
52
+ static makeSegments(text: string): Array<QrSegment>;
53
+ static makeEci(assignVal: int): QrSegment;
54
+ static isNumeric(text: string): boolean;
55
+ static isAlphanumeric(text: string): boolean;
56
+ constructor(mode: QrSegment.Mode, numChars: int, bitData: Array<bit>);
57
+ getData(): Array<bit>;
58
+ static getTotalBits(segs: Readonly<Array<QrSegment>>, version: int): number;
59
+ private static toUtf8ByteArray;
60
+ private static readonly NUMERIC_REGEX;
61
+ private static readonly ALPHANUMERIC_REGEX;
62
+ private static readonly ALPHANUMERIC_CHARSET;
63
+ }
64
+ export {};
65
+ }
66
+ declare namespace qrcodegen.QrCode {
67
+ type int = number;
68
+ export class Ecc {
69
+ readonly ordinal: int;
70
+ readonly formatBits: int;
71
+ static readonly LOW: Ecc;
72
+ static readonly MEDIUM: Ecc;
73
+ static readonly QUARTILE: Ecc;
74
+ static readonly HIGH: Ecc;
75
+ private constructor();
76
+ }
77
+ export {};
78
+ }
79
+ declare namespace qrcodegen.QrSegment {
80
+ type int = number;
81
+ export class Mode {
82
+ readonly modeBits: int;
83
+ private readonly numBitsCharCount;
84
+ static readonly NUMERIC: Mode;
85
+ static readonly ALPHANUMERIC: Mode;
86
+ static readonly BYTE: Mode;
87
+ static readonly KANJI: Mode;
88
+ static readonly ECI: Mode;
89
+ private constructor();
90
+ numCharCountBits(ver: int): int;
91
+ }
92
+ export {};
93
+ }
94
+ export default qrcodegen;
@@ -0,0 +1,52 @@
1
+ import { type RadioButtonStyle, type RadioSize, type RadioType, type RadioValue } from '.';
2
+ type __VLS_Props = {
3
+ /** checked 是非受控单个 Radio 的默认选中态;组内选中态由 RadioGroup 控制。 */
4
+ checked?: boolean;
5
+ /** value 是当前 Radio 代表的值,组内选中时会同步到 RadioGroup modelValue。 */
6
+ value?: RadioValue;
7
+ /** disabled 表示是否禁用交互,可选,默认 false。 */
8
+ disabled?: boolean;
9
+ /** size 表示单选框尺寸;未传时继承 RadioGroup,组外默认 md。 */
10
+ size?: RadioSize;
11
+ /** border 表示是否展示带边框样式,可选,默认 false。 */
12
+ border?: boolean;
13
+ /** type 表示视觉形态;未传时继承 RadioGroup,组外默认 radio。 */
14
+ type?: RadioType;
15
+ /** buttonStyle 表示按钮形态的选中样式;未传时继承 RadioGroup,组外默认 outline。 */
16
+ buttonStyle?: RadioButtonStyle;
17
+ /** name 是原生 radio name;未传时继承 RadioGroup。 */
18
+ name?: string;
19
+ };
20
+ declare function focus(): void;
21
+ declare function blur(): void;
22
+ declare var __VLS_1: {};
23
+ type __VLS_Slots = {} & {
24
+ default?: (props: typeof __VLS_1) => any;
25
+ };
26
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
27
+ blur: typeof blur;
28
+ focus: typeof focus;
29
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
30
+ input: (event: Event) => any;
31
+ change: (value: RadioValue, event: Event) => any;
32
+ focus: (event: FocusEvent) => any;
33
+ blur: (event: FocusEvent) => any;
34
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
35
+ onInput?: ((event: Event) => any) | undefined;
36
+ onChange?: ((value: RadioValue, event: Event) => any) | undefined;
37
+ onFocus?: ((event: FocusEvent) => any) | undefined;
38
+ onBlur?: ((event: FocusEvent) => any) | undefined;
39
+ }>, {
40
+ border: boolean;
41
+ disabled: boolean;
42
+ checked: boolean;
43
+ value: RadioValue;
44
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
46
+ declare const _default: typeof __VLS_export;
47
+ export default _default;
48
+ type __VLS_WithSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
@@ -0,0 +1,44 @@
1
+ import { type RadioButtonStyle, type RadioGroupDirection, type RadioSize, type RadioType, type RadioValue } from '.';
2
+ type __VLS_Props = {
3
+ /** modelValue 是组内当前选中值。 */
4
+ modelValue?: RadioValue;
5
+ /** disabled 会禁用组内所有 Radio。 */
6
+ disabled?: boolean;
7
+ /** size 统一设置组内 Radio 尺寸,可被子项显式 size 覆盖。 */
8
+ size?: RadioSize;
9
+ /** type 统一设置组内 Radio 视觉形态,可被子项显式 type 覆盖。 */
10
+ type?: RadioType;
11
+ /** buttonStyle 统一设置按钮形态选中样式,可被子项显式 buttonStyle 覆盖。 */
12
+ buttonStyle?: RadioButtonStyle;
13
+ /** name 统一设置原生 radio name。 */
14
+ name?: string;
15
+ /** direction 控制组内排列方向。 */
16
+ direction?: RadioGroupDirection;
17
+ };
18
+ declare var __VLS_1: {};
19
+ type __VLS_Slots = {} & {
20
+ default?: (props: typeof __VLS_1) => any;
21
+ };
22
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
23
+ change: (value: RadioValue, event: Event) => any;
24
+ "update:modelValue": (value: RadioValue) => any;
25
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
26
+ onChange?: ((value: RadioValue, event: Event) => any) | undefined;
27
+ "onUpdate:modelValue"?: ((value: RadioValue) => any) | undefined;
28
+ }>, {
29
+ type: RadioType;
30
+ size: RadioSize;
31
+ disabled: boolean;
32
+ name: string;
33
+ modelValue: RadioValue;
34
+ direction: RadioGroupDirection;
35
+ buttonStyle: RadioButtonStyle;
36
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
38
+ declare const _default: typeof __VLS_export;
39
+ export default _default;
40
+ type __VLS_WithSlots<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };