@rocketui/vue 0.0.1 → 0.0.4

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.
@@ -0,0 +1,184 @@
1
+ export interface Props {
2
+ /**
3
+ * Type of the Alert
4
+ * @type 'success' | 'error' | 'warning' | 'info'
5
+ * @default 'info'
6
+ * @example
7
+ * <Alert type="success" />
8
+ */
9
+ type: 'success' | 'error' | 'warning' | 'info';
10
+ /**
11
+ * Title of the Alert
12
+ * @type string
13
+ * @default ''
14
+ * @example
15
+ * <Alert title="Title" />
16
+ */
17
+ title?: string;
18
+ /**
19
+ * Description of the Alert
20
+ * @type string
21
+ * @default ''
22
+ * @example
23
+ * <Alert description="Description" />
24
+ */
25
+ description?: string;
26
+ /**
27
+ * Size of the Alert
28
+ * @type 'small' | 'medium' | 'large'
29
+ * @default 'medium'
30
+ * @example
31
+ * <Alert size="small" />
32
+ */
33
+ size?: 'small' | 'medium' | 'large';
34
+ /**
35
+ * Allow to close the Alert
36
+ * @type boolean
37
+ * @default true
38
+ * @example
39
+ * <Alert closable />
40
+ */
41
+ closable?: boolean;
42
+ }
43
+ declare const _sfc_main: import("vue").DefineComponent<{
44
+ type: {
45
+ type: StringConstructor;
46
+ required: true;
47
+ default: string;
48
+ };
49
+ title: {
50
+ type: StringConstructor;
51
+ required: false;
52
+ default: string;
53
+ };
54
+ description: {
55
+ type: StringConstructor;
56
+ required: false;
57
+ default: string;
58
+ };
59
+ size: {
60
+ type: StringConstructor;
61
+ required: false;
62
+ default: string;
63
+ };
64
+ closable: {
65
+ type: BooleanConstructor;
66
+ required: false;
67
+ default: boolean;
68
+ };
69
+ }, {
70
+ emit: (event: "close", ...args: any[]) => void;
71
+ props: any;
72
+ classes: import("vue").ComputedRef<{
73
+ [x: string]: boolean;
74
+ alert: boolean;
75
+ }>;
76
+ icon: import("vue").ComputedRef<string>;
77
+ iconSize: import("vue").ComputedRef<number>;
78
+ close: () => void;
79
+ Icon: import("vue").DefineComponent<{
80
+ name: {
81
+ type: StringConstructor;
82
+ required: true;
83
+ default: string;
84
+ };
85
+ kind: {
86
+ type: StringConstructor;
87
+ required: false;
88
+ default: string;
89
+ };
90
+ fontSize: {
91
+ type: any;
92
+ required: false;
93
+ default: number;
94
+ };
95
+ color: {
96
+ type: any;
97
+ required: false;
98
+ default: string;
99
+ };
100
+ fontWeight: {
101
+ type: any;
102
+ required: false;
103
+ default: string;
104
+ };
105
+ }, {
106
+ props: any;
107
+ styles: import("vue").ComputedRef<{
108
+ fontSize: string;
109
+ fontWeight: import("csstype").FontWeightProperty;
110
+ color: string;
111
+ display: string;
112
+ alignItems: string;
113
+ justifyContent: string;
114
+ }>;
115
+ classes: import("vue").ComputedRef<string>;
116
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
117
+ name: {
118
+ type: StringConstructor;
119
+ required: true;
120
+ default: string;
121
+ };
122
+ kind: {
123
+ type: StringConstructor;
124
+ required: false;
125
+ default: string;
126
+ };
127
+ fontSize: {
128
+ type: any;
129
+ required: false;
130
+ default: number;
131
+ };
132
+ color: {
133
+ type: any;
134
+ required: false;
135
+ default: string;
136
+ };
137
+ fontWeight: {
138
+ type: any;
139
+ required: false;
140
+ default: string;
141
+ };
142
+ }>>, {
143
+ name: string;
144
+ kind: string;
145
+ fontSize: any;
146
+ color: any;
147
+ fontWeight: any;
148
+ }>;
149
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
150
+ type: {
151
+ type: StringConstructor;
152
+ required: true;
153
+ default: string;
154
+ };
155
+ title: {
156
+ type: StringConstructor;
157
+ required: false;
158
+ default: string;
159
+ };
160
+ description: {
161
+ type: StringConstructor;
162
+ required: false;
163
+ default: string;
164
+ };
165
+ size: {
166
+ type: StringConstructor;
167
+ required: false;
168
+ default: string;
169
+ };
170
+ closable: {
171
+ type: BooleanConstructor;
172
+ required: false;
173
+ default: boolean;
174
+ };
175
+ }>> & {
176
+ onClose?: (...args: any[]) => any;
177
+ }, {
178
+ type: string;
179
+ title: string;
180
+ description: string;
181
+ size: string;
182
+ closable: boolean;
183
+ }>;
184
+ export default _sfc_main;
@@ -0,0 +1,130 @@
1
+ export interface IProps {
2
+ /**
3
+ * Type of the Avatar
4
+ * @type 'image' | 'text'
5
+ * @default 'image'
6
+ * @example
7
+ * <Avatar type="text" />
8
+ */
9
+ type?: 'image' | 'text';
10
+ /**
11
+ * Source of the Avatar
12
+ * @type string
13
+ * @default ''
14
+ * @example
15
+ * <Avatar src="https://source.unsplash.com/random" />
16
+ */
17
+ src?: string;
18
+ /**
19
+ * Alt of the Avatar
20
+ * @type string
21
+ * @default 'Avatar'
22
+ * @example
23
+ * <Avatar alt="Avatar" />
24
+ */
25
+ alt?: string;
26
+ /**
27
+ * Size of the Avatar
28
+ * @type 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'
29
+ * @default '2xl'
30
+ * @example
31
+ * <Avatar size="xs" />
32
+ */
33
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
34
+ /**
35
+ * Show online status
36
+ * @type boolean
37
+ * @default false
38
+ * @example
39
+ * <Avatar online />
40
+ */
41
+ online?: boolean;
42
+ /**
43
+ * Text to show when type is text
44
+ * @type string
45
+ * @default ''
46
+ * @example
47
+ * <Avatar type="text" text="John Doe" />
48
+ */
49
+ text?: string;
50
+ }
51
+ declare const _sfc_main: import("vue").DefineComponent<{
52
+ type: {
53
+ type: StringConstructor;
54
+ required: false;
55
+ default: string;
56
+ };
57
+ src: {
58
+ type: StringConstructor;
59
+ required: false;
60
+ default: any;
61
+ };
62
+ alt: {
63
+ type: StringConstructor;
64
+ required: false;
65
+ default: string;
66
+ };
67
+ size: {
68
+ type: StringConstructor;
69
+ required: false;
70
+ default: string;
71
+ };
72
+ online: {
73
+ type: BooleanConstructor;
74
+ required: false;
75
+ default: boolean;
76
+ };
77
+ text: {
78
+ type: StringConstructor;
79
+ required: false;
80
+ default: string;
81
+ };
82
+ }, {
83
+ props: any;
84
+ classes: import("vue").ComputedRef<{
85
+ [x: string]: boolean;
86
+ avatar: boolean;
87
+ }>;
88
+ isAnon: import("vue").ComputedRef<boolean>;
89
+ imgSrc: import("vue").ComputedRef<any>;
90
+ shortTextWithFirstCharacters: (text: string) => string;
91
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
92
+ type: {
93
+ type: StringConstructor;
94
+ required: false;
95
+ default: string;
96
+ };
97
+ src: {
98
+ type: StringConstructor;
99
+ required: false;
100
+ default: any;
101
+ };
102
+ alt: {
103
+ type: StringConstructor;
104
+ required: false;
105
+ default: string;
106
+ };
107
+ size: {
108
+ type: StringConstructor;
109
+ required: false;
110
+ default: string;
111
+ };
112
+ online: {
113
+ type: BooleanConstructor;
114
+ required: false;
115
+ default: boolean;
116
+ };
117
+ text: {
118
+ type: StringConstructor;
119
+ required: false;
120
+ default: string;
121
+ };
122
+ }>>, {
123
+ type: string;
124
+ size: string;
125
+ text: string;
126
+ src: string;
127
+ alt: string;
128
+ online: boolean;
129
+ }>;
130
+ export default _sfc_main;
@@ -0,0 +1,132 @@
1
+ export interface BadgeProps {
2
+ /**
3
+ * Variant of the Badge
4
+ * @type 'primary' | 'success' | 'warning' | 'error' | 'neutral'
5
+ * @default 'primary'
6
+ * @example
7
+ * <Badge variant="primary" />
8
+ */
9
+ variant?: 'primary' | 'success' | 'warning' | 'error' | 'neutral';
10
+ /**
11
+ * Placement of the Badge
12
+ * @type 'right' | 'bottom' | 'left'
13
+ * @default 'right'
14
+ * @example
15
+ * <Badge placement="right" />
16
+ */
17
+ placement?: 'right' | 'bottom' | 'left';
18
+ /**
19
+ * Overlap the Badge
20
+ * @type boolean
21
+ * @default false
22
+ * @example
23
+ * <Badge overlap />
24
+ */
25
+ overlap?: boolean;
26
+ /**
27
+ * Show the Badge on hover
28
+ * @type boolean
29
+ * @default false
30
+ * @example
31
+ * <Badge hover />
32
+ */
33
+ hover?: boolean;
34
+ /**
35
+ * Content of the Badge
36
+ * @type string | number
37
+ * @default ''
38
+ * @example
39
+ * <Badge content="1" />
40
+ */
41
+ content?: string | number;
42
+ /**
43
+ * Show the Badge outside
44
+ * @type boolean
45
+ * @default false
46
+ * @example
47
+ * <Badge outside />
48
+ */
49
+ outside?: boolean;
50
+ }
51
+ declare const _sfc_main: import("vue").DefineComponent<{
52
+ variant: {
53
+ type: StringConstructor;
54
+ required: false;
55
+ default: string;
56
+ };
57
+ placement: {
58
+ type: StringConstructor;
59
+ required: false;
60
+ default: string;
61
+ };
62
+ overlap: {
63
+ type: BooleanConstructor;
64
+ required: false;
65
+ default: boolean;
66
+ };
67
+ hover: {
68
+ type: BooleanConstructor;
69
+ required: false;
70
+ default: boolean;
71
+ };
72
+ content: {
73
+ type: (StringConstructor | NumberConstructor)[];
74
+ required: false;
75
+ default: string;
76
+ };
77
+ outside: {
78
+ type: BooleanConstructor;
79
+ required: false;
80
+ default: boolean;
81
+ };
82
+ }, {
83
+ props: any;
84
+ classes: import("vue").ComputedRef<{
85
+ [x: string]: string | number | boolean;
86
+ badge: boolean;
87
+ badge__content: string | number;
88
+ 'badge--hover': boolean;
89
+ 'badge--no-content': boolean;
90
+ }>;
91
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
92
+ variant: {
93
+ type: StringConstructor;
94
+ required: false;
95
+ default: string;
96
+ };
97
+ placement: {
98
+ type: StringConstructor;
99
+ required: false;
100
+ default: string;
101
+ };
102
+ overlap: {
103
+ type: BooleanConstructor;
104
+ required: false;
105
+ default: boolean;
106
+ };
107
+ hover: {
108
+ type: BooleanConstructor;
109
+ required: false;
110
+ default: boolean;
111
+ };
112
+ content: {
113
+ type: (StringConstructor | NumberConstructor)[];
114
+ required: false;
115
+ default: string;
116
+ };
117
+ outside: {
118
+ type: BooleanConstructor;
119
+ required: false;
120
+ default: boolean;
121
+ };
122
+ }>> & {
123
+ onClick?: (...args: any[]) => any;
124
+ }, {
125
+ variant: string;
126
+ placement: string;
127
+ overlap: boolean;
128
+ hover: boolean;
129
+ content: string | number;
130
+ outside: boolean;
131
+ }>;
132
+ export default _sfc_main;