@wakastellar/ui 2.1.2 → 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/blocks/apm-overview/index.d.ts +58 -0
- package/dist/blocks/cicd-builder/index.d.ts +47 -0
- package/dist/blocks/cloud-cost-dashboard/index.d.ts +49 -0
- package/dist/blocks/container-orchestrator/index.d.ts +63 -0
- package/dist/blocks/database-admin/index.d.ts +84 -0
- package/dist/blocks/gitops-sync-status/index.d.ts +45 -0
- package/dist/blocks/incident-manager/index.d.ts +44 -0
- package/dist/blocks/index.d.ts +10 -0
- package/dist/blocks/infrastructure-map/index.d.ts +32 -0
- package/dist/blocks/on-call-schedule/index.d.ts +43 -0
- package/dist/blocks/release-notes/index.d.ts +49 -0
- package/dist/components/index.d.ts +34 -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-alert-panel/index.d.ts +45 -0
- package/dist/components/waka-artifact-list/index.d.ts +32 -0
- package/dist/components/waka-build-matrix/index.d.ts +36 -0
- package/dist/components/waka-config-comparator/index.d.ts +37 -0
- package/dist/components/waka-container-list/index.d.ts +51 -0
- package/dist/components/waka-content-recommendation/index.d.ts +23 -0
- package/dist/components/waka-database-card/index.d.ts +46 -0
- package/dist/components/waka-dependency-tree/index.d.ts +38 -0
- package/dist/components/waka-env-var-editor/index.d.ts +30 -0
- package/dist/components/waka-feature-flag-row/index.d.ts +45 -0
- package/dist/components/waka-kubernetes-overview/index.d.ts +98 -0
- package/dist/components/waka-log-viewer/index.d.ts +38 -0
- package/dist/components/waka-migration-list/index.d.ts +36 -0
- package/dist/components/waka-outstream-video/index.d.ts +24 -0
- package/dist/components/waka-pod-card/index.d.ts +73 -0
- package/dist/components/waka-query-explain/index.d.ts +48 -0
- package/dist/components/waka-secret-card/index.d.ts +43 -0
- package/dist/components/waka-security-scan-result/index.d.ts +45 -0
- package/dist/components/waka-service-graph/index.d.ts +44 -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-test-report/index.d.ts +60 -0
- package/dist/components/waka-trace-viewer/index.d.ts +36 -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 +251 -200
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +47315 -35823
- package/dist/utils/security.d.ts +96 -0
- package/package.json +4 -4
- package/src/blocks/apm-overview/index.tsx +672 -0
- package/src/blocks/cicd-builder/index.tsx +738 -0
- package/src/blocks/cloud-cost-dashboard/index.tsx +597 -0
- package/src/blocks/container-orchestrator/index.tsx +729 -0
- package/src/blocks/database-admin/index.tsx +679 -0
- package/src/blocks/gitops-sync-status/index.tsx +557 -0
- package/src/blocks/incident-manager/index.tsx +586 -0
- package/src/blocks/index.ts +119 -0
- package/src/blocks/infrastructure-map/index.tsx +638 -0
- package/src/blocks/on-call-schedule/index.tsx +615 -0
- package/src/blocks/release-notes/index.tsx +643 -0
- package/src/blocks/sidebar/index.tsx +6 -6
- package/src/components/DataTable/templates/index.tsx +3 -2
- package/src/components/index.ts +283 -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-alert-panel/index.tsx +493 -0
- package/src/components/waka-artifact-list/index.tsx +416 -0
- package/src/components/waka-badge-showcase/index.tsx +12 -11
- package/src/components/waka-build-matrix/index.tsx +396 -0
- package/src/components/waka-command-bar/index.tsx +2 -1
- package/src/components/waka-config-comparator/index.tsx +416 -0
- package/src/components/waka-container-list/index.tsx +475 -0
- package/src/components/waka-content-recommendation/index.tsx +294 -0
- package/src/components/waka-cost-breakdown/index.tsx +10 -10
- package/src/components/waka-database-card/index.tsx +473 -0
- package/src/components/waka-dependency-tree/index.tsx +542 -0
- package/src/components/waka-env-var-editor/index.tsx +417 -0
- package/src/components/waka-feature-flag-row/index.tsx +386 -0
- package/src/components/waka-funnel-chart/index.tsx +8 -8
- package/src/components/waka-health-pulse/index.tsx +6 -6
- package/src/components/waka-kubernetes-overview/index.tsx +536 -0
- package/src/components/waka-leaderboard/index.tsx +9 -9
- package/src/components/waka-log-viewer/index.tsx +386 -0
- package/src/components/waka-loot-box/index.tsx +20 -20
- package/src/components/waka-migration-list/index.tsx +487 -0
- package/src/components/waka-outstream-video/index.tsx +240 -0
- package/src/components/waka-player-card/index.tsx +5 -5
- package/src/components/waka-pod-card/index.tsx +528 -0
- package/src/components/waka-query-explain/index.tsx +657 -0
- 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-secret-card/index.tsx +371 -0
- package/src/components/waka-security-scan-result/index.tsx +473 -0
- package/src/components/waka-server-rack/index.tsx +28 -27
- package/src/components/waka-service-graph/index.tsx +445 -0
- 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-test-report/index.tsx +469 -0
- package/src/components/waka-trace-viewer/index.tsx +490 -0
- 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
|
}
|