@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.
- package/README.md +5 -6
- package/components/YlfAccordion.vue +30 -29
- package/components/YlfAgentCard.vue +4 -4
- package/components/YlfAgentStatus.vue +1 -1
- package/components/YlfAgentTask.vue +4 -4
- package/components/YlfAiPromptLauncher.vue +18 -8
- package/components/YlfAvatar.vue +30 -30
- package/components/YlfBadge.vue +92 -73
- package/components/YlfBottomMenu.vue +5 -5
- package/components/YlfBottomMenuItem.vue +15 -15
- package/components/YlfButton.vue +300 -265
- package/components/YlfCard.vue +32 -32
- package/components/YlfCheckbox.vue +61 -54
- package/components/YlfCloud.vue +5 -18
- package/components/YlfDialog.vue +47 -46
- package/components/YlfDropdownMenu.vue +55 -57
- package/components/YlfInput.vue +22 -15
- 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 +10 -6
- package/components/YlfRadioGroup.vue +73 -58
- package/components/YlfScrollFade.vue +1 -1
- package/components/YlfSegmentedControl.vue +21 -15
- package/components/YlfSelect.vue +81 -77
- package/components/YlfSeparator.vue +31 -26
- package/components/YlfSlider.vue +49 -46
- package/components/YlfSwitch.vue +67 -64
- package/components/YlfTabs.vue +30 -28
- package/components/YlfTooltip.vue +30 -27
- package/components/ai-prompt.ts +33 -6
- 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/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.0",
|
|
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
|
-
}
|