@mureka-fe/ui 1.1.7 → 3.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.
- package/dist/llms.txt +51 -17
- package/dist/src/components/badge/Badge.vue.d.ts +13 -0
- package/dist/src/components/badge/Badge.vue.d.ts.map +1 -0
- package/dist/src/components/{tag/__docs__/demos/size.demo.vue.d.ts → badge/__docs__/demos/content.demo.vue.d.ts} +1 -1
- package/dist/src/components/badge/__docs__/demos/content.demo.vue.d.ts.map +1 -0
- package/dist/src/components/badge/__docs__/demos/preset.demo.vue.d.ts.map +1 -0
- package/dist/src/components/badge/__docs__/demos/variant.demo.vue.d.ts +3 -0
- package/dist/src/components/badge/__docs__/demos/variant.demo.vue.d.ts.map +1 -0
- package/dist/src/components/badge/__docs__/meta.d.ts +4 -0
- package/dist/src/components/badge/__docs__/meta.d.ts.map +1 -0
- package/dist/src/components/badge/badge.spec.d.ts +2 -0
- package/dist/src/components/badge/badge.spec.d.ts.map +1 -0
- package/dist/src/components/badge/badge.types.d.ts +24 -0
- package/dist/src/components/badge/badge.types.d.ts.map +1 -0
- package/dist/src/components/badge/index.d.ts +3 -0
- package/dist/src/components/badge/index.d.ts.map +1 -0
- package/dist/src/components/modal/Modal.vue.d.ts +2 -2
- package/dist/src/components/tag/Tag.vue.d.ts +8 -19
- package/dist/src/components/tag/Tag.vue.d.ts.map +1 -1
- package/dist/src/components/tag/__docs__/demos/basic.demo.vue.d.ts.map +1 -1
- package/dist/src/components/tag/__docs__/demos/disabled.demo.vue.d.ts +3 -0
- package/dist/src/components/tag/__docs__/demos/disabled.demo.vue.d.ts.map +1 -0
- package/dist/src/components/tag/__docs__/demos/icon.demo.vue.d.ts.map +1 -1
- package/dist/src/components/tag/__docs__/demos/variant.demo.vue.d.ts.map +1 -1
- package/dist/src/components/tag/__docs__/meta.d.ts.map +1 -1
- package/dist/src/components/tag/index.d.ts +1 -1
- package/dist/src/components/tag/index.d.ts.map +1 -1
- package/dist/src/components/tag/tag.types.d.ts +8 -34
- package/dist/src/components/tag/tag.types.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/ui.js +655 -629
- package/dist/ui.umd.cjs +1 -1
- package/package.json +1 -1
- package/dist/src/components/tag/__docs__/demos/preset.demo.vue.d.ts.map +0 -1
- package/dist/src/components/tag/__docs__/demos/size.demo.vue.d.ts.map +0 -1
- /package/dist/src/components/{tag → badge}/__docs__/demos/preset.demo.vue.d.ts +0 -0
package/dist/llms.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @mureka-fe/ui
|
|
1
|
+
# @mureka-fe/ui v3.0.0
|
|
2
2
|
|
|
3
3
|
> AI/LLM-readable reference for the @mureka-fe/ui Vue 3 component library.
|
|
4
4
|
> Read this file before writing UI in a project that depends on this package.
|
|
@@ -19,8 +19,9 @@ import { MuButton, MuModal } from '@mureka-fe/ui';
|
|
|
19
19
|
| --- | --- | --- |
|
|
20
20
|
| Button 按钮 | `button` | 用于触发即时操作,支持主次层级、反色外观、危险状态、胶囊形状与图标模式。 |
|
|
21
21
|
| Message 消息提示 | `message` | 全局展示操作反馈信息,不打断用户操作。 |
|
|
22
|
+
| Badge 徽标 | `badge` | 用于展示状态、权益、版本和轻量元信息的纯展示徽标。 |
|
|
22
23
|
| Dialog 弹窗 | `modal` | 用于承载需要中断当前流程的确认、编辑、危险操作以及结果反馈对话框。提供 form 与 feedback 两种排版形态。 |
|
|
23
|
-
| Tag 标签 | `tag` |
|
|
24
|
+
| Tag 标签 | `tag` | 用于筛选、分类、模式切换等轻量选择场景;新版 MuTag 是交互式 button。 |
|
|
24
25
|
| Switch 开关 | `switch` | 用于切换开/关状态,支持受控与非受控、自定义值、异步切换拦截、自定义文案和图标。 |
|
|
25
26
|
| Radio 单选 | `radio` | 用于在一组选项中选择单个值,支持受控与非受控、横向/纵向排列、禁用态和独立使用。 |
|
|
26
27
|
| Tabs 标签页 | `tabs` | 用于在同级内容或模式之间切换,支持 line 与 segment 两种视觉形态、三档尺寸、图标插槽和等宽布局。 |
|
|
@@ -30,6 +31,8 @@ import { MuButton, MuModal } from '@mureka-fe/ui';
|
|
|
30
31
|
```ts
|
|
31
32
|
import './styles/index.css';
|
|
32
33
|
|
|
34
|
+
export { MuBadge } from './components/badge';
|
|
35
|
+
export type { BadgePreset, BadgeProps, BadgeVariant } from './components/badge';
|
|
33
36
|
export { MuButton } from './components/button';
|
|
34
37
|
export { MessageList, message } from './components/message';
|
|
35
38
|
export { MuModal, muModal, openMuModal } from './components/modal';
|
|
@@ -60,6 +63,7 @@ export type {
|
|
|
60
63
|
TabsVariant,
|
|
61
64
|
} from './components/tabs';
|
|
62
65
|
export { MuTag } from './components/tag';
|
|
66
|
+
export type { TagProps, TagVariant } from './components/tag';
|
|
63
67
|
```
|
|
64
68
|
|
|
65
69
|
## Components
|
|
@@ -130,6 +134,32 @@ Status: stable · Since 1.0.0 · Category: 反馈
|
|
|
130
134
|
| message.error | (text: string \| { title: string; description?: string; duration?: number; closable?: boolean; resetOnHover?: boolean; icon?: string \| Component }) => { close: () => void } | 展示业务错误提示,可恢复。 |
|
|
131
135
|
| message.danger | (text: string \| { title: string; description?: string; duration?: number; closable?: boolean; resetOnHover?: boolean; icon?: string \| Component }) => { close: () => void } | 展示系统级危险错误提示,不可恢复。 |
|
|
132
136
|
|
|
137
|
+
### Badge 徽标 `badge`
|
|
138
|
+
|
|
139
|
+
Status: stable · Since 2.0.0 · Category: 通用
|
|
140
|
+
|
|
141
|
+
用于展示状态、权益、版本和轻量元信息的纯展示徽标。
|
|
142
|
+
|
|
143
|
+
#### Usage notes
|
|
144
|
+
|
|
145
|
+
- **Preset 总览** — 内置 12 个命名徽标,覆盖 NEW 字标、权益、发布状态和元信息展示。
|
|
146
|
+
- **Variant** — 内容驱动模式支持 outline、solid 和 soft 三种视觉形态。
|
|
147
|
+
- **内容驱动** — 不传 preset 时内容完全来自默认插槽,paid 控制免费灰色与付费主题色。
|
|
148
|
+
|
|
149
|
+
#### Props
|
|
150
|
+
|
|
151
|
+
| name | type | default | description |
|
|
152
|
+
| --- | --- | --- | --- |
|
|
153
|
+
| variant | 'outline' \| 'solid' \| 'soft' | 'outline' | 内容驱动模式的视觉形态。传入 preset 时不可同时使用。 |
|
|
154
|
+
| paid | boolean | false | 内容驱动模式的付费状态。false 使用免费灰色,true 使用主题色。 |
|
|
155
|
+
| preset | BadgePreset | -- | 命名徽标。支持 new、new-mini、premier、pro、beta、free、studio、upload、publish、published、details、bpm。 |
|
|
156
|
+
|
|
157
|
+
#### Slots
|
|
158
|
+
|
|
159
|
+
| name | type | default | description |
|
|
160
|
+
| --- | --- | --- | --- |
|
|
161
|
+
| default | VNode | -- | 徽标内容。文字 preset 提供默认内容并允许覆盖;new 与 new-mini 固定渲染 SVG 字标并忽略插槽。 |
|
|
162
|
+
|
|
133
163
|
### Dialog 弹窗 `modal`
|
|
134
164
|
|
|
135
165
|
Status: stable · Since 1.0.0 · Category: 反馈
|
|
@@ -194,35 +224,39 @@ Status: stable · Since 1.0.0 · Category: 反馈
|
|
|
194
224
|
|
|
195
225
|
### Tag 标签 `tag`
|
|
196
226
|
|
|
197
|
-
Status: stable · Since 1.0.0 · Category:
|
|
227
|
+
Status: stable · Since 1.0.0 · Category: 选择
|
|
198
228
|
|
|
199
|
-
|
|
229
|
+
用于筛选、分类、模式切换等轻量选择场景;新版 MuTag 是交互式 button。
|
|
200
230
|
|
|
201
231
|
#### Usage notes
|
|
202
232
|
|
|
203
|
-
-
|
|
204
|
-
-
|
|
205
|
-
- **图标插槽** —
|
|
206
|
-
-
|
|
207
|
-
- **Variant 对照** — tonal 表示半透明底加弱描边,避免将 soft 与 outline 作为可叠加语义。
|
|
233
|
+
- **基础 Variant** — outline、solid 与 soft 分别对应设计稿中的 Text、Button Label 与 All 三组形态。
|
|
234
|
+
- **受控选中** — 通过 v-model:selected 控制选中态;组件只抛出下一次 selected 值,不维护内部状态。
|
|
235
|
+
- **图标插槽** — prefix 与 suffix 仅用于图标,图标尺寸固定 14px 并继承 currentColor。
|
|
236
|
+
- **禁用状态** — disabled 会禁用 button 交互,并在当前视觉状态上统一叠加弱化效果。
|
|
208
237
|
|
|
209
238
|
#### Props
|
|
210
239
|
|
|
211
240
|
| name | type | default | description |
|
|
212
241
|
| --- | --- | --- | --- |
|
|
213
|
-
|
|
|
214
|
-
|
|
|
215
|
-
|
|
|
216
|
-
|
|
217
|
-
|
|
242
|
+
| variant | 'outline' \| 'solid' \| 'soft' | 'outline' | 定义标签视觉形态。尺寸、圆角和默认颜色由 variant 固定映射。 |
|
|
243
|
+
| selected | boolean | false | 选中态。组件为纯受控,点击时仅抛出 update:selected。 |
|
|
244
|
+
| disabled | boolean | false | 禁用交互,设置后不会触发 click 或 update:selected。 |
|
|
245
|
+
|
|
246
|
+
#### Events
|
|
247
|
+
|
|
248
|
+
| name | signature | description |
|
|
249
|
+
| --- | --- | --- |
|
|
250
|
+
| update:selected | (selected: boolean) => void | 点击可用标签时抛出下一次 selected 值,用于 v-model:selected。 |
|
|
251
|
+
| click | (event: MouseEvent) => void | 点击可用标签时触发,触发顺序早于 update:selected。 |
|
|
218
252
|
|
|
219
253
|
#### Slots
|
|
220
254
|
|
|
221
255
|
| name | type | default | description |
|
|
222
256
|
| --- | --- | --- | --- |
|
|
223
|
-
| default | VNode | -- |
|
|
224
|
-
| prefix | VNode | -- |
|
|
225
|
-
| suffix | VNode | -- |
|
|
257
|
+
| default | VNode | -- | 标签文本内容。 |
|
|
258
|
+
| prefix | VNode | -- | 前置图标插槽,只放非交互图标。 |
|
|
259
|
+
| suffix | VNode | -- | 后置图标插槽,只放非交互图标。 |
|
|
226
260
|
|
|
227
261
|
### Switch 开关 `switch`
|
|
228
262
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<import("./badge.types").BadgeBaseProps | import("./badge.types").BadgePresetProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./badge.types").BadgeBaseProps | import("./badge.types").BadgePresetProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=Badge.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/badge/Badge.vue"],"names":[],"mappings":"AAgcA,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAwB/C,QAAA,MAAM,eAAe,8aAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=content.demo.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/badge/__docs__/demos/content.demo.vue"],"names":[],"mappings":";AA6HA,wBAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/badge/__docs__/demos/preset.demo.vue"],"names":[],"mappings":";AAgHA,wBAKG"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=variant.demo.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/badge/__docs__/demos/variant.demo.vue"],"names":[],"mappings":";AAyIA,wBAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../../../src/components/badge/__docs__/meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,QAAA,MAAM,IAAI,EAAE,gBA+DX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/badge/badge.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type BadgeVariant = 'outline' | 'solid' | 'soft';
|
|
2
|
+
export type BadgePreset = 'new' | 'new-mini' | 'premier' | 'pro' | 'beta' | 'free' | 'studio' | 'upload' | 'publish' | 'published' | 'details' | 'bpm';
|
|
3
|
+
export interface BadgeBaseProps {
|
|
4
|
+
variant?: BadgeVariant;
|
|
5
|
+
paid?: boolean;
|
|
6
|
+
preset?: never;
|
|
7
|
+
}
|
|
8
|
+
export interface BadgePresetProps {
|
|
9
|
+
preset: BadgePreset;
|
|
10
|
+
variant?: never;
|
|
11
|
+
paid?: never;
|
|
12
|
+
}
|
|
13
|
+
export type BadgeProps = BadgeBaseProps | BadgePresetProps;
|
|
14
|
+
export interface ResolvedBadgeProps {
|
|
15
|
+
preset?: BadgePreset;
|
|
16
|
+
variant?: BadgeVariant;
|
|
17
|
+
paid?: boolean;
|
|
18
|
+
defaultContent?: string;
|
|
19
|
+
isSvgPreset: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const badgePresets: readonly ["new", "new-mini", "premier", "pro", "beta", "free", "studio", "upload", "publish", "published", "details", "bpm"];
|
|
22
|
+
export declare function resolveBadgeProps(props?: BadgeProps): ResolvedBadgeProps;
|
|
23
|
+
export declare function getBadgeClassNames(props?: BadgeProps): string[];
|
|
24
|
+
//# sourceMappingURL=badge.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.types.d.ts","sourceRoot":"","sources":["../../../../src/components/badge/badge.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AACxD,MAAM,MAAM,WAAW,GACnB,KAAK,GACL,UAAU,GACV,SAAS,GACT,KAAK,GACL,MAAM,GACN,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,WAAW,GACX,SAAS,GACT,KAAK,CAAC;AAEV,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,IAAI,CAAC,EAAE,KAAK,CAAC;CACd;AAED,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,gBAAgB,CAAC;AAE3D,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,WAAW,CAAC;IAErB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;CACtB;AAOD,eAAO,MAAM,YAAY,8HAakB,CAAC;AA+B5C,wBAAgB,iBAAiB,CAAC,KAAK,GAAE,UAAe,GAAG,kBAAkB,CAgB5E;AAED,wBAAgB,kBAAkB,CAAC,KAAK,GAAE,UAAe,GAAG,MAAM,EAAE,CAqBnE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AACjD,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -18,11 +18,11 @@ declare const __VLS_component: import("vue").DefineComponent<ModalProps, {}, {},
|
|
|
18
18
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
19
19
|
onOk?: ((event: MouseEvent) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
|
+
variant: import("./modal.types").ModalVariant;
|
|
22
|
+
title: string;
|
|
21
23
|
status: import("./modal.types").ModalStatus;
|
|
22
24
|
size: import("./modal.types").ModalSize;
|
|
23
|
-
title: string;
|
|
24
25
|
closable: boolean;
|
|
25
|
-
variant: import("./modal.types").ModalVariant;
|
|
26
26
|
visible: boolean;
|
|
27
27
|
maskClosable: boolean;
|
|
28
28
|
escToClose: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TagProps } from './tag.types';
|
|
1
2
|
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
2
3
|
type __VLS_Slots = {} & {
|
|
3
4
|
prefix?: (props: typeof __VLS_1) => any;
|
|
@@ -6,25 +7,13 @@ type __VLS_Slots = {} & {
|
|
|
6
7
|
} & {
|
|
7
8
|
suffix?: (props: typeof __VLS_5) => any;
|
|
8
9
|
};
|
|
9
|
-
declare const __VLS_component: import("vue").DefineComponent<import("
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
tone: "yellow";
|
|
17
|
-
variant?: "outline";
|
|
18
|
-
}), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./tag.types").TagPresetProps | (import("./tag.types").TagBaseCommonProps & {
|
|
19
|
-
tone?: "neutral";
|
|
20
|
-
variant?: "soft" | "outline" | "tonal";
|
|
21
|
-
}) | (import("./tag.types").TagBaseCommonProps & {
|
|
22
|
-
tone: "cyan";
|
|
23
|
-
variant?: "solid" | "outline" | "tonal";
|
|
24
|
-
}) | (import("./tag.types").TagBaseCommonProps & {
|
|
25
|
-
tone: "yellow";
|
|
26
|
-
variant?: "outline";
|
|
27
|
-
})> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<TagProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
click: (event: MouseEvent) => any;
|
|
12
|
+
"update:selected": (selected: boolean) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<TagProps> & Readonly<{
|
|
14
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
15
|
+
"onUpdate:selected"?: ((selected: boolean) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
17
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
29
18
|
export default _default;
|
|
30
19
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/Tag.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/Tag.vue"],"names":[],"mappings":"AA6LA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AA4F5C,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC9D,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAwB9C,QAAA,MAAM,eAAe;;;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tag/__docs__/demos/basic.demo.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"basic.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tag/__docs__/demos/basic.demo.vue"],"names":[],"mappings":";AA+FA,wBAKG"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=disabled.demo.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disabled.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tag/__docs__/demos/disabled.demo.vue"],"names":[],"mappings":";AAuGA,wBAKG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tag/__docs__/demos/icon.demo.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"icon.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tag/__docs__/demos/icon.demo.vue"],"names":[],"mappings":";AA4MA,wBAKG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variant.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tag/__docs__/demos/variant.demo.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"variant.demo.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tag/__docs__/demos/variant.demo.vue"],"names":[],"mappings":";AA+IA,wBAKG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../../../src/components/tag/__docs__/meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../../../src/components/tag/__docs__/meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,QAAA,MAAM,IAAI,EAAE,gBA4FX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as MuTag } from './Tag.vue';
|
|
2
|
-
export type { ResolvedTagProps,
|
|
2
|
+
export type { ResolvedTagProps, TagProps, TagVariant } from './tag.types';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,WAAW,CAAC;AAC7C,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,WAAW,CAAC;AAC7C,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,39 +1,13 @@
|
|
|
1
|
-
export type
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
preset: TagPreset;
|
|
8
|
-
tone?: never;
|
|
9
|
-
variant?: never;
|
|
10
|
-
size?: never;
|
|
11
|
-
shape?: never;
|
|
12
|
-
};
|
|
13
|
-
export type TagBaseCommonProps = {
|
|
14
|
-
preset?: undefined;
|
|
15
|
-
size?: TagSize;
|
|
16
|
-
shape?: TagShape;
|
|
17
|
-
};
|
|
18
|
-
export type TagBaseProps = (TagBaseCommonProps & {
|
|
19
|
-
tone?: 'neutral';
|
|
20
|
-
variant?: 'soft' | 'outline' | 'tonal';
|
|
21
|
-
}) | (TagBaseCommonProps & {
|
|
22
|
-
tone: 'cyan';
|
|
23
|
-
variant?: 'solid' | 'outline' | 'tonal';
|
|
24
|
-
}) | (TagBaseCommonProps & {
|
|
25
|
-
tone: 'yellow';
|
|
26
|
-
variant?: 'outline';
|
|
27
|
-
});
|
|
28
|
-
export type TagProps = TagPresetProps | TagBaseProps;
|
|
29
|
-
export type ResolvedTagTone = TagTone | 'blue' | 'pink';
|
|
1
|
+
export type TagVariant = 'outline' | 'solid' | 'soft';
|
|
2
|
+
export interface TagProps {
|
|
3
|
+
variant?: TagVariant;
|
|
4
|
+
selected?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
30
7
|
export interface ResolvedTagProps {
|
|
31
|
-
mode: 'base' | 'preset';
|
|
32
|
-
preset?: TagPreset;
|
|
33
|
-
tone: ResolvedTagTone;
|
|
34
8
|
variant: TagVariant;
|
|
35
|
-
|
|
36
|
-
|
|
9
|
+
selected: boolean;
|
|
10
|
+
disabled: boolean;
|
|
37
11
|
}
|
|
38
12
|
export declare function resolveTagProps(props?: TagProps): ResolvedTagProps;
|
|
39
13
|
export declare function getTagClassNames(props?: TagProps): string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.types.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/tag.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"tag.types.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/tag.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEtD,MAAM,WAAW,QAAQ;IACvB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,UAAU,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAYD,wBAAgB,eAAe,CAAC,KAAK,GAAE,QAAa,GAAG,gBAAgB,CAMtE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,GAAE,QAAa,GAAG,MAAM,EAAE,CAa/D"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import './styles/index.css';
|
|
2
|
+
export { MuBadge } from './components/badge';
|
|
3
|
+
export type { BadgePreset, BadgeProps, BadgeVariant } from './components/badge';
|
|
2
4
|
export { MuButton } from './components/button';
|
|
3
5
|
export { MessageList, message } from './components/message';
|
|
4
6
|
export { MuModal, muModal, openMuModal } from './components/modal';
|
|
@@ -10,4 +12,5 @@ export type { SwitchBeforeChange, SwitchProps, SwitchSize, SwitchType, SwitchVal
|
|
|
10
12
|
export { MuTab, MuTabs } from './components/tabs';
|
|
11
13
|
export type { TabProps, TabValue, TabsAppearance, TabsLayout, TabsProps, TabsSize, TabsVariant, } from './components/tabs';
|
|
12
14
|
export { MuTag } from './components/tag';
|
|
15
|
+
export type { TagProps, TagVariant } from './components/tag';
|
|
13
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAE5B,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACnE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3D,YAAY,EACV,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,UAAU,GACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,YAAY,EACV,kBAAkB,EAClB,WAAW,EACX,UAAU,EACV,UAAU,EACV,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAClD,YAAY,EACV,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,UAAU,EACV,SAAS,EACT,QAAQ,EACR,WAAW,GACZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAE5B,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACnE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3D,YAAY,EACV,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,UAAU,GACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,YAAY,EACV,kBAAkB,EAClB,WAAW,EACX,UAAU,EACV,UAAU,EACV,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAClD,YAAY,EACV,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,UAAU,EACV,SAAS,EACT,QAAQ,EACR,WAAW,GACZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC"}
|