@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/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;
@@ -0,0 +1,4 @@
1
+ declare const _dirname: string;
2
+ declare const componentsDir: string;
3
+
4
+ export { _dirname, componentsDir };
@@ -0,0 +1,4 @@
1
+ declare const _dirname: string;
2
+ declare const componentsDir: string;
3
+
4
+ export { _dirname, componentsDir };
package/dist/node.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ declare const _dirname: string;
2
+ declare const componentsDir: string;
3
+
4
+ export { _dirname, componentsDir };
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.7.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
- }