@yunlefun/vue 0.6.0 → 0.8.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 (77) hide show
  1. package/README.md +5 -6
  2. package/components/YlfAccordion.vue +30 -29
  3. package/components/YlfAgentCard.vue +4 -4
  4. package/components/YlfAgentStatus.vue +1 -1
  5. package/components/YlfAgentTask.vue +4 -4
  6. package/components/YlfAiPromptLauncher.vue +18 -8
  7. package/components/YlfAvatar.vue +30 -30
  8. package/components/YlfBadge.vue +92 -73
  9. package/components/YlfBottomMenu.vue +5 -5
  10. package/components/YlfBottomMenuItem.vue +15 -15
  11. package/components/YlfButton.vue +300 -265
  12. package/components/YlfCard.vue +32 -32
  13. package/components/YlfCheckbox.vue +61 -54
  14. package/components/YlfCloud.vue +5 -18
  15. package/components/YlfDialog.vue +47 -46
  16. package/components/YlfDropdownMenu.vue +55 -57
  17. package/components/YlfInput.vue +22 -15
  18. package/components/YlfLogo.vue +58 -42
  19. package/components/YlfNavigation.vue +24 -24
  20. package/components/YlfNavigationLink.vue +58 -25
  21. package/components/YlfNavigationTrigger.vue +49 -21
  22. package/components/YlfPopover.vue +34 -31
  23. package/components/YlfProgress.vue +10 -6
  24. package/components/YlfRadioGroup.vue +73 -58
  25. package/components/YlfScrollFade.vue +66 -0
  26. package/components/YlfSegmentedControl.vue +21 -15
  27. package/components/YlfSelect.vue +110 -99
  28. package/components/YlfSeparator.vue +31 -26
  29. package/components/YlfSlider.vue +49 -46
  30. package/components/YlfSwitch.vue +67 -64
  31. package/components/YlfTabs.vue +30 -28
  32. package/components/YlfTooltip.vue +30 -27
  33. package/components/ai-prompt.ts +33 -6
  34. package/components/cloud.ts +21 -1
  35. package/components/navigation-indicator.ts +9 -3
  36. package/components/scroll-fade/demo.vue +49 -0
  37. package/components/scroll-fade/index.md +40 -0
  38. package/components/scroll-fade.ts +54 -0
  39. package/components/segmented-control/demo.vue +9 -2
  40. package/dist/ag-ui.cjs +11 -2
  41. package/dist/ag-ui.mjs +11 -2
  42. package/dist/ai-prompt.cjs +30 -5
  43. package/dist/ai-prompt.mjs +30 -5
  44. package/dist/components/YlfAccordion.vue.d.ts +5 -3
  45. package/dist/components/YlfAgentCard.vue.d.ts +9 -7
  46. package/dist/components/YlfAgentTask.vue.d.ts +7 -5
  47. package/dist/components/YlfBadge.vue.d.ts +5 -4
  48. package/dist/components/YlfBottomMenu.vue.d.ts +5 -3
  49. package/dist/components/YlfBottomMenuItem.vue.d.ts +5 -3
  50. package/dist/components/YlfButton.vue.d.ts +7 -6
  51. package/dist/components/YlfCard.vue.d.ts +5 -4
  52. package/dist/components/YlfDialog.vue.d.ts +11 -9
  53. package/dist/components/YlfDropdownMenu.vue.d.ts +5 -3
  54. package/dist/components/YlfNavigation.vue.d.ts +5 -3
  55. package/dist/components/YlfNavigationLink.vue.d.ts +5 -3
  56. package/dist/components/YlfNavigationTrigger.vue.d.ts +5 -3
  57. package/dist/components/YlfPopover.vue.d.ts +7 -5
  58. package/dist/components/YlfProgress.vue.d.ts +0 -1
  59. package/dist/components/YlfScrollFade.vue.d.ts +26 -0
  60. package/dist/components/YlfSeparator.vue.d.ts +0 -1
  61. package/dist/components/YlfSwitch.vue.d.ts +0 -1
  62. package/dist/components/YlfTabs.vue.d.ts +5 -3
  63. package/dist/components/YlfTooltip.vue.d.ts +7 -5
  64. package/dist/components/cloud.d.ts +2 -0
  65. package/dist/components/scroll-fade.d.ts +3 -0
  66. package/dist/index.cjs +20 -10
  67. package/dist/index.d.cts +3 -4
  68. package/dist/index.d.mts +3 -4
  69. package/dist/index.d.ts +3 -4
  70. package/dist/index.mjs +20 -8
  71. package/dist/node.cjs +11 -0
  72. package/dist/node.d.cts +4 -0
  73. package/dist/node.d.mts +4 -0
  74. package/dist/node.d.ts +4 -0
  75. package/dist/node.mjs +7 -0
  76. package/package.json +11 -4
  77. package/components/_navigation.scss +0 -38
@@ -29,8 +29,12 @@ export function useNavigationIndicator(root: Readonly<Ref<HTMLElement | null>>,
29
29
  return
30
30
  }
31
31
  // Convert viewport coordinates to the padding box, including scaled previews.
32
- const scaleX = element.offsetWidth ? bounds.width / element.offsetWidth : 1
33
- const scaleY = element.offsetHeight ? bounds.height / element.offsetHeight : 1
32
+ const scaleX = element.offsetWidth
33
+ ? bounds.width / element.offsetWidth
34
+ : 1
35
+ const scaleY = element.offsetHeight
36
+ ? bounds.height / element.offsetHeight
37
+ : 1
34
38
  const x = (target.left - bounds.left + target.width / 2) / scaleX - element.clientLeft + element.scrollLeft - 8
35
39
  const y = (target.bottom - bounds.top) / scaleY - element.clientTop + element.scrollTop - 6
36
40
  if (indicator.value?.x !== x || indicator.value?.y !== y)
@@ -47,7 +51,9 @@ export function useNavigationIndicator(root: Readonly<Ref<HTMLElement | null>>,
47
51
  }
48
52
 
49
53
  function observeLinks() {
50
- const current = new Set(root.value ? options.links(root.value) : [])
54
+ const current = new Set(root.value
55
+ ? options.links(root.value)
56
+ : [])
51
57
  for (const link of observedLinks) {
52
58
  if (!current.has(link)) {
53
59
  resizeObserver?.unobserve(link)
@@ -0,0 +1,49 @@
1
+ <script setup lang="ts">
2
+ import { useTemplateRef } from 'vue'
3
+ import YlfScrollFade from '../YlfScrollFade.vue'
4
+
5
+ withDefaults(defineProps<{ label?: string, itemLabel?: string }>(), {
6
+ label: '最近打开',
7
+ itemLabel: '项目',
8
+ })
9
+ const list = useTemplateRef<HTMLUListElement>('list')
10
+ </script>
11
+
12
+ <template>
13
+ <YlfScrollFade :viewport="list" class="scroll-demo">
14
+ <ul ref="list" :aria-label="label" tabindex="0" class="scroll-demo-list">
15
+ <li v-for="entry in 12" :key="entry">
16
+ {{ itemLabel }} {{ entry }}
17
+ </li>
18
+ </ul>
19
+ </YlfScrollFade>
20
+ </template>
21
+
22
+ <style scoped>
23
+ .scroll-demo {
24
+ width: min(100%, 24rem);
25
+ border: 1px solid var(--ylf-c-border);
26
+ border-radius: var(--ylf-radius, 14px);
27
+ background: var(--ylf-c-surface, #fff);
28
+ }
29
+
30
+ .scroll-demo-list {
31
+ max-height: 9rem;
32
+ margin: 0;
33
+ padding: 0;
34
+ overflow-y: auto;
35
+ scroll-padding-block: 24px;
36
+ list-style: none;
37
+ }
38
+
39
+ .scroll-demo-list:focus-visible {
40
+ outline-offset: -3px;
41
+ }
42
+ .scroll-demo-list li {
43
+ margin: 0;
44
+ padding: 8px 14px;
45
+ }
46
+ .scroll-demo-list li + li {
47
+ border-top: 1px solid var(--ylf-c-border);
48
+ }
49
+ </style>
@@ -0,0 +1,40 @@
1
+ ---
2
+ title: Scroll Fade
3
+ title_zh: 滚动渐变
4
+ ---
5
+
6
+ 滚动区域默认使用 `YlfScrollFade` 提示边缘外还有内容。列表全部可见时不显示渐变,滚到边界时自动移除对应一侧的渐变。组件尊重系统的减少透明度和强制颜色偏好。
7
+
8
+ 用组件包裹实际滚动的元素,通过 `viewport` 传入模板引用。滚动元素继续负责高度、`overflow`、键盘焦点和语义。自定义背景时,将同一个颜色或主题变量传给 `surface`。可用 `size` 调整渐变高度,默认 24px。
9
+
10
+ ```vue
11
+ <script setup lang="ts">
12
+ import YlfScrollFade from '@yunlefun/vue/components/YlfScrollFade.vue'
13
+ import { useTemplateRef } from 'vue'
14
+
15
+ const list = useTemplateRef<HTMLUListElement>('list')
16
+ </script>
17
+
18
+ <template>
19
+ <YlfScrollFade :viewport="list" class="panel">
20
+ <ul ref="list" aria-label="最近打开" tabindex="0" class="viewport">
21
+ <li v-for="entry in 12" :key="entry">
22
+ 项目 {{ entry }}
23
+ </li>
24
+ </ul>
25
+ </YlfScrollFade>
26
+ </template>
27
+
28
+ <style scoped>
29
+ .panel {
30
+ background: var(--ylf-c-surface, #fff);
31
+ }
32
+ .viewport {
33
+ max-height: 8rem;
34
+ overflow-y: auto;
35
+ scroll-padding-block: 24px;
36
+ }
37
+ </style>
38
+ ```
39
+
40
+ `YlfSelect` 已内置滚动渐变。带固定表头等特殊结构可以从 `@yunlefun/vue/components/scroll-fade` 导入 `useScrollFade`,获取两侧的透明度变量,按布局放置渐变。
@@ -0,0 +1,54 @@
1
+ import type { ComputedRef, CSSProperties, Ref } from 'vue'
2
+ import { computed, shallowRef, watch } from 'vue'
3
+
4
+ function edgeOpacity(distance: number): number {
5
+ // Layout heights are rounded to whole pixels, but scrollTop can be fractional.
6
+ return distance <= 1
7
+ ? 0
8
+ : Math.min(1, distance / 24)
9
+ }
10
+
11
+ /** Reveal the edges with more content, including before the first scroll. */
12
+ export function useScrollFade(viewport: Readonly<Ref<HTMLElement | null | undefined>>): ComputedRef<CSSProperties> {
13
+ const top = shallowRef(0)
14
+ const bottom = shallowRef(0)
15
+ watch(viewport, (element, _, onCleanup) => {
16
+ top.value = 0
17
+ bottom.value = 0
18
+ if (!element)
19
+ return
20
+
21
+ let frame = 0
22
+ const update = (): void => {
23
+ frame = 0
24
+ const range = Math.max(0, element.scrollHeight - element.clientHeight)
25
+ const offset = Math.min(range, Math.max(0, element.scrollTop))
26
+ top.value = edgeOpacity(offset)
27
+ bottom.value = edgeOpacity(range - offset)
28
+ }
29
+ const schedule = (): void => {
30
+ if (!frame)
31
+ frame = requestAnimationFrame(update)
32
+ }
33
+ const resize = new ResizeObserver(schedule)
34
+ const observeContent = (): void => {
35
+ resize.disconnect()
36
+ resize.observe(element)
37
+ for (const child of Array.from(element.children))
38
+ resize.observe(child)
39
+ schedule()
40
+ }
41
+ const content = new MutationObserver(observeContent)
42
+ content.observe(element, { childList: true, characterData: true, subtree: true })
43
+ observeContent()
44
+ element.addEventListener('scroll', schedule, { passive: true })
45
+ onCleanup(() => {
46
+ resize.disconnect()
47
+ content.disconnect()
48
+ cancelAnimationFrame(frame)
49
+ element.removeEventListener('scroll', schedule)
50
+ })
51
+ }, { immediate: true, flush: 'post' })
52
+
53
+ return computed(() => ({ '--scroll-fade-top': top.value, '--scroll-fade-bottom': bottom.value }))
54
+ }
@@ -4,9 +4,16 @@ import YlfSegmentedControl from '../YlfSegmentedControl.vue'
4
4
 
5
5
  const view = shallowRef<'grid' | 'list'>('grid')
6
6
  const kind = shallowRef('all')
7
- const options = [{ value: 'grid', label: '网格视图' }, { value: 'list', label: '列表视图' }] as const
7
+ const options = [
8
+ { value: 'grid', label: '网格视图' },
9
+ { value: 'list', label: '列表视图' },
10
+ ] as const
8
11
  const icons = { grid: 'i-ri-grid-line', list: 'i-ri-list-check' }
9
- const kinds = [{ value: 'all', label: '全部', count: 24 }, { value: 'image', label: '图片', count: 18 }, { value: 'video', label: '视频', count: 6 }]
12
+ const kinds = [
13
+ { value: 'all', label: '全部', count: 24 },
14
+ { value: 'image', label: '图片', count: 18 },
15
+ { value: 'video', label: '视频', count: 6 },
16
+ ]
10
17
  </script>
11
18
 
12
19
  <template>
package/dist/ag-ui.cjs CHANGED
@@ -76,7 +76,11 @@ function useAgUiAgent(agent) {
76
76
  assertReadyToRun();
77
77
  if (!content.trim())
78
78
  return Promise.resolve(void 0);
79
- agent.addMessage({ id: client.randomUUID(), role: "user", content });
79
+ agent.addMessage({
80
+ id: client.randomUUID(),
81
+ role: "user",
82
+ content
83
+ });
80
84
  sync();
81
85
  return run(parameters);
82
86
  }
@@ -95,7 +99,12 @@ function useAgUiAgent(agent) {
95
99
  assertAvailable();
96
100
  if (!pendingToolCallIds.value.includes(toolCallId))
97
101
  throw new Error("The tool call is not awaiting a result.");
98
- agent.addMessage({ id: client.randomUUID(), role: "tool", toolCallId, content });
102
+ agent.addMessage({
103
+ id: client.randomUUID(),
104
+ role: "tool",
105
+ toolCallId,
106
+ content
107
+ });
99
108
  pendingToolCallIds.value = pendingToolCallIds.value.filter((id) => id !== toolCallId);
100
109
  sync();
101
110
  }
package/dist/ag-ui.mjs CHANGED
@@ -74,7 +74,11 @@ function useAgUiAgent(agent) {
74
74
  assertReadyToRun();
75
75
  if (!content.trim())
76
76
  return Promise.resolve(void 0);
77
- agent.addMessage({ id: randomUUID(), role: "user", content });
77
+ agent.addMessage({
78
+ id: randomUUID(),
79
+ role: "user",
80
+ content
81
+ });
78
82
  sync();
79
83
  return run(parameters);
80
84
  }
@@ -93,7 +97,12 @@ function useAgUiAgent(agent) {
93
97
  assertAvailable();
94
98
  if (!pendingToolCallIds.value.includes(toolCallId))
95
99
  throw new Error("The tool call is not awaiting a result.");
96
- agent.addMessage({ id: randomUUID(), role: "tool", toolCallId, content });
100
+ agent.addMessage({
101
+ id: randomUUID(),
102
+ role: "tool",
103
+ toolCallId,
104
+ content
105
+ });
97
106
  pendingToolCallIds.value = pendingToolCallIds.value.filter((id) => id !== toolCallId);
98
107
  sync();
99
108
  }
@@ -3,16 +3,41 @@
3
3
  const aiProviders = [
4
4
  { id: "yuanbao", name: "\u5143\u5B9D", url: "https://yuanbao.tencent.com/" },
5
5
  { id: "doubao", name: "\u8C46\u5305", url: "https://www.doubao.com/chat/" },
6
- { id: "deepseek", name: "DeepSeek", url: "https://chat.deepseek.com/", promptParameter: "q" },
7
- { id: "chatgpt", name: "ChatGPT", url: "https://chatgpt.com/", promptParameter: "q" },
8
- { id: "claude", name: "Claude", url: "https://claude.ai/new", promptParameter: "q" },
9
- { id: "cursor", name: "Cursor", url: "https://cursor.com/link/prompt", promptParameter: "text" }
6
+ {
7
+ id: "deepseek",
8
+ name: "DeepSeek",
9
+ url: "https://chat.deepseek.com/",
10
+ promptParameter: "q"
11
+ },
12
+ {
13
+ id: "chatgpt",
14
+ name: "ChatGPT",
15
+ url: "https://chatgpt.com/",
16
+ promptParameter: "q"
17
+ },
18
+ {
19
+ id: "claude",
20
+ name: "Claude",
21
+ url: "https://claude.ai/new",
22
+ promptParameter: "q"
23
+ },
24
+ {
25
+ id: "cursor",
26
+ name: "Cursor",
27
+ url: "https://cursor.com/link/prompt",
28
+ promptParameter: "text"
29
+ }
10
30
  ];
11
31
  function buildAiPromptTarget(id, prompt, options = {}) {
12
32
  const provider = aiProviders.find((item) => item.id === id);
13
33
  if (!provider)
14
34
  throw new Error(`Unknown AI provider: ${id}`);
15
- const fallback = (reason) => ({ provider, url: provider.url, mode: "copy", reason });
35
+ const fallback = (reason) => ({
36
+ provider,
37
+ url: provider.url,
38
+ mode: "copy",
39
+ reason
40
+ });
16
41
  if (!prompt.trim())
17
42
  return fallback("empty");
18
43
  if (!provider.promptParameter)
@@ -1,16 +1,41 @@
1
1
  const aiProviders = [
2
2
  { id: "yuanbao", name: "\u5143\u5B9D", url: "https://yuanbao.tencent.com/" },
3
3
  { id: "doubao", name: "\u8C46\u5305", url: "https://www.doubao.com/chat/" },
4
- { id: "deepseek", name: "DeepSeek", url: "https://chat.deepseek.com/", promptParameter: "q" },
5
- { id: "chatgpt", name: "ChatGPT", url: "https://chatgpt.com/", promptParameter: "q" },
6
- { id: "claude", name: "Claude", url: "https://claude.ai/new", promptParameter: "q" },
7
- { id: "cursor", name: "Cursor", url: "https://cursor.com/link/prompt", promptParameter: "text" }
4
+ {
5
+ id: "deepseek",
6
+ name: "DeepSeek",
7
+ url: "https://chat.deepseek.com/",
8
+ promptParameter: "q"
9
+ },
10
+ {
11
+ id: "chatgpt",
12
+ name: "ChatGPT",
13
+ url: "https://chatgpt.com/",
14
+ promptParameter: "q"
15
+ },
16
+ {
17
+ id: "claude",
18
+ name: "Claude",
19
+ url: "https://claude.ai/new",
20
+ promptParameter: "q"
21
+ },
22
+ {
23
+ id: "cursor",
24
+ name: "Cursor",
25
+ url: "https://cursor.com/link/prompt",
26
+ promptParameter: "text"
27
+ }
8
28
  ];
9
29
  function buildAiPromptTarget(id, prompt, options = {}) {
10
30
  const provider = aiProviders.find((item) => item.id === id);
11
31
  if (!provider)
12
32
  throw new Error(`Unknown AI provider: ${id}`);
13
- const fallback = (reason) => ({ provider, url: provider.url, mode: "copy", reason });
33
+ const fallback = (reason) => ({
34
+ provider,
35
+ url: provider.url,
36
+ mode: "copy",
37
+ reason
38
+ });
14
39
  if (!prompt.trim())
15
40
  return fallback("empty");
16
41
  if (!provider.promptParameter)
@@ -13,10 +13,12 @@ type __VLS_ModelProps = {
13
13
  modelValue?: string | string[];
14
14
  };
15
15
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
16
- declare var __VLS_33: string, __VLS_34: {};
17
- type __VLS_Slots = {} & {
18
- [K in NonNullable<typeof __VLS_33>]?: (props: typeof __VLS_34) => any;
16
+ declare const __VLS_template: () => {
17
+ __VLS_Slots: {
18
+ [x: string]: ((props: {}) => any) | undefined;
19
+ };
19
20
  };
21
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
20
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
23
  "update:modelValue": (value: string | string[] | undefined) => any;
22
24
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
@@ -5,14 +5,16 @@ type __VLS_Props = {
5
5
  state: YlfAgentState;
6
6
  statusLabel: string;
7
7
  };
8
- declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {};
9
- type __VLS_Slots = {} & {
10
- avatar?: (props: typeof __VLS_1) => any;
11
- } & {
12
- default?: (props: typeof __VLS_8) => any;
13
- } & {
14
- actions?: (props: typeof __VLS_10) => any;
8
+ declare const __VLS_template: () => {
9
+ __VLS_Slots: {
10
+ avatar?: (props: {}) => any;
11
+ } & {
12
+ default?: (props: {}) => any;
13
+ } & {
14
+ actions?: (props: {}) => any;
15
+ };
15
16
  };
17
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
16
18
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
19
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
20
  declare const _default: typeof __VLS_export;
@@ -6,12 +6,14 @@ type __VLS_Props = {
6
6
  taskId?: string;
7
7
  description?: string;
8
8
  };
9
- declare var __VLS_6: {}, __VLS_8: {};
10
- type __VLS_Slots = {} & {
11
- default?: (props: typeof __VLS_6) => any;
12
- } & {
13
- actions?: (props: typeof __VLS_8) => any;
9
+ declare const __VLS_template: () => {
10
+ __VLS_Slots: {
11
+ default?: (props: {}) => any;
12
+ } & {
13
+ actions?: (props: {}) => any;
14
+ };
14
15
  };
16
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
15
17
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
19
  declare const _default: typeof __VLS_export;
@@ -9,14 +9,15 @@ type __VLS_Props = {
9
9
  /** 胶囊圆角 */
10
10
  round?: boolean;
11
11
  };
12
- declare var __VLS_1: {};
13
- type __VLS_Slots = {} & {
14
- default?: (props: typeof __VLS_1) => any;
12
+ declare const __VLS_template: () => {
13
+ __VLS_Slots: {
14
+ default?: (props: {}) => any;
15
+ };
15
16
  };
17
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
16
18
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
19
  round: boolean;
18
20
  variant: BadgeVariant;
19
- tone: YlfAccentTone;
20
21
  appearance: YlfColorAppearance;
21
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
23
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -2,10 +2,12 @@ type __VLS_Props = {
2
2
  /** 浮起阴影 */
3
3
  shadow?: boolean;
4
4
  };
5
- declare var __VLS_1: {};
6
- type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_1) => any;
5
+ declare const __VLS_template: () => {
6
+ __VLS_Slots: {
7
+ default?: (props: {}) => any;
8
+ };
8
9
  };
10
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
9
11
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
12
  shadow: boolean;
11
13
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -3,10 +3,12 @@ type __VLS_Props = {
3
3
  active: boolean;
4
4
  item: BottomMenuItem;
5
5
  };
6
- declare var __VLS_1: {};
7
- type __VLS_Slots = {} & {
8
- default?: (props: typeof __VLS_1) => any;
6
+ declare const __VLS_template: () => {
7
+ __VLS_Slots: {
8
+ default?: (props: {}) => any;
9
+ };
9
10
  };
11
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
10
12
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
13
  click: (...args: any[]) => void;
12
14
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -19,12 +19,14 @@ type __VLS_Props = {
19
19
  /** 渲染标签,如 'a' */
20
20
  tag?: string;
21
21
  };
22
- declare var __VLS_9: {}, __VLS_11: {};
23
- type __VLS_Slots = {} & {
24
- icon?: (props: typeof __VLS_9) => any;
25
- } & {
26
- default?: (props: typeof __VLS_11) => any;
22
+ declare const __VLS_template: () => {
23
+ __VLS_Slots: {
24
+ icon?: (props: {}) => any;
25
+ } & {
26
+ default?: (props: {}) => any;
27
+ };
27
28
  };
29
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
28
30
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
31
  click: (e: MouseEvent) => any;
30
32
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -34,7 +36,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
34
36
  round: boolean;
35
37
  size: ButtonSize;
36
38
  variant: ButtonVariant;
37
- tone: YlfAccentTone;
38
39
  appearance: YlfColorAppearance;
39
40
  iconOnly: boolean;
40
41
  block: boolean;
@@ -8,13 +8,14 @@ type __VLS_Props = {
8
8
  /** 内边距,接受任意 CSS 值 */
9
9
  padding?: string;
10
10
  };
11
- declare var __VLS_1: {};
12
- type __VLS_Slots = {} & {
13
- default?: (props: typeof __VLS_1) => any;
11
+ declare const __VLS_template: () => {
12
+ __VLS_Slots: {
13
+ default?: (props: {}) => any;
14
+ };
14
15
  };
16
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
15
17
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
18
  variant: CardVariant;
17
- tone: YlfAccentTone;
18
19
  hoverable: boolean;
19
20
  padding: string;
20
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -12,16 +12,18 @@ type __VLS_ModelProps = {
12
12
  'open'?: boolean;
13
13
  };
14
14
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
15
- declare var __VLS_13: {}, __VLS_38: {}, __VLS_58: {}, __VLS_60: {};
16
- type __VLS_Slots = {} & {
17
- trigger?: (props: typeof __VLS_13) => any;
18
- } & {
19
- title?: (props: typeof __VLS_38) => any;
20
- } & {
21
- description?: (props: typeof __VLS_58) => any;
22
- } & {
23
- default?: (props: typeof __VLS_60) => any;
15
+ declare const __VLS_template: () => {
16
+ __VLS_Slots: {
17
+ trigger?: (props: {}) => any;
18
+ } & {
19
+ title?: (props: {}) => any;
20
+ } & {
21
+ description?: (props: {}) => any;
22
+ } & {
23
+ default?: (props: {}) => any;
24
+ };
24
25
  };
26
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
25
27
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
28
  "update:open": (value: boolean) => any;
27
29
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
@@ -13,10 +13,12 @@ type __VLS_ModelProps = {
13
13
  'open'?: boolean;
14
14
  };
15
15
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
16
- declare var __VLS_13: {};
17
- type __VLS_Slots = {} & {
18
- trigger?: (props: typeof __VLS_13) => any;
16
+ declare const __VLS_template: () => {
17
+ __VLS_Slots: {
18
+ trigger?: (props: {}) => any;
19
+ };
19
20
  };
21
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
20
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
23
  select: (value: string) => any;
22
24
  "update:open": (value: boolean) => any;
@@ -5,10 +5,12 @@ type __VLS_Props = {
5
5
  /** Move the shared underline between current links in horizontal navigation. */
6
6
  animated?: boolean;
7
7
  };
8
- declare var __VLS_1: {};
9
- type __VLS_Slots = {} & {
10
- default?: (props: typeof __VLS_1) => any;
8
+ declare const __VLS_template: () => {
9
+ __VLS_Slots: {
10
+ default?: (props: {}) => any;
11
+ };
11
12
  };
13
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
12
14
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
15
  orientation: "vertical" | "horizontal";
14
16
  animated: boolean;
@@ -3,10 +3,12 @@ type __VLS_Props = {
3
3
  /** Merge attributes onto one child anchor, e.g. NuxtLink or RouterLink. */
4
4
  asChild?: boolean;
5
5
  };
6
- declare var __VLS_7: {};
7
- type __VLS_Slots = {} & {
8
- default?: (props: typeof __VLS_7) => any;
6
+ declare const __VLS_template: () => {
7
+ __VLS_Slots: {
8
+ default?: (props: {}) => any;
9
+ };
9
10
  };
11
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
10
12
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
13
  asChild: boolean;
12
14
  active: boolean;
@@ -1,10 +1,12 @@
1
1
  type __VLS_Props = {
2
2
  disabled?: boolean;
3
3
  };
4
- declare var __VLS_1: {};
5
- type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_1) => any;
4
+ declare const __VLS_template: () => {
5
+ __VLS_Slots: {
6
+ default?: (props: {}) => any;
7
+ };
7
8
  };
9
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
8
10
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
11
  disabled: boolean;
10
12
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -7,12 +7,14 @@ type __VLS_ModelProps = {
7
7
  'open'?: boolean;
8
8
  };
9
9
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
- declare var __VLS_13: {}, __VLS_27: {};
11
- type __VLS_Slots = {} & {
12
- trigger?: (props: typeof __VLS_13) => any;
13
- } & {
14
- default?: (props: typeof __VLS_27) => any;
10
+ declare const __VLS_template: () => {
11
+ __VLS_Slots: {
12
+ trigger?: (props: {}) => any;
13
+ } & {
14
+ default?: (props: {}) => any;
15
+ };
15
16
  };
17
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
16
18
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
19
  "update:open": (value: boolean) => any;
18
20
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
@@ -10,7 +10,6 @@ type __VLS_Props = {
10
10
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
11
  value: number | null;
12
12
  variant: "accent" | "aurora" | "brand";
13
- tone: YlfAccentTone;
14
13
  max: number;
15
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
15
  declare const _default: typeof __VLS_export;