@vadimcomanescu/nadicode-design-system 2.0.9 → 4.0.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.
Files changed (136) hide show
  1. package/.agents/skills/seed/SKILL.md +19 -10
  2. package/.agents/skills/seed/contract.md +9 -2
  3. package/.agents/skills/seed/references/blocks.md +5 -5
  4. package/.agents/skills/seed/references/components.md +2 -2
  5. package/.agents/skills/seed/references/nextjs.md +2 -2
  6. package/README.md +3 -3
  7. package/contracts/consumer-intent-map.json +1 -2
  8. package/contracts/release-governance-baseline.json +3 -37
  9. package/dist/catalog/catalog.d.ts +2220 -0
  10. package/dist/catalog/catalog.js +1913 -0
  11. package/dist/catalog/components.d.ts +201 -0
  12. package/dist/catalog/components.js +407 -0
  13. package/dist/catalog/types.d.ts +4 -0
  14. package/dist/catalog/types.js +1 -0
  15. package/dist/chunk-224KPIOG.js +60 -0
  16. package/dist/chunk-25BOZMXA.js +169 -0
  17. package/dist/chunk-32OLQ7FC.js +130 -0
  18. package/dist/chunk-3JJBJ4VR.js +47 -0
  19. package/dist/chunk-3U56FXYC.js +30 -0
  20. package/dist/chunk-4MWKE6F5.js +86 -0
  21. package/dist/chunk-6HGSU24S.js +94 -0
  22. package/dist/chunk-7IADIXDV.js +168 -0
  23. package/dist/chunk-7NS3VFD7.js +86 -0
  24. package/dist/chunk-7XLZCXUL.js +175 -0
  25. package/dist/chunk-ALA6OM7K.js +134 -0
  26. package/dist/chunk-AN5TW4AL.js +50 -0
  27. package/dist/chunk-AWZFQQGN.js +167 -0
  28. package/dist/chunk-BRCBJ3S4.js +42 -0
  29. package/dist/chunk-BRICSLHJ.js +30 -0
  30. package/dist/chunk-BYEHHZZN.js +115 -0
  31. package/dist/chunk-C33GUEDY.js +149 -0
  32. package/dist/chunk-CUDMDYKE.js +150 -0
  33. package/dist/chunk-CVTMWSNS.js +145 -0
  34. package/dist/chunk-DEZXWNYF.js +165 -0
  35. package/dist/chunk-DNJEVMDY.js +40 -0
  36. package/dist/chunk-DNJOBML6.js +66 -0
  37. package/dist/chunk-FTGFOK6T.js +69 -0
  38. package/dist/chunk-HFBJ6L6O.js +104 -0
  39. package/dist/chunk-HPTHS7SX.js +52 -0
  40. package/dist/chunk-KNR3WB5C.js +147 -0
  41. package/dist/chunk-KQ7ZC6EM.js +66 -0
  42. package/dist/chunk-LGW7FVG5.js +83 -0
  43. package/dist/chunk-LP6ZZYOQ.js +36 -0
  44. package/dist/chunk-LV4P7WVM.js +54 -0
  45. package/dist/chunk-MGSGCARB.js +164 -0
  46. package/dist/chunk-N3YFYMNZ.js +73 -0
  47. package/dist/chunk-Q5IYBNA7.js +56 -0
  48. package/dist/chunk-QJCE7NZF.js +85 -0
  49. package/dist/chunk-QW5II6YK.js +96 -0
  50. package/dist/chunk-RMGDDOCD.js +138 -0
  51. package/dist/chunk-RNCX4JIE.js +70 -0
  52. package/dist/chunk-RWCL5OPX.js +112 -0
  53. package/dist/chunk-S5OY2B63.js +28 -0
  54. package/dist/chunk-SIQNG72C.js +257 -0
  55. package/dist/chunk-SP7NIZFP.js +117 -0
  56. package/dist/chunk-SWRJWMGG.js +30 -0
  57. package/dist/chunk-TCQIJ3DO.js +85 -0
  58. package/dist/chunk-TPJ6JJ2F.js +290 -0
  59. package/dist/chunk-TUJZMJXW.js +72 -0
  60. package/dist/chunk-UR43ANYS.js +159 -0
  61. package/dist/chunk-VRGPG2YN.js +79 -0
  62. package/dist/chunk-WSBLCWY7.js +126 -0
  63. package/dist/chunk-XKKFSFYO.js +93 -0
  64. package/dist/chunk-XO7TBM47.js +32 -0
  65. package/dist/chunk-YDYDGG5K.js +132 -0
  66. package/dist/chunk-YMJOUYMT.js +171 -0
  67. package/dist/chunk-Z2WION42.js +32 -0
  68. package/dist/chunk-ZFKSVEYW.js +35 -0
  69. package/dist/components/blocks/AgentProfileGridBlock.js +8 -86
  70. package/dist/components/blocks/AgentRunOverviewBlock.js +8 -147
  71. package/dist/components/blocks/AgentWorkbenchBlock.js +15 -257
  72. package/dist/components/blocks/AudioVisualizerBlock.js +2 -50
  73. package/dist/components/blocks/AuthLayout.js +9 -73
  74. package/dist/components/blocks/BannerBlock.js +8 -66
  75. package/dist/components/blocks/BarChartBlock.js +5 -47
  76. package/dist/components/blocks/ChartBlock.js +7 -54
  77. package/dist/components/blocks/ChartCollectionBlock.js +11 -171
  78. package/dist/components/blocks/ChatLayout.js +12 -126
  79. package/dist/components/blocks/CreateBlock.js +9 -104
  80. package/dist/components/blocks/DataGridBlock.js +9 -117
  81. package/dist/components/blocks/DirectoryBlock.js +12 -85
  82. package/dist/components/blocks/FeatureGridBlock.js +6 -56
  83. package/dist/components/blocks/GalleryBlock.js +6 -69
  84. package/dist/components/blocks/HeroSectionBlock.js +10 -134
  85. package/dist/components/blocks/IntegrationsBlock.js +13 -94
  86. package/dist/components/blocks/InteractiveAreaChartBlock.js +5 -290
  87. package/dist/components/blocks/KanbanDemoBlock.js +8 -145
  88. package/dist/components/blocks/LogoCloud.js +4 -35
  89. package/dist/components/blocks/NavUser.js +5 -85
  90. package/dist/components/blocks/NotFoundBlock.js +8 -32
  91. package/dist/components/blocks/OnboardingBlock.js +7 -66
  92. package/dist/components/blocks/SettingsLayout.js +13 -86
  93. package/dist/components/blocks/SignUpBlock.js +8 -168
  94. package/dist/components/blocks/SolutionShowcaseBlock.js +11 -112
  95. package/dist/components/blocks/StatsBlock.js +6 -60
  96. package/dist/components/blocks/UsageDonutBlock.js +5 -79
  97. package/dist/components/blocks/WizardBlock.js +12 -93
  98. package/dist/components/blocks/user/InviteUserModal.js +10 -132
  99. package/dist/components/page-kits/AccountLockedPageKit.js +3 -40
  100. package/dist/components/page-kits/AgentsChatPageKit.js +11 -159
  101. package/dist/components/page-kits/AnalyticsPageKit.js +12 -150
  102. package/dist/components/page-kits/BlogContentPageKit.js +12 -167
  103. package/dist/components/page-kits/CheckoutPageKit.js +9 -83
  104. package/dist/components/page-kits/CompanySuitePageKit.js +9 -96
  105. package/dist/components/page-kits/DashboardPageKit.js +11 -149
  106. package/dist/components/page-kits/ErrorPageKit.js +5 -52
  107. package/dist/components/page-kits/KanbanBoardPageKit.js +7 -169
  108. package/dist/components/page-kits/LandingPageKit.js +11 -72
  109. package/dist/components/page-kits/LoginPageKit.js +3 -32
  110. package/dist/components/page-kits/OnboardingPageKit.js +6 -115
  111. package/dist/components/page-kits/PricingPageKit.js +12 -138
  112. package/dist/components/page-kits/ProfileSettingsPageKit.js +10 -164
  113. package/dist/components/page-kits/RecoveryPageKit.js +3 -42
  114. package/dist/components/page-kits/ResetPageKit.js +3 -36
  115. package/dist/components/page-kits/ServiceSuitePageKit.js +10 -175
  116. package/dist/components/page-kits/SignupPageKit.js +3 -30
  117. package/dist/components/page-kits/SuccessPageKit.js +4 -30
  118. package/dist/components/page-kits/TeamSettingsPageKit.js +9 -165
  119. package/dist/components/page-kits/TwoFactorPageKit.js +4 -28
  120. package/dist/components/page-kits/VerifyEmailPageKit.js +4 -30
  121. package/dist/components/page-kits/VoiceAgentsPageKit.js +13 -130
  122. package/dist/components/ui/CheckoutForm.js +5 -70
  123. package/eslint-rules/nadicode/config.js +1 -0
  124. package/eslint-rules/nadicode/data/catalog-names.json +93 -0
  125. package/eslint-rules/nadicode/index.js +2 -0
  126. package/eslint-rules/nadicode/rules/__tests__/require-catalog-component.test.js +77 -0
  127. package/eslint-rules/nadicode/rules/require-catalog-component.js +79 -0
  128. package/package.json +18 -25
  129. package/contracts/block-props-schemas.json +0 -2186
  130. package/contracts/component-props-schemas.json +0 -8322
  131. package/contracts/consumer-contract.json +0 -178
  132. package/contracts/page-kit-props-schemas.json +0 -1894
  133. package/contracts/public-surface-registry.json +0 -5822
  134. package/contracts/public-surface-registry.schema.json +0 -219
  135. package/contracts/spec-manifest.json +0 -46
  136. package/dist/catalog.json +0 -5221
@@ -1,83 +1,19 @@
1
1
  'use client';
2
- import { LoginBlock } from '../../chunk-RGE5OQMZ.js';
3
- import { StaggerChildren } from '../../chunk-DQPK2XRL.js';
4
- import { Heading } from '../../chunk-WI547C47.js';
2
+ export { AuthLayout } from '../../chunk-N3YFYMNZ.js';
3
+ import '../../chunk-RGE5OQMZ.js';
4
+ import '../../chunk-DQPK2XRL.js';
5
+ import '../../chunk-WI547C47.js';
5
6
  import '../../chunk-RX5EUODB.js';
6
- import { siteConfig } from '../../chunk-A7NUWD76.js';
7
+ import '../../chunk-A7NUWD76.js';
7
8
  import '../../chunk-AP3XXYAY.js';
8
9
  import '../../chunk-LIBXYD5Q.js';
9
10
  import '../../chunk-DJTF3XFB.js';
10
11
  import '../../chunk-AH6YSYYT.js';
11
12
  import '../../chunk-7KIDDF3I.js';
12
- import { AnimatedBackground } from '../../chunk-4GSFNJAJ.js';
13
- import { useMotionConfig, m, motionSpring } from '../../chunk-PD2YEH3H.js';
13
+ import '../../chunk-4GSFNJAJ.js';
14
+ import '../../chunk-PD2YEH3H.js';
14
15
  import '../../chunk-CRY67BIF.js';
15
16
  import '../../chunk-HJC6U46F.js';
16
- import { SparklesIcon } from '../../chunk-CGUCH322.js';
17
+ import '../../chunk-CGUCH322.js';
17
18
  import '../../chunk-ASKFAYYR.js';
18
- import { cn } from '../../chunk-QYZT24TS.js';
19
- import { jsxs, jsx } from 'react/jsx-runtime';
20
-
21
- var FORM_ENTRANCE_Y = 12;
22
- var VISUAL_STAGGER_MS = 100;
23
- var defaultLabels = {
24
- headline: "Build the future, faster.",
25
- quote: "This library has saved me countless hours of work and helped me deliver stunning designs to my clients faster than ever before.",
26
- quoteAttribution: "Sofia Davis, Lead Engineer"
27
- };
28
- function AuthLayout({
29
- mode = "login",
30
- action,
31
- error,
32
- googleAction,
33
- labels: userLabels,
34
- className
35
- }) {
36
- const motionConfig = useMotionConfig();
37
- const labels = { ...defaultLabels, ...userLabels };
38
- return /* @__PURE__ */ jsxs("div", { className: cn("w-full min-h-dvh lg:h-dvh lg:min-h-[800px] grid lg:grid-cols-2 overflow-hidden bg-background", className), children: [
39
- /* @__PURE__ */ jsxs("div", { className: "hidden lg:flex relative h-full w-full flex-col bg-muted text-overlay-foreground dark:border-r border-border/50", children: [
40
- /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-surface-active" }),
41
- /* @__PURE__ */ jsx("div", { className: "absolute inset-0", children: /* @__PURE__ */ jsx(AnimatedBackground, {}) }),
42
- /* @__PURE__ */ jsxs("div", { className: "relative z-20 flex items-center text-lg font-medium p-8", children: [
43
- /* @__PURE__ */ jsx(SparklesIcon, { size: 24, className: "mr-2 text-accent" }),
44
- siteConfig.name
45
- ] }),
46
- /* @__PURE__ */ jsxs(StaggerChildren, { staggerMs: VISUAL_STAGGER_MS, className: "relative z-20 m-auto max-w-lg text-center space-y-4", children: [
47
- /* @__PURE__ */ jsx(Heading, { level: 2, size: "display", className: "font-bold bg-clip-text text-transparent bg-gradient-to-b from-overlay-foreground to-overlay-foreground/60 relative", children: labels.headline }),
48
- /* @__PURE__ */ jsxs("blockquote", { className: "text-lg text-text-tertiary relative", children: [
49
- /* @__PURE__ */ jsxs("p", { children: [
50
- '"',
51
- labels.quote,
52
- '"'
53
- ] }),
54
- /* @__PURE__ */ jsx("footer", { className: "mt-2 text-sm", children: labels.quoteAttribution })
55
- ] })
56
- ] })
57
- ] }),
58
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center p-8 bg-background relative overflow-y-auto", children: [
59
- /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-background via-background to-accent/5 pointer-events-none" }),
60
- /* @__PURE__ */ jsx(
61
- m.div,
62
- {
63
- initial: { opacity: 0, y: FORM_ENTRANCE_Y },
64
- animate: { opacity: 1, y: 0 },
65
- transition: { ...motionSpring.gentle, ...motionConfig },
66
- className: "relative z-10 w-full max-w-sm",
67
- children: /* @__PURE__ */ jsx(
68
- LoginBlock,
69
- {
70
- className: "w-full",
71
- type: mode === "signup" ? "signup" : "login",
72
- action,
73
- error,
74
- googleAction
75
- }
76
- )
77
- }
78
- )
79
- ] })
80
- ] });
81
- }
82
-
83
- export { AuthLayout };
19
+ import '../../chunk-QYZT24TS.js';
@@ -1,7 +1,8 @@
1
1
  'use client';
2
- import { Typography } from '../../chunk-N53OMWW2.js';
3
- import { Button } from '../../chunk-7KIDDF3I.js';
4
- import { useMotionConfig, m, motionSpring } from '../../chunk-PD2YEH3H.js';
2
+ export { BannerBlock } from '../../chunk-DNJOBML6.js';
3
+ import '../../chunk-N53OMWW2.js';
4
+ import '../../chunk-7KIDDF3I.js';
5
+ import '../../chunk-PD2YEH3H.js';
5
6
  import '../../chunk-CRY67BIF.js';
6
7
  import '../../chunk-HJC6U46F.js';
7
8
  import '../../chunk-GO35FTNJ.js';
@@ -46,7 +47,7 @@ import '../../chunk-2IZC7HSV.js';
46
47
  import '../../chunk-2SDZMTB2.js';
47
48
  import '../../chunk-IQEBXXB5.js';
48
49
  import '../../chunk-AZUJNRQU.js';
49
- import { InfoIcon } from '../../chunk-W3B3UOEG.js';
50
+ import '../../chunk-W3B3UOEG.js';
50
51
  import '../../chunk-ACRVOD7W.js';
51
52
  import '../../chunk-QSU23VYZ.js';
52
53
  import '../../chunk-BJYCQ2NV.js';
@@ -106,73 +107,14 @@ import '../../chunk-R3AO6AZM.js';
106
107
  import '../../chunk-GCUTJI7M.js';
107
108
  import '../../chunk-CXACRCZ4.js';
108
109
  import '../../chunk-P6IRHPFM.js';
109
- import { AlertTriangleIcon } from '../../chunk-SXHYB7JB.js';
110
+ import '../../chunk-SXHYB7JB.js';
110
111
  import '../../chunk-BFLN54VR.js';
111
112
  import '../../chunk-ONGJ7AC2.js';
112
113
  import '../../chunk-UHXGBV5N.js';
113
- import { XIcon } from '../../chunk-UIUMTURU.js';
114
+ import '../../chunk-UIUMTURU.js';
114
115
  import '../../chunk-PRUXIDBD.js';
115
116
  import '../../chunk-NURPUVUV.js';
116
117
  import '../../chunk-TV4RSQH4.js';
117
118
  import '../../chunk-HJBXUXTD.js';
118
119
  import '../../chunk-ASKFAYYR.js';
119
- import { cn } from '../../chunk-QYZT24TS.js';
120
- import { useState } from 'react';
121
- import { AnimatePresence } from 'motion/react';
122
- import { jsx, jsxs } from 'react/jsx-runtime';
123
-
124
- var variantStyles = {
125
- info: "border-info/30 bg-info/5 text-info",
126
- warning: "border-warning/30 bg-warning/5 text-warning",
127
- accent: "border-accent/30 bg-accent/5 text-accent"
128
- };
129
- var variantIcons = {
130
- info: /* @__PURE__ */ jsx(InfoIcon, { size: 16, className: "shrink-0" }),
131
- warning: /* @__PURE__ */ jsx(AlertTriangleIcon, { size: 16, className: "shrink-0" }),
132
- accent: /* @__PURE__ */ jsx(InfoIcon, { size: 16, className: "shrink-0" })
133
- };
134
- function BannerBlock({
135
- children,
136
- variant = "info",
137
- dismissible = true,
138
- onDismiss,
139
- className
140
- }) {
141
- const motionConfig = useMotionConfig();
142
- const [visible, setVisible] = useState(true);
143
- const handleDismiss = () => {
144
- setVisible(false);
145
- onDismiss?.();
146
- };
147
- return /* @__PURE__ */ jsx(AnimatePresence, { children: !!visible && /* @__PURE__ */ jsxs(
148
- m.div,
149
- {
150
- initial: { opacity: 0, y: -12 },
151
- animate: { opacity: 1, y: 0 },
152
- exit: { opacity: 0, y: -12 },
153
- transition: { ...motionSpring.snappy, ...motionConfig },
154
- className: cn(
155
- "flex items-center gap-4 rounded-lg border px-4 py-4",
156
- variantStyles[variant],
157
- className
158
- ),
159
- children: [
160
- variantIcons[variant],
161
- /* @__PURE__ */ jsx(Typography, { variant: "small", className: "flex-1 font-medium", children }),
162
- !!dismissible && /* @__PURE__ */ jsx(
163
- Button,
164
- {
165
- variant: "ghost",
166
- size: "icon",
167
- className: "shrink-0 hover:bg-transparent",
168
- onClick: handleDismiss,
169
- "aria-label": "Dismiss",
170
- children: /* @__PURE__ */ jsx(XIcon, { size: 14 })
171
- }
172
- )
173
- ]
174
- }
175
- ) });
176
- }
177
-
178
- export { BannerBlock };
120
+ import '../../chunk-QYZT24TS.js';
@@ -1,52 +1,10 @@
1
1
  'use client';
2
- import { BarChart } from '../../chunk-UWHKZX4Y.js';
2
+ export { BarChartBlock } from '../../chunk-3JJBJ4VR.js';
3
+ import '../../chunk-UWHKZX4Y.js';
3
4
  import '../../chunk-WSU2PCA2.js';
4
- import { Empty, EmptyTitle, EmptyDescription } from '../../chunk-55HD4L6G.js';
5
- import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '../../chunk-AH6YSYYT.js';
5
+ import '../../chunk-55HD4L6G.js';
6
+ import '../../chunk-AH6YSYYT.js';
6
7
  import '../../chunk-PD2YEH3H.js';
7
8
  import '../../chunk-CRY67BIF.js';
8
9
  import '../../chunk-HJC6U46F.js';
9
- import { cn } from '../../chunk-QYZT24TS.js';
10
- import { jsxs, jsx } from 'react/jsx-runtime';
11
-
12
- var defaultData = [
13
- { name: "Jan", total: 3200, prediction: 1800 },
14
- { name: "Feb", total: 4100, prediction: 2200 },
15
- { name: "Mar", total: 2800, prediction: 1500 },
16
- { name: "Apr", total: 4600, prediction: 2900 },
17
- { name: "May", total: 3500, prediction: 2100 },
18
- { name: "Jun", total: 5200, prediction: 3100 }
19
- ];
20
- var defaultConfig = {
21
- total: { label: "Total", color: "rgb(var(--chart-1))" },
22
- prediction: { label: "Prediction", color: "rgb(var(--chart-2))" }
23
- };
24
- function BarChartBlock({
25
- data = defaultData,
26
- config = defaultConfig,
27
- title = "Token Usage",
28
- description = "Monthly inference token consumption",
29
- className
30
- }) {
31
- return /* @__PURE__ */ jsxs(Card, { className: cn("w-full", className), children: [
32
- /* @__PURE__ */ jsxs(CardHeader, { children: [
33
- /* @__PURE__ */ jsx(CardTitle, { children: title }),
34
- /* @__PURE__ */ jsx(CardDescription, { children: description })
35
- ] }),
36
- /* @__PURE__ */ jsx(CardContent, { className: "pb-4", children: data.length === 0 ? /* @__PURE__ */ jsxs(Empty, { className: "min-h-[240px]", children: [
37
- /* @__PURE__ */ jsx(EmptyTitle, { children: "No chart data" }),
38
- /* @__PURE__ */ jsx(EmptyDescription, { children: "Token usage will appear here once analytics data is available." })
39
- ] }) : /* @__PURE__ */ jsx(
40
- BarChart,
41
- {
42
- data,
43
- config,
44
- indexKey: "name",
45
- bars: ["total", "prediction"],
46
- stacked: true
47
- }
48
- ) })
49
- ] });
50
- }
51
-
52
- export { BarChartBlock };
10
+ import '../../chunk-QYZT24TS.js';
@@ -1,8 +1,9 @@
1
1
  'use client';
2
- import { BarChart } from '../../chunk-UWHKZX4Y.js';
2
+ export { ChartBlock } from '../../chunk-LV4P7WVM.js';
3
+ import '../../chunk-UWHKZX4Y.js';
3
4
  import '../../chunk-WSU2PCA2.js';
4
- import { ScrollFadeIn } from '../../chunk-I23DDSU7.js';
5
- import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '../../chunk-AH6YSYYT.js';
5
+ import '../../chunk-I23DDSU7.js';
6
+ import '../../chunk-AH6YSYYT.js';
6
7
  import '../../chunk-PD2YEH3H.js';
7
8
  import '../../chunk-CRY67BIF.js';
8
9
  import '../../chunk-HJC6U46F.js';
@@ -13,7 +14,7 @@ import '../../chunk-3CLXYQKB.js';
13
14
  import '../../chunk-S4GKGKON.js';
14
15
  import '../../chunk-LCDDAE7J.js';
15
16
  import '../../chunk-R674XI7C.js';
16
- import { SmartphoneIcon } from '../../chunk-HNY45VUQ.js';
17
+ import '../../chunk-HNY45VUQ.js';
17
18
  import '../../chunk-BPCCTJSK.js';
18
19
  import '../../chunk-CGUCH322.js';
19
20
  import '../../chunk-ELKIUARM.js';
@@ -30,7 +31,7 @@ import '../../chunk-UBIGDGOP.js';
30
31
  import '../../chunk-ALMGJVMT.js';
31
32
  import '../../chunk-QPXTBZWN.js';
32
33
  import '../../chunk-4NXZIMYZ.js';
33
- import { MonitorIcon } from '../../chunk-R5XP45PD.js';
34
+ import '../../chunk-R5XP45PD.js';
34
35
  import '../../chunk-G5EO5FWC.js';
35
36
  import '../../chunk-NCULQXJE.js';
36
37
  import '../../chunk-VDYPDMYR.js';
@@ -118,52 +119,4 @@ import '../../chunk-NURPUVUV.js';
118
119
  import '../../chunk-TV4RSQH4.js';
119
120
  import '../../chunk-HJBXUXTD.js';
120
121
  import '../../chunk-ASKFAYYR.js';
121
- import { cn } from '../../chunk-QYZT24TS.js';
122
- import { jsx, jsxs } from 'react/jsx-runtime';
123
-
124
- var defaultData = [
125
- { month: "January", desktop: 186, mobile: 80 },
126
- { month: "February", desktop: 305, mobile: 200 },
127
- { month: "March", desktop: 237, mobile: 120 },
128
- { month: "April", desktop: 73, mobile: 190 },
129
- { month: "May", desktop: 209, mobile: 130 },
130
- { month: "June", desktop: 214, mobile: 140 }
131
- ];
132
- var defaultConfig = {
133
- desktop: {
134
- label: "Desktop",
135
- color: "rgb(var(--chart-1))",
136
- icon: ({ ...props }) => /* @__PURE__ */ jsx(MonitorIcon, { size: 16, ...props })
137
- },
138
- mobile: {
139
- label: "Mobile",
140
- color: "rgb(var(--chart-2))",
141
- icon: ({ ...props }) => /* @__PURE__ */ jsx(SmartphoneIcon, { size: 16, ...props })
142
- }
143
- };
144
- function ChartBlock({
145
- data = defaultData,
146
- config = defaultConfig,
147
- title = "Analytics",
148
- description = "January - June 2024",
149
- className
150
- }) {
151
- return /* @__PURE__ */ jsx(ScrollFadeIn, { children: /* @__PURE__ */ jsxs(Card, { className: cn(className), children: [
152
- /* @__PURE__ */ jsxs(CardHeader, { children: [
153
- /* @__PURE__ */ jsx(CardTitle, { children: title }),
154
- /* @__PURE__ */ jsx(CardDescription, { children: description })
155
- ] }),
156
- /* @__PURE__ */ jsx(CardContent, { children: data.length > 0 && /* @__PURE__ */ jsx(
157
- BarChart,
158
- {
159
- data,
160
- config,
161
- indexKey: "month",
162
- bars: ["desktop", "mobile"],
163
- className: "min-h-[200px] w-full"
164
- }
165
- ) })
166
- ] }) });
167
- }
168
-
169
- export { ChartBlock };
122
+ import '../../chunk-QYZT24TS.js';
@@ -1,177 +1,17 @@
1
1
  'use client';
2
- import { HeatmapChartBlock } from '../../chunk-VDONTZZX.js';
3
- import { RadialBarChart } from '../../chunk-WAP7DBSW.js';
4
- import { AreaChart } from '../../chunk-IPXL7WX7.js';
5
- import { BarChart } from '../../chunk-UWHKZX4Y.js';
2
+ export { ChartCollectionBlock } from '../../chunk-YMJOUYMT.js';
3
+ import '../../chunk-VDONTZZX.js';
4
+ import '../../chunk-WAP7DBSW.js';
5
+ import '../../chunk-IPXL7WX7.js';
6
+ import '../../chunk-UWHKZX4Y.js';
6
7
  import '../../chunk-XCZIF75R.js';
7
- import { LineChart } from '../../chunk-HRIEX66J.js';
8
- import { PieChart } from '../../chunk-U7V6TREO.js';
9
- import { RadarChart } from '../../chunk-LDW4LHUM.js';
10
- import { StaggerChildren } from '../../chunk-DQPK2XRL.js';
8
+ import '../../chunk-HRIEX66J.js';
9
+ import '../../chunk-U7V6TREO.js';
10
+ import '../../chunk-LDW4LHUM.js';
11
+ import '../../chunk-DQPK2XRL.js';
11
12
  import '../../chunk-WSU2PCA2.js';
12
- import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '../../chunk-AH6YSYYT.js';
13
+ import '../../chunk-AH6YSYYT.js';
13
14
  import '../../chunk-PD2YEH3H.js';
14
15
  import '../../chunk-CRY67BIF.js';
15
16
  import '../../chunk-HJC6U46F.js';
16
- import { cn } from '../../chunk-QYZT24TS.js';
17
- import { jsxs, jsx } from 'react/jsx-runtime';
18
-
19
- var areaData = [
20
- { month: "Jan", desktop: 186, mobile: 80 },
21
- { month: "Feb", desktop: 305, mobile: 200 },
22
- { month: "Mar", desktop: 237, mobile: 120 },
23
- { month: "Apr", desktop: 73, mobile: 190 },
24
- { month: "May", desktop: 209, mobile: 130 },
25
- { month: "Jun", desktop: 214, mobile: 140 }
26
- ];
27
- var chartData = [
28
- { browser: "chrome", visitors: 275, fill: "rgb(var(--chart-1))" },
29
- { browser: "safari", visitors: 200, fill: "rgb(var(--chart-2))" },
30
- { browser: "firefox", visitors: 187, fill: "rgb(var(--chart-3))" },
31
- { browser: "edge", visitors: 173, fill: "rgb(var(--chart-4))" },
32
- { browser: "other", visitors: 90, fill: "rgb(var(--chart-5))" }
33
- ];
34
- var radarData = [
35
- { month: "January", desktop: 186 },
36
- { month: "February", desktop: 305 },
37
- { month: "March", desktop: 237 },
38
- { month: "April", desktop: 273 },
39
- { month: "May", desktop: 209 },
40
- { month: "June", desktop: 214 }
41
- ];
42
- var radialData = [
43
- { browser: "chrome", visitors: 275, fill: "rgb(var(--chart-1))" },
44
- { browser: "safari", visitors: 200, fill: "rgb(var(--chart-2))" },
45
- { browser: "firefox", visitors: 187, fill: "rgb(var(--chart-3))" },
46
- { browser: "edge", visitors: 173, fill: "rgb(var(--chart-4))" },
47
- { browser: "other", visitors: 90, fill: "rgb(var(--chart-5))" }
48
- ];
49
- var areaConfig = {
50
- desktop: {
51
- label: "Desktop",
52
- color: "rgb(var(--chart-1))"
53
- }
54
- };
55
- var barLineConfig = {
56
- desktop: {
57
- label: "Desktop",
58
- color: "rgb(var(--chart-1))"
59
- }
60
- };
61
- var pieConfig = {
62
- chrome: { label: "Chrome", color: "rgb(var(--chart-1))" },
63
- safari: { label: "Safari", color: "rgb(var(--chart-2))" },
64
- firefox: { label: "Firefox", color: "rgb(var(--chart-3))" },
65
- edge: { label: "Edge", color: "rgb(var(--chart-4))" },
66
- other: { label: "Other", color: "rgb(var(--chart-5))" }
67
- };
68
- var radarConfig = {
69
- desktop: {
70
- label: "Desktop",
71
- color: "rgb(var(--chart-1))"
72
- }
73
- };
74
- var radialConfig = {
75
- chrome: { label: "Chrome", color: "rgb(var(--chart-1))" },
76
- safari: { label: "Safari", color: "rgb(var(--chart-2))" },
77
- firefox: { label: "Firefox", color: "rgb(var(--chart-3))" },
78
- edge: { label: "Edge", color: "rgb(var(--chart-4))" },
79
- other: { label: "Other", color: "rgb(var(--chart-5))" }
80
- };
81
- function ChartCollectionBlock({ className }) {
82
- return /* @__PURE__ */ jsxs(StaggerChildren, { staggerMs: 100, className: cn("grid gap-6 md:grid-cols-2 lg:grid-cols-3", className), children: [
83
- /* @__PURE__ */ jsxs(Card, { children: [
84
- /* @__PURE__ */ jsxs(CardHeader, { children: [
85
- /* @__PURE__ */ jsx(CardTitle, { children: "Area Chart" }),
86
- /* @__PURE__ */ jsx(CardDescription, { children: "Usage overview" })
87
- ] }),
88
- /* @__PURE__ */ jsx(CardContent, { children: areaData.length > 0 && /* @__PURE__ */ jsx(
89
- AreaChart,
90
- {
91
- data: areaData,
92
- config: areaConfig,
93
- indexKey: "month",
94
- areas: ["desktop"],
95
- className: "h-[250px] w-full",
96
- showLegend: false
97
- }
98
- ) })
99
- ] }),
100
- /* @__PURE__ */ jsxs(Card, { children: [
101
- /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Bar Chart" }) }),
102
- /* @__PURE__ */ jsx(CardContent, { children: areaData.length > 0 && /* @__PURE__ */ jsx(
103
- BarChart,
104
- {
105
- data: areaData,
106
- config: barLineConfig,
107
- indexKey: "month",
108
- bars: ["desktop"],
109
- className: "h-[250px] w-full",
110
- showLegend: false
111
- }
112
- ) })
113
- ] }),
114
- /* @__PURE__ */ jsxs(Card, { children: [
115
- /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Line Chart" }) }),
116
- /* @__PURE__ */ jsx(CardContent, { children: areaData.length > 0 && /* @__PURE__ */ jsx(
117
- LineChart,
118
- {
119
- data: areaData,
120
- config: barLineConfig,
121
- indexKey: "month",
122
- lines: ["desktop"],
123
- className: "h-[250px] w-full",
124
- showLegend: false
125
- }
126
- ) })
127
- ] }),
128
- /* @__PURE__ */ jsxs(Card, { children: [
129
- /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Pie Chart" }) }),
130
- /* @__PURE__ */ jsx(CardContent, { children: chartData.length > 0 && /* @__PURE__ */ jsx(
131
- PieChart,
132
- {
133
- data: chartData,
134
- config: pieConfig,
135
- dataKey: "visitors",
136
- nameKey: "browser",
137
- variant: "donut",
138
- innerRadius: 60,
139
- showLegend: false
140
- }
141
- ) })
142
- ] }),
143
- /* @__PURE__ */ jsxs(Card, { children: [
144
- /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Radar Chart" }) }),
145
- /* @__PURE__ */ jsx(CardContent, { children: radarData.length > 0 && /* @__PURE__ */ jsx(
146
- RadarChart,
147
- {
148
- data: radarData,
149
- config: radarConfig,
150
- indexKey: "month",
151
- series: ["desktop"],
152
- className: "h-[250px] w-full",
153
- showLegend: false
154
- }
155
- ) })
156
- ] }),
157
- /* @__PURE__ */ jsxs(Card, { children: [
158
- /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Radial Chart" }) }),
159
- /* @__PURE__ */ jsx(CardContent, { children: radialData.length > 0 && /* @__PURE__ */ jsx(
160
- RadialBarChart,
161
- {
162
- data: radialData,
163
- config: radialConfig,
164
- dataKey: "visitors",
165
- nameKey: "browser",
166
- innerRadius: 40,
167
- outerRadius: 100,
168
- className: "h-[250px] w-full",
169
- showLegend: false
170
- }
171
- ) })
172
- ] }),
173
- /* @__PURE__ */ jsx(HeatmapChartBlock, {})
174
- ] });
175
- }
176
-
177
- export { ChartCollectionBlock };
17
+ import '../../chunk-QYZT24TS.js';