@yunlefun/vue 0.4.2 → 0.7.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/README.md +6 -0
- package/components/YlfAccordion.vue +12 -7
- package/components/YlfAgentCard.vue +108 -0
- package/components/YlfAgentStatus.vue +69 -0
- package/components/YlfAgentTask.vue +85 -0
- package/components/YlfButton.vue +145 -28
- package/components/YlfCard.vue +10 -4
- package/components/YlfCheckbox.vue +70 -7
- package/components/YlfCloud.vue +193 -0
- package/components/YlfDialog.vue +53 -21
- package/components/YlfDropdownMenu.vue +41 -5
- package/components/YlfInput.vue +67 -0
- package/components/YlfLogo.vue +7 -5
- package/components/YlfNavigation.vue +84 -0
- package/components/YlfNavigationLink.vue +59 -0
- package/components/YlfNavigationTrigger.vue +53 -0
- package/components/YlfPopover.vue +43 -7
- package/components/YlfRadioGroup.vue +41 -6
- package/components/YlfScrollFade.vue +66 -0
- package/components/YlfSegmentedControl.vue +80 -10
- package/components/YlfSelect.vue +72 -34
- package/components/YlfSlider.vue +16 -5
- package/components/YlfSwitch.vue +30 -4
- package/components/YlfTabs.vue +12 -4
- package/components/YlfTooltip.vue +29 -4
- package/components/_navigation.scss +38 -0
- package/components/accordion/demo.vue +1 -1
- package/components/agent-card/demo.vue +17 -0
- package/components/agent-card/index.md +25 -0
- package/components/agent-status/demo.vue +38 -0
- package/components/agent-status/index.md +20 -0
- package/components/agent-task/demo.vue +15 -0
- package/components/agent-task/index.md +25 -0
- package/components/agent.ts +2 -0
- package/components/button/demo.vue +21 -0
- package/components/button/index.md +20 -11
- package/components/cloud/demo.vue +92 -0
- package/components/cloud/index.md +66 -0
- package/components/cloud.ts +4 -0
- package/components/input/demo.vue +22 -0
- package/components/input/index.md +19 -0
- package/components/navigation/demo.vue +104 -0
- package/components/navigation/index.md +90 -0
- package/components/navigation-indicator.ts +114 -0
- package/components/scroll-fade/demo.vue +49 -0
- package/components/scroll-fade/index.md +40 -0
- package/components/scroll-fade.ts +52 -0
- package/dist/ag-ui.cjs +132 -0
- package/dist/ag-ui.d.cts +25 -0
- package/dist/ag-ui.d.mts +25 -0
- package/dist/ag-ui.d.ts +25 -0
- package/dist/ag-ui.mjs +130 -0
- package/dist/components/YlfAgentCard.vue.d.ts +24 -0
- package/dist/components/YlfAgentStatus.vue.d.ts +13 -0
- package/dist/components/YlfAgentTask.vue.d.ts +23 -0
- package/dist/components/YlfAvatar.vue.d.ts +1 -1
- package/dist/components/YlfButton.vue.d.ts +8 -5
- package/dist/components/YlfCloud.vue.d.ts +15 -0
- package/dist/components/YlfDialog.vue.d.ts +5 -5
- package/dist/components/YlfDropdownMenu.vue.d.ts +2 -2
- package/dist/components/YlfInput.vue.d.ts +18 -0
- package/dist/components/YlfNavigation.vue.d.ts +23 -0
- package/dist/components/YlfNavigationLink.vue.d.ts +21 -0
- package/dist/components/YlfNavigationTrigger.vue.d.ts +18 -0
- package/dist/components/YlfPopover.vue.d.ts +3 -3
- package/dist/components/YlfProgress.vue.d.ts +1 -1
- package/dist/components/YlfScrollFade.vue.d.ts +24 -0
- package/dist/components/YlfSeparator.vue.d.ts +2 -2
- package/dist/components/YlfSwitch.vue.d.ts +1 -1
- package/dist/components/YlfTabs.vue.d.ts +3 -3
- package/dist/components/YlfTooltip.vue.d.ts +3 -3
- package/dist/components/agent.d.ts +2 -0
- package/dist/components/cloud.d.ts +3 -0
- package/dist/components/navigation-indicator.d.ts +14 -0
- package/dist/components/scroll-fade.d.ts +3 -0
- package/dist/index.cjs +3 -0
- package/dist/index.d.cts +9 -2
- package/dist/index.d.mts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.mjs +3 -1
- package/package.json +20 -6
|
@@ -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: "
|
|
12
|
+
variant: "accent" | "aurora" | "brand";
|
|
13
13
|
tone: YlfAccentTone;
|
|
14
14
|
max: number;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** The element inside the frame that owns vertical scrolling. */
|
|
3
|
+
viewport?: HTMLElement | null;
|
|
4
|
+
/** CSS color of the surface behind the content. */
|
|
5
|
+
surface?: string;
|
|
6
|
+
/** CSS length of the fade at each scroll edge. */
|
|
7
|
+
size?: string;
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_1: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
+
size: string;
|
|
15
|
+
surface: string;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -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: "
|
|
11
|
-
variant: "
|
|
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: "
|
|
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
|
|
14
|
+
declare var __VLS_33: string, __VLS_34: {};
|
|
15
15
|
type __VLS_Slots = {} & {
|
|
16
|
-
[K in NonNullable<typeof
|
|
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: "
|
|
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
|
|
8
|
+
declare var __VLS_19: {}, __VLS_33: {};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
|
-
default?: (props: typeof
|
|
10
|
+
default?: (props: typeof __VLS_19) => any;
|
|
11
11
|
} & {
|
|
12
|
-
content?: (props: typeof
|
|
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,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
|
+
"version": "0.7.0",
|
|
5
5
|
"description": "Vue components and Nuxt integration for YunLeFun Design",
|
|
6
6
|
"author": "YunLeFun",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"homepage": "https://
|
|
8
|
+
"homepage": "https://design.yunle.fun",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/YunLeFun/design.git",
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
"url": "https://github.com/YunLeFun/design/issues"
|
|
16
16
|
},
|
|
17
17
|
"exports": {
|
|
18
|
+
"./components/scroll-fade": {
|
|
19
|
+
"types": "./dist/components/scroll-fade.d.ts",
|
|
20
|
+
"default": "./components/scroll-fade.ts"
|
|
21
|
+
},
|
|
18
22
|
"./components/*.vue": {
|
|
19
23
|
"types": "./dist/components/*.vue.d.ts",
|
|
20
24
|
"default": "./components/*.vue"
|
|
@@ -31,6 +35,11 @@
|
|
|
31
35
|
"types": "./dist/ai-prompt.d.ts",
|
|
32
36
|
"import": "./dist/ai-prompt.mjs",
|
|
33
37
|
"require": "./dist/ai-prompt.cjs"
|
|
38
|
+
},
|
|
39
|
+
"./ag-ui": {
|
|
40
|
+
"types": "./dist/ag-ui.d.ts",
|
|
41
|
+
"import": "./dist/ag-ui.mjs",
|
|
42
|
+
"require": "./dist/ag-ui.cjs"
|
|
34
43
|
}
|
|
35
44
|
},
|
|
36
45
|
"main": "./dist/index.cjs",
|
|
@@ -51,21 +60,26 @@
|
|
|
51
60
|
"typecheck": "vue-tsc --noEmit"
|
|
52
61
|
},
|
|
53
62
|
"peerDependencies": {
|
|
63
|
+
"@ag-ui/client": "^1.0.1",
|
|
54
64
|
"nuxt": "^4.0.0",
|
|
55
65
|
"sass": "^1.101.0",
|
|
56
66
|
"vue": "^3.5.0"
|
|
57
67
|
},
|
|
58
68
|
"peerDependenciesMeta": {
|
|
69
|
+
"@ag-ui/client": {
|
|
70
|
+
"optional": true
|
|
71
|
+
},
|
|
59
72
|
"nuxt": {
|
|
60
73
|
"optional": true
|
|
61
74
|
}
|
|
62
75
|
},
|
|
63
76
|
"dependencies": {
|
|
64
|
-
"
|
|
77
|
+
"@yunlefun/icons": "^0.3.1",
|
|
78
|
+
"reka-ui": "^2.11.0"
|
|
65
79
|
},
|
|
66
80
|
"devDependencies": {
|
|
67
|
-
"nuxt": "^4.
|
|
68
|
-
"sass": "^1.
|
|
69
|
-
"typescript": "
|
|
81
|
+
"nuxt": "^4.6.4",
|
|
82
|
+
"sass": "^1.105.1",
|
|
83
|
+
"typescript": "6.0.3"
|
|
70
84
|
}
|
|
71
85
|
}
|