@yunlefun/vue 0.8.0 → 0.9.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/components/YlfAccordion.vue +3 -3
- package/components/YlfAgentCard.vue +2 -2
- package/components/YlfAgentStatus.vue +4 -4
- package/components/YlfAiPromptLauncher.vue +1 -1
- package/components/YlfAvatar.vue +2 -2
- package/components/YlfBadge.vue +11 -11
- package/components/YlfBottomMenuItem.vue +1 -1
- package/components/YlfButton.vue +43 -38
- package/components/YlfCard.vue +3 -3
- package/components/YlfCheckbox.vue +6 -6
- package/components/YlfCuteCloud.vue +246 -0
- package/components/YlfDialog.vue +1 -1
- package/components/YlfDropdownMenu.vue +3 -3
- package/components/YlfInput.vue +5 -5
- package/components/YlfLogo.vue +1 -1
- package/components/YlfNavigation.vue +2 -2
- package/components/YlfNavigationLink.vue +3 -3
- package/components/YlfNavigationTrigger.vue +1 -1
- package/components/YlfProgress.vue +2 -2
- package/components/YlfRadioGroup.vue +6 -6
- package/components/YlfSegmentedControl.vue +2 -2
- package/components/YlfSelect.vue +11 -11
- package/components/YlfSeparator.vue +4 -4
- package/components/YlfSlider.vue +6 -6
- package/components/YlfSwitch.vue +7 -6
- package/components/YlfTabs.vue +6 -6
- package/components/badge/index.md +2 -2
- package/components/button/index.md +2 -2
- package/components/cute-cloud/demo.vue +73 -0
- package/components/cute-cloud/index.md +34 -0
- package/components/cute-cloud.ts +16 -0
- package/dist/components/YlfCuteCloud.vue.d.ts +25 -0
- package/dist/components/cute-cloud.d.ts +10 -0
- package/dist/index.cjs +7 -0
- package/dist/index.d.cts +13 -2
- package/dist/index.d.mts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.mjs +7 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,17 @@ type YlfCloudShape = typeof ylfCloudShapes[number];
|
|
|
28
28
|
/** Shared SVG paths for cloud silhouettes (`viewBox="0 0 490 250"`). */
|
|
29
29
|
declare const ylfCloudSilhouettes: Record<YlfCloudShape, string>;
|
|
30
30
|
|
|
31
|
+
/** Silhouettes supported by `YlfCuteCloud`. */
|
|
32
|
+
declare const ylfCuteCloudShapes: readonly ["round", "long", "small"];
|
|
33
|
+
type YlfCuteCloudShape = typeof ylfCuteCloudShapes[number];
|
|
34
|
+
type YlfCuteCloudMood = 'calm' | 'happy';
|
|
35
|
+
interface YlfCuteCloudLook {
|
|
36
|
+
/** Horizontal gaze direction, clamped to `-1..1`. */
|
|
37
|
+
x: number;
|
|
38
|
+
/** Vertical gaze direction, clamped to `-1..1`. */
|
|
39
|
+
y: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
31
42
|
/** One choice in a single-selection segmented control. */
|
|
32
43
|
interface YlfSegmentedOption<T extends string = string> {
|
|
33
44
|
value: T;
|
|
@@ -42,5 +53,5 @@ type YlfAccentTone = 'blue' | 'sun' | 'cyan' | 'coral' | 'pink' | 'green';
|
|
|
42
53
|
/** Visual emphasis for accent and status buttons/badges. */
|
|
43
54
|
type YlfColorAppearance = 'solid' | 'soft' | 'outline';
|
|
44
55
|
|
|
45
|
-
export { ylfCloudShapes, ylfCloudSilhouettes };
|
|
46
|
-
export type { BottomMenuItem, YlfAccentTone, YlfAgentState, YlfCloudShape, YlfColorAppearance, YlfSegmentedOption };
|
|
56
|
+
export { ylfCloudShapes, ylfCloudSilhouettes, ylfCuteCloudShapes };
|
|
57
|
+
export type { BottomMenuItem, YlfAccentTone, YlfAgentState, YlfCloudShape, YlfColorAppearance, YlfCuteCloudLook, YlfCuteCloudMood, YlfCuteCloudShape, YlfSegmentedOption };
|
package/dist/index.mjs
CHANGED
|
@@ -18,4 +18,10 @@ const ylfCloudSilhouettes = {
|
|
|
18
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
19
|
};
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
const ylfCuteCloudShapes = [
|
|
22
|
+
"round",
|
|
23
|
+
"long",
|
|
24
|
+
"small"
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
export { ylfCloudShapes, ylfCloudSilhouettes, ylfCuteCloudShapes };
|