@wakastellar/ui 2.3.0 → 2.3.2
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/components/index.d.ts +15 -0
- package/dist/components/waka-ad-banner/index.d.ts +36 -0
- package/dist/components/waka-ad-fallback/index.d.ts +33 -0
- package/dist/components/waka-ad-inline/index.d.ts +15 -0
- package/dist/components/waka-ad-interstitial/index.d.ts +26 -0
- package/dist/components/waka-ad-placeholder/index.d.ts +17 -0
- package/dist/components/waka-ad-provider/index.d.ts +103 -0
- package/dist/components/waka-ad-sidebar/index.d.ts +18 -0
- package/dist/components/waka-ad-sticky-footer/index.d.ts +17 -0
- package/dist/components/waka-content-recommendation/index.d.ts +23 -0
- package/dist/components/waka-outstream-video/index.d.ts +24 -0
- package/dist/components/waka-sponsored-badge/index.d.ts +20 -0
- package/dist/components/waka-sponsored-card/index.d.ts +25 -0
- package/dist/components/waka-sponsored-feed/index.d.ts +31 -0
- package/dist/components/waka-video-ad/index.d.ts +32 -0
- package/dist/components/waka-video-overlay/index.d.ts +26 -0
- package/dist/index.cjs.js +177 -171
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +14535 -12812
- package/dist/utils/security.d.ts +96 -0
- package/package.json +4 -4
- package/src/blocks/sidebar/index.tsx +6 -6
- package/src/components/DataTable/templates/index.tsx +3 -2
- package/src/components/index.ts +94 -0
- package/src/components/waka-3d-pie-chart/index.tsx +11 -11
- package/src/components/waka-achievement-unlock/index.tsx +16 -16
- package/src/components/waka-ad-banner/index.tsx +275 -0
- package/src/components/waka-ad-fallback/index.tsx +181 -0
- package/src/components/waka-ad-inline/index.tsx +103 -0
- package/src/components/waka-ad-interstitial/index.tsx +278 -0
- package/src/components/waka-ad-placeholder/index.tsx +84 -0
- package/src/components/waka-ad-provider/index.tsx +329 -0
- package/src/components/waka-ad-sidebar/index.tsx +113 -0
- package/src/components/waka-ad-sticky-footer/index.tsx +125 -0
- package/src/components/waka-badge-showcase/index.tsx +12 -11
- package/src/components/waka-command-bar/index.tsx +2 -1
- package/src/components/waka-content-recommendation/index.tsx +294 -0
- package/src/components/waka-cost-breakdown/index.tsx +10 -10
- package/src/components/waka-funnel-chart/index.tsx +8 -8
- package/src/components/waka-health-pulse/index.tsx +6 -6
- package/src/components/waka-leaderboard/index.tsx +9 -9
- package/src/components/waka-loot-box/index.tsx +20 -20
- package/src/components/waka-outstream-video/index.tsx +240 -0
- package/src/components/waka-player-card/index.tsx +5 -5
- package/src/components/waka-quota-bar/index.tsx +4 -4
- package/src/components/waka-radar-score/index.tsx +10 -10
- package/src/components/waka-scratch-card/index.tsx +5 -4
- package/src/components/waka-server-rack/index.tsx +28 -27
- package/src/components/waka-sponsored-badge/index.tsx +97 -0
- package/src/components/waka-sponsored-card/index.tsx +275 -0
- package/src/components/waka-sponsored-feed/index.tsx +127 -0
- package/src/components/waka-spotlight/index.tsx +2 -1
- package/src/components/waka-success-explosion/index.tsx +4 -4
- package/src/components/waka-video-ad/index.tsx +406 -0
- package/src/components/waka-video-overlay/index.tsx +257 -0
- package/src/components/waka-xp-bar/index.tsx +13 -13
- package/src/styles/base.css +16 -0
- package/src/styles/tailwind.preset.js +12 -0
- package/src/styles/themes/forest.css +16 -0
- package/src/styles/themes/monochrome.css +16 -0
- package/src/styles/themes/perpetuity.css +16 -0
- package/src/styles/themes/sunset.css +16 -0
- package/src/styles/themes/twilight.css +16 -0
|
@@ -55,14 +55,14 @@ interface Particle {
|
|
|
55
55
|
// ============================================================================
|
|
56
56
|
|
|
57
57
|
const defaultLevelColors: Record<number, string> = {
|
|
58
|
-
1: "
|
|
59
|
-
5: "
|
|
60
|
-
10: "
|
|
61
|
-
20: "
|
|
62
|
-
30: "
|
|
63
|
-
50: "
|
|
64
|
-
75: "
|
|
65
|
-
100: "
|
|
58
|
+
1: "hsl(var(--chart-1))", // Beginner
|
|
59
|
+
5: "hsl(var(--success))", // Novice
|
|
60
|
+
10: "hsl(var(--chart-2))", // Apprentice
|
|
61
|
+
20: "hsl(var(--warning))", // Adept
|
|
62
|
+
30: "hsl(var(--destructive))", // Expert
|
|
63
|
+
50: "hsl(var(--chart-3))", // Master
|
|
64
|
+
75: "hsl(var(--info))", // Grandmaster
|
|
65
|
+
100: "hsl(var(--chart-4))", // Legend
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
const sizeConfig = {
|
|
@@ -104,7 +104,7 @@ function getLevelColor(level: number, levelColors: Record<number, string>): stri
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
return levelColors[sortedLevels[sortedLevels.length - 1]] || "
|
|
107
|
+
return levelColors[sortedLevels[sortedLevels.length - 1]] || "hsl(var(--chart-1))"
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
function hexToRgba(hex: string, alpha: number): string {
|
|
@@ -122,9 +122,9 @@ function generateParticle(
|
|
|
122
122
|
): Particle {
|
|
123
123
|
const colors = [
|
|
124
124
|
baseColor,
|
|
125
|
-
"
|
|
126
|
-
|
|
127
|
-
"
|
|
125
|
+
"hsl(var(--foreground))",
|
|
126
|
+
baseColor,
|
|
127
|
+
"hsl(var(--warning))",
|
|
128
128
|
]
|
|
129
129
|
|
|
130
130
|
const shapes: Particle["shape"][] = ["circle", "star", "diamond", "spark"]
|
|
@@ -337,7 +337,7 @@ function LevelUpCelebration({ active, color, onComplete }: LevelUpCelebrationPro
|
|
|
337
337
|
|
|
338
338
|
if (!isVisible) return null
|
|
339
339
|
|
|
340
|
-
const celebrationColors = [color, "
|
|
340
|
+
const celebrationColors = [color, "hsl(var(--warning))", "hsl(var(--foreground))", "hsl(var(--chart-3))", "hsl(var(--success))"]
|
|
341
341
|
|
|
342
342
|
return (
|
|
343
343
|
<div className="pointer-events-none absolute inset-0 z-50 overflow-visible">
|
package/src/styles/base.css
CHANGED
|
@@ -42,6 +42,14 @@
|
|
|
42
42
|
--chart-4: 210 25% 70%;
|
|
43
43
|
--chart-5: 210 20% 85%;
|
|
44
44
|
--radius: 0.5rem;
|
|
45
|
+
|
|
46
|
+
/* Status colors */
|
|
47
|
+
--success: 142 76% 36%;
|
|
48
|
+
--success-foreground: 0 0% 100%;
|
|
49
|
+
--warning: 38 92% 50%;
|
|
50
|
+
--warning-foreground: 0 0% 0%;
|
|
51
|
+
--info: 199 89% 48%;
|
|
52
|
+
--info-foreground: 0 0% 100%;
|
|
45
53
|
}
|
|
46
54
|
|
|
47
55
|
.dark,
|
|
@@ -70,6 +78,14 @@
|
|
|
70
78
|
--chart-3: 210 15% 50%;
|
|
71
79
|
--chart-4: 210 20% 35%;
|
|
72
80
|
--chart-5: 217 25% 25%;
|
|
81
|
+
|
|
82
|
+
/* Status colors - dark */
|
|
83
|
+
--success: 142 71% 45%;
|
|
84
|
+
--success-foreground: 0 0% 100%;
|
|
85
|
+
--warning: 38 92% 50%;
|
|
86
|
+
--warning-foreground: 0 0% 0%;
|
|
87
|
+
--info: 199 89% 48%;
|
|
88
|
+
--info-foreground: 0 0% 100%;
|
|
73
89
|
}
|
|
74
90
|
|
|
75
91
|
/* ============================================
|
|
@@ -44,6 +44,18 @@ module.exports = {
|
|
|
44
44
|
4: "hsl(var(--chart-4))",
|
|
45
45
|
5: "hsl(var(--chart-5))",
|
|
46
46
|
},
|
|
47
|
+
success: {
|
|
48
|
+
DEFAULT: "hsl(var(--success))",
|
|
49
|
+
foreground: "hsl(var(--success-foreground))",
|
|
50
|
+
},
|
|
51
|
+
warning: {
|
|
52
|
+
DEFAULT: "hsl(var(--warning))",
|
|
53
|
+
foreground: "hsl(var(--warning-foreground))",
|
|
54
|
+
},
|
|
55
|
+
info: {
|
|
56
|
+
DEFAULT: "hsl(var(--info))",
|
|
57
|
+
foreground: "hsl(var(--info-foreground))",
|
|
58
|
+
},
|
|
47
59
|
},
|
|
48
60
|
borderRadius: {
|
|
49
61
|
lg: "var(--radius)",
|
|
@@ -25,6 +25,14 @@
|
|
|
25
25
|
--chart-4: 120 32% 57%;
|
|
26
26
|
--chart-5: 120 28% 68%;
|
|
27
27
|
--radius: 0.5rem;
|
|
28
|
+
|
|
29
|
+
/* Status colors */
|
|
30
|
+
--success: 142 76% 36%;
|
|
31
|
+
--success-foreground: 0 0% 100%;
|
|
32
|
+
--warning: 38 92% 50%;
|
|
33
|
+
--warning-foreground: 0 0% 0%;
|
|
34
|
+
--info: 199 89% 48%;
|
|
35
|
+
--info-foreground: 0 0% 100%;
|
|
28
36
|
}
|
|
29
37
|
|
|
30
38
|
[data-theme="forest"].dark {
|
|
@@ -52,4 +60,12 @@
|
|
|
52
60
|
--chart-3: 120 40% 40%;
|
|
53
61
|
--chart-4: 120 45% 33%;
|
|
54
62
|
--chart-5: 120 50% 25%;
|
|
63
|
+
|
|
64
|
+
/* Status colors - dark */
|
|
65
|
+
--success: 142 71% 45%;
|
|
66
|
+
--success-foreground: 0 0% 100%;
|
|
67
|
+
--warning: 38 92% 50%;
|
|
68
|
+
--warning-foreground: 0 0% 0%;
|
|
69
|
+
--info: 199 89% 48%;
|
|
70
|
+
--info-foreground: 0 0% 100%;
|
|
55
71
|
}
|
|
@@ -25,6 +25,14 @@
|
|
|
25
25
|
--chart-4: 0 0% 64%;
|
|
26
26
|
--chart-5: 0 0% 83%;
|
|
27
27
|
--radius: 0.375rem;
|
|
28
|
+
|
|
29
|
+
/* Status colors */
|
|
30
|
+
--success: 142 76% 36%;
|
|
31
|
+
--success-foreground: 0 0% 100%;
|
|
32
|
+
--warning: 38 92% 50%;
|
|
33
|
+
--warning-foreground: 0 0% 0%;
|
|
34
|
+
--info: 199 89% 48%;
|
|
35
|
+
--info-foreground: 0 0% 100%;
|
|
28
36
|
}
|
|
29
37
|
|
|
30
38
|
[data-theme="monochrome"].dark {
|
|
@@ -52,4 +60,12 @@
|
|
|
52
60
|
--chart-3: 0 0% 64%;
|
|
53
61
|
--chart-4: 0 0% 45%;
|
|
54
62
|
--chart-5: 0 0% 25%;
|
|
63
|
+
|
|
64
|
+
/* Status colors - dark */
|
|
65
|
+
--success: 142 71% 45%;
|
|
66
|
+
--success-foreground: 0 0% 100%;
|
|
67
|
+
--warning: 38 92% 50%;
|
|
68
|
+
--warning-foreground: 0 0% 0%;
|
|
69
|
+
--info: 199 89% 48%;
|
|
70
|
+
--info-foreground: 0 0% 100%;
|
|
55
71
|
}
|
|
@@ -25,6 +25,14 @@
|
|
|
25
25
|
--chart-4: 184 55% 59%;
|
|
26
26
|
--chart-5: 183 54% 70%;
|
|
27
27
|
--radius: 0.125rem;
|
|
28
|
+
|
|
29
|
+
/* Status colors */
|
|
30
|
+
--success: 142 76% 36%;
|
|
31
|
+
--success-foreground: 0 0% 100%;
|
|
32
|
+
--warning: 38 92% 50%;
|
|
33
|
+
--warning-foreground: 0 0% 0%;
|
|
34
|
+
--info: 199 89% 48%;
|
|
35
|
+
--info-foreground: 0 0% 100%;
|
|
28
36
|
}
|
|
29
37
|
|
|
30
38
|
[data-theme="perpetuity"].dark {
|
|
@@ -52,4 +60,12 @@
|
|
|
52
60
|
--chart-3: 180 50% 36%;
|
|
53
61
|
--chart-4: 186 56% 23%;
|
|
54
62
|
--chart-5: 186 60% 15%;
|
|
63
|
+
|
|
64
|
+
/* Status colors - dark */
|
|
65
|
+
--success: 142 71% 45%;
|
|
66
|
+
--success-foreground: 0 0% 100%;
|
|
67
|
+
--warning: 38 92% 50%;
|
|
68
|
+
--warning-foreground: 0 0% 0%;
|
|
69
|
+
--info: 199 89% 48%;
|
|
70
|
+
--info-foreground: 0 0% 100%;
|
|
55
71
|
}
|
|
@@ -25,6 +25,14 @@
|
|
|
25
25
|
--chart-4: 45 97% 65%;
|
|
26
26
|
--chart-5: 48 96% 77%;
|
|
27
27
|
--radius: 0.5rem;
|
|
28
|
+
|
|
29
|
+
/* Status colors */
|
|
30
|
+
--success: 142 76% 36%;
|
|
31
|
+
--success-foreground: 0 0% 100%;
|
|
32
|
+
--warning: 38 92% 50%;
|
|
33
|
+
--warning-foreground: 0 0% 0%;
|
|
34
|
+
--info: 199 89% 48%;
|
|
35
|
+
--info-foreground: 0 0% 100%;
|
|
28
36
|
}
|
|
29
37
|
|
|
30
38
|
[data-theme="sunset"].dark {
|
|
@@ -52,4 +60,12 @@
|
|
|
52
60
|
--chart-3: 32 92% 44%;
|
|
53
61
|
--chart-4: 27 91% 37%;
|
|
54
62
|
--chart-5: 26 80% 31%;
|
|
63
|
+
|
|
64
|
+
/* Status colors - dark */
|
|
65
|
+
--success: 142 71% 45%;
|
|
66
|
+
--success-foreground: 0 0% 100%;
|
|
67
|
+
--warning: 38 92% 50%;
|
|
68
|
+
--warning-foreground: 0 0% 0%;
|
|
69
|
+
--info: 199 89% 48%;
|
|
70
|
+
--info-foreground: 0 0% 100%;
|
|
55
71
|
}
|
|
@@ -25,6 +25,14 @@
|
|
|
25
25
|
--chart-4: 263 95% 92%;
|
|
26
26
|
--chart-5: 262 100% 96%;
|
|
27
27
|
--radius: 0.75rem;
|
|
28
|
+
|
|
29
|
+
/* Status colors */
|
|
30
|
+
--success: 142 76% 36%;
|
|
31
|
+
--success-foreground: 0 0% 100%;
|
|
32
|
+
--warning: 38 92% 50%;
|
|
33
|
+
--warning-foreground: 0 0% 0%;
|
|
34
|
+
--info: 199 89% 48%;
|
|
35
|
+
--info-foreground: 0 0% 100%;
|
|
28
36
|
}
|
|
29
37
|
|
|
30
38
|
[data-theme="twilight"].dark {
|
|
@@ -52,4 +60,12 @@
|
|
|
52
60
|
--chart-3: 262 83% 66%;
|
|
53
61
|
--chart-4: 263 81% 58%;
|
|
54
62
|
--chart-5: 263 70% 50%;
|
|
63
|
+
|
|
64
|
+
/* Status colors - dark */
|
|
65
|
+
--success: 142 71% 45%;
|
|
66
|
+
--success-foreground: 0 0% 100%;
|
|
67
|
+
--warning: 38 92% 50%;
|
|
68
|
+
--warning-foreground: 0 0% 0%;
|
|
69
|
+
--info: 199 89% 48%;
|
|
70
|
+
--info-foreground: 0 0% 100%;
|
|
55
71
|
}
|