@rocketui/vue 0.0.9 → 0.0.11
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.
- package/dist/design-tokens.source.json +1 -1
- package/dist/rocket-ui-vue.js +756 -1175
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/dist/style.css +2 -2
- package/dist/types/main.d.ts +34 -0
- package/package.json +25 -22
- package/dist/types/Alert/Alert.vue.d.ts +0 -184
- package/dist/types/Avatar/Avatar.vue.d.ts +0 -130
- package/dist/types/Badge/Badge.vue.d.ts +0 -132
- package/dist/types/Button/Button.vue.d.ts +0 -287
- package/dist/types/Checkbox/Checkbox.vue.d.ts +0 -238
- package/dist/types/Chips/Chip.vue.d.ts +0 -220
- package/dist/types/Dropdown/Dropdown.vue.d.ts +0 -496
- package/dist/types/Icon/Icon.vue.d.ts +0 -114
- package/dist/types/Label/Label.vue.d.ts +0 -67
- package/dist/types/Snackbar/Snackbar.vue.d.ts +0 -419
- package/dist/types/Switch/Switch.vue.d.ts +0 -159
- package/dist/types/TabItem/TabItem.vue.d.ts +0 -220
- package/dist/types/TabItem/common.d.ts +0 -6
- package/dist/types/Tabs/Tabs.vue.d.ts +0 -212
- package/dist/types/Tabs/types.d.ts +0 -9
- package/dist/types/TextArea/TextArea.vue.d.ts +0 -191
- package/dist/types/Textfield/Textfield.vue.d.ts +0 -441
- package/dist/types/Tooltip/Tooltip.vue.d.ts +0 -319
- package/dist/types/Tooltip/common.d.ts +0 -23
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import RAlert from '../src/components/Alert/Alert.vue';
|
|
2
|
+
import RAvatar from '../src/components/Avatar/Avatar.vue';
|
|
3
|
+
import RBadge from '../src/components/Badge/Badge.vue';
|
|
4
|
+
import RButton from '../src/components/Button/Button.vue';
|
|
5
|
+
import RCheckbox from '../src/components/Checkbox/Checkbox.vue';
|
|
6
|
+
import RChip from '../src/components/Chips/Chip.vue';
|
|
7
|
+
import RDropdown from '../src/components/Dropdown/Dropdown.vue';
|
|
8
|
+
import RIcon from '../src/components/Icon/Icon.vue';
|
|
9
|
+
import RLabel from '../src/components/Label/Label.vue';
|
|
10
|
+
import RSnackbar from '../src/components/Snackbar/Snackbar.vue';
|
|
11
|
+
import RSwitch from '../src/components/Switch/Switch.vue';
|
|
12
|
+
import RTabItem from '../src/components/TabItem/TabItem.vue';
|
|
13
|
+
import RTabs from '../src/components/Tabs/Tabs.vue';
|
|
14
|
+
import RTextArea from '../src/components/TextArea/TextArea.vue';
|
|
15
|
+
import RTextfield from '../src/components/Textfield/Textfield.vue';
|
|
16
|
+
import RTooltip from '../src/components/Tooltip/Tooltip.vue';
|
|
17
|
+
export {
|
|
18
|
+
RAlert,
|
|
19
|
+
RAvatar,
|
|
20
|
+
RBadge,
|
|
21
|
+
RCheckbox,
|
|
22
|
+
RChip,
|
|
23
|
+
RButton,
|
|
24
|
+
RDropdown,
|
|
25
|
+
RIcon,
|
|
26
|
+
RLabel,
|
|
27
|
+
RSnackbar,
|
|
28
|
+
RSwitch,
|
|
29
|
+
RTabItem,
|
|
30
|
+
RTabs,
|
|
31
|
+
RTextArea,
|
|
32
|
+
RTextfield,
|
|
33
|
+
RTooltip,
|
|
34
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rocketui/vue",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "A set of customizable UI components for Vue 3, built with TypeScript",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/rocket-ui-vue.umd.cjs",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"test:coverage": "vitest run --coverage",
|
|
19
19
|
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
|
|
20
20
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
21
|
-
"storybook": "
|
|
22
|
-
"storybook:build": "
|
|
23
|
-
"storybook:chromatic": "npx chromatic --project-token=
|
|
21
|
+
"storybook": "storybook dev -p 6006",
|
|
22
|
+
"storybook:build": "storybook build",
|
|
23
|
+
"storybook:chromatic": "npx chromatic --project-token=252d66c17a90 --disable-telemetry",
|
|
24
24
|
"prepare": "husky install",
|
|
25
25
|
"prettier": "prettier --write ./src/**/*.{vue,ts,css,mdx}"
|
|
26
26
|
},
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/core": "^7.18.10",
|
|
35
35
|
"@rushstack/eslint-patch": "^1.1.4",
|
|
36
|
-
"@storybook/addon-actions": "^
|
|
37
|
-
"@storybook/addon-
|
|
38
|
-
"@storybook/addon-
|
|
39
|
-
"@storybook/addon-links": "^
|
|
40
|
-
"@storybook/
|
|
41
|
-
"@storybook/
|
|
42
|
-
"@storybook/testing-library": "^0.0
|
|
43
|
-
"@storybook/
|
|
44
|
-
"@storybook/vue3": "^
|
|
36
|
+
"@storybook/addon-actions": "^7.0.27",
|
|
37
|
+
"@storybook/addon-essentials": "^7.0.27",
|
|
38
|
+
"@storybook/addon-interactions": "^7.0.27",
|
|
39
|
+
"@storybook/addon-links": "^7.0.27",
|
|
40
|
+
"@storybook/addon-mdx-gfm": "^7.0.27",
|
|
41
|
+
"@storybook/blocks": "^7.0.27",
|
|
42
|
+
"@storybook/testing-library": "^0.2.0",
|
|
43
|
+
"@storybook/vue3": "^7.0.27",
|
|
44
|
+
"@storybook/vue3-vite": "^7.0.27",
|
|
45
45
|
"@types/jsdom": "^20.0.0",
|
|
46
46
|
"@types/node": "^16.11.48",
|
|
47
47
|
"@vitejs/plugin-vue": "^3.0.3",
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"autoprefixer": "^10.4.8",
|
|
54
54
|
"babel-loader": "^8.2.5",
|
|
55
55
|
"chromatic": "^6.7.4",
|
|
56
|
-
"eslint": "^8.
|
|
56
|
+
"eslint": "^8.39.0",
|
|
57
57
|
"eslint-plugin-mdx": "^2.0.2",
|
|
58
|
-
"eslint-plugin-storybook": "^0.6.
|
|
59
|
-
"eslint-plugin-vue": "^9.
|
|
58
|
+
"eslint-plugin-storybook": "^0.6.12",
|
|
59
|
+
"eslint-plugin-vue": "^9.11.0",
|
|
60
60
|
"husky": "^8.0.0",
|
|
61
61
|
"jsdom": "^20.0.0",
|
|
62
62
|
"lint-staged": "^13.0.3",
|
|
@@ -65,18 +65,21 @@
|
|
|
65
65
|
"postcss-import": "^15.0.0",
|
|
66
66
|
"postcss-nested": "^5.0.6",
|
|
67
67
|
"prettier": "^2.7.1",
|
|
68
|
-
"
|
|
68
|
+
"react": "^18.2.0",
|
|
69
|
+
"react-dom": "^18.2.0",
|
|
70
|
+
"storybook": "^7.0.27",
|
|
71
|
+
"storybook-design-token": "^2.9.0",
|
|
69
72
|
"tailwindcss": "^3.2.0",
|
|
70
73
|
"ts-dedent": "^2.2.0",
|
|
71
74
|
"typescript": "~4.7.4",
|
|
72
|
-
"vite": "^3.
|
|
73
|
-
"vite-plugin-dts": "^
|
|
74
|
-
"vitest": "^0.
|
|
75
|
+
"vite": "^4.3.9",
|
|
76
|
+
"vite-plugin-dts": "^3.3.1",
|
|
77
|
+
"vitest": "^0.32.0",
|
|
75
78
|
"vue-loader": "^16.8.3",
|
|
76
|
-
"vue-tsc": "^
|
|
79
|
+
"vue-tsc": "^1.6.5"
|
|
77
80
|
},
|
|
78
81
|
"lint-staged": {
|
|
79
|
-
"
|
|
82
|
+
"src/*.{vue,js,ts,mdx}": [
|
|
80
83
|
"yarn lint",
|
|
81
84
|
"yarn prettier"
|
|
82
85
|
]
|
|
@@ -1,184 +0,0 @@
|
|
|
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;
|
|
@@ -1,130 +0,0 @@
|
|
|
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;
|
|
@@ -1,132 +0,0 @@
|
|
|
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;
|