@yunlefun/vue 0.7.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 (74) 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 +1 -1
  26. package/components/YlfSegmentedControl.vue +21 -15
  27. package/components/YlfSelect.vue +81 -77
  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.ts +3 -1
  37. package/components/segmented-control/demo.vue +9 -2
  38. package/dist/ag-ui.cjs +11 -2
  39. package/dist/ag-ui.mjs +11 -2
  40. package/dist/ai-prompt.cjs +30 -5
  41. package/dist/ai-prompt.mjs +30 -5
  42. package/dist/components/YlfAccordion.vue.d.ts +5 -3
  43. package/dist/components/YlfAgentCard.vue.d.ts +9 -7
  44. package/dist/components/YlfAgentTask.vue.d.ts +7 -5
  45. package/dist/components/YlfBadge.vue.d.ts +5 -4
  46. package/dist/components/YlfBottomMenu.vue.d.ts +5 -3
  47. package/dist/components/YlfBottomMenuItem.vue.d.ts +5 -3
  48. package/dist/components/YlfButton.vue.d.ts +7 -6
  49. package/dist/components/YlfCard.vue.d.ts +5 -4
  50. package/dist/components/YlfDialog.vue.d.ts +11 -9
  51. package/dist/components/YlfDropdownMenu.vue.d.ts +5 -3
  52. package/dist/components/YlfNavigation.vue.d.ts +5 -3
  53. package/dist/components/YlfNavigationLink.vue.d.ts +5 -3
  54. package/dist/components/YlfNavigationTrigger.vue.d.ts +5 -3
  55. package/dist/components/YlfPopover.vue.d.ts +7 -5
  56. package/dist/components/YlfProgress.vue.d.ts +0 -1
  57. package/dist/components/YlfScrollFade.vue.d.ts +5 -3
  58. package/dist/components/YlfSeparator.vue.d.ts +0 -1
  59. package/dist/components/YlfSwitch.vue.d.ts +0 -1
  60. package/dist/components/YlfTabs.vue.d.ts +5 -3
  61. package/dist/components/YlfTooltip.vue.d.ts +7 -5
  62. package/dist/components/cloud.d.ts +2 -0
  63. package/dist/index.cjs +20 -10
  64. package/dist/index.d.cts +3 -4
  65. package/dist/index.d.mts +3 -4
  66. package/dist/index.d.ts +3 -4
  67. package/dist/index.mjs +20 -8
  68. package/dist/node.cjs +11 -0
  69. package/dist/node.d.cts +4 -0
  70. package/dist/node.d.mts +4 -0
  71. package/dist/node.d.ts +4 -0
  72. package/dist/node.mjs +7 -0
  73. package/package.json +6 -3
  74. package/components/_navigation.scss +0 -38
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;
@@ -6,10 +6,12 @@ type __VLS_Props = {
6
6
  /** CSS length of the fade at each scroll edge. */
7
7
  size?: string;
8
8
  };
9
- declare var __VLS_1: {};
10
- type __VLS_Slots = {} & {
11
- default?: (props: typeof __VLS_1) => any;
9
+ declare const __VLS_template: () => {
10
+ __VLS_Slots: {
11
+ default?: (props: {}) => any;
12
+ };
12
13
  };
14
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
13
15
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
16
  size: string;
15
17
  surface: string;
@@ -9,7 +9,6 @@ type __VLS_Props = {
9
9
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
10
  orientation: "vertical" | "horizontal";
11
11
  variant: "accent" | "brand" | "neutral" | "spectrum";
12
- tone: YlfAccentTone;
13
12
  decorative: boolean;
14
13
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
14
  declare const _default: typeof __VLS_export;
@@ -18,7 +18,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
18
18
  disabled: boolean;
19
19
  size: "sm" | "md";
20
20
  variant: "accent" | "aurora" | "brand";
21
- tone: YlfAccentTone;
22
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
22
  declare const _default: typeof __VLS_export;
24
23
  export default _default;
@@ -11,10 +11,12 @@ type __VLS_ModelProps = {
11
11
  modelValue?: string;
12
12
  };
13
13
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
- declare var __VLS_33: string, __VLS_34: {};
15
- type __VLS_Slots = {} & {
16
- [K in NonNullable<typeof __VLS_33>]?: (props: typeof __VLS_34) => any;
14
+ declare const __VLS_template: () => {
15
+ __VLS_Slots: {
16
+ [x: string]: ((props: {}) => any) | undefined;
17
+ };
17
18
  };
19
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
18
20
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
21
  "update:modelValue": (value: string | undefined) => any;
20
22
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
@@ -5,12 +5,14 @@ type __VLS_Props = {
5
5
  disabled?: boolean;
6
6
  portalTo?: string | HTMLElement;
7
7
  };
8
- declare var __VLS_19: {}, __VLS_33: {};
9
- type __VLS_Slots = {} & {
10
- default?: (props: typeof __VLS_19) => any;
11
- } & {
12
- content?: (props: typeof __VLS_33) => any;
8
+ declare const __VLS_template: () => {
9
+ __VLS_Slots: {
10
+ default?: (props: {}) => any;
11
+ } & {
12
+ content?: (props: {}) => any;
13
+ };
13
14
  };
15
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
14
16
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
15
17
  disabled: boolean;
16
18
  side: "top" | "right" | "bottom" | "left";
@@ -1,3 +1,5 @@
1
1
  /** Silhouettes of the shared cloud illustration, from a tall billow to a thin distant wisp. */
2
2
  export declare const ylfCloudShapes: readonly ["billow", "heap", "bank", "puff", "wisp"];
3
3
  export type YlfCloudShape = typeof ylfCloudShapes[number];
4
+ /** Shared SVG paths for cloud silhouettes (`viewBox="0 0 490 250"`). */
5
+ export declare const ylfCloudSilhouettes: Record<YlfCloudShape, string>;
package/dist/index.cjs CHANGED
@@ -1,14 +1,24 @@
1
1
  'use strict';
2
2
 
3
- const node_path = require('node:path');
4
- const node_url = require('node:url');
3
+ const ylfCloudShapes = [
4
+ "billow",
5
+ "heap",
6
+ "bank",
7
+ "puff",
8
+ "wisp"
9
+ ];
10
+ const ylfCloudSilhouettes = {
11
+ // 层层鼓起的主云。
12
+ billow: "M 58 199 C 26 199 8 185 8 164 C 8 144 22 130 43 128 C 39 102 55 81 79 80 C 94 79 106 85 115 94 C 106 57 129 24 164 23 C 191 22 211 38 220 61 C 232 43 251 36 269 40 C 295 45 310 66 309 90 C 325 80 345 83 357 95 C 367 104 371 117 369 129 C 392 119 417 130 424 151 C 449 147 477 163 477 183 C 477 207 453 218 422 218 C 391 218 367 213 341 216 C 303 222 272 218 246 215 C 211 222 176 217 151 212 C 118 218 84 214 58 199 Z",
13
+ // 宽厚的近景积云,右侧堆得更高。
14
+ heap: "M 40 205 C 14 205 4 190 10 174 C 16 158 34 152 52 156 C 50 126 74 106 102 112 C 112 78 150 62 182 76 C 198 44 240 30 274 46 C 302 30 344 38 360 66 C 392 58 424 78 426 108 C 456 110 482 132 480 162 C 486 190 466 208 436 210 C 380 214 330 212 280 214 C 220 216 160 214 110 212 C 84 212 60 208 40 205 Z",
15
+ // 贴着地平线的扁长云堤。
16
+ bank: "M 30 212 C 10 212 2 200 8 188 C 14 176 30 172 46 176 C 52 156 74 148 94 156 C 108 136 138 132 156 146 C 172 124 208 120 228 138 C 246 118 284 118 300 140 C 318 126 352 128 362 150 C 380 140 410 144 418 162 C 444 158 470 172 474 190 C 478 206 462 214 440 214 C 380 216 300 214 230 216 C 160 218 90 214 30 212 Z",
17
+ // 圆鼓鼓的小团云。
18
+ puff: "M 120 210 C 88 210 70 192 76 170 C 82 150 102 142 122 148 C 120 112 150 86 186 90 C 204 60 250 52 278 76 C 300 64 336 74 344 104 C 376 102 404 126 400 156 C 412 182 396 210 366 212 C 300 214 220 214 120 210 Z",
19
+ // 远处拉长的薄云。
20
+ wisp: "M 20 200 C 6 200 2 190 10 184 C 18 178 30 178 40 180 C 52 166 80 162 98 170 C 120 156 160 154 182 166 C 206 152 248 150 270 164 C 296 152 336 154 352 168 C 376 160 410 162 426 174 C 452 170 482 178 484 190 C 486 202 470 206 446 206 C 380 208 300 206 230 208 C 160 210 80 206 20 200 Z"
21
+ };
5
22
 
6
- var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
- const ylfCloudShapes = ["billow", "heap", "bank", "puff", "wisp"];
8
-
9
- const _dirname = typeof __dirname !== "undefined" ? __dirname : node_path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))));
10
- const componentsDir = node_path.resolve(_dirname, "../components");
11
-
12
- exports._dirname = _dirname;
13
- exports.componentsDir = componentsDir;
14
23
  exports.ylfCloudShapes = ylfCloudShapes;
24
+ exports.ylfCloudSilhouettes = ylfCloudSilhouettes;
package/dist/index.d.cts CHANGED
@@ -25,6 +25,8 @@ interface BottomMenuItem {
25
25
  /** Silhouettes of the shared cloud illustration, from a tall billow to a thin distant wisp. */
26
26
  declare const ylfCloudShapes: readonly ["billow", "heap", "bank", "puff", "wisp"];
27
27
  type YlfCloudShape = typeof ylfCloudShapes[number];
28
+ /** Shared SVG paths for cloud silhouettes (`viewBox="0 0 490 250"`). */
29
+ declare const ylfCloudSilhouettes: Record<YlfCloudShape, string>;
28
30
 
29
31
  /** One choice in a single-selection segmented control. */
30
32
  interface YlfSegmentedOption<T extends string = string> {
@@ -40,8 +42,5 @@ type YlfAccentTone = 'blue' | 'sun' | 'cyan' | 'coral' | 'pink' | 'green';
40
42
  /** Visual emphasis for accent and status buttons/badges. */
41
43
  type YlfColorAppearance = 'solid' | 'soft' | 'outline';
42
44
 
43
- declare const _dirname: string;
44
- declare const componentsDir: string;
45
-
46
- export { _dirname, componentsDir, ylfCloudShapes };
45
+ export { ylfCloudShapes, ylfCloudSilhouettes };
47
46
  export type { BottomMenuItem, YlfAccentTone, YlfAgentState, YlfCloudShape, YlfColorAppearance, YlfSegmentedOption };
package/dist/index.d.mts CHANGED
@@ -25,6 +25,8 @@ interface BottomMenuItem {
25
25
  /** Silhouettes of the shared cloud illustration, from a tall billow to a thin distant wisp. */
26
26
  declare const ylfCloudShapes: readonly ["billow", "heap", "bank", "puff", "wisp"];
27
27
  type YlfCloudShape = typeof ylfCloudShapes[number];
28
+ /** Shared SVG paths for cloud silhouettes (`viewBox="0 0 490 250"`). */
29
+ declare const ylfCloudSilhouettes: Record<YlfCloudShape, string>;
28
30
 
29
31
  /** One choice in a single-selection segmented control. */
30
32
  interface YlfSegmentedOption<T extends string = string> {
@@ -40,8 +42,5 @@ type YlfAccentTone = 'blue' | 'sun' | 'cyan' | 'coral' | 'pink' | 'green';
40
42
  /** Visual emphasis for accent and status buttons/badges. */
41
43
  type YlfColorAppearance = 'solid' | 'soft' | 'outline';
42
44
 
43
- declare const _dirname: string;
44
- declare const componentsDir: string;
45
-
46
- export { _dirname, componentsDir, ylfCloudShapes };
45
+ export { ylfCloudShapes, ylfCloudSilhouettes };
47
46
  export type { BottomMenuItem, YlfAccentTone, YlfAgentState, YlfCloudShape, YlfColorAppearance, YlfSegmentedOption };
package/dist/index.d.ts CHANGED
@@ -25,6 +25,8 @@ interface BottomMenuItem {
25
25
  /** Silhouettes of the shared cloud illustration, from a tall billow to a thin distant wisp. */
26
26
  declare const ylfCloudShapes: readonly ["billow", "heap", "bank", "puff", "wisp"];
27
27
  type YlfCloudShape = typeof ylfCloudShapes[number];
28
+ /** Shared SVG paths for cloud silhouettes (`viewBox="0 0 490 250"`). */
29
+ declare const ylfCloudSilhouettes: Record<YlfCloudShape, string>;
28
30
 
29
31
  /** One choice in a single-selection segmented control. */
30
32
  interface YlfSegmentedOption<T extends string = string> {
@@ -40,8 +42,5 @@ type YlfAccentTone = 'blue' | 'sun' | 'cyan' | 'coral' | 'pink' | 'green';
40
42
  /** Visual emphasis for accent and status buttons/badges. */
41
43
  type YlfColorAppearance = 'solid' | 'soft' | 'outline';
42
44
 
43
- declare const _dirname: string;
44
- declare const componentsDir: string;
45
-
46
- export { _dirname, componentsDir, ylfCloudShapes };
45
+ export { ylfCloudShapes, ylfCloudSilhouettes };
47
46
  export type { BottomMenuItem, YlfAccentTone, YlfAgentState, YlfCloudShape, YlfColorAppearance, YlfSegmentedOption };
package/dist/index.mjs CHANGED
@@ -1,9 +1,21 @@
1
- import { dirname, resolve } from 'node:path';
2
- import { fileURLToPath } from 'node:url';
1
+ const ylfCloudShapes = [
2
+ "billow",
3
+ "heap",
4
+ "bank",
5
+ "puff",
6
+ "wisp"
7
+ ];
8
+ const ylfCloudSilhouettes = {
9
+ // 层层鼓起的主云。
10
+ billow: "M 58 199 C 26 199 8 185 8 164 C 8 144 22 130 43 128 C 39 102 55 81 79 80 C 94 79 106 85 115 94 C 106 57 129 24 164 23 C 191 22 211 38 220 61 C 232 43 251 36 269 40 C 295 45 310 66 309 90 C 325 80 345 83 357 95 C 367 104 371 117 369 129 C 392 119 417 130 424 151 C 449 147 477 163 477 183 C 477 207 453 218 422 218 C 391 218 367 213 341 216 C 303 222 272 218 246 215 C 211 222 176 217 151 212 C 118 218 84 214 58 199 Z",
11
+ // 宽厚的近景积云,右侧堆得更高。
12
+ heap: "M 40 205 C 14 205 4 190 10 174 C 16 158 34 152 52 156 C 50 126 74 106 102 112 C 112 78 150 62 182 76 C 198 44 240 30 274 46 C 302 30 344 38 360 66 C 392 58 424 78 426 108 C 456 110 482 132 480 162 C 486 190 466 208 436 210 C 380 214 330 212 280 214 C 220 216 160 214 110 212 C 84 212 60 208 40 205 Z",
13
+ // 贴着地平线的扁长云堤。
14
+ bank: "M 30 212 C 10 212 2 200 8 188 C 14 176 30 172 46 176 C 52 156 74 148 94 156 C 108 136 138 132 156 146 C 172 124 208 120 228 138 C 246 118 284 118 300 140 C 318 126 352 128 362 150 C 380 140 410 144 418 162 C 444 158 470 172 474 190 C 478 206 462 214 440 214 C 380 216 300 214 230 216 C 160 218 90 214 30 212 Z",
15
+ // 圆鼓鼓的小团云。
16
+ puff: "M 120 210 C 88 210 70 192 76 170 C 82 150 102 142 122 148 C 120 112 150 86 186 90 C 204 60 250 52 278 76 C 300 64 336 74 344 104 C 376 102 404 126 400 156 C 412 182 396 210 366 212 C 300 214 220 214 120 210 Z",
17
+ // 远处拉长的薄云。
18
+ wisp: "M 20 200 C 6 200 2 190 10 184 C 18 178 30 178 40 180 C 52 166 80 162 98 170 C 120 156 160 154 182 166 C 206 152 248 150 270 164 C 296 152 336 154 352 168 C 376 160 410 162 426 174 C 452 170 482 178 484 190 C 486 202 470 206 446 206 C 380 208 300 206 230 208 C 160 210 80 206 20 200 Z"
19
+ };
3
20
 
4
- const ylfCloudShapes = ["billow", "heap", "bank", "puff", "wisp"];
5
-
6
- const _dirname = typeof __dirname !== "undefined" ? __dirname : dirname(fileURLToPath(import.meta.url));
7
- const componentsDir = resolve(_dirname, "../components");
8
-
9
- export { _dirname, componentsDir, ylfCloudShapes };
21
+ export { ylfCloudShapes, ylfCloudSilhouettes };