@yunlefun/vue 0.1.3 → 0.3.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/dist/index.d.ts CHANGED
@@ -19,6 +19,15 @@ interface BottomMenuItem {
19
19
  onClick?: (...args: any[]) => void;
20
20
  }
21
21
 
22
+ /** One choice in a single-selection segmented control. */
23
+ interface YlfSegmentedOption<T extends string = string> {
24
+ value: T;
25
+ label: string;
26
+ disabled?: boolean;
27
+ count?: number;
28
+ ariaLabel?: string;
29
+ }
30
+
22
31
  /** Shared accents, defaulting to sky blue. Status colors use their own semantic variants. */
23
32
  type YlfAccentTone = 'blue' | 'sun' | 'cyan' | 'coral' | 'pink' | 'green';
24
33
  /** Visual emphasis for accent and status buttons/badges. */
@@ -28,4 +37,4 @@ declare const _dirname: string;
28
37
  declare const componentsDir: string;
29
38
 
30
39
  export { _dirname, componentsDir };
31
- export type { BottomMenuItem, YlfAccentTone, YlfColorAppearance };
40
+ export type { BottomMenuItem, YlfAccentTone, YlfColorAppearance, YlfSegmentedOption };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yunlefun/vue",
3
3
  "type": "module",
4
- "version": "0.1.3",
4
+ "version": "0.3.0",
5
5
  "description": "Vue components and Nuxt integration for YunLeFun Design",
6
6
  "author": "YunLeFun",
7
7
  "license": "MIT",
@@ -22,7 +22,12 @@
22
22
  "import": "./dist/index.mjs",
23
23
  "require": "./dist/index.cjs"
24
24
  },
25
- "./*": "./*"
25
+ "./*": "./*",
26
+ "./ai-prompt": {
27
+ "types": "./dist/ai-prompt.d.ts",
28
+ "import": "./dist/ai-prompt.mjs",
29
+ "require": "./dist/ai-prompt.cjs"
30
+ }
26
31
  },
27
32
  "main": "./dist/index.cjs",
28
33
  "module": "./dist/index.mjs",