@yunlefun/vue 0.4.2 → 0.6.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 (75) hide show
  1. package/README.md +6 -0
  2. package/components/YlfAccordion.vue +12 -7
  3. package/components/YlfAgentCard.vue +108 -0
  4. package/components/YlfAgentStatus.vue +69 -0
  5. package/components/YlfAgentTask.vue +85 -0
  6. package/components/YlfButton.vue +145 -28
  7. package/components/YlfCard.vue +10 -4
  8. package/components/YlfCheckbox.vue +70 -7
  9. package/components/YlfCloud.vue +193 -0
  10. package/components/YlfDialog.vue +53 -21
  11. package/components/YlfDropdownMenu.vue +41 -5
  12. package/components/YlfInput.vue +67 -0
  13. package/components/YlfLogo.vue +7 -5
  14. package/components/YlfNavigation.vue +84 -0
  15. package/components/YlfNavigationLink.vue +59 -0
  16. package/components/YlfNavigationTrigger.vue +53 -0
  17. package/components/YlfPopover.vue +43 -7
  18. package/components/YlfRadioGroup.vue +41 -6
  19. package/components/YlfSegmentedControl.vue +80 -10
  20. package/components/YlfSelect.vue +43 -12
  21. package/components/YlfSlider.vue +16 -5
  22. package/components/YlfSwitch.vue +30 -4
  23. package/components/YlfTabs.vue +12 -4
  24. package/components/YlfTooltip.vue +29 -4
  25. package/components/_navigation.scss +38 -0
  26. package/components/accordion/demo.vue +1 -1
  27. package/components/agent-card/demo.vue +17 -0
  28. package/components/agent-card/index.md +25 -0
  29. package/components/agent-status/demo.vue +38 -0
  30. package/components/agent-status/index.md +20 -0
  31. package/components/agent-task/demo.vue +15 -0
  32. package/components/agent-task/index.md +25 -0
  33. package/components/agent.ts +2 -0
  34. package/components/button/demo.vue +21 -0
  35. package/components/button/index.md +20 -11
  36. package/components/cloud/demo.vue +92 -0
  37. package/components/cloud/index.md +66 -0
  38. package/components/cloud.ts +4 -0
  39. package/components/input/demo.vue +22 -0
  40. package/components/input/index.md +19 -0
  41. package/components/navigation/demo.vue +104 -0
  42. package/components/navigation/index.md +90 -0
  43. package/components/navigation-indicator.ts +114 -0
  44. package/dist/ag-ui.cjs +132 -0
  45. package/dist/ag-ui.d.cts +25 -0
  46. package/dist/ag-ui.d.mts +25 -0
  47. package/dist/ag-ui.d.ts +25 -0
  48. package/dist/ag-ui.mjs +130 -0
  49. package/dist/components/YlfAgentCard.vue.d.ts +24 -0
  50. package/dist/components/YlfAgentStatus.vue.d.ts +13 -0
  51. package/dist/components/YlfAgentTask.vue.d.ts +23 -0
  52. package/dist/components/YlfAvatar.vue.d.ts +1 -1
  53. package/dist/components/YlfButton.vue.d.ts +8 -5
  54. package/dist/components/YlfCloud.vue.d.ts +15 -0
  55. package/dist/components/YlfDialog.vue.d.ts +5 -5
  56. package/dist/components/YlfDropdownMenu.vue.d.ts +2 -2
  57. package/dist/components/YlfInput.vue.d.ts +18 -0
  58. package/dist/components/YlfNavigation.vue.d.ts +23 -0
  59. package/dist/components/YlfNavigationLink.vue.d.ts +21 -0
  60. package/dist/components/YlfNavigationTrigger.vue.d.ts +18 -0
  61. package/dist/components/YlfPopover.vue.d.ts +3 -3
  62. package/dist/components/YlfProgress.vue.d.ts +1 -1
  63. package/dist/components/YlfSeparator.vue.d.ts +2 -2
  64. package/dist/components/YlfSwitch.vue.d.ts +1 -1
  65. package/dist/components/YlfTabs.vue.d.ts +3 -3
  66. package/dist/components/YlfTooltip.vue.d.ts +3 -3
  67. package/dist/components/agent.d.ts +2 -0
  68. package/dist/components/cloud.d.ts +3 -0
  69. package/dist/components/navigation-indicator.d.ts +14 -0
  70. package/dist/index.cjs +3 -0
  71. package/dist/index.d.cts +9 -2
  72. package/dist/index.d.mts +9 -2
  73. package/dist/index.d.ts +9 -2
  74. package/dist/index.mjs +3 -1
  75. package/package.json +16 -6
@@ -0,0 +1,13 @@
1
+ import type { YlfAgentState } from './agent';
2
+ type __VLS_Props = {
3
+ state: YlfAgentState;
4
+ /** Localized, truthful status text supplied by the application. */
5
+ label: string;
6
+ /** Opt in for a single live summary, rather than every polled indicator. */
7
+ live?: boolean;
8
+ };
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
+ live: boolean;
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import type { YlfAgentState } from './agent';
2
+ type __VLS_Props = {
3
+ title: string;
4
+ state: YlfAgentState;
5
+ statusLabel: string;
6
+ taskId?: string;
7
+ description?: string;
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;
14
+ };
15
+ 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
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -6,8 +6,8 @@ type __VLS_Props = {
6
6
  size?: 'sm' | 'md' | 'lg';
7
7
  };
8
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
- fallback: string;
10
9
  alt: string;
10
+ fallback: string;
11
11
  size: "sm" | "md" | "lg";
12
12
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  declare const _default: typeof __VLS_export;
@@ -1,6 +1,6 @@
1
1
  import type { YlfAccentTone, YlfColorAppearance } from './theme';
2
- type ButtonVariant = 'primary' | 'accent' | 'aurora' | 'secondary' | 'soft' | 'ghost' | 'success' | 'warning' | 'danger';
3
- type ButtonSize = 'sm' | 'md' | 'lg';
2
+ type ButtonVariant = 'primary' | 'hero' | 'accent' | 'aurora' | 'secondary' | 'soft' | 'ghost' | 'success' | 'warning' | 'danger';
3
+ type ButtonSize = 'sm' | 'md' | 'lg' | 'xl';
4
4
  type __VLS_Props = {
5
5
  variant?: ButtonVariant;
6
6
  /** 仅 accent 变体使用,默认晴空蓝 */
@@ -8,6 +8,8 @@ type __VLS_Props = {
8
8
  /** accent 与状态变体的强调程度 */
9
9
  appearance?: YlfColorAppearance;
10
10
  size?: ButtonSize;
11
+ /** Square control; provide an aria-label for the icon. */
12
+ iconOnly?: boolean;
11
13
  /** 胶囊圆角,默认开启(云是软的) */
12
14
  round?: boolean;
13
15
  /** 占满整行宽度 */
@@ -17,11 +19,11 @@ type __VLS_Props = {
17
19
  /** 渲染标签,如 'a' */
18
20
  tag?: string;
19
21
  };
20
- declare var __VLS_10: {}, __VLS_12: {};
22
+ declare var __VLS_9: {}, __VLS_11: {};
21
23
  type __VLS_Slots = {} & {
22
- icon?: (props: typeof __VLS_10) => any;
24
+ icon?: (props: typeof __VLS_9) => any;
23
25
  } & {
24
- default?: (props: typeof __VLS_12) => any;
26
+ default?: (props: typeof __VLS_11) => any;
25
27
  };
26
28
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
29
  click: (e: MouseEvent) => any;
@@ -34,6 +36,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
34
36
  variant: ButtonVariant;
35
37
  tone: YlfAccentTone;
36
38
  appearance: YlfColorAppearance;
39
+ iconOnly: boolean;
37
40
  block: boolean;
38
41
  loading: boolean;
39
42
  tag: string;
@@ -0,0 +1,15 @@
1
+ import type { YlfCloudShape } from './cloud';
2
+ type __VLS_Props = {
3
+ shape?: YlfCloudShape;
4
+ /** 用模糊滤镜塑造亮面体积;只给少数视觉焦点开启,其余用渐变近似以降低绘制开销。 */
5
+ volumetric?: boolean;
6
+ /** 渲染一张平时隐藏的小脸,由 --ylf-cloud-face-opacity 唤醒。 */
7
+ face?: boolean;
8
+ };
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
+ shape: "billow" | "heap" | "bank" | "puff" | "wisp";
11
+ volumetric: boolean;
12
+ face: boolean;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -12,15 +12,15 @@ type __VLS_ModelProps = {
12
12
  'open'?: boolean;
13
13
  };
14
14
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
15
- declare var __VLS_14: {}, __VLS_39: {}, __VLS_59: {}, __VLS_61: {};
15
+ declare var __VLS_13: {}, __VLS_38: {}, __VLS_58: {}, __VLS_60: {};
16
16
  type __VLS_Slots = {} & {
17
- trigger?: (props: typeof __VLS_14) => any;
17
+ trigger?: (props: typeof __VLS_13) => any;
18
18
  } & {
19
- title?: (props: typeof __VLS_39) => any;
19
+ title?: (props: typeof __VLS_38) => any;
20
20
  } & {
21
- description?: (props: typeof __VLS_59) => any;
21
+ description?: (props: typeof __VLS_58) => any;
22
22
  } & {
23
- default?: (props: typeof __VLS_61) => any;
23
+ default?: (props: typeof __VLS_60) => any;
24
24
  };
25
25
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
26
  "update:open": (value: boolean) => any;
@@ -13,9 +13,9 @@ type __VLS_ModelProps = {
13
13
  'open'?: boolean;
14
14
  };
15
15
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
16
- declare var __VLS_14: {};
16
+ declare var __VLS_13: {};
17
17
  type __VLS_Slots = {} & {
18
- trigger?: (props: typeof __VLS_14) => any;
18
+ trigger?: (props: typeof __VLS_13) => any;
19
19
  };
20
20
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
21
  select: (value: string) => any;
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ size?: 'sm' | 'md';
3
+ invalid?: boolean;
4
+ };
5
+ type __VLS_ModelProps = {
6
+ modelValue?: string;
7
+ };
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ "update:modelValue": (value: string) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
13
+ }>, {
14
+ size: "sm" | "md";
15
+ invalid: boolean;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
@@ -0,0 +1,23 @@
1
+ type __VLS_Props = {
2
+ /** Accessible name; distinguish multiple navigation landmarks on one page. */
3
+ label: string;
4
+ orientation?: 'horizontal' | 'vertical';
5
+ /** Move the shared underline between current links in horizontal navigation. */
6
+ animated?: boolean;
7
+ };
8
+ declare var __VLS_1: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_1) => any;
11
+ };
12
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
+ orientation: "vertical" | "horizontal";
14
+ animated: boolean;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,21 @@
1
+ type __VLS_Props = {
2
+ active?: boolean;
3
+ /** Merge attributes onto one child anchor, e.g. NuxtLink or RouterLink. */
4
+ asChild?: boolean;
5
+ };
6
+ declare var __VLS_7: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_7) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
+ asChild: boolean;
12
+ active: boolean;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ disabled?: boolean;
3
+ };
4
+ declare var __VLS_1: {};
5
+ type __VLS_Slots = {} & {
6
+ default?: (props: typeof __VLS_1) => any;
7
+ };
8
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ disabled: boolean;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -7,11 +7,11 @@ type __VLS_ModelProps = {
7
7
  'open'?: boolean;
8
8
  };
9
9
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
- declare var __VLS_14: {}, __VLS_28: {};
10
+ declare var __VLS_13: {}, __VLS_27: {};
11
11
  type __VLS_Slots = {} & {
12
- trigger?: (props: typeof __VLS_14) => any;
12
+ trigger?: (props: typeof __VLS_13) => any;
13
13
  } & {
14
- default?: (props: typeof __VLS_28) => any;
14
+ default?: (props: typeof __VLS_27) => any;
15
15
  };
16
16
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
17
  "update:open": (value: boolean) => any;
@@ -9,7 +9,7 @@ type __VLS_Props = {
9
9
  };
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
- variant: "brand" | "accent" | "aurora";
12
+ variant: "accent" | "aurora" | "brand";
13
13
  tone: YlfAccentTone;
14
14
  max: number;
15
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -7,8 +7,8 @@ type __VLS_Props = {
7
7
  tone?: YlfAccentTone;
8
8
  };
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
- orientation: "horizontal" | "vertical";
11
- variant: "neutral" | "brand" | "accent" | "spectrum";
10
+ orientation: "vertical" | "horizontal";
11
+ variant: "accent" | "brand" | "neutral" | "spectrum";
12
12
  tone: YlfAccentTone;
13
13
  decorative: boolean;
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -17,7 +17,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
17
17
  }>, {
18
18
  disabled: boolean;
19
19
  size: "sm" | "md";
20
- variant: "brand" | "accent" | "aurora";
20
+ variant: "accent" | "aurora" | "brand";
21
21
  tone: YlfAccentTone;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
23
  declare const _default: typeof __VLS_export;
@@ -11,16 +11,16 @@ type __VLS_ModelProps = {
11
11
  modelValue?: string;
12
12
  };
13
13
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
- declare var __VLS_32: string, __VLS_33: {};
14
+ declare var __VLS_33: string, __VLS_34: {};
15
15
  type __VLS_Slots = {} & {
16
- [K in NonNullable<typeof __VLS_32>]?: (props: typeof __VLS_33) => any;
16
+ [K in NonNullable<typeof __VLS_33>]?: (props: typeof __VLS_34) => any;
17
17
  };
18
18
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
19
  "update:modelValue": (value: string | undefined) => any;
20
20
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
21
  "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
22
22
  }>, {
23
- orientation: "horizontal" | "vertical";
23
+ orientation: "vertical" | "horizontal";
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
26
  declare const _default: typeof __VLS_export;
@@ -5,11 +5,11 @@ type __VLS_Props = {
5
5
  disabled?: boolean;
6
6
  portalTo?: string | HTMLElement;
7
7
  };
8
- declare var __VLS_20: {}, __VLS_34: {};
8
+ declare var __VLS_19: {}, __VLS_33: {};
9
9
  type __VLS_Slots = {} & {
10
- default?: (props: typeof __VLS_20) => any;
10
+ default?: (props: typeof __VLS_19) => any;
11
11
  } & {
12
- content?: (props: typeof __VLS_34) => any;
12
+ content?: (props: typeof __VLS_33) => any;
13
13
  };
14
14
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
15
15
  disabled: boolean;
@@ -0,0 +1,2 @@
1
+ /** Presentation states only; applications own connection and approval policies. */
2
+ export type YlfAgentState = 'offline' | 'connecting' | 'ready' | 'working' | 'waiting' | 'error' | 'unknown';
@@ -0,0 +1,3 @@
1
+ /** Silhouettes of the shared cloud illustration, from a tall billow to a thin distant wisp. */
2
+ export declare const ylfCloudShapes: readonly ["billow", "heap", "bank", "puff", "wisp"];
3
+ export type YlfCloudShape = typeof ylfCloudShapes[number];
@@ -0,0 +1,14 @@
1
+ import type { Ref } from 'vue';
2
+ /** Shared geometry for native documentation menus and YlfNavigation. No routing ownership. */
3
+ export declare function useNavigationIndicator(root: Readonly<Ref<HTMLElement | null>>, options: {
4
+ links: (root: HTMLElement) => HTMLElement[];
5
+ active: (link: HTMLElement) => boolean;
6
+ attributes: string[];
7
+ enabled?: () => boolean;
8
+ }): import("vue").ShallowRef<{
9
+ x: number;
10
+ y: number;
11
+ } | null, {
12
+ x: number;
13
+ y: number;
14
+ } | null>;
package/dist/index.cjs CHANGED
@@ -4,8 +4,11 @@ const node_path = require('node:path');
4
4
  const node_url = require('node:url');
5
5
 
6
6
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
+ const ylfCloudShapes = ["billow", "heap", "bank", "puff", "wisp"];
8
+
7
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))));
8
10
  const componentsDir = node_path.resolve(_dirname, "../components");
9
11
 
10
12
  exports._dirname = _dirname;
11
13
  exports.componentsDir = componentsDir;
14
+ exports.ylfCloudShapes = ylfCloudShapes;
package/dist/index.d.cts CHANGED
@@ -1,3 +1,6 @@
1
+ /** Presentation states only; applications own connection and approval policies. */
2
+ type YlfAgentState = 'offline' | 'connecting' | 'ready' | 'working' | 'waiting' | 'error' | 'unknown';
3
+
1
4
  interface BottomMenuItem {
2
5
  title: string;
3
6
  /**
@@ -19,6 +22,10 @@ interface BottomMenuItem {
19
22
  onClick?: (...args: any[]) => void;
20
23
  }
21
24
 
25
+ /** Silhouettes of the shared cloud illustration, from a tall billow to a thin distant wisp. */
26
+ declare const ylfCloudShapes: readonly ["billow", "heap", "bank", "puff", "wisp"];
27
+ type YlfCloudShape = typeof ylfCloudShapes[number];
28
+
22
29
  /** One choice in a single-selection segmented control. */
23
30
  interface YlfSegmentedOption<T extends string = string> {
24
31
  value: T;
@@ -36,5 +43,5 @@ type YlfColorAppearance = 'solid' | 'soft' | 'outline';
36
43
  declare const _dirname: string;
37
44
  declare const componentsDir: string;
38
45
 
39
- export { _dirname, componentsDir };
40
- export type { BottomMenuItem, YlfAccentTone, YlfColorAppearance, YlfSegmentedOption };
46
+ export { _dirname, componentsDir, ylfCloudShapes };
47
+ export type { BottomMenuItem, YlfAccentTone, YlfAgentState, YlfCloudShape, YlfColorAppearance, YlfSegmentedOption };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,6 @@
1
+ /** Presentation states only; applications own connection and approval policies. */
2
+ type YlfAgentState = 'offline' | 'connecting' | 'ready' | 'working' | 'waiting' | 'error' | 'unknown';
3
+
1
4
  interface BottomMenuItem {
2
5
  title: string;
3
6
  /**
@@ -19,6 +22,10 @@ interface BottomMenuItem {
19
22
  onClick?: (...args: any[]) => void;
20
23
  }
21
24
 
25
+ /** Silhouettes of the shared cloud illustration, from a tall billow to a thin distant wisp. */
26
+ declare const ylfCloudShapes: readonly ["billow", "heap", "bank", "puff", "wisp"];
27
+ type YlfCloudShape = typeof ylfCloudShapes[number];
28
+
22
29
  /** One choice in a single-selection segmented control. */
23
30
  interface YlfSegmentedOption<T extends string = string> {
24
31
  value: T;
@@ -36,5 +43,5 @@ type YlfColorAppearance = 'solid' | 'soft' | 'outline';
36
43
  declare const _dirname: string;
37
44
  declare const componentsDir: string;
38
45
 
39
- export { _dirname, componentsDir };
40
- export type { BottomMenuItem, YlfAccentTone, YlfColorAppearance, YlfSegmentedOption };
46
+ export { _dirname, componentsDir, ylfCloudShapes };
47
+ export type { BottomMenuItem, YlfAccentTone, YlfAgentState, YlfCloudShape, YlfColorAppearance, YlfSegmentedOption };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ /** Presentation states only; applications own connection and approval policies. */
2
+ type YlfAgentState = 'offline' | 'connecting' | 'ready' | 'working' | 'waiting' | 'error' | 'unknown';
3
+
1
4
  interface BottomMenuItem {
2
5
  title: string;
3
6
  /**
@@ -19,6 +22,10 @@ interface BottomMenuItem {
19
22
  onClick?: (...args: any[]) => void;
20
23
  }
21
24
 
25
+ /** Silhouettes of the shared cloud illustration, from a tall billow to a thin distant wisp. */
26
+ declare const ylfCloudShapes: readonly ["billow", "heap", "bank", "puff", "wisp"];
27
+ type YlfCloudShape = typeof ylfCloudShapes[number];
28
+
22
29
  /** One choice in a single-selection segmented control. */
23
30
  interface YlfSegmentedOption<T extends string = string> {
24
31
  value: T;
@@ -36,5 +43,5 @@ type YlfColorAppearance = 'solid' | 'soft' | 'outline';
36
43
  declare const _dirname: string;
37
44
  declare const componentsDir: string;
38
45
 
39
- export { _dirname, componentsDir };
40
- export type { BottomMenuItem, YlfAccentTone, YlfColorAppearance, YlfSegmentedOption };
46
+ export { _dirname, componentsDir, ylfCloudShapes };
47
+ export type { BottomMenuItem, YlfAccentTone, YlfAgentState, YlfCloudShape, YlfColorAppearance, YlfSegmentedOption };
package/dist/index.mjs CHANGED
@@ -1,7 +1,9 @@
1
1
  import { dirname, resolve } from 'node:path';
2
2
  import { fileURLToPath } from 'node:url';
3
3
 
4
+ const ylfCloudShapes = ["billow", "heap", "bank", "puff", "wisp"];
5
+
4
6
  const _dirname = typeof __dirname !== "undefined" ? __dirname : dirname(fileURLToPath(import.meta.url));
5
7
  const componentsDir = resolve(_dirname, "../components");
6
8
 
7
- export { _dirname, componentsDir };
9
+ export { _dirname, componentsDir, ylfCloudShapes };
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@yunlefun/vue",
3
3
  "type": "module",
4
- "version": "0.4.2",
4
+ "version": "0.6.0",
5
5
  "description": "Vue components and Nuxt integration for YunLeFun Design",
6
6
  "author": "YunLeFun",
7
7
  "license": "MIT",
8
- "homepage": "https://ui.yunle.fun",
8
+ "homepage": "https://design.yunle.fun",
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/YunLeFun/design.git",
@@ -31,6 +31,11 @@
31
31
  "types": "./dist/ai-prompt.d.ts",
32
32
  "import": "./dist/ai-prompt.mjs",
33
33
  "require": "./dist/ai-prompt.cjs"
34
+ },
35
+ "./ag-ui": {
36
+ "types": "./dist/ag-ui.d.ts",
37
+ "import": "./dist/ag-ui.mjs",
38
+ "require": "./dist/ag-ui.cjs"
34
39
  }
35
40
  },
36
41
  "main": "./dist/index.cjs",
@@ -51,21 +56,26 @@
51
56
  "typecheck": "vue-tsc --noEmit"
52
57
  },
53
58
  "peerDependencies": {
59
+ "@ag-ui/client": "^1.0.1",
54
60
  "nuxt": "^4.0.0",
55
61
  "sass": "^1.101.0",
56
62
  "vue": "^3.5.0"
57
63
  },
58
64
  "peerDependenciesMeta": {
65
+ "@ag-ui/client": {
66
+ "optional": true
67
+ },
59
68
  "nuxt": {
60
69
  "optional": true
61
70
  }
62
71
  },
63
72
  "dependencies": {
64
- "reka-ui": "^2.10.1"
73
+ "@yunlefun/icons": "^0.3.1",
74
+ "reka-ui": "^2.11.0"
65
75
  },
66
76
  "devDependencies": {
67
- "nuxt": "^4.5.2",
68
- "sass": "^1.101.0",
69
- "typescript": "5.9.3"
77
+ "nuxt": "^4.6.1",
78
+ "sass": "^1.105.1",
79
+ "typescript": "6.0.3"
70
80
  }
71
81
  }