@wakastellar/ui 2.3.0 → 2.3.4
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 +34 -0
- package/src/styles/tailwind.preset.js +12 -0
- package/src/styles/themes/forest.css +34 -0
- package/src/styles/themes/monochrome.css +34 -0
- package/src/styles/themes/perpetuity.css +34 -0
- package/src/styles/themes/sunset.css +34 -0
- package/src/styles/themes/twilight.css +34 -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,23 @@
|
|
|
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%;
|
|
53
|
+
|
|
54
|
+
/* Sidebar colors */
|
|
55
|
+
--sidebar-background: 222.2 84% 4.9%;
|
|
56
|
+
--sidebar-foreground: 210 40% 98%;
|
|
57
|
+
--sidebar-primary: 222.2 47.4% 11.2%;
|
|
58
|
+
--sidebar-primary-foreground: 210 40% 98%;
|
|
59
|
+
--sidebar-accent: 217.2 32.6% 17.5%;
|
|
60
|
+
--sidebar-accent-foreground: 210 40% 98%;
|
|
61
|
+
--sidebar-border: 217.2 32.6% 17.5%;
|
|
45
62
|
}
|
|
46
63
|
|
|
47
64
|
.dark,
|
|
@@ -70,6 +87,23 @@
|
|
|
70
87
|
--chart-3: 210 15% 50%;
|
|
71
88
|
--chart-4: 210 20% 35%;
|
|
72
89
|
--chart-5: 217 25% 25%;
|
|
90
|
+
|
|
91
|
+
/* Status colors - dark */
|
|
92
|
+
--success: 142 71% 45%;
|
|
93
|
+
--success-foreground: 0 0% 100%;
|
|
94
|
+
--warning: 38 92% 50%;
|
|
95
|
+
--warning-foreground: 0 0% 0%;
|
|
96
|
+
--info: 199 89% 48%;
|
|
97
|
+
--info-foreground: 0 0% 100%;
|
|
98
|
+
|
|
99
|
+
/* Sidebar colors - dark */
|
|
100
|
+
--sidebar-background: 222.2 84% 4.9%;
|
|
101
|
+
--sidebar-foreground: 210 40% 98%;
|
|
102
|
+
--sidebar-primary: 210 40% 98%;
|
|
103
|
+
--sidebar-primary-foreground: 222.2 47.4% 11.2%;
|
|
104
|
+
--sidebar-accent: 217.2 32.6% 17.5%;
|
|
105
|
+
--sidebar-accent-foreground: 210 40% 98%;
|
|
106
|
+
--sidebar-border: 217.2 32.6% 17.5%;
|
|
73
107
|
}
|
|
74
108
|
|
|
75
109
|
/* ============================================
|
|
@@ -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,23 @@
|
|
|
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%;
|
|
36
|
+
|
|
37
|
+
/* Sidebar colors */
|
|
38
|
+
--sidebar-background: 120 33% 9%;
|
|
39
|
+
--sidebar-foreground: 120 56% 69%;
|
|
40
|
+
--sidebar-primary: 120 45% 33%;
|
|
41
|
+
--sidebar-primary-foreground: 0 0% 100%;
|
|
42
|
+
--sidebar-accent: 120 36% 28%;
|
|
43
|
+
--sidebar-accent-foreground: 120 56% 69%;
|
|
44
|
+
--sidebar-border: 120 36% 28%;
|
|
28
45
|
}
|
|
29
46
|
|
|
30
47
|
[data-theme="forest"].dark {
|
|
@@ -52,4 +69,21 @@
|
|
|
52
69
|
--chart-3: 120 40% 40%;
|
|
53
70
|
--chart-4: 120 45% 33%;
|
|
54
71
|
--chart-5: 120 50% 25%;
|
|
72
|
+
|
|
73
|
+
/* Status colors - dark */
|
|
74
|
+
--success: 142 71% 45%;
|
|
75
|
+
--success-foreground: 0 0% 100%;
|
|
76
|
+
--warning: 38 92% 50%;
|
|
77
|
+
--warning-foreground: 0 0% 0%;
|
|
78
|
+
--info: 199 89% 48%;
|
|
79
|
+
--info-foreground: 0 0% 100%;
|
|
80
|
+
|
|
81
|
+
/* Sidebar colors - dark */
|
|
82
|
+
--sidebar-background: 120 33% 9%;
|
|
83
|
+
--sidebar-foreground: 120 56% 69%;
|
|
84
|
+
--sidebar-primary: 120 40% 56%;
|
|
85
|
+
--sidebar-primary-foreground: 120 33% 9%;
|
|
86
|
+
--sidebar-accent: 120 36% 28%;
|
|
87
|
+
--sidebar-accent-foreground: 120 56% 69%;
|
|
88
|
+
--sidebar-border: 120 36% 28%;
|
|
55
89
|
}
|
|
@@ -25,6 +25,23 @@
|
|
|
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%;
|
|
36
|
+
|
|
37
|
+
/* Sidebar colors */
|
|
38
|
+
--sidebar-background: 0 0% 4%;
|
|
39
|
+
--sidebar-foreground: 0 0% 98%;
|
|
40
|
+
--sidebar-primary: 0 0% 9%;
|
|
41
|
+
--sidebar-primary-foreground: 0 0% 98%;
|
|
42
|
+
--sidebar-accent: 0 0% 15%;
|
|
43
|
+
--sidebar-accent-foreground: 0 0% 98%;
|
|
44
|
+
--sidebar-border: 0 0% 15%;
|
|
28
45
|
}
|
|
29
46
|
|
|
30
47
|
[data-theme="monochrome"].dark {
|
|
@@ -52,4 +69,21 @@
|
|
|
52
69
|
--chart-3: 0 0% 64%;
|
|
53
70
|
--chart-4: 0 0% 45%;
|
|
54
71
|
--chart-5: 0 0% 25%;
|
|
72
|
+
|
|
73
|
+
/* Status colors - dark */
|
|
74
|
+
--success: 142 71% 45%;
|
|
75
|
+
--success-foreground: 0 0% 100%;
|
|
76
|
+
--warning: 38 92% 50%;
|
|
77
|
+
--warning-foreground: 0 0% 0%;
|
|
78
|
+
--info: 199 89% 48%;
|
|
79
|
+
--info-foreground: 0 0% 100%;
|
|
80
|
+
|
|
81
|
+
/* Sidebar colors - dark */
|
|
82
|
+
--sidebar-background: 0 0% 4%;
|
|
83
|
+
--sidebar-foreground: 0 0% 98%;
|
|
84
|
+
--sidebar-primary: 0 0% 98%;
|
|
85
|
+
--sidebar-primary-foreground: 0 0% 4%;
|
|
86
|
+
--sidebar-accent: 0 0% 15%;
|
|
87
|
+
--sidebar-accent-foreground: 0 0% 98%;
|
|
88
|
+
--sidebar-border: 0 0% 15%;
|
|
55
89
|
}
|
|
@@ -25,6 +25,23 @@
|
|
|
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%;
|
|
36
|
+
|
|
37
|
+
/* Sidebar colors */
|
|
38
|
+
--sidebar-background: 195 50% 8%;
|
|
39
|
+
--sidebar-foreground: 180 75% 60%;
|
|
40
|
+
--sidebar-primary: 184 93% 29%;
|
|
41
|
+
--sidebar-primary-foreground: 0 0% 100%;
|
|
42
|
+
--sidebar-accent: 189 59% 21%;
|
|
43
|
+
--sidebar-accent-foreground: 180 75% 60%;
|
|
44
|
+
--sidebar-border: 189 59% 21%;
|
|
28
45
|
}
|
|
29
46
|
|
|
30
47
|
[data-theme="perpetuity"].dark {
|
|
@@ -52,4 +69,21 @@
|
|
|
52
69
|
--chart-3: 180 50% 36%;
|
|
53
70
|
--chart-4: 186 56% 23%;
|
|
54
71
|
--chart-5: 186 60% 15%;
|
|
72
|
+
|
|
73
|
+
/* Status colors - dark */
|
|
74
|
+
--success: 142 71% 45%;
|
|
75
|
+
--success-foreground: 0 0% 100%;
|
|
76
|
+
--warning: 38 92% 50%;
|
|
77
|
+
--warning-foreground: 0 0% 0%;
|
|
78
|
+
--info: 199 89% 48%;
|
|
79
|
+
--info-foreground: 0 0% 100%;
|
|
80
|
+
|
|
81
|
+
/* Sidebar colors - dark */
|
|
82
|
+
--sidebar-background: 195 50% 8%;
|
|
83
|
+
--sidebar-foreground: 180 75% 60%;
|
|
84
|
+
--sidebar-primary: 180 75% 60%;
|
|
85
|
+
--sidebar-primary-foreground: 195 50% 8%;
|
|
86
|
+
--sidebar-accent: 189 59% 21%;
|
|
87
|
+
--sidebar-accent-foreground: 180 75% 60%;
|
|
88
|
+
--sidebar-border: 189 59% 21%;
|
|
55
89
|
}
|
|
@@ -25,6 +25,23 @@
|
|
|
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%;
|
|
36
|
+
|
|
37
|
+
/* Sidebar colors */
|
|
38
|
+
--sidebar-background: 18 56% 7%;
|
|
39
|
+
--sidebar-foreground: 28 92% 83%;
|
|
40
|
+
--sidebar-primary: 21 90% 48%;
|
|
41
|
+
--sidebar-primary-foreground: 0 0% 100%;
|
|
42
|
+
--sidebar-accent: 26 80% 31%;
|
|
43
|
+
--sidebar-accent-foreground: 28 92% 83%;
|
|
44
|
+
--sidebar-border: 28 75% 26%;
|
|
28
45
|
}
|
|
29
46
|
|
|
30
47
|
[data-theme="sunset"].dark {
|
|
@@ -52,4 +69,21 @@
|
|
|
52
69
|
--chart-3: 32 92% 44%;
|
|
53
70
|
--chart-4: 27 91% 37%;
|
|
54
71
|
--chart-5: 26 80% 31%;
|
|
72
|
+
|
|
73
|
+
/* Status colors - dark */
|
|
74
|
+
--success: 142 71% 45%;
|
|
75
|
+
--success-foreground: 0 0% 100%;
|
|
76
|
+
--warning: 38 92% 50%;
|
|
77
|
+
--warning-foreground: 0 0% 0%;
|
|
78
|
+
--info: 199 89% 48%;
|
|
79
|
+
--info-foreground: 0 0% 100%;
|
|
80
|
+
|
|
81
|
+
/* Sidebar colors - dark */
|
|
82
|
+
--sidebar-background: 18 56% 7%;
|
|
83
|
+
--sidebar-foreground: 28 92% 83%;
|
|
84
|
+
--sidebar-primary: 38 92% 50%;
|
|
85
|
+
--sidebar-primary-foreground: 18 56% 7%;
|
|
86
|
+
--sidebar-accent: 26 80% 31%;
|
|
87
|
+
--sidebar-accent-foreground: 28 92% 83%;
|
|
88
|
+
--sidebar-border: 28 75% 26%;
|
|
55
89
|
}
|
|
@@ -25,6 +25,23 @@
|
|
|
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%;
|
|
36
|
+
|
|
37
|
+
/* Sidebar colors */
|
|
38
|
+
--sidebar-background: 270 45% 11%;
|
|
39
|
+
--sidebar-foreground: 275 100% 92%;
|
|
40
|
+
--sidebar-primary: 262 83% 66%;
|
|
41
|
+
--sidebar-primary-foreground: 0 0% 100%;
|
|
42
|
+
--sidebar-accent: 268 35% 30%;
|
|
43
|
+
--sidebar-accent-foreground: 275 100% 92%;
|
|
44
|
+
--sidebar-border: 268 35% 30%;
|
|
28
45
|
}
|
|
29
46
|
|
|
30
47
|
[data-theme="twilight"].dark {
|
|
@@ -52,4 +69,21 @@
|
|
|
52
69
|
--chart-3: 262 83% 66%;
|
|
53
70
|
--chart-4: 263 81% 58%;
|
|
54
71
|
--chart-5: 263 70% 50%;
|
|
72
|
+
|
|
73
|
+
/* Status colors - dark */
|
|
74
|
+
--success: 142 71% 45%;
|
|
75
|
+
--success-foreground: 0 0% 100%;
|
|
76
|
+
--warning: 38 92% 50%;
|
|
77
|
+
--warning-foreground: 0 0% 0%;
|
|
78
|
+
--info: 199 89% 48%;
|
|
79
|
+
--info-foreground: 0 0% 100%;
|
|
80
|
+
|
|
81
|
+
/* Sidebar colors - dark */
|
|
82
|
+
--sidebar-background: 270 45% 11%;
|
|
83
|
+
--sidebar-foreground: 275 100% 92%;
|
|
84
|
+
--sidebar-primary: 262 91% 76%;
|
|
85
|
+
--sidebar-primary-foreground: 270 45% 11%;
|
|
86
|
+
--sidebar-accent: 268 35% 30%;
|
|
87
|
+
--sidebar-accent-foreground: 275 100% 92%;
|
|
88
|
+
--sidebar-border: 268 35% 30%;
|
|
55
89
|
}
|