xertica-ui 2.7.0 → 2.8.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 (228) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +19 -11
  3. package/bin/generate-tokens.ts +25 -9
  4. package/components/assistant/xertica-assistant/xertica-assistant.tsx +1 -1
  5. package/components/ui/button/button.test.tsx +2 -2
  6. package/components/ui/button/button.tsx +6 -6
  7. package/components/ui/card/card.tsx +14 -2
  8. package/components/ui/input/input.tsx +1 -1
  9. package/components/ui/input-otp/input-otp.tsx +1 -1
  10. package/components/ui/search/search.tsx +1 -1
  11. package/components/ui/select/select.tsx +2 -2
  12. package/components/ui/switch/switch.tsx +1 -1
  13. package/components/ui/textarea/textarea.tsx +1 -1
  14. package/contexts/BrandColorsContext.tsx +50 -2
  15. package/contexts/theme-data.ts +100 -3
  16. package/dist/AssistantChart-BFBJXVcm.js +3383 -0
  17. package/dist/AssistantChart-BTnE94FR.cjs +3551 -0
  18. package/dist/AssistantChart-BvccsQMx.cjs +3551 -0
  19. package/dist/AssistantChart-CkskcBVD.js +3383 -0
  20. package/dist/AssistantChart-CrPkO9ip.js +3383 -0
  21. package/dist/AssistantChart-DKz2O1R8.cjs +3551 -0
  22. package/dist/AssistantChart-DYL6UEvo.cjs +3551 -0
  23. package/dist/AssistantChart-keo-ogKi.js +3383 -0
  24. package/dist/AudioPlayer-AoU5MTiM.cjs +1282 -0
  25. package/dist/AudioPlayer-Bx1vrblm.js +1278 -0
  26. package/dist/AudioPlayer-D0-I6J3J.cjs +1282 -0
  27. package/dist/AudioPlayer-DIWX_Yg7.cjs +1282 -0
  28. package/dist/AudioPlayer-DrWJnS7c.js +1278 -0
  29. package/dist/AudioPlayer-_P-Z7pAK.js +1278 -0
  30. package/dist/BrandColorsContext-B25Bpr3b.cjs +819 -0
  31. package/dist/BrandColorsContext-BCieATdW.js +812 -0
  32. package/dist/BrandColorsContext-DP0DXAXS.js +824 -0
  33. package/dist/BrandColorsContext-DjpC9wR_.cjs +798 -0
  34. package/dist/BrandColorsContext-MpXFhte7.cjs +831 -0
  35. package/dist/BrandColorsContext-V3tOc-Zw.js +791 -0
  36. package/dist/CodeBlock-CK4rO6lM.js +221 -0
  37. package/dist/CodeBlock-CKXamfVd.cjs +223 -0
  38. package/dist/CodeBlock-CVmE7isS.cjs +223 -0
  39. package/dist/CodeBlock-D7i5-cMv.js +221 -0
  40. package/dist/CodeBlock-Dg56j2ut.cjs +223 -0
  41. package/dist/CodeBlock-Dt6nUQoo.js +221 -0
  42. package/dist/CustomTooltipContent-Bxynuq7T.js +33 -0
  43. package/dist/CustomTooltipContent-BzjOSA0P.cjs +54 -0
  44. package/dist/CustomTooltipContent-C-ZeCNsf.js +33 -0
  45. package/dist/CustomTooltipContent-CON_QrXm.cjs +54 -0
  46. package/dist/CustomTooltipContent-UR_n2QfW.js +33 -0
  47. package/dist/CustomTooltipContent-v1SXjoFn.cjs +54 -0
  48. package/dist/FeatureCard-4n_8a63v.cjs +497 -0
  49. package/dist/FeatureCard-BLiAWT3w.js +485 -0
  50. package/dist/FeatureCard-BXRW97Ef.cjs +497 -0
  51. package/dist/FeatureCard-CDgLlWE2.js +485 -0
  52. package/dist/FeatureCard-CgQ8lq-I.cjs +497 -0
  53. package/dist/FeatureCard-Cp8cVC6T.cjs +497 -0
  54. package/dist/FeatureCard-D0MwrTRP.js +485 -0
  55. package/dist/FeatureCard-uE5i0in_.js +485 -0
  56. package/dist/ImageWithFallback-BOh1FM3I.js +98 -0
  57. package/dist/ImageWithFallback-BQO7952C.js +98 -0
  58. package/dist/ImageWithFallback-BkMXHCvV.cjs +122 -0
  59. package/dist/ImageWithFallback-C72nwszA.cjs +122 -0
  60. package/dist/ImageWithFallback-CCUMDuEC.cjs +122 -0
  61. package/dist/ImageWithFallback-DQD5TTlY.js +98 -0
  62. package/dist/LanguageSelector-1XhM7R1i.cjs +48 -0
  63. package/dist/LanguageSelector-B3ZVNc55.js +46 -0
  64. package/dist/LanguageSelector-Cj6zl0CM.js +46 -0
  65. package/dist/LanguageSelector-DK1zD4VH.cjs +48 -0
  66. package/dist/LanguageSelector-DseCAa0p.cjs +48 -0
  67. package/dist/LanguageSelector-Du09anfM.js +46 -0
  68. package/dist/LanguageSelector-PZHlFfEs.cjs +48 -0
  69. package/dist/LanguageSelector-SB-NJSmx.js +46 -0
  70. package/dist/PasswordStrengthMeter-B3S6i_k4.cjs +179 -0
  71. package/dist/PasswordStrengthMeter-B8ky1nJI.js +173 -0
  72. package/dist/PasswordStrengthMeter-C5VEopH-.cjs +179 -0
  73. package/dist/PasswordStrengthMeter-CIm7_jNT.js +173 -0
  74. package/dist/PasswordStrengthMeter-DKSAbQzu.js +173 -0
  75. package/dist/PasswordStrengthMeter-DxLu54p-.cjs +179 -0
  76. package/dist/PasswordStrengthMeter-k-e9Pole.cjs +179 -0
  77. package/dist/PasswordStrengthMeter-pAi2viq5.js +173 -0
  78. package/dist/ThemeToggle-4pQbVkpK.js +215 -0
  79. package/dist/ThemeToggle-B6rIVLvC.cjs +219 -0
  80. package/dist/ThemeToggle-BUOTps5l.cjs +219 -0
  81. package/dist/ThemeToggle-CO5mPl6e.js +215 -0
  82. package/dist/ThemeToggle-DbZQ0JSV.cjs +219 -0
  83. package/dist/ThemeToggle-vLXEq2TS.js +215 -0
  84. package/dist/VerifyEmailPage-BTjI2c9n.js +2954 -0
  85. package/dist/VerifyEmailPage-CJGfDSOx.js +2954 -0
  86. package/dist/VerifyEmailPage-DOlZUNc0.cjs +2963 -0
  87. package/dist/VerifyEmailPage-DQPRl_RJ.js +2954 -0
  88. package/dist/VerifyEmailPage-DrdqMbLC.cjs +2963 -0
  89. package/dist/VerifyEmailPage-hyDfeCRa.cjs +2963 -0
  90. package/dist/VerifyEmailPage-kKSXl8vu.cjs +2963 -0
  91. package/dist/VerifyEmailPage-w4N-bDhU.js +2954 -0
  92. package/dist/XerticaOrbe-B9tegV1n.js +1925 -0
  93. package/dist/XerticaOrbe-BQ_NjwPS.cjs +1927 -0
  94. package/dist/XerticaOrbe-BdUX171Q.cjs +1927 -0
  95. package/dist/XerticaOrbe-BdlKXRHU.cjs +1927 -0
  96. package/dist/XerticaOrbe-CByPAFE5.js +1925 -0
  97. package/dist/XerticaOrbe-Ccu9eFMu.js +1925 -0
  98. package/dist/XerticaProvider-BVid1oqn.cjs +46 -0
  99. package/dist/XerticaProvider-Bz_YfNY4.js +44 -0
  100. package/dist/XerticaProvider-CtvYfRbZ.cjs +46 -0
  101. package/dist/XerticaProvider-DMiyExQS.js +44 -0
  102. package/dist/XerticaProvider-DP2lzKip.cjs +46 -0
  103. package/dist/XerticaProvider-De79hhgp.js +44 -0
  104. package/dist/XerticaProvider-Dkk1Vbsy.js +44 -0
  105. package/dist/XerticaProvider-EdzH9Nrw.cjs +46 -0
  106. package/dist/alert-dialog-9XYAn5z5.js +819 -0
  107. package/dist/alert-dialog-B281hud0.cjs +872 -0
  108. package/dist/alert-dialog-BVWbrcrw.cjs +872 -0
  109. package/dist/alert-dialog-B_Ko1xpu.js +819 -0
  110. package/dist/alert-dialog-CIxE8T-J.cjs +872 -0
  111. package/dist/alert-dialog-DW-_iPuf.js +819 -0
  112. package/dist/assistant.cjs.js +2 -2
  113. package/dist/assistant.es.js +2 -2
  114. package/dist/avatar-BJwIMbZ_.js +54 -0
  115. package/dist/avatar-C4Zh5fAJ.cjs +77 -0
  116. package/dist/avatar-CTEUKZUT.js +54 -0
  117. package/dist/avatar-D1bZhlhL.cjs +77 -0
  118. package/dist/avatar-DKIxHeKG.cjs +77 -0
  119. package/dist/avatar-v16eZC8p.js +54 -0
  120. package/dist/blocks.cjs.js +2 -2
  121. package/dist/blocks.es.js +2 -2
  122. package/dist/brand.cjs.js +4 -4
  123. package/dist/brand.es.js +4 -4
  124. package/dist/breadcrumb-B1mUiaWB.cjs +98 -0
  125. package/dist/breadcrumb-BIRgmem-.js +90 -0
  126. package/dist/breadcrumb-BSng-oUf.cjs +98 -0
  127. package/dist/breadcrumb-CES7furU.js +90 -0
  128. package/dist/breadcrumb-CP275kbF.cjs +98 -0
  129. package/dist/breadcrumb-D7hr1EvJ.js +90 -0
  130. package/dist/button-BYtQygX5.cjs +85 -0
  131. package/dist/button-BnAW-a_w.js +62 -0
  132. package/dist/button-CUPDQews.js +62 -0
  133. package/dist/button-DFa-rtPy.js +62 -0
  134. package/dist/button-DV1G6XrI.cjs +85 -0
  135. package/dist/button-Kd9Fj53S.cjs +85 -0
  136. package/dist/cli.js +94 -10
  137. package/dist/components/ui/card/card.d.ts +11 -1
  138. package/dist/contexts/theme-data.d.ts +15 -1
  139. package/dist/dropdown-menu-B9wTZ0uX.cjs +225 -0
  140. package/dist/dropdown-menu-BeBtZOrs.cjs +225 -0
  141. package/dist/dropdown-menu-D7mRDGis.js +190 -0
  142. package/dist/dropdown-menu-D8ZmqHB7.js +190 -0
  143. package/dist/dropdown-menu-_AWBeOts.cjs +225 -0
  144. package/dist/dropdown-menu-qGzLO_HO.js +190 -0
  145. package/dist/hooks.cjs.js +1 -1
  146. package/dist/hooks.es.js +1 -1
  147. package/dist/index.cjs.js +24 -24
  148. package/dist/index.es.js +24 -24
  149. package/dist/input-B53E6K8G.js +65 -0
  150. package/dist/input-B7Q7vcoG.cjs +91 -0
  151. package/dist/input-BysqLMK1.js +65 -0
  152. package/dist/input-CStdFsaH.cjs +91 -0
  153. package/dist/input-CXYth6nW.cjs +91 -0
  154. package/dist/input-CX_fWE2D.cjs +91 -0
  155. package/dist/input-CitUVnEn.js +65 -0
  156. package/dist/input-wkBYTp-B.js +65 -0
  157. package/dist/layout.cjs.js +1 -1
  158. package/dist/layout.es.js +1 -1
  159. package/dist/media.cjs.js +1 -1
  160. package/dist/media.es.js +1 -1
  161. package/dist/pages.cjs.js +1 -1
  162. package/dist/pages.es.js +1 -1
  163. package/dist/rich-text-editor-BHiRUzWZ.js +2894 -0
  164. package/dist/rich-text-editor-BWMRUMJ2.js +2894 -0
  165. package/dist/rich-text-editor-BoE6Ks5x.cjs +2968 -0
  166. package/dist/rich-text-editor-BzuEwR_X.js +2894 -0
  167. package/dist/rich-text-editor-CcopGbQ-.js +2894 -0
  168. package/dist/rich-text-editor-CmxSRJIi.cjs +2968 -0
  169. package/dist/rich-text-editor-DyYAu28v.cjs +2968 -0
  170. package/dist/rich-text-editor-JS_eMQCC.cjs +2968 -0
  171. package/dist/select-BNfFJwYp.js +130 -0
  172. package/dist/select-CN8IDjGB.js +130 -0
  173. package/dist/select-CwRzQHA7.cjs +161 -0
  174. package/dist/select-CwgD3nMD.js +130 -0
  175. package/dist/select-DEHUm_AC.cjs +161 -0
  176. package/dist/select-DJDgpVm3.cjs +161 -0
  177. package/dist/select-DSLWQLmo.cjs +161 -0
  178. package/dist/select-YFx0wCYT.js +130 -0
  179. package/dist/sidebar-BF7JEL7U.js +1151 -0
  180. package/dist/sidebar-Bjr2doX5.cjs +1154 -0
  181. package/dist/sidebar-CMrNCmhb.cjs +1154 -0
  182. package/dist/sidebar-CO9x8AVn.cjs +1154 -0
  183. package/dist/sidebar-Cn_KB4c6.js +1151 -0
  184. package/dist/sidebar-Db_C30ph.cjs +1154 -0
  185. package/dist/sidebar-miPHsRz4.js +1151 -0
  186. package/dist/sidebar-pZF8mLLu.js +1151 -0
  187. package/dist/skeleton-BX2XTjMO.cjs +87 -0
  188. package/dist/skeleton-BoLK0iV7.js +78 -0
  189. package/dist/skeleton-Bysq8yeB.js +79 -0
  190. package/dist/skeleton-C7nspYnC.cjs +87 -0
  191. package/dist/skeleton-DL4V5Vub.cjs +87 -0
  192. package/dist/skeleton-DSMhdqp1.js +78 -0
  193. package/dist/skeleton-DhJswvTW.cjs +88 -0
  194. package/dist/skeleton-DicUfozA.js +78 -0
  195. package/dist/slider-77T_Eqw4.js +56 -0
  196. package/dist/slider-B6puMLXS.cjs +78 -0
  197. package/dist/slider-B785N7lZ.js +56 -0
  198. package/dist/slider-C6yssKyZ.cjs +78 -0
  199. package/dist/slider-CKZO9gVh.cjs +78 -0
  200. package/dist/slider-Cn-ImSze.js +56 -0
  201. package/dist/tooltip-BiJVGob3.cjs +72 -0
  202. package/dist/tooltip-D2OPn-1v.cjs +72 -0
  203. package/dist/tooltip-DlCHQuh1.js +48 -0
  204. package/dist/tooltip-fQ2Va0G8.cjs +72 -0
  205. package/dist/tooltip-oAw00FX2.js +48 -0
  206. package/dist/tooltip-u147L0wD.js +48 -0
  207. package/dist/ui.cjs.js +13 -13
  208. package/dist/ui.es.js +13 -13
  209. package/dist/xertica-assistant-C2A0R94j.js +2173 -0
  210. package/dist/xertica-assistant-CSUprvTR.js +2173 -0
  211. package/dist/xertica-assistant-Caubm0HR.js +2173 -0
  212. package/dist/xertica-assistant-DEexPM2u.cjs +2180 -0
  213. package/dist/xertica-assistant-Dh1dmEx3.cjs +2180 -0
  214. package/dist/xertica-assistant-GGcyHEZG.cjs +2180 -0
  215. package/dist/xertica-assistant-USefPe2L.js +2173 -0
  216. package/dist/xertica-assistant-cwSHFwfv.cjs +2180 -0
  217. package/dist/xertica-ui.css +1 -1
  218. package/package.json +3 -2
  219. package/styles/xertica/base.css +38 -0
  220. package/styles/xertica/tokens.css +9 -0
  221. package/templates/src/app/App.tsx +5 -1
  222. package/templates/src/features/home/ui/HomeContent.tsx +12 -13
  223. package/templates/src/features/template/ui/TemplateContent.tsx +569 -26
  224. package/templates/src/locales/en/pages/templates.json +112 -4
  225. package/templates/src/locales/es/pages/templates.json +112 -4
  226. package/templates/src/locales/pt-BR/pages/templates.json +112 -4
  227. package/templates/src/styles/xertica/tokens.css +9 -0
  228. package/templates/vite.config.ts +25 -0
@@ -0,0 +1,497 @@
1
+ 'use strict';
2
+
3
+ const jsxRuntime = require('react/jsx-runtime');
4
+ const React = require('react');
5
+ const reactI18next = require('react-i18next');
6
+ const skeleton = require('./skeleton-C7nspYnC.cjs');
7
+ const avatar = require('./avatar-DKIxHeKG.cjs');
8
+ const ImageWithFallback = require('./ImageWithFallback-BkMXHCvV.cjs');
9
+ const button = require('./button-Kd9Fj53S.cjs');
10
+
11
+ const activityTypeVariant = {
12
+ create: "success",
13
+ update: "info",
14
+ delete: "destructive",
15
+ comment: "secondary",
16
+ deploy: "default"
17
+ };
18
+ function ActivityCard({
19
+ title,
20
+ items,
21
+ action,
22
+ maxItems = 5,
23
+ className,
24
+ ...props
25
+ }) {
26
+ const { t } = reactI18next.useTranslation();
27
+ const cardTitle = title ?? t("activityCard.title");
28
+ const activityTypeBadge = React.useMemo(
29
+ () => ({
30
+ create: { label: t("activityCard.type.create"), variant: activityTypeVariant.create },
31
+ update: { label: t("activityCard.type.update"), variant: activityTypeVariant.update },
32
+ delete: { label: t("activityCard.type.remove"), variant: activityTypeVariant.delete },
33
+ comment: { label: t("activityCard.type.comment"), variant: activityTypeVariant.comment },
34
+ deploy: { label: t("activityCard.type.deploy"), variant: activityTypeVariant.deploy }
35
+ }),
36
+ [t]
37
+ );
38
+ const visible = items.slice(0, maxItems);
39
+ return /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { className: button.cn("w-full", className), ...props, children: [
40
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
41
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: cardTitle }),
42
+ action && /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardAction, { children: action })
43
+ ] }),
44
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { className: "px-6 pb-6", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "space-y-4", children: visible.map((item) => {
45
+ const badge = item.type ? activityTypeBadge[item.type] : null;
46
+ return /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex items-start gap-3", children: [
47
+ /* @__PURE__ */ jsxRuntime.jsxs(avatar.Avatar, { className: "size-8 shrink-0", children: [
48
+ item.user.avatar && /* @__PURE__ */ jsxRuntime.jsx(avatar.AvatarImage, { src: item.user.avatar, alt: item.user.name }),
49
+ /* @__PURE__ */ jsxRuntime.jsx(avatar.AvatarFallback, { className: "text-xs", children: item.user.initials })
50
+ ] }),
51
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
52
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm leading-snug", children: [
53
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: item.user.name }),
54
+ " ",
55
+ item.action,
56
+ " ",
57
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: item.target })
58
+ ] }),
59
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground mt-0.5", children: item.time })
60
+ ] }),
61
+ badge && /* @__PURE__ */ jsxRuntime.jsx(ImageWithFallback.Badge, { variant: badge.variant, className: "shrink-0 text-xs", children: badge.label })
62
+ ] }, item.id);
63
+ }) }) })
64
+ ] });
65
+ }
66
+
67
+ function ActivityCardSkeleton({ rows = 5, className, ...props }) {
68
+ return /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { className: button.cn("w-full", className), ...props, children: [
69
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-5 w-40" }) }),
70
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { className: "px-6 pb-6", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "space-y-4", children: Array.from({ length: rows }).map((_, i) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex items-start gap-3", children: [
71
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "size-8 rounded-full shrink-0" }),
72
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0 space-y-1.5", children: [
73
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3.5 w-4/5" }),
74
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3 w-20" })
75
+ ] }),
76
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-5 w-16 shrink-0 rounded-full" })
77
+ ] }, i)) }) })
78
+ ] });
79
+ }
80
+
81
+ const statusVariant = {
82
+ online: "success",
83
+ offline: "secondary",
84
+ away: "warning",
85
+ busy: "destructive"
86
+ };
87
+ function ProfileCard({
88
+ name,
89
+ role,
90
+ department,
91
+ avatar: avatar$1,
92
+ initials,
93
+ status,
94
+ stats,
95
+ primaryAction,
96
+ secondaryAction,
97
+ className,
98
+ ...props
99
+ }) {
100
+ const { t } = reactI18next.useTranslation();
101
+ const statusLabelMap = React.useMemo(
102
+ () => ({
103
+ online: t("profileCard.status.online"),
104
+ offline: t("profileCard.status.offline"),
105
+ away: t("profileCard.status.away"),
106
+ busy: t("profileCard.status.busy")
107
+ }),
108
+ [t]
109
+ );
110
+ const s = status ? { label: statusLabelMap[status], variant: statusVariant[status] } : null;
111
+ return /* @__PURE__ */ jsxRuntime.jsx(skeleton.Card, { className: button.cn("w-full", className), ...props, children: /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "pt-6 flex flex-col items-center text-center gap-3", children: [
112
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
113
+ /* @__PURE__ */ jsxRuntime.jsxs(avatar.Avatar, { className: "size-16", children: [
114
+ avatar$1 && /* @__PURE__ */ jsxRuntime.jsx(avatar.AvatarImage, { src: avatar$1, alt: name }),
115
+ /* @__PURE__ */ jsxRuntime.jsx(avatar.AvatarFallback, { className: "text-lg font-semibold", children: initials })
116
+ ] }),
117
+ s && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute -bottom-0.5 -right-0.5", children: /* @__PURE__ */ jsxRuntime.jsx(ImageWithFallback.Badge, { variant: s.variant, className: "text-[10px] px-1.5 py-0 h-5", children: s.label }) })
118
+ ] }),
119
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-0.5", children: [
120
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-base leading-tight", children: name }),
121
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: role }),
122
+ department && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: department })
123
+ ] }),
124
+ stats && stats.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full grid grid-cols-3 divide-x divide-border border-y border-border py-3 mt-1", children: stats.map((stat) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-0.5 px-2", children: [
125
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base font-bold", children: stat.value }),
126
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[11px] text-muted-foreground", children: stat.label })
127
+ ] }, stat.label)) }),
128
+ (primaryAction || secondaryAction) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2 w-full", children: [
129
+ secondaryAction && /* @__PURE__ */ jsxRuntime.jsx(
130
+ button.Button,
131
+ {
132
+ variant: "outline",
133
+ className: "flex-1",
134
+ size: "sm",
135
+ onClick: secondaryAction.onClick,
136
+ children: secondaryAction.label
137
+ }
138
+ ),
139
+ primaryAction && /* @__PURE__ */ jsxRuntime.jsx(button.Button, { className: "flex-1", size: "sm", onClick: primaryAction.onClick, children: primaryAction.label })
140
+ ] })
141
+ ] }) });
142
+ }
143
+
144
+ function ProfileCardSkeleton({
145
+ showStats = true,
146
+ showActions = true,
147
+ className,
148
+ ...props
149
+ }) {
150
+ return /* @__PURE__ */ jsxRuntime.jsx(skeleton.Card, { className: button.cn("w-full", className), ...props, children: /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "pt-6 flex flex-col items-center text-center gap-3", children: [
151
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "size-16 rounded-full" }),
152
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5 w-full flex flex-col items-center", children: [
153
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-4 w-32" }),
154
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3 w-24" }),
155
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3 w-20" })
156
+ ] }),
157
+ showStats && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full grid grid-cols-3 divide-x divide-border border-y border-border py-3 mt-1", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-1 px-2", children: [
158
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-5 w-10" }),
159
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-2.5 w-12" })
160
+ ] }, i)) }),
161
+ showActions && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2 w-full", children: [
162
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-8 flex-1 rounded-md" }),
163
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-8 flex-1 rounded-md" })
164
+ ] })
165
+ ] }) });
166
+ }
167
+
168
+ const statusVariantConfig = {
169
+ active: { variant: "info", progressVariant: "info" },
170
+ review: { variant: "warning", progressVariant: "warning" },
171
+ done: { variant: "success", progressVariant: "success" },
172
+ paused: { variant: "secondary", progressVariant: "default" },
173
+ "at-risk": { variant: "destructive", progressVariant: "destructive" }
174
+ };
175
+ function ProjectCard({
176
+ title,
177
+ description,
178
+ status,
179
+ progress,
180
+ dueDate,
181
+ members = [],
182
+ maxMembers = 4,
183
+ action,
184
+ className,
185
+ ...props
186
+ }) {
187
+ const { t } = reactI18next.useTranslation();
188
+ const statusLabelMap = React.useMemo(
189
+ () => ({
190
+ active: t("projectCard.status.active"),
191
+ review: t("projectCard.status.review"),
192
+ done: t("projectCard.status.completed"),
193
+ paused: t("projectCard.status.paused"),
194
+ "at-risk": t("projectCard.status.atRisk")
195
+ }),
196
+ [t]
197
+ );
198
+ const { variant, progressVariant } = statusVariantConfig[status];
199
+ const label = statusLabelMap[status];
200
+ const visible = members.slice(0, maxMembers);
201
+ const overflow = members.length - maxMembers;
202
+ return /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { className: button.cn("w-full", className), ...props, children: [
203
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
204
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1 min-w-0", children: [
205
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { className: "truncate", children: title }),
206
+ description && /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { className: "line-clamp-2", children: description })
207
+ ] }),
208
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardAction, { className: "flex items-center gap-2", children: [
209
+ /* @__PURE__ */ jsxRuntime.jsx(ImageWithFallback.Badge, { variant, children: label }),
210
+ action
211
+ ] })
212
+ ] }),
213
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { className: "space-y-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
214
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between text-xs text-muted-foreground", children: [
215
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: t("projectCard.progress") }),
216
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
217
+ progress,
218
+ "%"
219
+ ] })
220
+ ] }),
221
+ /* @__PURE__ */ jsxRuntime.jsx(ImageWithFallback.Progress, { value: progress, variant: progressVariant, className: "h-2" })
222
+ ] }) }),
223
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardFooter, { className: "flex items-center justify-between", children: [
224
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex -space-x-2", children: [
225
+ visible.map((m) => /* @__PURE__ */ jsxRuntime.jsxs(avatar.Avatar, { className: "size-7 border-2 border-background", children: [
226
+ m.avatar && /* @__PURE__ */ jsxRuntime.jsx(avatar.AvatarImage, { src: m.avatar, alt: m.name }),
227
+ /* @__PURE__ */ jsxRuntime.jsx(avatar.AvatarFallback, { className: "text-[10px]", children: m.initials })
228
+ ] }, m.name)),
229
+ overflow > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "size-7 rounded-full border-2 border-background bg-muted flex items-center justify-center text-[10px] font-medium text-muted-foreground", children: [
230
+ "+",
231
+ overflow
232
+ ] })
233
+ ] }),
234
+ dueDate && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-muted-foreground", children: dueDate })
235
+ ] })
236
+ ] });
237
+ }
238
+
239
+ function ProjectCardSkeleton({
240
+ memberCount = 3,
241
+ className,
242
+ ...props
243
+ }) {
244
+ return /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { className: button.cn("w-full", className), ...props, children: [
245
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
246
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1 min-w-0 flex-1", children: [
247
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-5 w-3/4" }),
248
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3.5 w-full mt-0.5" })
249
+ ] }),
250
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-5 w-20 rounded-full shrink-0" })
251
+ ] }),
252
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { className: "space-y-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
253
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between", children: [
254
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3 w-14" }),
255
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3 w-8" })
256
+ ] }),
257
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-2 w-full rounded-full" })
258
+ ] }) }),
259
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardFooter, { className: "flex items-center justify-between", children: [
260
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex -space-x-2", children: Array.from({ length: Math.min(memberCount, 4) }).map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "size-7 rounded-full border-2 border-background" }, i)) }),
261
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3 w-20" })
262
+ ] })
263
+ ] });
264
+ }
265
+
266
+ function QuickActionCard({
267
+ title,
268
+ description,
269
+ icon,
270
+ badge,
271
+ badgeVariant = "secondary",
272
+ actionLabel,
273
+ actionVariant = "default",
274
+ onAction,
275
+ disabled,
276
+ className,
277
+ ...props
278
+ }) {
279
+ return /* @__PURE__ */ jsxRuntime.jsx(
280
+ skeleton.Card,
281
+ {
282
+ className: button.cn(
283
+ "w-full group transition-shadow hover:shadow-md",
284
+ disabled && "opacity-60 pointer-events-none",
285
+ className
286
+ ),
287
+ ...props,
288
+ children: /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "pt-6 flex flex-col items-start gap-4", children: [
289
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between w-full", children: [
290
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-2.5 rounded-[var(--radius)] bg-primary/10 text-primary", children: icon }),
291
+ badge && /* @__PURE__ */ jsxRuntime.jsx(ImageWithFallback.Badge, { variant: badgeVariant, children: badge })
292
+ ] }),
293
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1 flex-1", children: [
294
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-sm leading-tight", children: title }),
295
+ description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground leading-relaxed", children: description })
296
+ ] }),
297
+ /* @__PURE__ */ jsxRuntime.jsx(
298
+ button.Button,
299
+ {
300
+ variant: actionVariant,
301
+ size: "sm",
302
+ className: "w-full",
303
+ onClick: onAction,
304
+ disabled,
305
+ children: actionLabel
306
+ }
307
+ )
308
+ ] })
309
+ }
310
+ );
311
+ }
312
+
313
+ function QuickActionCardSkeleton({ className, ...props }) {
314
+ return /* @__PURE__ */ jsxRuntime.jsx(skeleton.Card, { className: button.cn("w-full", className), ...props, children: /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "pt-6 flex flex-col items-start gap-4", children: [
315
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between w-full", children: [
316
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "size-10 rounded-[var(--radius)]" }),
317
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-5 w-14 rounded-full" })
318
+ ] }),
319
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5 flex-1 w-full", children: [
320
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-4 w-3/4" }),
321
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3 w-full" }),
322
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3 w-5/6" })
323
+ ] }),
324
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-8 w-full rounded-md" })
325
+ ] }) });
326
+ }
327
+
328
+ const typeVariant = {
329
+ info: "info",
330
+ warning: "warning",
331
+ success: "success",
332
+ error: "destructive",
333
+ default: "secondary"
334
+ };
335
+ function NotificationCard({
336
+ title,
337
+ items,
338
+ unreadCount,
339
+ onMarkAllRead,
340
+ onViewAll,
341
+ maxItems = 4,
342
+ className,
343
+ ...props
344
+ }) {
345
+ const { t } = reactI18next.useTranslation();
346
+ const visible = items.slice(0, maxItems);
347
+ const count = unreadCount ?? items.filter((i) => !i.read).length;
348
+ const cardTitle = title ?? t("notificationCard.title");
349
+ return /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { className: button.cn("w-full", className), ...props, children: [
350
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
351
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
352
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: cardTitle }),
353
+ count > 0 && /* @__PURE__ */ jsxRuntime.jsx(ImageWithFallback.Badge, { variant: "destructive", className: "h-5 text-[11px] px-1.5", children: count })
354
+ ] }),
355
+ onMarkAllRead && count > 0 && /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardAction, { children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "ghost", size: "sm", className: "text-xs h-7", onClick: onMarkAllRead, children: t("notificationCard.markAllRead") }) })
356
+ ] }),
357
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { className: "px-0 pb-0", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "divide-y divide-border", children: visible.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
358
+ "li",
359
+ {
360
+ className: button.cn(
361
+ "flex items-start gap-3 px-6 py-3 transition-colors",
362
+ !item.read && "bg-muted/40"
363
+ ),
364
+ children: [
365
+ item.user ? /* @__PURE__ */ jsxRuntime.jsxs(avatar.Avatar, { className: "size-8 shrink-0 mt-0.5", children: [
366
+ item.user.avatar && /* @__PURE__ */ jsxRuntime.jsx(avatar.AvatarImage, { src: item.user.avatar, alt: item.user.name }),
367
+ /* @__PURE__ */ jsxRuntime.jsx(avatar.AvatarFallback, { className: "text-xs", children: item.user.initials })
368
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-8 shrink-0 mt-0.5 rounded-full bg-muted flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
369
+ "div",
370
+ {
371
+ className: button.cn(
372
+ "size-2 rounded-full",
373
+ item.type === "error" ? "bg-destructive" : item.type === "warning" ? "bg-warning" : item.type === "success" ? "bg-success" : item.type === "info" ? "bg-info" : "bg-muted-foreground"
374
+ )
375
+ }
376
+ ) }),
377
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
378
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
379
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium truncate", children: item.title }),
380
+ item.type && item.type !== "default" && /* @__PURE__ */ jsxRuntime.jsx(
381
+ ImageWithFallback.Badge,
382
+ {
383
+ variant: typeVariant[item.type],
384
+ className: "text-[10px] px-1.5 h-4 shrink-0",
385
+ children: item.type
386
+ }
387
+ )
388
+ ] }),
389
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground line-clamp-2 mt-0.5", children: item.message }),
390
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[11px] text-muted-foreground/70 mt-1", children: item.time })
391
+ ] }),
392
+ !item.read && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-2 rounded-full bg-primary shrink-0 mt-2" })
393
+ ]
394
+ },
395
+ item.id
396
+ )) }) }),
397
+ onViewAll && /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardFooter, { className: "pt-2", children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "ghost", size: "sm", className: "w-full text-xs", onClick: onViewAll, children: t("notificationCard.viewAll") }) })
398
+ ] });
399
+ }
400
+
401
+ function NotificationCardSkeleton({
402
+ rows = 4,
403
+ showViewAll = false,
404
+ className,
405
+ ...props
406
+ }) {
407
+ return /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { className: button.cn("w-full", className), ...props, children: [
408
+ /* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
409
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
410
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-5 w-32" }),
411
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-5 w-6 rounded-full" })
412
+ ] }),
413
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-7 w-32 rounded-md" })
414
+ ] }),
415
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { className: "px-0 pb-0", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "divide-y divide-border", children: Array.from({ length: rows }).map((_, i) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex items-start gap-3 px-6 py-3", children: [
416
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "size-8 rounded-full shrink-0 mt-0.5" }),
417
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0 space-y-1.5", children: [
418
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
419
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3.5 w-40" }),
420
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-4 w-12 rounded-full shrink-0" })
421
+ ] }),
422
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3 w-full" }),
423
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3 w-3/4" }),
424
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-2.5 w-16 mt-0.5" })
425
+ ] }),
426
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "size-2 rounded-full shrink-0 mt-2" })
427
+ ] }, i)) }) }),
428
+ showViewAll && /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardFooter, { className: "pt-2", children: /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-8 w-full rounded-md" }) })
429
+ ] });
430
+ }
431
+
432
+ const colorTokens = {
433
+ primary: { bg: "bg-primary/10", icon: "text-primary" },
434
+ "chart-1": { bg: "bg-[var(--chart-1)]/15", icon: "text-[var(--chart-1)]" },
435
+ "chart-2": { bg: "bg-[var(--chart-2)]/15", icon: "text-[var(--chart-2)]" },
436
+ "chart-3": { bg: "bg-[var(--chart-3)]/15", icon: "text-[var(--chart-3)]" },
437
+ "chart-4": { bg: "bg-[var(--chart-4)]/15", icon: "text-[var(--chart-4)]" },
438
+ "chart-5": { bg: "bg-[var(--chart-5)]/15", icon: "text-[var(--chart-5)]" },
439
+ success: { bg: "bg-success/10", icon: "text-success" },
440
+ info: { bg: "bg-info/10", icon: "text-info" },
441
+ warning: { bg: "bg-warning/10", icon: "text-warning" },
442
+ destructive: { bg: "bg-destructive/10", icon: "text-destructive" }
443
+ };
444
+ function FeatureCard({
445
+ title,
446
+ description,
447
+ icon,
448
+ color = "primary",
449
+ badge,
450
+ badgeVariant = "default",
451
+ actionLabel,
452
+ actionVariant = "outline",
453
+ onAction,
454
+ className,
455
+ ...props
456
+ }) {
457
+ const { bg, icon: iconColor } = colorTokens[color];
458
+ return /* @__PURE__ */ jsxRuntime.jsxs(
459
+ skeleton.Card,
460
+ {
461
+ className: button.cn(
462
+ "flex flex-col h-full hover:shadow-md transition-shadow duration-200",
463
+ className
464
+ ),
465
+ ...props,
466
+ children: [
467
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
468
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("p-2 rounded-[var(--radius)] shrink-0", bg), children: /* @__PURE__ */ jsxRuntime.jsx(
469
+ "div",
470
+ {
471
+ className: button.cn("size-6 flex items-center justify-center [&>svg]:size-6", iconColor),
472
+ children: icon
473
+ }
474
+ ) }),
475
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-x-2 gap-y-1 min-w-0", children: [
476
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { className: "text-sm", children: title }),
477
+ badge && /* @__PURE__ */ jsxRuntime.jsx(ImageWithFallback.Badge, { variant: badgeVariant, className: "text-xs", children: badge })
478
+ ] })
479
+ ] }) }),
480
+ /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { className: "flex-1", children: /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { className: "text-sm leading-relaxed", children: description }) }),
481
+ actionLabel && /* @__PURE__ */ jsxRuntime.jsx(skeleton.CardFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: actionVariant, className: "w-full", onClick: onAction, children: actionLabel }) })
482
+ ]
483
+ }
484
+ );
485
+ }
486
+
487
+ exports.ActivityCard = ActivityCard;
488
+ exports.ActivityCardSkeleton = ActivityCardSkeleton;
489
+ exports.FeatureCard = FeatureCard;
490
+ exports.NotificationCard = NotificationCard;
491
+ exports.NotificationCardSkeleton = NotificationCardSkeleton;
492
+ exports.ProfileCard = ProfileCard;
493
+ exports.ProfileCardSkeleton = ProfileCardSkeleton;
494
+ exports.ProjectCard = ProjectCard;
495
+ exports.ProjectCardSkeleton = ProjectCardSkeleton;
496
+ exports.QuickActionCard = QuickActionCard;
497
+ exports.QuickActionCardSkeleton = QuickActionCardSkeleton;