@wealthx/shadcn 1.5.28 → 1.5.30

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 (53) hide show
  1. package/.turbo/turbo-build.log +134 -134
  2. package/CHANGELOG.md +12 -0
  3. package/dist/{chunk-DWJHPNFL.mjs → chunk-4UT3RZ2D.mjs} +32 -16
  4. package/dist/{chunk-CE2WONIY.mjs → chunk-AE4JKISB.mjs} +27 -31
  5. package/dist/chunk-BZWQU52U.mjs +1025 -0
  6. package/dist/{chunk-RNLIZRAK.mjs → chunk-C6R42PCL.mjs} +1 -1
  7. package/dist/{chunk-EVUY67CY.mjs → chunk-FTQ2AKZ2.mjs} +1 -1
  8. package/dist/{chunk-7T4TYUO3.mjs → chunk-H5ZD63NT.mjs} +31 -16
  9. package/dist/{chunk-SO4RB3XB.mjs → chunk-IEQX4UVP.mjs} +2 -2
  10. package/dist/chunk-IKVF4XE2.mjs +94 -0
  11. package/dist/{chunk-KPGARKFC.mjs → chunk-MS3GNXMB.mjs} +1 -1
  12. package/dist/{chunk-M32QNCD3.mjs → chunk-OSSS56CB.mjs} +1 -1
  13. package/dist/{chunk-36IN7YRM.mjs → chunk-SCGCGVDN.mjs} +1 -1
  14. package/dist/{chunk-KJQ3BVTB.mjs → chunk-X2NIDXFB.mjs} +1 -1
  15. package/dist/components/ui/ai-builder/index.js +993 -12
  16. package/dist/components/ui/ai-builder/index.mjs +27 -3
  17. package/dist/components/ui/ai-conversations/index.js +27 -31
  18. package/dist/components/ui/ai-conversations/index.mjs +1 -1
  19. package/dist/components/ui/backoffice-signup-steps.js +98 -48
  20. package/dist/components/ui/backoffice-signup-steps.mjs +4 -4
  21. package/dist/components/ui/bank-statement-generate-dialog.mjs +2 -2
  22. package/dist/components/ui/chat-widget.js +1 -1
  23. package/dist/components/ui/chat-widget.mjs +2 -2
  24. package/dist/components/ui/contact-alert-dialog/index.mjs +2 -2
  25. package/dist/components/ui/field.js +1 -1
  26. package/dist/components/ui/field.mjs +1 -1
  27. package/dist/components/ui/frontend-signup-steps.js +166 -90
  28. package/dist/components/ui/frontend-signup-steps.mjs +4 -5
  29. package/dist/components/ui/password-strength-tooltip.js +81 -107
  30. package/dist/components/ui/password-strength-tooltip.mjs +3 -2
  31. package/dist/components/ui/property-report-dialog.mjs +2 -2
  32. package/dist/components/ui/signup-form-primitives.js +117 -114
  33. package/dist/components/ui/signup-form-primitives.mjs +3 -4
  34. package/dist/components/ui/two-fa-setup-form.js +31 -16
  35. package/dist/components/ui/two-fa-setup-form.mjs +2 -2
  36. package/dist/index.js +5061 -4992
  37. package/dist/index.mjs +12 -12
  38. package/dist/styles.css +1 -1
  39. package/package.json +4 -1
  40. package/src/components/index.tsx +0 -2
  41. package/src/components/ui/ai-builder/agent-card.tsx +7 -5
  42. package/src/components/ui/ai-builder/agent-settings.tsx +709 -0
  43. package/src/components/ui/ai-builder/index.tsx +27 -2
  44. package/src/components/ui/ai-builder/service-config-modal.tsx +11 -11
  45. package/src/components/ui/ai-builder/types.ts +27 -15
  46. package/src/components/ui/ai-conversations/thread.tsx +9 -11
  47. package/src/components/ui/field.tsx +12 -12
  48. package/src/components/ui/password-strength-tooltip.tsx +89 -47
  49. package/src/components/ui/signup-form-primitives.tsx +34 -16
  50. package/src/components/ui/two-fa-setup-form.tsx +41 -31
  51. package/src/styles/styles-css.ts +1 -1
  52. package/dist/chunk-T5PGVLMR.mjs +0 -479
  53. package/dist/chunk-WHIW6KOB.mjs +0 -57
@@ -367,7 +367,7 @@ function FieldError(_a) {
367
367
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
368
368
  "div",
369
369
  __spreadProps(__spreadValues({
370
- className: cn("text-caption text-destructive", className),
370
+ className: cn("text-left text-caption text-destructive", className),
371
371
  "data-slot": "field-error",
372
372
  role: "alert"
373
373
  }, props), {
@@ -483,6 +483,16 @@ var DEFAULT_APPS = [
483
483
  { name: "Google Authenticator" },
484
484
  { name: "Microsoft Authenticator" }
485
485
  ];
486
+ var STEP_META = {
487
+ 1: {
488
+ subtitle: "We recommend Google Authenticator or Microsoft Authenticator",
489
+ defaultTitle: "2FA Setup"
490
+ },
491
+ 2: {
492
+ title: "Open Auth App and Scan Code",
493
+ subtitle: "Open your authenticator app and scan the QR code"
494
+ }
495
+ };
486
496
  function AppDownloadStep({
487
497
  apps,
488
498
  onNext,
@@ -490,18 +500,21 @@ function AppDownloadStep({
490
500
  required
491
501
  }) {
492
502
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-6", children: [
493
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex gap-4", children: apps.map((app) => {
494
- var _a;
503
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex flex-col gap-3", children: apps.map((app) => {
504
+ var _a, _b;
495
505
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
496
506
  "div",
497
507
  {
498
- className: "flex flex-1 flex-col items-center gap-3 border border-border bg-muted/30 p-4 text-center",
508
+ className: "flex items-center gap-4 border border-border bg-muted/30 p-4",
499
509
  children: [
500
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-2 text-sm font-medium text-foreground", children: [
501
- (_a = app.icon) != null ? _a : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react2.Smartphone, { size: 18, className: "text-muted-foreground" }),
502
- app.name
503
- ] }),
504
- app.qrNode ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex items-center justify-center", children: app.qrNode }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex h-[100px] w-[100px] items-center justify-center border border-dashed border-border bg-muted/50 text-[11px] text-muted-foreground", children: "Scan to download" })
510
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex shrink-0 items-center justify-center", children: (_a = app.qrNode) != null ? _a : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex h-[80px] w-[80px] items-center justify-center border border-dashed border-border bg-muted/50 text-[11px] text-muted-foreground", children: "Scan" }) }),
511
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-1", children: [
512
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-2 text-sm font-medium text-foreground", children: [
513
+ (_b = app.icon) != null ? _b : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react2.Smartphone, { size: 16, className: "text-muted-foreground" }),
514
+ app.name
515
+ ] }),
516
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-xs text-muted-foreground", children: "Scan to download" })
517
+ ] })
505
518
  ]
506
519
  },
507
520
  app.name
@@ -533,15 +546,17 @@ function VerificationStep({
533
546
  setIsLoading(true);
534
547
  try {
535
548
  yield onVerify(token);
536
- } catch (e) {
537
- setError("Invalid code. Please try again.");
549
+ } catch (err) {
550
+ setError(
551
+ err instanceof Error ? err.message : "Invalid code. Please try again."
552
+ );
538
553
  } finally {
539
554
  setIsLoading(false);
540
555
  }
541
556
  });
542
557
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-6", children: [
543
558
  /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col items-center gap-3", children: [
544
- qrCodeNode ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex items-center justify-center", children: qrCodeNode }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex h-[140px] w-[140px] items-center justify-center border border-dashed border-border bg-muted/50 text-xs text-muted-foreground", children: "QR Code" }),
559
+ qrCodeNode != null ? qrCodeNode : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex h-[140px] w-[140px] items-center justify-center border border-dashed border-border bg-muted/50 text-xs text-muted-foreground", children: "QR Code" }),
545
560
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-center text-sm text-muted-foreground", children: "The temporary code will show for authentication. Insert below." })
546
561
  ] }),
547
562
  /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Field, { children: [
@@ -583,7 +598,7 @@ function VerificationStep({
583
598
  ] });
584
599
  }
585
600
  function TwoFASetupForm({
586
- title = "2FA Setup",
601
+ title,
587
602
  apps = DEFAULT_APPS,
588
603
  qrCodeNode,
589
604
  onVerify,
@@ -592,10 +607,10 @@ function TwoFASetupForm({
592
607
  className
593
608
  }) {
594
609
  const [step, setStep] = (0, import_react3.useState)(1);
595
- const stepTitle = step === 1 ? title : "Open Auth App and Scan Code";
596
- const stepSubtitle = step === 1 ? "We recommend Google Authenticator or Microsoft Authenticator" : "Open your authenticator app and scan the QR code";
610
+ const stepTitle = step === 1 ? title != null ? title : STEP_META[1].defaultTitle : STEP_META[2].title;
611
+ const stepSubtitle = STEP_META[step].subtitle;
597
612
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: cn("flex flex-col gap-6", className), children: [
598
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-1", children: [
613
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col items-center gap-1 text-center", children: [
599
614
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h2", { className: "text-xl font-semibold text-foreground", children: stepTitle }),
600
615
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-sm text-muted-foreground", children: stepSubtitle })
601
616
  ] }),
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  TwoFASetupForm
3
- } from "../../chunk-7T4TYUO3.mjs";
3
+ } from "../../chunk-H5ZD63NT.mjs";
4
4
  import "../../chunk-7YI3HEBH.mjs";
5
- import "../../chunk-KPGARKFC.mjs";
5
+ import "../../chunk-MS3GNXMB.mjs";
6
6
  import "../../chunk-2GIYVERS.mjs";
7
7
  import "../../chunk-BS75ICOO.mjs";
8
8
  import "../../chunk-LSRGA5BI.mjs";