vue2-sxo 0.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 (40) hide show
  1. package/README.md +9 -0
  2. package/dist/components/Accordion.d.ts +76 -0
  3. package/dist/components/Alert.d.ts +58 -0
  4. package/dist/components/Avatar.d.ts +29 -0
  5. package/dist/components/BackTop.d.ts +31 -0
  6. package/dist/components/Badge.d.ts +14 -0
  7. package/dist/components/Box.d.ts +13 -0
  8. package/dist/components/Breadcrumb.d.ts +35 -0
  9. package/dist/components/Button.d.ts +32 -0
  10. package/dist/components/Card.d.ts +32 -0
  11. package/dist/components/Checkbox.d.ts +108 -0
  12. package/dist/components/Dialog.d.ts +45 -0
  13. package/dist/components/Divider.d.ts +32 -0
  14. package/dist/components/Dropdown.d.ts +63 -0
  15. package/dist/components/Empty.d.ts +32 -0
  16. package/dist/components/Feedback.d.ts +177 -0
  17. package/dist/components/Form.d.ts +29 -0
  18. package/dist/components/I18n.d.ts +27 -0
  19. package/dist/components/Icon.d.ts +40 -0
  20. package/dist/components/Input.d.ts +41 -0
  21. package/dist/components/Layout.d.ts +102 -0
  22. package/dist/components/Menu.d.ts +35 -0
  23. package/dist/components/Pagination.d.ts +78 -0
  24. package/dist/components/Radio.d.ts +107 -0
  25. package/dist/components/Result.d.ts +32 -0
  26. package/dist/components/Search.d.ts +59 -0
  27. package/dist/components/Select.d.ts +52 -0
  28. package/dist/components/Slider.d.ts +49 -0
  29. package/dist/components/Switch.d.ts +41 -0
  30. package/dist/components/Tabs.d.ts +51 -0
  31. package/dist/components/Tag.d.ts +50 -0
  32. package/dist/components/Timeline.d.ts +54 -0
  33. package/dist/components/Toast.d.ts +2 -0
  34. package/dist/components/Tooltip.d.ts +31 -0
  35. package/dist/hooks.d.ts +13 -0
  36. package/dist/index.cjs +4 -0
  37. package/dist/index.d.ts +33 -0
  38. package/dist/index.js +2674 -0
  39. package/dist/plugin.d.ts +44 -0
  40. package/package.json +59 -0
package/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # vue2-sxo
2
+
3
+ SXO 设计系统的 Vue 2 适配器。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ pnpm add vue2-sxo @sxo/ui @sxo/engine @sxo/design
9
+ ```
@@ -0,0 +1,76 @@
1
+ export declare const Accordion: import('vue').DefineComponent<{
2
+ value: {
3
+ type: ArrayConstructor;
4
+ default: () => never[];
5
+ };
6
+ allowMultiple: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ variant: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ }, {
15
+ expandedItems: import('vue').Ref<string[]>;
16
+ toggleItem: (itemId: string) => void;
17
+ getItemProps: (itemId: string) => {
18
+ triggerProps: {
19
+ id: string;
20
+ "aria-expanded": boolean;
21
+ "aria-controls": string;
22
+ onClick: () => void;
23
+ };
24
+ regionProps: {
25
+ id: string;
26
+ role: string;
27
+ "aria-labelledby": string;
28
+ hidden: boolean;
29
+ };
30
+ };
31
+ styles: import('vue').ComputedRef<{
32
+ root: string;
33
+ item: (isExpanded: boolean) => string;
34
+ trigger: string;
35
+ triggerText: string;
36
+ icon: (isExpanded: boolean) => string;
37
+ panel: string;
38
+ }>;
39
+ renderRoot(): import('vue').VNode;
40
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
41
+ value: {
42
+ type: ArrayConstructor;
43
+ default: () => never[];
44
+ };
45
+ allowMultiple: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ variant: {
50
+ type: StringConstructor;
51
+ default: string;
52
+ };
53
+ }>>, {
54
+ value: unknown[];
55
+ allowMultiple: boolean;
56
+ variant: string;
57
+ }>;
58
+ export declare const AccordionItem: import('vue').DefineComponent<{
59
+ value: {
60
+ type: StringConstructor;
61
+ required: true;
62
+ };
63
+ title: {
64
+ type: StringConstructor;
65
+ required: true;
66
+ };
67
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
68
+ value: {
69
+ type: StringConstructor;
70
+ required: true;
71
+ };
72
+ title: {
73
+ type: StringConstructor;
74
+ required: true;
75
+ };
76
+ }>>, {}>;
@@ -0,0 +1,58 @@
1
+ export declare const Alert: import('vue').DefineComponent<{
2
+ type: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ variant: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ title: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ description: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ closable: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ showIcon: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ }, () => import('vue').VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
27
+ type: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ variant: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ title: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ description: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ closable: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ showIcon: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ }>>, {
52
+ description: string;
53
+ type: string;
54
+ title: string;
55
+ variant: string;
56
+ closable: boolean;
57
+ showIcon: boolean;
58
+ }>;
@@ -0,0 +1,29 @@
1
+ import { AvatarOptions } from '../../../../packages/ui/src';
2
+ export declare const Avatar: import('vue').DefineComponent<{
3
+ src: StringConstructor;
4
+ alt: StringConstructor;
5
+ fallback: StringConstructor;
6
+ size: {
7
+ type: () => AvatarOptions["size"];
8
+ default: string;
9
+ };
10
+ shape: {
11
+ type: () => AvatarOptions["shape"];
12
+ default: string;
13
+ };
14
+ }, () => import('vue').VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
15
+ src: StringConstructor;
16
+ alt: StringConstructor;
17
+ fallback: StringConstructor;
18
+ size: {
19
+ type: () => AvatarOptions["size"];
20
+ default: string;
21
+ };
22
+ shape: {
23
+ type: () => AvatarOptions["shape"];
24
+ default: string;
25
+ };
26
+ }>>, {
27
+ size: "sm" | "md" | "lg" | "xl" | undefined;
28
+ shape: "circle" | "square" | undefined;
29
+ }>;
@@ -0,0 +1,31 @@
1
+ export declare const BackTop: import('vue').DefineComponent<{
2
+ visibilityHeight: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ right: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ bottom: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ }, () => import('vue').VNode | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
15
+ visibilityHeight: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ right: {
20
+ type: NumberConstructor;
21
+ default: number;
22
+ };
23
+ bottom: {
24
+ type: NumberConstructor;
25
+ default: number;
26
+ };
27
+ }>>, {
28
+ right: number;
29
+ bottom: number;
30
+ visibilityHeight: number;
31
+ }>;
@@ -0,0 +1,14 @@
1
+ import { BadgeOptions } from '../../../../packages/ui/src';
2
+ export declare const Badge: import('vue').DefineComponent<{
3
+ variant: {
4
+ type: () => BadgeOptions["variant"];
5
+ default: string;
6
+ };
7
+ }, () => import('vue').VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
8
+ variant: {
9
+ type: () => BadgeOptions["variant"];
10
+ default: string;
11
+ };
12
+ }>>, {
13
+ variant: "primary" | "secondary" | "accent" | "neon" | "outline" | undefined;
14
+ }>;
@@ -0,0 +1,13 @@
1
+ export declare const Box: import('vue').DefineComponent<{
2
+ as: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ }, () => import('vue').VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
7
+ as: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ }>>, {
12
+ as: string;
13
+ }>;
@@ -0,0 +1,35 @@
1
+ export declare const BreadcrumbItem: import('vue').DefineComponent<{
2
+ href: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ current: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ }, () => import('vue').VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
11
+ href: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ current: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ }>>, {
20
+ href: string;
21
+ current: boolean;
22
+ }>;
23
+ export declare const Breadcrumb: import('vue').DefineComponent<{
24
+ separator: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ }, () => import('vue').VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
29
+ separator: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ }>>, {
34
+ separator: string;
35
+ }>;
@@ -0,0 +1,32 @@
1
+ import { ButtonOptions } from '../../../../packages/ui/src';
2
+ export declare const Button: import('vue').DefineComponent<{
3
+ variant: {
4
+ type: () => ButtonOptions["variant"];
5
+ default: string;
6
+ };
7
+ size: {
8
+ type: () => ButtonOptions["size"];
9
+ default: string;
10
+ };
11
+ disabled: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ }, () => import('vue').VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
16
+ variant: {
17
+ type: () => ButtonOptions["variant"];
18
+ default: string;
19
+ };
20
+ size: {
21
+ type: () => ButtonOptions["size"];
22
+ default: string;
23
+ };
24
+ disabled: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ }>>, {
29
+ variant: "primary" | "secondary" | "accent" | "ghost" | "outline" | undefined;
30
+ size: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
31
+ disabled: boolean;
32
+ }>;
@@ -0,0 +1,32 @@
1
+ import { CardOptions } from '../../../../packages/ui/src';
2
+ export declare const Card: import('vue').DefineComponent<{
3
+ variant: {
4
+ type: () => CardOptions["variant"];
5
+ default: string;
6
+ };
7
+ padding: {
8
+ type: () => CardOptions["padding"];
9
+ default: string;
10
+ };
11
+ interactive: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ }, () => import('vue').VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
16
+ variant: {
17
+ type: () => CardOptions["variant"];
18
+ default: string;
19
+ };
20
+ padding: {
21
+ type: () => CardOptions["padding"];
22
+ default: string;
23
+ };
24
+ interactive: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ }>>, {
29
+ variant: "accent" | "ghost" | "outline" | "elevated" | undefined;
30
+ padding: "none" | "sm" | "md" | "lg" | "xl" | undefined;
31
+ interactive: boolean;
32
+ }>;
@@ -0,0 +1,108 @@
1
+ import { CheckboxOptions } from '../../../../packages/ui/src';
2
+ export declare const CheckboxGroup: import('vue').DefineComponent<{
3
+ value: {
4
+ type: ArrayConstructor;
5
+ default: () => never[];
6
+ };
7
+ direction: {
8
+ type: () => "row" | "col";
9
+ default: string;
10
+ };
11
+ gap: {
12
+ type: (NumberConstructor | StringConstructor)[];
13
+ default: number;
14
+ };
15
+ size: {
16
+ type: () => CheckboxOptions["size"];
17
+ default: string;
18
+ };
19
+ color: {
20
+ type: () => CheckboxOptions["color"];
21
+ default: string;
22
+ };
23
+ }, () => import('vue').VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
24
+ value: {
25
+ type: ArrayConstructor;
26
+ default: () => never[];
27
+ };
28
+ direction: {
29
+ type: () => "row" | "col";
30
+ default: string;
31
+ };
32
+ gap: {
33
+ type: (NumberConstructor | StringConstructor)[];
34
+ default: number;
35
+ };
36
+ size: {
37
+ type: () => CheckboxOptions["size"];
38
+ default: string;
39
+ };
40
+ color: {
41
+ type: () => CheckboxOptions["color"];
42
+ default: string;
43
+ };
44
+ }>>, {
45
+ value: unknown[];
46
+ color: "primary" | "success" | undefined;
47
+ size: "sm" | "md" | "lg" | undefined;
48
+ direction: "col" | "row";
49
+ gap: string | number;
50
+ }>;
51
+ export declare const Checkbox: import('vue').DefineComponent<{
52
+ checked: {
53
+ type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
54
+ default: undefined;
55
+ };
56
+ label: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ };
60
+ disabled: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ value: {
65
+ type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
66
+ default: undefined;
67
+ };
68
+ size: {
69
+ type: () => CheckboxOptions["size"];
70
+ default: undefined;
71
+ };
72
+ color: {
73
+ type: () => CheckboxOptions["color"];
74
+ default: undefined;
75
+ };
76
+ }, () => import('vue').VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
77
+ checked: {
78
+ type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
79
+ default: undefined;
80
+ };
81
+ label: {
82
+ type: StringConstructor;
83
+ default: string;
84
+ };
85
+ disabled: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ value: {
90
+ type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
91
+ default: undefined;
92
+ };
93
+ size: {
94
+ type: () => CheckboxOptions["size"];
95
+ default: undefined;
96
+ };
97
+ color: {
98
+ type: () => CheckboxOptions["color"];
99
+ default: undefined;
100
+ };
101
+ }>>, {
102
+ value: string | number | boolean | Record<string, any>;
103
+ color: "primary" | "success" | undefined;
104
+ label: string;
105
+ size: "sm" | "md" | "lg" | undefined;
106
+ disabled: boolean;
107
+ checked: string | number | boolean | Record<string, any>;
108
+ }>;
@@ -0,0 +1,45 @@
1
+ import { DialogStylesOptions } from '../../../../packages/ui/src';
2
+ import { PropType } from 'vue';
3
+ export declare const Dialog: import('vue').DefineComponent<{
4
+ isOpen: {
5
+ type: BooleanConstructor;
6
+ required: true;
7
+ };
8
+ title: StringConstructor;
9
+ description: StringConstructor;
10
+ size: {
11
+ type: PropType<DialogStylesOptions["size"]>;
12
+ default: string;
13
+ };
14
+ isCentered: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ isDraggable: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ }, () => import('vue').VNode | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
23
+ isOpen: {
24
+ type: BooleanConstructor;
25
+ required: true;
26
+ };
27
+ title: StringConstructor;
28
+ description: StringConstructor;
29
+ size: {
30
+ type: PropType<DialogStylesOptions["size"]>;
31
+ default: string;
32
+ };
33
+ isCentered: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ isDraggable: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ }>>, {
42
+ size: "sm" | "md" | "lg" | "xl" | "full" | undefined;
43
+ isCentered: boolean;
44
+ isDraggable: boolean;
45
+ }>;
@@ -0,0 +1,32 @@
1
+ import { DividerOptions } from '../../../../packages/ui/src';
2
+ export declare const Divider: import('vue').DefineComponent<{
3
+ direction: {
4
+ type: () => DividerOptions["direction"];
5
+ default: string;
6
+ };
7
+ type: {
8
+ type: () => DividerOptions["type"];
9
+ default: string;
10
+ };
11
+ contentPlacement: {
12
+ type: () => DividerOptions["contentPlacement"];
13
+ default: string;
14
+ };
15
+ }, () => import('vue').VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
16
+ direction: {
17
+ type: () => DividerOptions["direction"];
18
+ default: string;
19
+ };
20
+ type: {
21
+ type: () => DividerOptions["type"];
22
+ default: string;
23
+ };
24
+ contentPlacement: {
25
+ type: () => DividerOptions["contentPlacement"];
26
+ default: string;
27
+ };
28
+ }>>, {
29
+ type: "solid" | "dashed" | "dotted" | undefined;
30
+ direction: "horizontal" | "vertical" | undefined;
31
+ contentPlacement: "left" | "center" | "right" | undefined;
32
+ }>;
@@ -0,0 +1,63 @@
1
+ import { DropdownOptions } from '../../../../packages/ui/src';
2
+ export declare const DropdownItem: import('vue').DefineComponent<{
3
+ disabled: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ active: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ divider: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ header: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ }, () => import('vue').VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
20
+ disabled: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ active: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ divider: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ header: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ }>>, {
37
+ header: string;
38
+ disabled: boolean;
39
+ active: boolean;
40
+ divider: boolean;
41
+ }>;
42
+ export declare const Dropdown: import('vue').DefineComponent<{
43
+ placement: {
44
+ type: () => DropdownOptions["placement"];
45
+ default: string;
46
+ };
47
+ trigger: {
48
+ type: () => "click" | "hover";
49
+ default: string;
50
+ };
51
+ }, () => import('vue').VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
52
+ placement: {
53
+ type: () => DropdownOptions["placement"];
54
+ default: string;
55
+ };
56
+ trigger: {
57
+ type: () => "click" | "hover";
58
+ default: string;
59
+ };
60
+ }>>, {
61
+ placement: "bottom-left" | "bottom-right" | "top-left" | "top-right" | undefined;
62
+ trigger: "click" | "hover";
63
+ }>;
@@ -0,0 +1,32 @@
1
+ import { EmptyOptions } from '../../../../packages/ui/src';
2
+ export declare const Empty: import('vue').DefineComponent<{
3
+ description: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ size: {
8
+ type: () => EmptyOptions["size"];
9
+ default: string;
10
+ };
11
+ image: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ }, () => import('vue').VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
16
+ description: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ size: {
21
+ type: () => EmptyOptions["size"];
22
+ default: string;
23
+ };
24
+ image: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ }>>, {
29
+ description: string;
30
+ size: "sm" | "md" | "lg" | undefined;
31
+ image: string;
32
+ }>;