@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.
Files changed (123) hide show
  1. package/dist/blocks/apm-overview/index.d.ts +58 -0
  2. package/dist/blocks/cicd-builder/index.d.ts +47 -0
  3. package/dist/blocks/cloud-cost-dashboard/index.d.ts +49 -0
  4. package/dist/blocks/container-orchestrator/index.d.ts +63 -0
  5. package/dist/blocks/database-admin/index.d.ts +84 -0
  6. package/dist/blocks/gitops-sync-status/index.d.ts +45 -0
  7. package/dist/blocks/incident-manager/index.d.ts +44 -0
  8. package/dist/blocks/index.d.ts +10 -0
  9. package/dist/blocks/infrastructure-map/index.d.ts +32 -0
  10. package/dist/blocks/on-call-schedule/index.d.ts +43 -0
  11. package/dist/blocks/release-notes/index.d.ts +49 -0
  12. package/dist/components/index.d.ts +34 -0
  13. package/dist/components/waka-ad-banner/index.d.ts +36 -0
  14. package/dist/components/waka-ad-fallback/index.d.ts +33 -0
  15. package/dist/components/waka-ad-inline/index.d.ts +15 -0
  16. package/dist/components/waka-ad-interstitial/index.d.ts +26 -0
  17. package/dist/components/waka-ad-placeholder/index.d.ts +17 -0
  18. package/dist/components/waka-ad-provider/index.d.ts +103 -0
  19. package/dist/components/waka-ad-sidebar/index.d.ts +18 -0
  20. package/dist/components/waka-ad-sticky-footer/index.d.ts +17 -0
  21. package/dist/components/waka-alert-panel/index.d.ts +45 -0
  22. package/dist/components/waka-artifact-list/index.d.ts +32 -0
  23. package/dist/components/waka-build-matrix/index.d.ts +36 -0
  24. package/dist/components/waka-config-comparator/index.d.ts +37 -0
  25. package/dist/components/waka-container-list/index.d.ts +51 -0
  26. package/dist/components/waka-content-recommendation/index.d.ts +23 -0
  27. package/dist/components/waka-database-card/index.d.ts +46 -0
  28. package/dist/components/waka-dependency-tree/index.d.ts +38 -0
  29. package/dist/components/waka-env-var-editor/index.d.ts +30 -0
  30. package/dist/components/waka-feature-flag-row/index.d.ts +45 -0
  31. package/dist/components/waka-kubernetes-overview/index.d.ts +98 -0
  32. package/dist/components/waka-log-viewer/index.d.ts +38 -0
  33. package/dist/components/waka-migration-list/index.d.ts +36 -0
  34. package/dist/components/waka-outstream-video/index.d.ts +24 -0
  35. package/dist/components/waka-pod-card/index.d.ts +73 -0
  36. package/dist/components/waka-query-explain/index.d.ts +48 -0
  37. package/dist/components/waka-secret-card/index.d.ts +43 -0
  38. package/dist/components/waka-security-scan-result/index.d.ts +45 -0
  39. package/dist/components/waka-service-graph/index.d.ts +44 -0
  40. package/dist/components/waka-sponsored-badge/index.d.ts +20 -0
  41. package/dist/components/waka-sponsored-card/index.d.ts +25 -0
  42. package/dist/components/waka-sponsored-feed/index.d.ts +31 -0
  43. package/dist/components/waka-test-report/index.d.ts +60 -0
  44. package/dist/components/waka-trace-viewer/index.d.ts +36 -0
  45. package/dist/components/waka-video-ad/index.d.ts +32 -0
  46. package/dist/components/waka-video-overlay/index.d.ts +26 -0
  47. package/dist/index.cjs.js +251 -200
  48. package/dist/index.d.ts +1 -0
  49. package/dist/index.es.js +47315 -35823
  50. package/dist/utils/security.d.ts +96 -0
  51. package/package.json +4 -4
  52. package/src/blocks/apm-overview/index.tsx +672 -0
  53. package/src/blocks/cicd-builder/index.tsx +738 -0
  54. package/src/blocks/cloud-cost-dashboard/index.tsx +597 -0
  55. package/src/blocks/container-orchestrator/index.tsx +729 -0
  56. package/src/blocks/database-admin/index.tsx +679 -0
  57. package/src/blocks/gitops-sync-status/index.tsx +557 -0
  58. package/src/blocks/incident-manager/index.tsx +586 -0
  59. package/src/blocks/index.ts +119 -0
  60. package/src/blocks/infrastructure-map/index.tsx +638 -0
  61. package/src/blocks/on-call-schedule/index.tsx +615 -0
  62. package/src/blocks/release-notes/index.tsx +643 -0
  63. package/src/blocks/sidebar/index.tsx +6 -6
  64. package/src/components/DataTable/templates/index.tsx +3 -2
  65. package/src/components/index.ts +283 -0
  66. package/src/components/waka-3d-pie-chart/index.tsx +11 -11
  67. package/src/components/waka-achievement-unlock/index.tsx +16 -16
  68. package/src/components/waka-ad-banner/index.tsx +275 -0
  69. package/src/components/waka-ad-fallback/index.tsx +181 -0
  70. package/src/components/waka-ad-inline/index.tsx +103 -0
  71. package/src/components/waka-ad-interstitial/index.tsx +278 -0
  72. package/src/components/waka-ad-placeholder/index.tsx +84 -0
  73. package/src/components/waka-ad-provider/index.tsx +329 -0
  74. package/src/components/waka-ad-sidebar/index.tsx +113 -0
  75. package/src/components/waka-ad-sticky-footer/index.tsx +125 -0
  76. package/src/components/waka-alert-panel/index.tsx +493 -0
  77. package/src/components/waka-artifact-list/index.tsx +416 -0
  78. package/src/components/waka-badge-showcase/index.tsx +12 -11
  79. package/src/components/waka-build-matrix/index.tsx +396 -0
  80. package/src/components/waka-command-bar/index.tsx +2 -1
  81. package/src/components/waka-config-comparator/index.tsx +416 -0
  82. package/src/components/waka-container-list/index.tsx +475 -0
  83. package/src/components/waka-content-recommendation/index.tsx +294 -0
  84. package/src/components/waka-cost-breakdown/index.tsx +10 -10
  85. package/src/components/waka-database-card/index.tsx +473 -0
  86. package/src/components/waka-dependency-tree/index.tsx +542 -0
  87. package/src/components/waka-env-var-editor/index.tsx +417 -0
  88. package/src/components/waka-feature-flag-row/index.tsx +386 -0
  89. package/src/components/waka-funnel-chart/index.tsx +8 -8
  90. package/src/components/waka-health-pulse/index.tsx +6 -6
  91. package/src/components/waka-kubernetes-overview/index.tsx +536 -0
  92. package/src/components/waka-leaderboard/index.tsx +9 -9
  93. package/src/components/waka-log-viewer/index.tsx +386 -0
  94. package/src/components/waka-loot-box/index.tsx +20 -20
  95. package/src/components/waka-migration-list/index.tsx +487 -0
  96. package/src/components/waka-outstream-video/index.tsx +240 -0
  97. package/src/components/waka-player-card/index.tsx +5 -5
  98. package/src/components/waka-pod-card/index.tsx +528 -0
  99. package/src/components/waka-query-explain/index.tsx +657 -0
  100. package/src/components/waka-quota-bar/index.tsx +4 -4
  101. package/src/components/waka-radar-score/index.tsx +10 -10
  102. package/src/components/waka-scratch-card/index.tsx +5 -4
  103. package/src/components/waka-secret-card/index.tsx +371 -0
  104. package/src/components/waka-security-scan-result/index.tsx +473 -0
  105. package/src/components/waka-server-rack/index.tsx +28 -27
  106. package/src/components/waka-service-graph/index.tsx +445 -0
  107. package/src/components/waka-sponsored-badge/index.tsx +97 -0
  108. package/src/components/waka-sponsored-card/index.tsx +275 -0
  109. package/src/components/waka-sponsored-feed/index.tsx +127 -0
  110. package/src/components/waka-spotlight/index.tsx +2 -1
  111. package/src/components/waka-success-explosion/index.tsx +4 -4
  112. package/src/components/waka-test-report/index.tsx +469 -0
  113. package/src/components/waka-trace-viewer/index.tsx +490 -0
  114. package/src/components/waka-video-ad/index.tsx +406 -0
  115. package/src/components/waka-video-overlay/index.tsx +257 -0
  116. package/src/components/waka-xp-bar/index.tsx +13 -13
  117. package/src/styles/base.css +16 -0
  118. package/src/styles/tailwind.preset.js +12 -0
  119. package/src/styles/themes/forest.css +16 -0
  120. package/src/styles/themes/monochrome.css +16 -0
  121. package/src/styles/themes/perpetuity.css +16 -0
  122. package/src/styles/themes/sunset.css +16 -0
  123. 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: "#3b82f6", // blue - Beginner
59
- 5: "#22c55e", // green - Novice
60
- 10: "#8b5cf6", // purple - Apprentice
61
- 20: "#f59e0b", // amber - Adept
62
- 30: "#ef4444", // red - Expert
63
- 50: "#ec4899", // pink - Master
64
- 75: "#06b6d4", // cyan - Grandmaster
65
- 100: "#fbbf24", // gold - Legend
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]] || "#3b82f6"
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
- "#ffffff",
126
- hexToRgba(baseColor, 0.8),
127
- "#fbbf24",
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, "#fbbf24", "#ffffff", "#ec4899", "#22c55e"]
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">
@@ -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
  }