@yunlefun/vue 0.7.0 → 0.8.1
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 +5 -6
- package/components/YlfAccordion.vue +30 -29
- package/components/YlfAgentCard.vue +6 -6
- package/components/YlfAgentStatus.vue +5 -5
- package/components/YlfAgentTask.vue +4 -4
- package/components/YlfAiPromptLauncher.vue +19 -9
- package/components/YlfAvatar.vue +31 -31
- package/components/YlfBadge.vue +93 -74
- package/components/YlfBottomMenu.vue +5 -5
- package/components/YlfBottomMenuItem.vue +15 -15
- package/components/YlfButton.vue +307 -267
- package/components/YlfCard.vue +32 -32
- package/components/YlfCheckbox.vue +62 -55
- package/components/YlfCloud.vue +5 -18
- package/components/YlfDialog.vue +47 -46
- package/components/YlfDropdownMenu.vue +55 -57
- package/components/YlfInput.vue +24 -17
- package/components/YlfLogo.vue +58 -42
- package/components/YlfNavigation.vue +24 -24
- package/components/YlfNavigationLink.vue +58 -25
- package/components/YlfNavigationTrigger.vue +49 -21
- package/components/YlfPopover.vue +34 -31
- package/components/YlfProgress.vue +12 -8
- package/components/YlfRadioGroup.vue +73 -58
- package/components/YlfScrollFade.vue +1 -1
- package/components/YlfSegmentedControl.vue +22 -16
- package/components/YlfSelect.vue +83 -79
- package/components/YlfSeparator.vue +31 -26
- package/components/YlfSlider.vue +49 -46
- package/components/YlfSwitch.vue +68 -64
- package/components/YlfTabs.vue +32 -30
- package/components/YlfTooltip.vue +30 -27
- package/components/ai-prompt.ts +33 -6
- package/components/badge/index.md +2 -2
- package/components/button/index.md +2 -2
- package/components/cloud.ts +21 -1
- package/components/navigation-indicator.ts +9 -3
- package/components/scroll-fade.ts +3 -1
- package/components/segmented-control/demo.vue +9 -2
- package/dist/ag-ui.cjs +11 -2
- package/dist/ag-ui.mjs +11 -2
- package/dist/ai-prompt.cjs +30 -5
- package/dist/ai-prompt.mjs +30 -5
- package/dist/components/YlfAccordion.vue.d.ts +5 -3
- package/dist/components/YlfAgentCard.vue.d.ts +9 -7
- package/dist/components/YlfAgentTask.vue.d.ts +7 -5
- package/dist/components/YlfBadge.vue.d.ts +5 -4
- package/dist/components/YlfBottomMenu.vue.d.ts +5 -3
- package/dist/components/YlfBottomMenuItem.vue.d.ts +5 -3
- package/dist/components/YlfButton.vue.d.ts +7 -6
- package/dist/components/YlfCard.vue.d.ts +5 -4
- package/dist/components/YlfDialog.vue.d.ts +11 -9
- package/dist/components/YlfDropdownMenu.vue.d.ts +5 -3
- package/dist/components/YlfNavigation.vue.d.ts +5 -3
- package/dist/components/YlfNavigationLink.vue.d.ts +5 -3
- package/dist/components/YlfNavigationTrigger.vue.d.ts +5 -3
- package/dist/components/YlfPopover.vue.d.ts +7 -5
- package/dist/components/YlfProgress.vue.d.ts +0 -1
- package/dist/components/YlfScrollFade.vue.d.ts +5 -3
- package/dist/components/YlfSeparator.vue.d.ts +0 -1
- package/dist/components/YlfSwitch.vue.d.ts +0 -1
- package/dist/components/YlfTabs.vue.d.ts +5 -3
- package/dist/components/YlfTooltip.vue.d.ts +7 -5
- package/dist/components/cloud.d.ts +2 -0
- package/dist/index.cjs +20 -10
- package/dist/index.d.cts +3 -4
- package/dist/index.d.mts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.mjs +20 -8
- package/dist/node.cjs +11 -0
- package/dist/node.d.cts +4 -0
- package/dist/node.d.mts +4 -0
- package/dist/node.d.ts +4 -0
- package/dist/node.mjs +7 -0
- package/package.json +6 -3
- package/components/_navigation.scss +0 -38
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
|
-
|
|
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
|
-
|
|
2
|
-
|
|
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
|
-
|
|
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 };
|
package/dist/node.cjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const node_path = require('node:path');
|
|
4
|
+
const node_url = require('node:url');
|
|
5
|
+
|
|
6
|
+
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
7
|
+
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('node.cjs', document.baseURI).href))));
|
|
8
|
+
const componentsDir = node_path.resolve(_dirname, "../components");
|
|
9
|
+
|
|
10
|
+
exports._dirname = _dirname;
|
|
11
|
+
exports.componentsDir = componentsDir;
|
package/dist/node.d.cts
ADDED
package/dist/node.d.mts
ADDED
package/dist/node.d.ts
ADDED
package/dist/node.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { dirname, resolve } from 'node:path';
|
|
2
|
+
import { fileURLToPath } from 'node:url';
|
|
3
|
+
|
|
4
|
+
const _dirname = typeof __dirname !== "undefined" ? __dirname : dirname(fileURLToPath(import.meta.url));
|
|
5
|
+
const componentsDir = resolve(_dirname, "../components");
|
|
6
|
+
|
|
7
|
+
export { _dirname, componentsDir };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yunlefun/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.1",
|
|
5
5
|
"description": "Vue components and Nuxt integration for YunLeFun Design",
|
|
6
6
|
"author": "YunLeFun",
|
|
7
7
|
"license": "MIT",
|
|
@@ -30,6 +30,11 @@
|
|
|
30
30
|
"import": "./dist/index.mjs",
|
|
31
31
|
"require": "./dist/index.cjs"
|
|
32
32
|
},
|
|
33
|
+
"./node": {
|
|
34
|
+
"types": "./dist/node.d.ts",
|
|
35
|
+
"import": "./dist/node.mjs",
|
|
36
|
+
"require": "./dist/node.cjs"
|
|
37
|
+
},
|
|
33
38
|
"./*": "./*",
|
|
34
39
|
"./ai-prompt": {
|
|
35
40
|
"types": "./dist/ai-prompt.d.ts",
|
|
@@ -62,7 +67,6 @@
|
|
|
62
67
|
"peerDependencies": {
|
|
63
68
|
"@ag-ui/client": "^1.0.1",
|
|
64
69
|
"nuxt": "^4.0.0",
|
|
65
|
-
"sass": "^1.101.0",
|
|
66
70
|
"vue": "^3.5.0"
|
|
67
71
|
},
|
|
68
72
|
"peerDependenciesMeta": {
|
|
@@ -79,7 +83,6 @@
|
|
|
79
83
|
},
|
|
80
84
|
"devDependencies": {
|
|
81
85
|
"nuxt": "^4.6.4",
|
|
82
|
-
"sass": "^1.105.1",
|
|
83
86
|
"typescript": "6.0.3"
|
|
84
87
|
}
|
|
85
88
|
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// Shared treatment for route links and navigation menu triggers.
|
|
2
|
-
@mixin control {
|
|
3
|
-
box-sizing: border-box;
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
min-height: 44px;
|
|
7
|
-
gap: var(--ylf-space-2, 8px);
|
|
8
|
-
border: 1px solid transparent;
|
|
9
|
-
border-radius: var(--ylf-radius-sm, 10px);
|
|
10
|
-
background: transparent;
|
|
11
|
-
color: var(--ylf-c-text-2, #475569);
|
|
12
|
-
font-family: var(--ylf-font-body, inherit);
|
|
13
|
-
font-size: var(--ylf-text-sm, 0.875rem);
|
|
14
|
-
font-weight: 500;
|
|
15
|
-
line-height: 1.25rem;
|
|
16
|
-
text-decoration: none;
|
|
17
|
-
white-space: nowrap;
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
transition:
|
|
20
|
-
background-color var(--ylf-duration-fast, 160ms) var(--ylf-ease-standard, ease),
|
|
21
|
-
color var(--ylf-duration-fast, 160ms) var(--ylf-ease-standard, ease);
|
|
22
|
-
|
|
23
|
-
&:hover:not(:disabled) {
|
|
24
|
-
background: var(--ylf-c-bg-soft, #f1f5f9);
|
|
25
|
-
color: var(--ylf-c-text, #0f172a);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Focus stays inside the target so it cannot overlap a neighboring state.
|
|
29
|
-
&:focus-visible {
|
|
30
|
-
outline: 2px solid var(--ylf-c-brand, #2563eb);
|
|
31
|
-
outline-offset: -2px;
|
|
32
|
-
box-shadow: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@media (prefers-reduced-motion: reduce) {
|
|
36
|
-
transition: none;
|
|
37
|
-
}
|
|
38
|
-
}
|