@framingui/ui 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-RWYATDH5.mjs +180 -0
- package/dist/index.mjs +186 -174
- package/dist/src/components/alert-dialog.stories.js +1 -1
- package/dist/src/components/alert-dialog.stories.js.map +1 -1
- package/dist/src/components/avatar.js +2 -2
- package/dist/src/components/avatar.js.map +1 -1
- package/dist/src/components/avatar.stories.js +2 -2
- package/dist/src/components/avatar.stories.js.map +1 -1
- package/dist/src/components/badge.js +5 -5
- package/dist/src/components/badge.js.map +1 -1
- package/dist/src/components/breadcrumb.js +7 -7
- package/dist/src/components/breadcrumb.js.map +1 -1
- package/dist/src/components/button.js +10 -10
- package/dist/src/components/button.js.map +1 -1
- package/dist/src/components/calendar.js +11 -11
- package/dist/src/components/calendar.js.map +1 -1
- package/dist/src/components/calendar.stories.js +9 -9
- package/dist/src/components/calendar.stories.js.map +1 -1
- package/dist/src/components/card.js +5 -5
- package/dist/src/components/card.js.map +1 -1
- package/dist/src/components/card.stories.js +3 -3
- package/dist/src/components/card.stories.js.map +1 -1
- package/dist/src/components/checkbox.js +1 -1
- package/dist/src/components/checkbox.js.map +1 -1
- package/dist/src/components/checkbox.stories.js +2 -2
- package/dist/src/components/checkbox.stories.js.map +1 -1
- package/dist/src/components/command.d.ts +7 -7
- package/dist/src/components/command.js +8 -8
- package/dist/src/components/command.js.map +1 -1
- package/dist/src/components/command.stories.js +6 -6
- package/dist/src/components/command.stories.js.map +1 -1
- package/dist/src/components/dialog.stories.js +1 -1
- package/dist/src/components/dialog.stories.js.map +1 -1
- package/dist/src/components/dropdown-menu.js +8 -8
- package/dist/src/components/dropdown-menu.js.map +1 -1
- package/dist/src/components/form.js +4 -4
- package/dist/src/components/form.js.map +1 -1
- package/dist/src/components/input.js +1 -1
- package/dist/src/components/input.js.map +1 -1
- package/dist/src/components/input.stories.js +2 -2
- package/dist/src/components/input.stories.js.map +1 -1
- package/dist/src/components/label.stories.js +2 -2
- package/dist/src/components/label.stories.js.map +1 -1
- package/dist/src/components/navigation-menu.js +4 -4
- package/dist/src/components/navigation-menu.js.map +1 -1
- package/dist/src/components/navigation-menu.stories.js +2 -2
- package/dist/src/components/navigation-menu.stories.js.map +1 -1
- package/dist/src/components/popover.js +1 -1
- package/dist/src/components/popover.js.map +1 -1
- package/dist/src/components/popover.stories.js +2 -2
- package/dist/src/components/popover.stories.js.map +1 -1
- package/dist/src/components/progress.js +1 -1
- package/dist/src/components/progress.js.map +1 -1
- package/dist/src/components/radio-group.js +2 -2
- package/dist/src/components/radio-group.js.map +1 -1
- package/dist/src/components/radio-group.stories.js +2 -2
- package/dist/src/components/radio-group.stories.js.map +1 -1
- package/dist/src/components/scroll-area.js +1 -1
- package/dist/src/components/scroll-area.js.map +1 -1
- package/dist/src/components/scroll-area.stories.js +4 -4
- package/dist/src/components/scroll-area.stories.js.map +1 -1
- package/dist/src/components/select.js +5 -5
- package/dist/src/components/select.js.map +1 -1
- package/dist/src/components/separator.js +1 -1
- package/dist/src/components/separator.js.map +1 -1
- package/dist/src/components/separator.stories.js +2 -2
- package/dist/src/components/separator.stories.js.map +1 -1
- package/dist/src/components/sheet.d.ts +1 -1
- package/dist/src/components/sheet.js +11 -11
- package/dist/src/components/sheet.js.map +1 -1
- package/dist/src/components/sidebar.js +13 -13
- package/dist/src/components/sidebar.js.map +1 -1
- package/dist/src/components/sidebar.stories.js +2 -2
- package/dist/src/components/sidebar.stories.js.map +1 -1
- package/dist/src/components/skeleton.js +1 -1
- package/dist/src/components/skeleton.js.map +1 -1
- package/dist/src/components/skeleton.stories.js +1 -1
- package/dist/src/components/skeleton.stories.js.map +1 -1
- package/dist/src/components/switch.js +1 -1
- package/dist/src/components/switch.js.map +1 -1
- package/dist/src/components/switch.stories.js +3 -3
- package/dist/src/components/switch.stories.js.map +1 -1
- package/dist/src/components/table.js +5 -5
- package/dist/src/components/table.js.map +1 -1
- package/dist/src/components/tabs.js +3 -3
- package/dist/src/components/tabs.js.map +1 -1
- package/dist/src/components/tabs.stories.js +2 -2
- package/dist/src/components/tabs.stories.js.map +1 -1
- package/dist/src/components/textarea.js +1 -1
- package/dist/src/components/textarea.js.map +1 -1
- package/dist/src/components/textarea.stories.js +4 -4
- package/dist/src/components/textarea.stories.js.map +1 -1
- package/dist/src/components/toast.js +6 -6
- package/dist/src/components/toast.js.map +1 -1
- package/dist/src/components/tooltip.js +1 -1
- package/dist/src/components/tooltip.js.map +1 -1
- package/dist/src/lib/theme-loader.d.ts.map +1 -1
- package/dist/src/lib/theme-loader.js +41 -29
- package/dist/src/lib/theme-loader.js.map +1 -1
- package/dist/src/lib/tokens.d.ts.map +1 -1
- package/dist/src/lib/tokens.js +38 -38
- package/dist/src/lib/tokens.js.map +1 -1
- package/dist/src/templates/auth/forgot-password.js +1 -1
- package/dist/src/templates/auth/forgot-password.js.map +1 -1
- package/dist/src/templates/auth/login.js +1 -1
- package/dist/src/templates/auth/login.js.map +1 -1
- package/dist/src/templates/auth/signup.js +1 -1
- package/dist/src/templates/auth/signup.js.map +1 -1
- package/dist/src/templates/auth/verification.js +1 -1
- package/dist/src/templates/auth/verification.js.map +1 -1
- package/dist/src/templates/core/landing.js +1 -1
- package/dist/src/templates/core/landing.js.map +1 -1
- package/dist/src/templates/core/preferences.js +1 -1
- package/dist/src/templates/core/preferences.js.map +1 -1
- package/dist/src/templates/core/profile.js +1 -1
- package/dist/src/templates/core/profile.js.map +1 -1
- package/dist/src/templates/dashboard/overview.js +1 -1
- package/dist/src/templates/dashboard/overview.js.map +1 -1
- package/dist/src/templates/feedback/confirmation.js +1 -1
- package/dist/src/templates/feedback/confirmation.js.map +1 -1
- package/dist/src/templates/feedback/empty.js +1 -1
- package/dist/src/templates/feedback/empty.js.map +1 -1
- package/dist/src/templates/feedback/error.js +1 -1
- package/dist/src/templates/feedback/error.js.map +1 -1
- package/dist/src/templates/feedback/loading.js +1 -1
- package/dist/src/templates/feedback/loading.js.map +1 -1
- package/dist/src/templates/feedback/success.js +1 -1
- package/dist/src/templates/feedback/success.js.map +1 -1
- package/dist/src/templates/types.js +6 -6
- package/dist/src/templates/types.js.map +1 -1
- package/dist/templates/index.mjs +111 -111
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/styles/globals.css +113 -84
package/dist/templates/index.mjs
CHANGED
|
@@ -10,28 +10,28 @@ import {
|
|
|
10
10
|
Input,
|
|
11
11
|
Label,
|
|
12
12
|
Separator
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-RWYATDH5.mjs";
|
|
14
14
|
|
|
15
15
|
// src/templates/types.ts
|
|
16
16
|
var DEFAULT_RESPONSIVE_LAYOUT = {
|
|
17
17
|
mobile: {
|
|
18
|
-
padding: "var(--
|
|
18
|
+
padding: "var(--layout-padding-mobile)",
|
|
19
19
|
// 16px
|
|
20
|
-
gap: "var(--
|
|
20
|
+
gap: "var(--layout-gap-mobile)",
|
|
21
21
|
// 16px
|
|
22
22
|
columns: 4
|
|
23
23
|
},
|
|
24
24
|
tablet: {
|
|
25
|
-
padding: "var(--
|
|
25
|
+
padding: "var(--layout-padding-tablet)",
|
|
26
26
|
// 32px
|
|
27
|
-
gap: "var(--
|
|
27
|
+
gap: "var(--layout-gap-tablet)",
|
|
28
28
|
// 24px
|
|
29
29
|
columns: 8
|
|
30
30
|
},
|
|
31
31
|
desktop: {
|
|
32
|
-
padding: "var(--
|
|
32
|
+
padding: "var(--layout-padding-desktop)",
|
|
33
33
|
// 64px
|
|
34
|
-
gap: "var(--
|
|
34
|
+
gap: "var(--layout-gap-desktop)",
|
|
35
35
|
// 32px
|
|
36
36
|
columns: 12
|
|
37
37
|
}
|
|
@@ -229,40 +229,40 @@ function LoginTemplateComponent({
|
|
|
229
229
|
return /* @__PURE__ */ jsxs(
|
|
230
230
|
"div",
|
|
231
231
|
{
|
|
232
|
-
className: `min-h-screen flex items-center justify-center p-[var(--
|
|
232
|
+
className: `min-h-screen flex items-center justify-center p-[var(--spacing-4)] ${className}`,
|
|
233
233
|
children: [
|
|
234
234
|
/* @__PURE__ */ jsxs(Card, { className: "w-full max-w-md", children: [
|
|
235
235
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
236
|
-
slots.logo && /* @__PURE__ */ jsx("div", { className: "mb-[var(--
|
|
236
|
+
slots.logo && /* @__PURE__ */ jsx("div", { className: "mb-[var(--spacing-4)]", children: slots.logo }),
|
|
237
237
|
/* @__PURE__ */ jsx(CardTitle, { children: title }),
|
|
238
238
|
/* @__PURE__ */ jsx(CardDescription, { children: subtitle })
|
|
239
239
|
] }),
|
|
240
|
-
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-[var(--
|
|
241
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-[var(--
|
|
240
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-[var(--spacing-4)]", children: [
|
|
241
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-[var(--spacing-2)]", children: [
|
|
242
242
|
/* @__PURE__ */ jsx(Label, { htmlFor: "email", children: "Email" }),
|
|
243
243
|
/* @__PURE__ */ jsx(Input, { id: "email", type: "email", placeholder: "Enter your email" })
|
|
244
244
|
] }),
|
|
245
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-[var(--
|
|
245
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-[var(--spacing-2)]", children: [
|
|
246
246
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
247
247
|
/* @__PURE__ */ jsx(Label, { htmlFor: "password", children: "Password" }),
|
|
248
248
|
slots.forgotPassword && /* @__PURE__ */ jsx("div", { children: slots.forgotPassword })
|
|
249
249
|
] }),
|
|
250
250
|
/* @__PURE__ */ jsx(Input, { id: "password", type: "password", placeholder: "Enter your password" })
|
|
251
251
|
] }),
|
|
252
|
-
showRememberMe && slots.rememberMe && /* @__PURE__ */ jsx("div", { className: "flex items-center space-x-[var(--
|
|
252
|
+
showRememberMe && slots.rememberMe && /* @__PURE__ */ jsx("div", { className: "flex items-center space-x-[var(--spacing-2)]", children: slots.rememberMe }),
|
|
253
253
|
/* @__PURE__ */ jsx(Button, { className: "w-full", children: buttonLabel }),
|
|
254
254
|
showSocialLogin && slots.socialLogin && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
255
255
|
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
256
256
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsx(Separator, {}) }),
|
|
257
|
-
/* @__PURE__ */ jsx("div", { className: "relative flex justify-center text-xs uppercase", children: /* @__PURE__ */ jsx("span", { className: "bg-[var(--
|
|
257
|
+
/* @__PURE__ */ jsx("div", { className: "relative flex justify-center text-xs uppercase", children: /* @__PURE__ */ jsx("span", { className: "bg-[var(--bg-background)] px-[var(--spacing-2)] text-[var(--text-muted-foreground)]", children: "Or continue with" }) })
|
|
258
258
|
] }),
|
|
259
|
-
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-[var(--
|
|
259
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-[var(--spacing-4)]", children: slots.socialLogin })
|
|
260
260
|
] })
|
|
261
261
|
] }),
|
|
262
|
-
/* @__PURE__ */ jsx(CardFooter, { children: slots.footer || /* @__PURE__ */ jsxs("p", { className: "text-sm text-center w-full text-[var(--
|
|
262
|
+
/* @__PURE__ */ jsx(CardFooter, { children: slots.footer || /* @__PURE__ */ jsxs("p", { className: "text-sm text-center w-full text-[var(--text-muted-foreground)]", children: [
|
|
263
263
|
"Don't have an account?",
|
|
264
264
|
" ",
|
|
265
|
-
/* @__PURE__ */ jsx("a", { href: "#", className: "text-[var(--
|
|
265
|
+
/* @__PURE__ */ jsx("a", { href: "#", className: "text-[var(--text-primary)] hover:underline", children: "Sign up" })
|
|
266
266
|
] }) })
|
|
267
267
|
] }),
|
|
268
268
|
children
|
|
@@ -288,45 +288,45 @@ function SignupTemplateComponent({
|
|
|
288
288
|
return /* @__PURE__ */ jsxs2(
|
|
289
289
|
"div",
|
|
290
290
|
{
|
|
291
|
-
className: `min-h-screen flex items-center justify-center p-[var(--
|
|
291
|
+
className: `min-h-screen flex items-center justify-center p-[var(--spacing-4)] ${className}`,
|
|
292
292
|
children: [
|
|
293
293
|
/* @__PURE__ */ jsxs2(Card, { className: "w-full max-w-md", children: [
|
|
294
294
|
/* @__PURE__ */ jsxs2(CardHeader, { children: [
|
|
295
|
-
slots.logo && /* @__PURE__ */ jsx2("div", { className: "mb-[var(--
|
|
295
|
+
slots.logo && /* @__PURE__ */ jsx2("div", { className: "mb-[var(--spacing-4)]", children: slots.logo }),
|
|
296
296
|
/* @__PURE__ */ jsx2(CardTitle, { children: title }),
|
|
297
297
|
/* @__PURE__ */ jsx2(CardDescription, { children: subtitle })
|
|
298
298
|
] }),
|
|
299
|
-
/* @__PURE__ */ jsxs2(CardContent, { className: "space-y-[var(--
|
|
300
|
-
/* @__PURE__ */ jsxs2("div", { className: "space-y-[var(--
|
|
299
|
+
/* @__PURE__ */ jsxs2(CardContent, { className: "space-y-[var(--spacing-4)]", children: [
|
|
300
|
+
/* @__PURE__ */ jsxs2("div", { className: "space-y-[var(--spacing-2)]", children: [
|
|
301
301
|
/* @__PURE__ */ jsx2(Label, { htmlFor: "name", children: "Name" }),
|
|
302
302
|
/* @__PURE__ */ jsx2(Input, { id: "name", type: "text", placeholder: "Enter your name" })
|
|
303
303
|
] }),
|
|
304
|
-
/* @__PURE__ */ jsxs2("div", { className: "space-y-[var(--
|
|
304
|
+
/* @__PURE__ */ jsxs2("div", { className: "space-y-[var(--spacing-2)]", children: [
|
|
305
305
|
/* @__PURE__ */ jsx2(Label, { htmlFor: "email", children: "Email" }),
|
|
306
306
|
/* @__PURE__ */ jsx2(Input, { id: "email", type: "email", placeholder: "Enter your email" })
|
|
307
307
|
] }),
|
|
308
|
-
/* @__PURE__ */ jsxs2("div", { className: "space-y-[var(--
|
|
308
|
+
/* @__PURE__ */ jsxs2("div", { className: "space-y-[var(--spacing-2)]", children: [
|
|
309
309
|
/* @__PURE__ */ jsx2(Label, { htmlFor: "password", children: "Password" }),
|
|
310
310
|
/* @__PURE__ */ jsx2(Input, { id: "password", type: "password", placeholder: "Enter your password" })
|
|
311
311
|
] }),
|
|
312
|
-
/* @__PURE__ */ jsxs2("div", { className: "space-y-[var(--
|
|
312
|
+
/* @__PURE__ */ jsxs2("div", { className: "space-y-[var(--spacing-2)]", children: [
|
|
313
313
|
/* @__PURE__ */ jsx2(Label, { htmlFor: "password-confirm", children: "Confirm Password" }),
|
|
314
314
|
/* @__PURE__ */ jsx2(Input, { id: "password-confirm", type: "password", placeholder: "Confirm your password" })
|
|
315
315
|
] }),
|
|
316
|
-
slots.termsCheckbox && /* @__PURE__ */ jsx2("div", { className: "flex items-start space-x-[var(--
|
|
316
|
+
slots.termsCheckbox && /* @__PURE__ */ jsx2("div", { className: "flex items-start space-x-[var(--spacing-2)]", children: slots.termsCheckbox }),
|
|
317
317
|
/* @__PURE__ */ jsx2(Button, { className: "w-full", children: buttonLabel }),
|
|
318
318
|
showSocialSignup && slots.socialSignup && /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
319
319
|
/* @__PURE__ */ jsxs2("div", { className: "relative", children: [
|
|
320
320
|
/* @__PURE__ */ jsx2("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsx2(Separator, {}) }),
|
|
321
|
-
/* @__PURE__ */ jsx2("div", { className: "relative flex justify-center text-xs uppercase", children: /* @__PURE__ */ jsx2("span", { className: "bg-[var(--
|
|
321
|
+
/* @__PURE__ */ jsx2("div", { className: "relative flex justify-center text-xs uppercase", children: /* @__PURE__ */ jsx2("span", { className: "bg-[var(--bg-background)] px-[var(--spacing-2)] text-[var(--text-muted-foreground)]", children: "Or sign up with" }) })
|
|
322
322
|
] }),
|
|
323
|
-
/* @__PURE__ */ jsx2("div", { className: "grid grid-cols-2 gap-[var(--
|
|
323
|
+
/* @__PURE__ */ jsx2("div", { className: "grid grid-cols-2 gap-[var(--spacing-4)]", children: slots.socialSignup })
|
|
324
324
|
] })
|
|
325
325
|
] }),
|
|
326
|
-
/* @__PURE__ */ jsx2(CardFooter, { children: slots.footer || /* @__PURE__ */ jsxs2("p", { className: "text-sm text-center w-full text-[var(--
|
|
326
|
+
/* @__PURE__ */ jsx2(CardFooter, { children: slots.footer || /* @__PURE__ */ jsxs2("p", { className: "text-sm text-center w-full text-[var(--text-muted-foreground)]", children: [
|
|
327
327
|
"Already have an account?",
|
|
328
328
|
" ",
|
|
329
|
-
/* @__PURE__ */ jsx2("a", { href: "#", className: "text-[var(--
|
|
329
|
+
/* @__PURE__ */ jsx2("a", { href: "#", className: "text-[var(--text-primary)] hover:underline", children: "Sign in" })
|
|
330
330
|
] }) })
|
|
331
331
|
] }),
|
|
332
332
|
children
|
|
@@ -350,25 +350,25 @@ function ForgotPasswordTemplateComponent({
|
|
|
350
350
|
return /* @__PURE__ */ jsxs3(
|
|
351
351
|
"div",
|
|
352
352
|
{
|
|
353
|
-
className: `min-h-screen flex items-center justify-center p-[var(--
|
|
353
|
+
className: `min-h-screen flex items-center justify-center p-[var(--spacing-4)] ${className}`,
|
|
354
354
|
children: [
|
|
355
355
|
/* @__PURE__ */ jsxs3(Card, { className: "w-full max-w-md", children: [
|
|
356
356
|
/* @__PURE__ */ jsxs3(CardHeader, { children: [
|
|
357
|
-
slots.logo && /* @__PURE__ */ jsx3("div", { className: "mb-[var(--
|
|
357
|
+
slots.logo && /* @__PURE__ */ jsx3("div", { className: "mb-[var(--spacing-4)]", children: slots.logo }),
|
|
358
358
|
/* @__PURE__ */ jsx3(CardTitle, { children: title }),
|
|
359
359
|
/* @__PURE__ */ jsx3(CardDescription, { children: subtitle })
|
|
360
360
|
] }),
|
|
361
|
-
/* @__PURE__ */ jsxs3(CardContent, { className: "space-y-[var(--
|
|
362
|
-
/* @__PURE__ */ jsxs3("div", { className: "space-y-[var(--
|
|
361
|
+
/* @__PURE__ */ jsxs3(CardContent, { className: "space-y-[var(--spacing-4)]", children: [
|
|
362
|
+
/* @__PURE__ */ jsxs3("div", { className: "space-y-[var(--spacing-2)]", children: [
|
|
363
363
|
/* @__PURE__ */ jsx3(Label, { htmlFor: "email", children: "Email" }),
|
|
364
364
|
/* @__PURE__ */ jsx3(Input, { id: "email", type: "email", placeholder: "Enter your email" })
|
|
365
365
|
] }),
|
|
366
366
|
/* @__PURE__ */ jsx3(Button, { className: "w-full", children: buttonLabel })
|
|
367
367
|
] }),
|
|
368
|
-
/* @__PURE__ */ jsx3(CardFooter, { children: slots.footer || /* @__PURE__ */ jsxs3("p", { className: "text-sm text-center w-full text-[var(--
|
|
368
|
+
/* @__PURE__ */ jsx3(CardFooter, { children: slots.footer || /* @__PURE__ */ jsxs3("p", { className: "text-sm text-center w-full text-[var(--text-muted-foreground)]", children: [
|
|
369
369
|
"Remember your password?",
|
|
370
370
|
" ",
|
|
371
|
-
/* @__PURE__ */ jsx3("a", { href: "#", className: "text-[var(--
|
|
371
|
+
/* @__PURE__ */ jsx3("a", { href: "#", className: "text-[var(--text-primary)] hover:underline", children: "Back to login" })
|
|
372
372
|
] }) })
|
|
373
373
|
] }),
|
|
374
374
|
children
|
|
@@ -398,27 +398,27 @@ function VerificationTemplateComponent({
|
|
|
398
398
|
return /* @__PURE__ */ jsxs4(
|
|
399
399
|
"div",
|
|
400
400
|
{
|
|
401
|
-
className: `min-h-screen flex items-center justify-center p-[var(--
|
|
401
|
+
className: `min-h-screen flex items-center justify-center p-[var(--spacing-4)] ${className}`,
|
|
402
402
|
children: [
|
|
403
403
|
/* @__PURE__ */ jsxs4(Card, { className: "w-full max-w-md", children: [
|
|
404
404
|
/* @__PURE__ */ jsxs4(CardHeader, { children: [
|
|
405
|
-
slots.icon && /* @__PURE__ */ jsx4("div", { className: "mb-[var(--
|
|
405
|
+
slots.icon && /* @__PURE__ */ jsx4("div", { className: "mb-[var(--spacing-4)]", children: slots.icon }),
|
|
406
406
|
/* @__PURE__ */ jsx4(CardTitle, { children: title }),
|
|
407
407
|
/* @__PURE__ */ jsx4(CardDescription, { children: subtitle })
|
|
408
408
|
] }),
|
|
409
|
-
/* @__PURE__ */ jsxs4(CardContent, { className: "space-y-[var(--
|
|
410
|
-
/* @__PURE__ */ jsx4("div", { className: "bg-[var(--
|
|
409
|
+
/* @__PURE__ */ jsxs4(CardContent, { className: "space-y-[var(--spacing-4)]", children: [
|
|
410
|
+
/* @__PURE__ */ jsx4("div", { className: "bg-[var(--bg-muted)] p-[var(--spacing-3)] rounded-[var(--radius-md)] text-center", children: /* @__PURE__ */ jsx4("p", { className: "text-sm font-medium", children: userEmail }) }),
|
|
411
411
|
/* @__PURE__ */ jsx4(Button, { className: "w-full", children: buttonLabel }),
|
|
412
|
-
showResend && /* @__PURE__ */ jsx4("div", { className: "text-center", children: /* @__PURE__ */ jsxs4("p", { className: "text-sm text-[var(--
|
|
412
|
+
showResend && /* @__PURE__ */ jsx4("div", { className: "text-center", children: /* @__PURE__ */ jsxs4("p", { className: "text-sm text-[var(--text-muted-foreground)]", children: [
|
|
413
413
|
"Didn't receive the email?",
|
|
414
414
|
" ",
|
|
415
|
-
/* @__PURE__ */ jsx4("button", { className: "text-[var(--
|
|
415
|
+
/* @__PURE__ */ jsx4("button", { className: "text-[var(--text-primary)] hover:underline", children: "Resend" })
|
|
416
416
|
] }) })
|
|
417
417
|
] }),
|
|
418
|
-
/* @__PURE__ */ jsx4(CardFooter, { children: slots.footer || /* @__PURE__ */ jsxs4("p", { className: "text-sm text-center w-full text-[var(--
|
|
418
|
+
/* @__PURE__ */ jsx4(CardFooter, { children: slots.footer || /* @__PURE__ */ jsxs4("p", { className: "text-sm text-center w-full text-[var(--text-muted-foreground)]", children: [
|
|
419
419
|
"Wrong email?",
|
|
420
420
|
" ",
|
|
421
|
-
/* @__PURE__ */ jsx4("a", { href: "#", className: "text-[var(--
|
|
421
|
+
/* @__PURE__ */ jsx4("a", { href: "#", className: "text-[var(--text-primary)] hover:underline", children: "Change email address" })
|
|
422
422
|
] }) })
|
|
423
423
|
] }),
|
|
424
424
|
children
|
|
@@ -443,17 +443,17 @@ function LandingTemplateComponent({
|
|
|
443
443
|
const subtitle = texts.subtitle || "Start a new conversation or continue where you left off";
|
|
444
444
|
const ctaLabel = texts.cta_label || "New Conversation";
|
|
445
445
|
return /* @__PURE__ */ jsxs5("div", { className: `min-h-screen flex ${className}`, children: [
|
|
446
|
-
slots.sidebar && /* @__PURE__ */ jsx5("aside", { className: "w-64 border-r border-[var(--
|
|
446
|
+
slots.sidebar && /* @__PURE__ */ jsx5("aside", { className: "w-64 border-r border-[var(--border-default)] bg-[var(--bg-muted)]", children: slots.sidebar }),
|
|
447
447
|
/* @__PURE__ */ jsxs5("main", { className: "flex-1 flex flex-col", children: [
|
|
448
|
-
slots.header && /* @__PURE__ */ jsx5("header", { className: "border-b border-[var(--
|
|
449
|
-
/* @__PURE__ */ jsx5("div", { className: "flex-1 flex flex-col items-center justify-center p-[var(--
|
|
450
|
-
/* @__PURE__ */ jsxs5("div", { className: "space-y-[var(--
|
|
448
|
+
slots.header && /* @__PURE__ */ jsx5("header", { className: "border-b border-[var(--border-default)] p-[var(--spacing-4)]", children: slots.header }),
|
|
449
|
+
/* @__PURE__ */ jsx5("div", { className: "flex-1 flex flex-col items-center justify-center p-[var(--spacing-8)]", children: /* @__PURE__ */ jsxs5("div", { className: "max-w-2xl w-full text-center space-y-[var(--spacing-6)]", children: [
|
|
450
|
+
/* @__PURE__ */ jsxs5("div", { className: "space-y-[var(--spacing-2)]", children: [
|
|
451
451
|
/* @__PURE__ */ jsx5("h1", { className: "text-3xl font-bold", children: title }),
|
|
452
|
-
/* @__PURE__ */ jsx5("p", { className: "text-[var(--
|
|
452
|
+
/* @__PURE__ */ jsx5("p", { className: "text-[var(--text-muted-foreground)]", children: subtitle })
|
|
453
453
|
] }),
|
|
454
454
|
/* @__PURE__ */ jsx5("div", { children: /* @__PURE__ */ jsx5(Button, { size: "lg", children: ctaLabel }) }),
|
|
455
|
-
slots.recentActivity && /* @__PURE__ */ jsx5("div", { className: "mt-[var(--
|
|
456
|
-
slots.suggestions && /* @__PURE__ */ jsx5("div", { className: "mt-[var(--
|
|
455
|
+
slots.recentActivity && /* @__PURE__ */ jsx5("div", { className: "mt-[var(--spacing-8)]", children: slots.recentActivity }),
|
|
456
|
+
slots.suggestions && /* @__PURE__ */ jsx5("div", { className: "mt-[var(--spacing-6)]", children: slots.suggestions })
|
|
457
457
|
] }) })
|
|
458
458
|
] }),
|
|
459
459
|
children
|
|
@@ -473,13 +473,13 @@ function PreferencesTemplateComponent({
|
|
|
473
473
|
const subtitle = texts.subtitle || "Manage your account settings and preferences";
|
|
474
474
|
const saveLabel = texts.save_label || "Save Changes";
|
|
475
475
|
return /* @__PURE__ */ jsxs6("div", { className: `min-h-screen flex ${className}`, children: [
|
|
476
|
-
slots.settingsNav && /* @__PURE__ */ jsx6("aside", { className: "w-64 border-r border-[var(--
|
|
477
|
-
/* @__PURE__ */ jsx6("main", { className: "flex-1 p-[var(--
|
|
478
|
-
/* @__PURE__ */ jsxs6("div", { className: "mb-[var(--
|
|
479
|
-
/* @__PURE__ */ jsx6("h1", { className: "text-3xl font-bold mb-[var(--
|
|
480
|
-
/* @__PURE__ */ jsx6("p", { className: "text-[var(--
|
|
476
|
+
slots.settingsNav && /* @__PURE__ */ jsx6("aside", { className: "w-64 border-r border-[var(--border-default)] p-[var(--spacing-4)] bg-[var(--bg-muted)]", children: slots.settingsNav }),
|
|
477
|
+
/* @__PURE__ */ jsx6("main", { className: "flex-1 p-[var(--spacing-8)]", children: /* @__PURE__ */ jsxs6("div", { className: "max-w-3xl", children: [
|
|
478
|
+
/* @__PURE__ */ jsxs6("div", { className: "mb-[var(--spacing-8)]", children: [
|
|
479
|
+
/* @__PURE__ */ jsx6("h1", { className: "text-3xl font-bold mb-[var(--spacing-2)]", children: title }),
|
|
480
|
+
/* @__PURE__ */ jsx6("p", { className: "text-[var(--text-muted-foreground)]", children: subtitle })
|
|
481
481
|
] }),
|
|
482
|
-
/* @__PURE__ */ jsxs6("div", { className: "space-y-[var(--
|
|
482
|
+
/* @__PURE__ */ jsxs6("div", { className: "space-y-[var(--spacing-6)]", children: [
|
|
483
483
|
slots.generalSettings && /* @__PURE__ */ jsxs6(Card, { children: [
|
|
484
484
|
/* @__PURE__ */ jsxs6(CardHeader, { children: [
|
|
485
485
|
/* @__PURE__ */ jsx6(CardTitle, { children: "General" }),
|
|
@@ -503,7 +503,7 @@ function PreferencesTemplateComponent({
|
|
|
503
503
|
] }),
|
|
504
504
|
slots.additionalSettings && slots.additionalSettings
|
|
505
505
|
] }),
|
|
506
|
-
/* @__PURE__ */ jsxs6("div", { className: "mt-[var(--
|
|
506
|
+
/* @__PURE__ */ jsxs6("div", { className: "mt-[var(--spacing-8)] flex justify-end gap-[var(--spacing-4)]", children: [
|
|
507
507
|
/* @__PURE__ */ jsx6(Button, { variant: "outline", children: "Cancel" }),
|
|
508
508
|
/* @__PURE__ */ jsx6(Button, { children: saveLabel })
|
|
509
509
|
] })
|
|
@@ -530,40 +530,40 @@ function ProfileTemplateComponent({
|
|
|
530
530
|
const saveLabel = texts.save_label || "Save Changes";
|
|
531
531
|
const userName = String(options.user_name || "John Doe");
|
|
532
532
|
const userEmail = String(options.user_email || "john@example.com");
|
|
533
|
-
return /* @__PURE__ */ jsxs7("div", { className: `min-h-screen p-[var(--
|
|
533
|
+
return /* @__PURE__ */ jsxs7("div", { className: `min-h-screen p-[var(--spacing-8)] ${className}`, children: [
|
|
534
534
|
/* @__PURE__ */ jsxs7("div", { className: "max-w-3xl mx-auto", children: [
|
|
535
|
-
/* @__PURE__ */ jsxs7("div", { className: "mb-[var(--
|
|
536
|
-
/* @__PURE__ */ jsx7("h1", { className: "text-3xl font-bold mb-[var(--
|
|
537
|
-
/* @__PURE__ */ jsx7("p", { className: "text-[var(--
|
|
535
|
+
/* @__PURE__ */ jsxs7("div", { className: "mb-[var(--spacing-8)]", children: [
|
|
536
|
+
/* @__PURE__ */ jsx7("h1", { className: "text-3xl font-bold mb-[var(--spacing-2)]", children: title }),
|
|
537
|
+
/* @__PURE__ */ jsx7("p", { className: "text-[var(--text-muted-foreground)]", children: subtitle })
|
|
538
538
|
] }),
|
|
539
539
|
/* @__PURE__ */ jsxs7(Card, { children: [
|
|
540
540
|
/* @__PURE__ */ jsxs7(CardHeader, { children: [
|
|
541
541
|
/* @__PURE__ */ jsx7(CardTitle, { children: "Personal Information" }),
|
|
542
542
|
/* @__PURE__ */ jsx7(CardDescription, { children: "Update your profile details" })
|
|
543
543
|
] }),
|
|
544
|
-
/* @__PURE__ */ jsxs7(CardContent, { className: "space-y-[var(--
|
|
545
|
-
slots.avatar && /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-[var(--
|
|
544
|
+
/* @__PURE__ */ jsxs7(CardContent, { className: "space-y-[var(--spacing-6)]", children: [
|
|
545
|
+
slots.avatar && /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-[var(--spacing-4)]", children: [
|
|
546
546
|
/* @__PURE__ */ jsx7("div", { children: slots.avatar }),
|
|
547
547
|
/* @__PURE__ */ jsxs7("div", { children: [
|
|
548
548
|
/* @__PURE__ */ jsx7(Button, { variant: "outline", size: "sm", children: "Change Photo" }),
|
|
549
|
-
/* @__PURE__ */ jsx7("p", { className: "text-xs text-[var(--
|
|
549
|
+
/* @__PURE__ */ jsx7("p", { className: "text-xs text-[var(--text-muted-foreground)] mt-[var(--spacing-2)]", children: "JPG, PNG. Max 2MB" })
|
|
550
550
|
] })
|
|
551
551
|
] }),
|
|
552
|
-
/* @__PURE__ */ jsxs7("div", { className: "space-y-[var(--
|
|
552
|
+
/* @__PURE__ */ jsxs7("div", { className: "space-y-[var(--spacing-2)]", children: [
|
|
553
553
|
/* @__PURE__ */ jsx7(Label, { htmlFor: "name", children: "Name" }),
|
|
554
554
|
/* @__PURE__ */ jsx7(Input, { id: "name", type: "text", defaultValue: userName })
|
|
555
555
|
] }),
|
|
556
|
-
/* @__PURE__ */ jsxs7("div", { className: "space-y-[var(--
|
|
556
|
+
/* @__PURE__ */ jsxs7("div", { className: "space-y-[var(--spacing-2)]", children: [
|
|
557
557
|
/* @__PURE__ */ jsx7(Label, { htmlFor: "email", children: "Email" }),
|
|
558
558
|
/* @__PURE__ */ jsx7(Input, { id: "email", type: "email", defaultValue: userEmail, disabled: true }),
|
|
559
|
-
/* @__PURE__ */ jsx7("p", { className: "text-xs text-[var(--
|
|
559
|
+
/* @__PURE__ */ jsx7("p", { className: "text-xs text-[var(--text-muted-foreground)]", children: "Contact support to change your email address" })
|
|
560
560
|
] }),
|
|
561
|
-
slots.bioField && /* @__PURE__ */ jsx7("div", { className: "space-y-[var(--
|
|
561
|
+
slots.bioField && /* @__PURE__ */ jsx7("div", { className: "space-y-[var(--spacing-2)]", children: slots.bioField }),
|
|
562
562
|
slots.additionalFields && slots.additionalFields
|
|
563
563
|
] })
|
|
564
564
|
] }),
|
|
565
|
-
slots.additionalSections && /* @__PURE__ */ jsx7("div", { className: "mt-[var(--
|
|
566
|
-
/* @__PURE__ */ jsxs7("div", { className: "mt-[var(--
|
|
565
|
+
slots.additionalSections && /* @__PURE__ */ jsx7("div", { className: "mt-[var(--spacing-6)]", children: slots.additionalSections }),
|
|
566
|
+
/* @__PURE__ */ jsxs7("div", { className: "mt-[var(--spacing-8)] flex justify-end gap-[var(--spacing-4)]", children: [
|
|
567
567
|
/* @__PURE__ */ jsx7(Button, { variant: "outline", children: "Cancel" }),
|
|
568
568
|
/* @__PURE__ */ jsx7(Button, { children: saveLabel })
|
|
569
569
|
] })
|
|
@@ -587,11 +587,11 @@ function LoadingTemplateComponent({
|
|
|
587
587
|
return /* @__PURE__ */ jsxs8(
|
|
588
588
|
"div",
|
|
589
589
|
{
|
|
590
|
-
className: `min-h-screen flex items-center justify-center p-[var(--
|
|
590
|
+
className: `min-h-screen flex items-center justify-center p-[var(--spacing-4)] ${className}`,
|
|
591
591
|
children: [
|
|
592
|
-
/* @__PURE__ */ jsxs8("div", { className: "flex flex-col items-center gap-[var(--
|
|
593
|
-
slots.spinner || /* @__PURE__ */ jsx8("div", { className: "animate-spin rounded-full h-12 w-12 border-b-2 border-[var(--
|
|
594
|
-
showMessage && /* @__PURE__ */ jsx8("p", { className: "text-sm text-[var(--
|
|
592
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex flex-col items-center gap-[var(--spacing-4)]", children: [
|
|
593
|
+
slots.spinner || /* @__PURE__ */ jsx8("div", { className: "animate-spin rounded-full h-12 w-12 border-b-2 border-[var(--border-primary)]" }),
|
|
594
|
+
showMessage && /* @__PURE__ */ jsx8("p", { className: "text-sm text-[var(--text-muted-foreground)]", children: message })
|
|
595
595
|
] }),
|
|
596
596
|
children
|
|
597
597
|
]
|
|
@@ -619,14 +619,14 @@ function ErrorTemplateComponent({
|
|
|
619
619
|
return /* @__PURE__ */ jsxs9(
|
|
620
620
|
"div",
|
|
621
621
|
{
|
|
622
|
-
className: `min-h-screen flex items-center justify-center p-[var(--
|
|
622
|
+
className: `min-h-screen flex items-center justify-center p-[var(--spacing-4)] ${className}`,
|
|
623
623
|
children: [
|
|
624
|
-
/* @__PURE__ */ jsxs9("div", { className: "max-w-md text-center space-y-[var(--
|
|
625
|
-
slots.icon || /* @__PURE__ */ jsx9("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx9("div", { className: "rounded-full bg-[var(--
|
|
624
|
+
/* @__PURE__ */ jsxs9("div", { className: "max-w-md text-center space-y-[var(--spacing-6)]", children: [
|
|
625
|
+
slots.icon || /* @__PURE__ */ jsx9("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx9("div", { className: "rounded-full bg-[var(--bg-destructive)] bg-opacity-10 p-[var(--spacing-4)]", children: /* @__PURE__ */ jsx9(
|
|
626
626
|
"svg",
|
|
627
627
|
{
|
|
628
628
|
xmlns: "http://www.w3.org/2000/svg",
|
|
629
|
-
className: "h-12 w-12 text-[var(--
|
|
629
|
+
className: "h-12 w-12 text-[var(--text-destructive)]",
|
|
630
630
|
fill: "none",
|
|
631
631
|
viewBox: "0 0 24 24",
|
|
632
632
|
stroke: "currentColor",
|
|
@@ -641,12 +641,12 @@ function ErrorTemplateComponent({
|
|
|
641
641
|
)
|
|
642
642
|
}
|
|
643
643
|
) }) }),
|
|
644
|
-
/* @__PURE__ */ jsxs9("div", { className: "space-y-[var(--
|
|
644
|
+
/* @__PURE__ */ jsxs9("div", { className: "space-y-[var(--spacing-2)]", children: [
|
|
645
645
|
/* @__PURE__ */ jsx9("h2", { className: "text-2xl font-bold", children: title }),
|
|
646
|
-
/* @__PURE__ */ jsx9("p", { className: "text-[var(--
|
|
646
|
+
/* @__PURE__ */ jsx9("p", { className: "text-[var(--text-muted-foreground)]", children: message })
|
|
647
647
|
] }),
|
|
648
|
-
slots.errorDetails && /* @__PURE__ */ jsx9("div", { className: "text-left bg-[var(--
|
|
649
|
-
/* @__PURE__ */ jsxs9("div", { className: "flex flex-col gap-[var(--
|
|
648
|
+
slots.errorDetails && /* @__PURE__ */ jsx9("div", { className: "text-left bg-[var(--bg-muted)] p-[var(--spacing-4)] rounded-[var(--radius-md)] text-sm", children: slots.errorDetails }),
|
|
649
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex flex-col gap-[var(--spacing-3)]", children: [
|
|
650
650
|
showRetry && /* @__PURE__ */ jsx9(Button, { className: "w-full", children: retryLabel }),
|
|
651
651
|
slots.additionalActions && slots.additionalActions
|
|
652
652
|
] })
|
|
@@ -674,14 +674,14 @@ function EmptyTemplateComponent({
|
|
|
674
674
|
return /* @__PURE__ */ jsxs10(
|
|
675
675
|
"div",
|
|
676
676
|
{
|
|
677
|
-
className: `min-h-screen flex items-center justify-center p-[var(--
|
|
677
|
+
className: `min-h-screen flex items-center justify-center p-[var(--spacing-4)] ${className}`,
|
|
678
678
|
children: [
|
|
679
|
-
/* @__PURE__ */ jsxs10("div", { className: "max-w-md text-center space-y-[var(--
|
|
680
|
-
slots.illustration || /* @__PURE__ */ jsx10("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx10("div", { className: "rounded-full bg-[var(--
|
|
679
|
+
/* @__PURE__ */ jsxs10("div", { className: "max-w-md text-center space-y-[var(--spacing-6)]", children: [
|
|
680
|
+
slots.illustration || /* @__PURE__ */ jsx10("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx10("div", { className: "rounded-full bg-[var(--bg-muted)] p-[var(--spacing-8)]", children: /* @__PURE__ */ jsx10(
|
|
681
681
|
"svg",
|
|
682
682
|
{
|
|
683
683
|
xmlns: "http://www.w3.org/2000/svg",
|
|
684
|
-
className: "h-16 w-16 text-[var(--
|
|
684
|
+
className: "h-16 w-16 text-[var(--text-muted-foreground)]",
|
|
685
685
|
fill: "none",
|
|
686
686
|
viewBox: "0 0 24 24",
|
|
687
687
|
stroke: "currentColor",
|
|
@@ -696,12 +696,12 @@ function EmptyTemplateComponent({
|
|
|
696
696
|
)
|
|
697
697
|
}
|
|
698
698
|
) }) }),
|
|
699
|
-
/* @__PURE__ */ jsxs10("div", { className: "space-y-[var(--
|
|
699
|
+
/* @__PURE__ */ jsxs10("div", { className: "space-y-[var(--spacing-2)]", children: [
|
|
700
700
|
/* @__PURE__ */ jsx10("h2", { className: "text-2xl font-bold", children: title }),
|
|
701
|
-
/* @__PURE__ */ jsx10("p", { className: "text-[var(--
|
|
701
|
+
/* @__PURE__ */ jsx10("p", { className: "text-[var(--text-muted-foreground)]", children: message })
|
|
702
702
|
] }),
|
|
703
703
|
showCta && /* @__PURE__ */ jsx10("div", { children: /* @__PURE__ */ jsx10(Button, { size: "lg", children: ctaLabel }) }),
|
|
704
|
-
slots.helpText && /* @__PURE__ */ jsx10("div", { className: "text-sm text-[var(--
|
|
704
|
+
slots.helpText && /* @__PURE__ */ jsx10("div", { className: "text-sm text-[var(--text-muted-foreground)]", children: slots.helpText })
|
|
705
705
|
] }),
|
|
706
706
|
children
|
|
707
707
|
]
|
|
@@ -727,16 +727,16 @@ function ConfirmationTemplateComponent({
|
|
|
727
727
|
return /* @__PURE__ */ jsxs11(
|
|
728
728
|
"div",
|
|
729
729
|
{
|
|
730
|
-
className: `min-h-screen flex items-center justify-center p-[var(--
|
|
730
|
+
className: `min-h-screen flex items-center justify-center p-[var(--spacing-4)] ${className}`,
|
|
731
731
|
children: [
|
|
732
732
|
/* @__PURE__ */ jsxs11(Card, { className: "w-full max-w-md", children: [
|
|
733
733
|
/* @__PURE__ */ jsxs11(CardHeader, { children: [
|
|
734
|
-
isDestructive && slots.warningIcon && /* @__PURE__ */ jsx11("div", { className: "mb-[var(--
|
|
734
|
+
isDestructive && slots.warningIcon && /* @__PURE__ */ jsx11("div", { className: "mb-[var(--spacing-2)]", children: slots.warningIcon }),
|
|
735
735
|
/* @__PURE__ */ jsx11(CardTitle, { children: title }),
|
|
736
736
|
/* @__PURE__ */ jsx11(CardDescription, { children: message })
|
|
737
737
|
] }),
|
|
738
|
-
/* @__PURE__ */ jsx11(CardContent, { children: slots.details && /* @__PURE__ */ jsx11("div", { className: "bg-[var(--
|
|
739
|
-
/* @__PURE__ */ jsxs11(CardFooter, { className: "flex justify-end gap-[var(--
|
|
738
|
+
/* @__PURE__ */ jsx11(CardContent, { children: slots.details && /* @__PURE__ */ jsx11("div", { className: "bg-[var(--bg-muted)] p-[var(--spacing-4)] rounded-[var(--radius-md)] text-sm", children: slots.details }) }),
|
|
739
|
+
/* @__PURE__ */ jsxs11(CardFooter, { className: "flex justify-end gap-[var(--spacing-3)]", children: [
|
|
740
740
|
/* @__PURE__ */ jsx11(Button, { variant: "outline", children: cancelLabel }),
|
|
741
741
|
/* @__PURE__ */ jsx11(Button, { variant: isDestructive ? "destructive" : "default", children: confirmLabel })
|
|
742
742
|
] })
|
|
@@ -767,14 +767,14 @@ function SuccessTemplateComponent({
|
|
|
767
767
|
return /* @__PURE__ */ jsxs12(
|
|
768
768
|
"div",
|
|
769
769
|
{
|
|
770
|
-
className: `min-h-screen flex items-center justify-center p-[var(--
|
|
770
|
+
className: `min-h-screen flex items-center justify-center p-[var(--spacing-4)] ${className}`,
|
|
771
771
|
children: [
|
|
772
|
-
/* @__PURE__ */ jsxs12("div", { className: "max-w-md text-center space-y-[var(--
|
|
773
|
-
slots.icon || /* @__PURE__ */ jsx12("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx12("div", { className: "rounded-full bg-[var(--
|
|
772
|
+
/* @__PURE__ */ jsxs12("div", { className: "max-w-md text-center space-y-[var(--spacing-6)]", children: [
|
|
773
|
+
slots.icon || /* @__PURE__ */ jsx12("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx12("div", { className: "rounded-full bg-[var(--bg-success)] bg-opacity-10 p-[var(--spacing-4)]", children: /* @__PURE__ */ jsx12(
|
|
774
774
|
"svg",
|
|
775
775
|
{
|
|
776
776
|
xmlns: "http://www.w3.org/2000/svg",
|
|
777
|
-
className: "h-12 w-12 text-[var(--
|
|
777
|
+
className: "h-12 w-12 text-[var(--text-success)]",
|
|
778
778
|
fill: "none",
|
|
779
779
|
viewBox: "0 0 24 24",
|
|
780
780
|
stroke: "currentColor",
|
|
@@ -789,13 +789,13 @@ function SuccessTemplateComponent({
|
|
|
789
789
|
)
|
|
790
790
|
}
|
|
791
791
|
) }) }),
|
|
792
|
-
/* @__PURE__ */ jsxs12("div", { className: "space-y-[var(--
|
|
792
|
+
/* @__PURE__ */ jsxs12("div", { className: "space-y-[var(--spacing-2)]", children: [
|
|
793
793
|
/* @__PURE__ */ jsx12("h2", { className: "text-2xl font-bold", children: title }),
|
|
794
|
-
/* @__PURE__ */ jsx12("p", { className: "text-[var(--
|
|
794
|
+
/* @__PURE__ */ jsx12("p", { className: "text-[var(--text-muted-foreground)]", children: message })
|
|
795
795
|
] }),
|
|
796
|
-
slots.details && /* @__PURE__ */ jsx12("div", { className: "text-left bg-[var(--
|
|
796
|
+
slots.details && /* @__PURE__ */ jsx12("div", { className: "text-left bg-[var(--bg-muted)] p-[var(--spacing-4)] rounded-[var(--radius-md)] text-sm", children: slots.details }),
|
|
797
797
|
showCta && /* @__PURE__ */ jsx12("div", { children: /* @__PURE__ */ jsx12(Button, { className: "w-full", size: "lg", children: ctaLabel }) }),
|
|
798
|
-
slots.additionalActions && /* @__PURE__ */ jsx12("div", { className: "flex flex-col gap-[var(--
|
|
798
|
+
slots.additionalActions && /* @__PURE__ */ jsx12("div", { className: "flex flex-col gap-[var(--spacing-3)]", children: slots.additionalActions })
|
|
799
799
|
] }),
|
|
800
800
|
children
|
|
801
801
|
]
|
|
@@ -818,21 +818,21 @@ function DashboardTemplateComponent({
|
|
|
818
818
|
const title = texts.title || "Dashboard";
|
|
819
819
|
const subtitle = texts.subtitle || "Welcome to your dashboard";
|
|
820
820
|
return /* @__PURE__ */ jsxs13("div", { className: `min-h-screen flex ${className}`, children: [
|
|
821
|
-
slots.sidebar && /* @__PURE__ */ jsx13("aside", { className: "w-64 border-r border-[var(--
|
|
822
|
-
/* @__PURE__ */ jsxs13("main", { className: "flex-1 overflow-auto bg-[var(--
|
|
823
|
-
/* @__PURE__ */ jsx13("header", { className: "sticky top-0 z-10 border-b border-[var(--
|
|
821
|
+
slots.sidebar && /* @__PURE__ */ jsx13("aside", { className: "w-64 border-r border-[var(--border-default)] bg-[var(--bg-card)] hidden lg:block", children: slots.sidebar }),
|
|
822
|
+
/* @__PURE__ */ jsxs13("main", { className: "flex-1 overflow-auto bg-[var(--bg-background)]", children: [
|
|
823
|
+
/* @__PURE__ */ jsx13("header", { className: "sticky top-0 z-10 border-b border-[var(--border-default)] bg-[var(--bg-background)]/80 backdrop-blur-md p-[var(--spacing-4)]", children: /* @__PURE__ */ jsxs13("div", { className: "flex items-center justify-between", children: [
|
|
824
824
|
/* @__PURE__ */ jsxs13("div", { children: [
|
|
825
|
-
/* @__PURE__ */ jsx13("h1", { className: "text-2xl font-bold text-[var(--
|
|
826
|
-
/* @__PURE__ */ jsx13("p", { className: "text-sm text-[var(--
|
|
825
|
+
/* @__PURE__ */ jsx13("h1", { className: "text-2xl font-bold text-[var(--text-foreground)]", children: title }),
|
|
826
|
+
/* @__PURE__ */ jsx13("p", { className: "text-sm text-[var(--text-muted-foreground)]", children: subtitle })
|
|
827
827
|
] }),
|
|
828
828
|
slots.headerActions && /* @__PURE__ */ jsx13("div", { children: slots.headerActions })
|
|
829
829
|
] }) }),
|
|
830
|
-
/* @__PURE__ */ jsxs13("div", { className: "py-[var(--
|
|
831
|
-
slots.metrics && /* @__PURE__ */ jsx13("div", { className: "grid gap-[var(--
|
|
830
|
+
/* @__PURE__ */ jsxs13("div", { className: "py-[var(--layout-section-py,var(--spacing-6))] px-[var(--layout-container-px,var(--spacing-6))] space-y-[var(--layout-stack-gap,var(--spacing-6))] max-w-[var(--layout-container-xl)] mx-auto", children: [
|
|
831
|
+
slots.metrics && /* @__PURE__ */ jsx13("div", { className: "grid gap-[var(--spacing-4)] grid-cols-2 lg:grid-cols-4", children: slots.metrics }),
|
|
832
832
|
/* @__PURE__ */ jsx13(Separator, {}),
|
|
833
|
-
/* @__PURE__ */ jsxs13("div", { className: "grid gap-x-[var(--
|
|
834
|
-
slots.primaryContent && /* @__PURE__ */ jsx13("div", { className: "lg:col-span-8 space-y-[var(--
|
|
835
|
-
slots.secondaryContent && /* @__PURE__ */ jsx13("div", { className: "lg:col-span-4 space-y-[var(--
|
|
833
|
+
/* @__PURE__ */ jsxs13("div", { className: "grid gap-x-[var(--layout-grid-gap-x,var(--spacing-6))] gap-y-[var(--layout-grid-gap-y,var(--spacing-6))] lg:grid-cols-12", children: [
|
|
834
|
+
slots.primaryContent && /* @__PURE__ */ jsx13("div", { className: "lg:col-span-8 space-y-[var(--layout-stack-gap,var(--spacing-6))]", children: slots.primaryContent }),
|
|
835
|
+
slots.secondaryContent && /* @__PURE__ */ jsx13("div", { className: "lg:col-span-4 space-y-[var(--layout-stack-gap,var(--spacing-6))]", children: /* @__PURE__ */ jsxs13(Card, { className: "h-full", children: [
|
|
836
836
|
/* @__PURE__ */ jsxs13(CardHeader, { children: [
|
|
837
837
|
/* @__PURE__ */ jsx13(CardTitle, { children: texts.secondary_title || "Activity" }),
|
|
838
838
|
/* @__PURE__ */ jsx13(CardDescription, { children: texts.secondary_description || "Recent updates" })
|