@mesob/auth-react 0.2.3 → 0.2.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.
Files changed (62) hide show
  1. package/dist/components/auth/countdown.js +2 -3
  2. package/dist/components/auth/countdown.js.map +1 -1
  3. package/dist/components/auth/forgot-password.js +9 -11
  4. package/dist/components/auth/forgot-password.js.map +1 -1
  5. package/dist/components/auth/reset-password-form.js +11 -13
  6. package/dist/components/auth/reset-password-form.js.map +1 -1
  7. package/dist/components/auth/sign-in.js +9 -11
  8. package/dist/components/auth/sign-in.js.map +1 -1
  9. package/dist/components/auth/sign-up.js +8 -10
  10. package/dist/components/auth/sign-up.js.map +1 -1
  11. package/dist/components/auth/verification-form.js +9 -8
  12. package/dist/components/auth/verification-form.js.map +1 -1
  13. package/dist/components/auth/verify-email.js +12 -15
  14. package/dist/components/auth/verify-email.js.map +1 -1
  15. package/dist/components/auth/verify-phone.js +13 -14
  16. package/dist/components/auth/verify-phone.js.map +1 -1
  17. package/dist/components/error-boundary.d.ts +2 -2
  18. package/dist/components/error-boundary.js +1 -1
  19. package/dist/components/error-boundary.js.map +1 -1
  20. package/dist/components/iam/permissions.js +3 -4
  21. package/dist/components/iam/permissions.js.map +1 -1
  22. package/dist/components/iam/roles.js +3 -4
  23. package/dist/components/iam/roles.js.map +1 -1
  24. package/dist/components/iam/sessions.js +3 -3
  25. package/dist/components/iam/sessions.js.map +1 -1
  26. package/dist/components/iam/tenants.js +3 -4
  27. package/dist/components/iam/tenants.js.map +1 -1
  28. package/dist/components/iam/users.js +3 -4
  29. package/dist/components/iam/users.js.map +1 -1
  30. package/dist/components/profile/account.js +1 -1
  31. package/dist/components/profile/account.js.map +1 -1
  32. package/dist/components/profile/change-email-form.js +13 -15
  33. package/dist/components/profile/change-email-form.js.map +1 -1
  34. package/dist/components/profile/change-password-form.js +6 -6
  35. package/dist/components/profile/change-password-form.js.map +1 -1
  36. package/dist/components/profile/change-phone-form.js +13 -15
  37. package/dist/components/profile/change-phone-form.js.map +1 -1
  38. package/dist/components/profile/change-profile.js +3 -3
  39. package/dist/components/profile/change-profile.js.map +1 -1
  40. package/dist/components/profile/otp-verification-modal.js +10 -9
  41. package/dist/components/profile/otp-verification-modal.js.map +1 -1
  42. package/dist/components/profile/request-change-email-form.js +1 -4
  43. package/dist/components/profile/request-change-email-form.js.map +1 -1
  44. package/dist/components/profile/request-change-phone-form.js +1 -4
  45. package/dist/components/profile/request-change-phone-form.js.map +1 -1
  46. package/dist/components/profile/security.js +22 -27
  47. package/dist/components/profile/security.js.map +1 -1
  48. package/dist/components/profile/verify-change-email-form.js +10 -9
  49. package/dist/components/profile/verify-change-email-form.js.map +1 -1
  50. package/dist/components/profile/verify-change-phone-form.js +10 -9
  51. package/dist/components/profile/verify-change-phone-form.js.map +1 -1
  52. package/dist/components/shared/data-table.js +2 -2
  53. package/dist/components/shared/data-table.js.map +1 -1
  54. package/dist/components/skeletons/auth-form-skeleton.js +1 -1
  55. package/dist/components/skeletons/auth-form-skeleton.js.map +1 -1
  56. package/dist/components/skeletons/profile-skeleton.js +1 -1
  57. package/dist/components/skeletons/profile-skeleton.js.map +1 -1
  58. package/dist/components/skeletons/table-skeleton.js +1 -1
  59. package/dist/components/skeletons/table-skeleton.js.map +1 -1
  60. package/dist/index.js +84 -107
  61. package/dist/index.js.map +1 -1
  62. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -11,18 +11,16 @@ import { zodResolver } from "@hookform/resolvers/zod";
11
11
  import {
12
12
  Alert,
13
13
  AlertDescription,
14
- AlertTitle
15
- } from "@mesob/ui/components/alert";
16
- import { Button } from "@mesob/ui/components/button";
17
- import {
14
+ AlertTitle,
15
+ Button,
18
16
  Field,
19
17
  FieldError,
20
18
  FieldGroup,
21
- FieldLabel
22
- } from "@mesob/ui/components/field";
23
- import { Input } from "@mesob/ui/components/input";
24
- import { useMesob as useMesob2 } from "@mesob/ui/components/mesob-context";
25
- import { Spinner } from "@mesob/ui/components/spinner";
19
+ FieldLabel,
20
+ Input,
21
+ Spinner
22
+ } from "@mesob/ui/components";
23
+ import { useMesob as useMesob2 } from "@mesob/ui/providers";
26
24
  import { IconAlertCircle } from "@tabler/icons-react";
27
25
  import { useEffect, useState as useState2 } from "react";
28
26
  import { Controller, useForm } from "react-hook-form";
@@ -30,7 +28,7 @@ import { toast } from "sonner";
30
28
  import { z } from "zod";
31
29
 
32
30
  // src/hooks/use-translator.ts
33
- import { useMesob } from "@mesob/ui/components/mesob-context";
31
+ import { useMesob } from "@mesob/ui/providers";
34
32
 
35
33
  // src/lib/translations.ts
36
34
  function createTranslator(messages, namespace) {
@@ -456,7 +454,7 @@ var ForgotPassword = () => {
456
454
  const { config } = useConfig();
457
455
  const mesob = useMesob2();
458
456
  const t = useTranslator("Auth.forgotPassword");
459
- const Link3 = mesob?.linkComponent ?? config.navigation?.linkComponent;
457
+ const Link = mesob?.navigation?.Link;
460
458
  const [isLoading, setIsLoading] = useState2(false);
461
459
  const [error, setError] = useState2(null);
462
460
  const forgotPasswordMutation = hooks.useMutation("post", "/password/forgot");
@@ -516,7 +514,7 @@ var ForgotPassword = () => {
516
514
  title: t("title"),
517
515
  description: t("description"),
518
516
  logoImage,
519
- footer: Link3 ? /* @__PURE__ */ jsx4(Link3, { href: signInLink, className: "text-primary hover:underline", children: t("footer.backToSignIn") }) : /* @__PURE__ */ jsx4(
517
+ footer: Link ? /* @__PURE__ */ jsx4(Link, { href: signInLink, className: "text-primary hover:underline", children: t("footer.backToSignIn") }) : /* @__PURE__ */ jsx4(
520
518
  "a",
521
519
  {
522
520
  href: signInLink,
@@ -580,23 +578,19 @@ import { zodResolver as zodResolver2 } from "@hookform/resolvers/zod";
580
578
  import {
581
579
  Alert as Alert2,
582
580
  AlertDescription as AlertDescription2,
583
- AlertTitle as AlertTitle2
584
- } from "@mesob/ui/components/alert";
585
- import { Button as Button2 } from "@mesob/ui/components/button";
586
- import {
581
+ AlertTitle as AlertTitle2,
582
+ Button as Button2,
587
583
  Field as Field2,
588
584
  FieldError as FieldError2,
589
585
  FieldGroup as FieldGroup2,
590
- FieldLabel as FieldLabel2
591
- } from "@mesob/ui/components/field";
592
- import { Input as Input2 } from "@mesob/ui/components/input";
593
- import {
586
+ FieldLabel as FieldLabel2,
587
+ Input as Input2,
594
588
  InputOTP,
595
589
  InputOTPGroup,
596
- InputOTPSlot
597
- } from "@mesob/ui/components/input-otp";
598
- import { Link } from "@mesob/ui/components/link";
599
- import { Spinner as Spinner2 } from "@mesob/ui/components/spinner";
590
+ InputOTPSlot,
591
+ Spinner as Spinner2
592
+ } from "@mesob/ui/components";
593
+ import { useMesob as useMesob3 } from "@mesob/ui/providers";
600
594
  import { IconAlertCircle as IconAlertCircle2, IconEye, IconEyeOff } from "@tabler/icons-react";
601
595
  import { useEffect as useEffect2, useState as useState3 } from "react";
602
596
  import { Controller as Controller2, useForm as useForm2 } from "react-hook-form";
@@ -617,6 +611,8 @@ var ResetPasswordForm = ({
617
611
  }) => {
618
612
  const { hooks, refresh } = useApi();
619
613
  const { config } = useConfig();
614
+ const mesob = useMesob3();
615
+ const Link = mesob?.navigation?.Link;
620
616
  const t = useTranslator("Auth.resetPassword");
621
617
  const common = useTranslator("Common");
622
618
  const [isLoading, setIsLoading] = useState3(false);
@@ -844,18 +840,16 @@ import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
844
840
  import {
845
841
  Alert as Alert3,
846
842
  AlertDescription as AlertDescription3,
847
- AlertTitle as AlertTitle3
848
- } from "@mesob/ui/components/alert";
849
- import { Button as Button3 } from "@mesob/ui/components/button";
850
- import {
843
+ AlertTitle as AlertTitle3,
844
+ Button as Button3,
851
845
  Field as Field3,
852
846
  FieldError as FieldError3,
853
847
  FieldGroup as FieldGroup3,
854
- FieldLabel as FieldLabel3
855
- } from "@mesob/ui/components/field";
856
- import { Input as Input3 } from "@mesob/ui/components/input";
857
- import { useMesob as useMesob3 } from "@mesob/ui/components/mesob-context";
858
- import { Spinner as Spinner3 } from "@mesob/ui/components/spinner";
848
+ FieldLabel as FieldLabel3,
849
+ Input as Input3,
850
+ Spinner as Spinner3
851
+ } from "@mesob/ui/components";
852
+ import { useMesob as useMesob4 } from "@mesob/ui/providers";
859
853
  import { IconAlertCircle as IconAlertCircle3, IconEye as IconEye2, IconEyeOff as IconEyeOff2 } from "@tabler/icons-react";
860
854
  import { useEffect as useEffect3, useState as useState4 } from "react";
861
855
  import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
@@ -901,9 +895,9 @@ var passwordSchema = (t) => z3.object({
901
895
  var SignIn = ({ redirectUrl } = {}) => {
902
896
  const { hooks, setAuth } = useApi();
903
897
  const { config } = useConfig();
904
- const mesob = useMesob3();
898
+ const mesob = useMesob4();
905
899
  const t = useTranslator("Auth.signIn");
906
- const Link3 = mesob?.linkComponent ?? config.navigation?.linkComponent;
900
+ const Link = mesob?.navigation?.Link;
907
901
  const [isLoading, setIsLoading] = useState4(false);
908
902
  const [error, setError] = useState4(null);
909
903
  const [showPasswordField, setShowPasswordField] = useState4(false);
@@ -1112,8 +1106,8 @@ var SignIn = ({ redirectUrl } = {}) => {
1112
1106
  title: t("title"),
1113
1107
  description: t("description"),
1114
1108
  logoImage,
1115
- footer: showPasswordField ? /* @__PURE__ */ jsx6("div", { className: "flex items-center justify-center w-full", children: Link3 ? /* @__PURE__ */ jsx6(
1116
- Link3,
1109
+ footer: showPasswordField ? /* @__PURE__ */ jsx6("div", { className: "flex items-center justify-center w-full", children: Link ? /* @__PURE__ */ jsx6(
1110
+ Link,
1117
1111
  {
1118
1112
  href: forgotPasswordLink,
1119
1113
  className: "text-primary inline-block hover:underline",
@@ -1148,17 +1142,15 @@ import { zodResolver as zodResolver4 } from "@hookform/resolvers/zod";
1148
1142
  import {
1149
1143
  Alert as Alert4,
1150
1144
  AlertDescription as AlertDescription4,
1151
- AlertTitle as AlertTitle4
1152
- } from "@mesob/ui/components/alert";
1153
- import { Button as Button4 } from "@mesob/ui/components/button";
1154
- import {
1145
+ AlertTitle as AlertTitle4,
1146
+ Button as Button4,
1155
1147
  Field as Field4,
1156
1148
  FieldError as FieldError4,
1157
1149
  FieldGroup as FieldGroup4,
1158
- FieldLabel as FieldLabel4
1159
- } from "@mesob/ui/components/field";
1160
- import { Input as Input4 } from "@mesob/ui/components/input";
1161
- import { useMesob as useMesob4 } from "@mesob/ui/components/mesob-context";
1150
+ FieldLabel as FieldLabel4,
1151
+ Input as Input4
1152
+ } from "@mesob/ui/components";
1153
+ import { useMesob as useMesob5 } from "@mesob/ui/providers";
1162
1154
  import { IconAlertCircle as IconAlertCircle4, IconEye as IconEye3, IconEyeOff as IconEyeOff3 } from "@tabler/icons-react";
1163
1155
  import { useEffect as useEffect4, useState as useState5 } from "react";
1164
1156
  import { Controller as Controller4, useForm as useForm4 } from "react-hook-form";
@@ -1191,9 +1183,9 @@ var SignUp = ({
1191
1183
  } = {}) => {
1192
1184
  const { hooks, setAuth } = useApi();
1193
1185
  const { config } = useConfig();
1194
- const mesob = useMesob4();
1186
+ const mesob = useMesob5();
1195
1187
  const t = useTranslator("Auth.signUp");
1196
- const Link3 = mesob?.linkComponent ?? config.navigation?.linkComponent;
1188
+ const Link = mesob?.navigation?.Link;
1197
1189
  const [isLoading, setIsLoading] = useState5(false);
1198
1190
  const [error, setError] = useState5(null);
1199
1191
  const [showPassword, setShowPassword] = useState5(false);
@@ -1297,7 +1289,7 @@ var SignUp = ({
1297
1289
  footer: /* @__PURE__ */ jsxs5("p", { children: [
1298
1290
  t("footer.hasAccount"),
1299
1291
  " ",
1300
- Link3 ? /* @__PURE__ */ jsx7(Link3, { href: signInLink, className: "text-primary hover:underline", children: t("footer.signInCta") }) : /* @__PURE__ */ jsx7(
1292
+ Link ? /* @__PURE__ */ jsx7(Link, { href: signInLink, className: "text-primary hover:underline", children: t("footer.signInCta") }) : /* @__PURE__ */ jsx7(
1301
1293
  "a",
1302
1294
  {
1303
1295
  href: signInLink,
@@ -1450,20 +1442,21 @@ var SignUp = ({
1450
1442
 
1451
1443
  // src/components/auth/verification-form.tsx
1452
1444
  import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
1453
- import { Button as Button6 } from "@mesob/ui/components/button";
1454
- import { Field as Field5, FieldError as FieldError5, FieldGroup as FieldGroup5 } from "@mesob/ui/components/field";
1455
1445
  import {
1446
+ Button as Button6,
1447
+ Field as Field5,
1448
+ FieldError as FieldError5,
1449
+ FieldGroup as FieldGroup5,
1456
1450
  InputOTP as InputOTP2,
1457
1451
  InputOTPGroup as InputOTPGroup2,
1458
- InputOTPSlot as InputOTPSlot2
1459
- } from "@mesob/ui/components/input-otp";
1460
- import { Spinner as Spinner5 } from "@mesob/ui/components/spinner";
1452
+ InputOTPSlot as InputOTPSlot2,
1453
+ Spinner as Spinner5
1454
+ } from "@mesob/ui/components";
1461
1455
  import { Controller as Controller5, useForm as useForm5 } from "react-hook-form";
1462
1456
  import { z as z5 } from "zod";
1463
1457
 
1464
1458
  // src/components/auth/countdown.tsx
1465
- import { Button as Button5 } from "@mesob/ui/components/button";
1466
- import { Spinner as Spinner4 } from "@mesob/ui/components/spinner";
1459
+ import { Button as Button5, Spinner as Spinner4 } from "@mesob/ui/components";
1467
1460
  import { useEffect as useEffect5, useState as useState6 } from "react";
1468
1461
  import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
1469
1462
  var Countdown = ({
@@ -1587,12 +1580,8 @@ var VerificationForm = ({
1587
1580
  };
1588
1581
 
1589
1582
  // src/components/auth/verify-email.tsx
1590
- import {
1591
- Alert as Alert5,
1592
- AlertDescription as AlertDescription5,
1593
- AlertTitle as AlertTitle5
1594
- } from "@mesob/ui/components/alert";
1595
- import { useMesob as useMesob5 } from "@mesob/ui/components/mesob-context";
1583
+ import { Alert as Alert5, AlertDescription as AlertDescription5, AlertTitle as AlertTitle5 } from "@mesob/ui/components";
1584
+ import { useMesob as useMesob6 } from "@mesob/ui/providers";
1596
1585
  import { IconAlertCircle as IconAlertCircle5 } from "@tabler/icons-react";
1597
1586
  import { useEffect as useEffect6, useState as useState7 } from "react";
1598
1587
  import { toast as toast5 } from "sonner";
@@ -1604,11 +1593,11 @@ var VerifyEmail = ({
1604
1593
  }) => {
1605
1594
  const { hooks, setAuth } = useApi();
1606
1595
  const { config } = useConfig();
1607
- const mesob = useMesob5();
1596
+ const mesob = useMesob6();
1608
1597
  const t = useTranslator("Auth.verification");
1609
1598
  const common = useTranslator("Common");
1610
1599
  const footer = useTranslator("Auth.forgotPassword.footer");
1611
- const Link3 = mesob?.linkComponent ?? config.navigation?.linkComponent;
1600
+ const Link = mesob?.navigation?.Link;
1612
1601
  const [isLoading, setIsLoading] = useState7(false);
1613
1602
  const [error, setError] = useState7(null);
1614
1603
  const verifyEmailMutation = hooks.useMutation(
@@ -1689,7 +1678,7 @@ var VerifyEmail = ({
1689
1678
  {
1690
1679
  title: common("invalidLinkTitle"),
1691
1680
  description: common("invalidLinkDescription"),
1692
- footer: Link3 ? /* @__PURE__ */ jsx10(Link3, { href: signInLink, className: "text-primary hover:underline", children: footer("backToSignIn") }) : /* @__PURE__ */ jsx10(
1681
+ footer: Link ? /* @__PURE__ */ jsx10(Link, { href: signInLink, className: "text-primary hover:underline", children: footer("backToSignIn") }) : /* @__PURE__ */ jsx10(
1693
1682
  "a",
1694
1683
  {
1695
1684
  href: signInLink,
@@ -1719,7 +1708,7 @@ var VerifyEmail = ({
1719
1708
  title: t("email.title"),
1720
1709
  description: t("email.description"),
1721
1710
  logoImage,
1722
- footer: Link3 ? /* @__PURE__ */ jsx10(Link3, { href: signInLink, className: "text-primary hover:underline", children: footer("backToSignIn") }) : /* @__PURE__ */ jsx10(
1711
+ footer: Link ? /* @__PURE__ */ jsx10(Link, { href: signInLink, className: "text-primary hover:underline", children: footer("backToSignIn") }) : /* @__PURE__ */ jsx10(
1723
1712
  "a",
1724
1713
  {
1725
1714
  href: signInLink,
@@ -1753,12 +1742,8 @@ var VerifyEmail = ({
1753
1742
  };
1754
1743
 
1755
1744
  // src/components/auth/verify-phone.tsx
1756
- import {
1757
- Alert as Alert6,
1758
- AlertDescription as AlertDescription6,
1759
- AlertTitle as AlertTitle6
1760
- } from "@mesob/ui/components/alert";
1761
- import { Link as Link2 } from "@mesob/ui/components/link";
1745
+ import { Alert as Alert6, AlertDescription as AlertDescription6, AlertTitle as AlertTitle6 } from "@mesob/ui/components";
1746
+ import { useMesob as useMesob7 } from "@mesob/ui/providers";
1762
1747
  import { IconAlertCircle as IconAlertCircle6 } from "@tabler/icons-react";
1763
1748
  import { useEffect as useEffect7, useState as useState8 } from "react";
1764
1749
  import { toast as toast6 } from "sonner";
@@ -1771,6 +1756,8 @@ var VerifyPhone = ({
1771
1756
  }) => {
1772
1757
  const { hooks, refresh, setAuth } = useApi();
1773
1758
  const { config } = useConfig();
1759
+ const mesob = useMesob7();
1760
+ const Link = mesob?.navigation?.Link;
1774
1761
  const t = useTranslator("Auth.verification");
1775
1762
  const common = useTranslator("Common");
1776
1763
  const footer = useTranslator("Auth.forgotPassword.footer");
@@ -1867,7 +1854,7 @@ var VerifyPhone = ({
1867
1854
  {
1868
1855
  title: common("invalidLinkTitle"),
1869
1856
  description: common("invalidLinkDescription"),
1870
- footer: /* @__PURE__ */ jsx11(Link2, { href: signInLink, className: "text-primary hover:underline", children: footer("backToSignIn") }),
1857
+ footer: /* @__PURE__ */ jsx11(Link, { href: signInLink, className: "text-primary hover:underline", children: footer("backToSignIn") }),
1871
1858
  children: /* @__PURE__ */ jsx11("div", {})
1872
1859
  }
1873
1860
  );
@@ -1888,7 +1875,7 @@ var VerifyPhone = ({
1888
1875
  target: phone || t("phone.missingPhone")
1889
1876
  }),
1890
1877
  logoImage,
1891
- footer: Link2 ? /* @__PURE__ */ jsx11(Link2, { href: signInLink, className: "text-primary hover:underline", children: footer("backToSignIn") }) : /* @__PURE__ */ jsx11(
1878
+ footer: Link ? /* @__PURE__ */ jsx11(Link, { href: signInLink, className: "text-primary hover:underline", children: footer("backToSignIn") }) : /* @__PURE__ */ jsx11(
1892
1879
  "a",
1893
1880
  {
1894
1881
  href: signInLink,
@@ -1922,7 +1909,7 @@ var VerifyPhone = ({
1922
1909
  };
1923
1910
 
1924
1911
  // src/components/error-boundary.tsx
1925
- import { Button as Button7 } from "@mesob/ui/components/button";
1912
+ import { Button as Button7 } from "@mesob/ui/components";
1926
1913
  import { Component } from "react";
1927
1914
  import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
1928
1915
  var ErrorBoundary = class extends Component {
@@ -1965,8 +1952,7 @@ function AuthErrorBoundary({ children }) {
1965
1952
  }
1966
1953
 
1967
1954
  // src/components/iam/permissions.tsx
1968
- import { Badge } from "@mesob/ui/components/badge";
1969
- import { Button as Button8 } from "@mesob/ui/components/button";
1955
+ import { Badge, Button as Button8 } from "@mesob/ui/components";
1970
1956
  import { useLocale } from "next-intl";
1971
1957
  import { useState as useState9 } from "react";
1972
1958
 
@@ -1978,10 +1964,10 @@ import {
1978
1964
  TableHead,
1979
1965
  TableHeader,
1980
1966
  TableRow
1981
- } from "@mesob/ui/components/table";
1967
+ } from "@mesob/ui/components";
1982
1968
 
1983
1969
  // src/components/skeletons/table-skeleton.tsx
1984
- import { Skeleton } from "@mesob/ui/components/skeleton";
1970
+ import { Skeleton } from "@mesob/ui/components";
1985
1971
  import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
1986
1972
  function TableSkeleton({ columns = 5, rows = 10 }) {
1987
1973
  const headerKeys = Array.from({ length: columns }, (_, i) => `header-${i}`);
@@ -2147,8 +2133,7 @@ function Permissions() {
2147
2133
  }
2148
2134
 
2149
2135
  // src/components/iam/roles.tsx
2150
- import { Badge as Badge2 } from "@mesob/ui/components/badge";
2151
- import { Button as Button9 } from "@mesob/ui/components/button";
2136
+ import { Badge as Badge2, Button as Button9 } from "@mesob/ui/components";
2152
2137
  import { useLocale as useLocale2 } from "next-intl";
2153
2138
  import { useState as useState10 } from "react";
2154
2139
  import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
@@ -2245,7 +2230,7 @@ function Roles() {
2245
2230
  }
2246
2231
 
2247
2232
  // src/components/iam/sessions.tsx
2248
- import { Button as Button10 } from "@mesob/ui/components/button";
2233
+ import { Button as Button10 } from "@mesob/ui/components";
2249
2234
  import { useState as useState11 } from "react";
2250
2235
  import { jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
2251
2236
  function Sessions() {
@@ -2332,8 +2317,7 @@ function Sessions() {
2332
2317
  }
2333
2318
 
2334
2319
  // src/components/iam/tenants.tsx
2335
- import { Badge as Badge3 } from "@mesob/ui/components/badge";
2336
- import { Button as Button11 } from "@mesob/ui/components/button";
2320
+ import { Badge as Badge3, Button as Button11 } from "@mesob/ui/components";
2337
2321
  import { useState as useState12 } from "react";
2338
2322
  import { jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
2339
2323
  function Tenants() {
@@ -2419,8 +2403,7 @@ function Tenants() {
2419
2403
  }
2420
2404
 
2421
2405
  // src/components/iam/users.tsx
2422
- import { Badge as Badge4 } from "@mesob/ui/components/badge";
2423
- import { Button as Button12 } from "@mesob/ui/components/button";
2406
+ import { Badge as Badge4, Button as Button12 } from "@mesob/ui/components";
2424
2407
  import { useState as useState13 } from "react";
2425
2408
  import { jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
2426
2409
  function Users() {
@@ -2515,7 +2498,7 @@ function Users() {
2515
2498
  }
2516
2499
 
2517
2500
  // src/components/profile/account.tsx
2518
- import { Separator } from "@mesob/ui/components/separator";
2501
+ import { Separator } from "@mesob/ui/components";
2519
2502
  import { jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
2520
2503
  function Account() {
2521
2504
  const { user, isAuthenticated } = useSession();
@@ -2544,21 +2527,18 @@ function Account() {
2544
2527
  }
2545
2528
 
2546
2529
  // src/components/profile/change-email-form.tsx
2547
- import { Button as Button14 } from "@mesob/ui/components/button";
2548
2530
  import {
2531
+ Button as Button14,
2549
2532
  Collapsible,
2550
2533
  CollapsibleContent,
2551
2534
  CollapsibleTrigger
2552
- } from "@mesob/ui/components/collapsible";
2535
+ } from "@mesob/ui/components";
2553
2536
  import { IconChevronDown } from "@tabler/icons-react";
2554
2537
  import { useState as useState16 } from "react";
2555
2538
 
2556
2539
  // src/components/profile/request-change-email-form.tsx
2557
2540
  import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
2558
- import { Button as Button13 } from "@mesob/ui/components/button";
2559
- import { Input as Input5 } from "@mesob/ui/components/input";
2560
- import { Label } from "@mesob/ui/components/label";
2561
- import { Spinner as Spinner6 } from "@mesob/ui/components/spinner";
2541
+ import { Button as Button13, Input as Input5, Label, Spinner as Spinner6 } from "@mesob/ui/components";
2562
2542
  import { IconEye as IconEye4, IconEyeOff as IconEyeOff4 } from "@tabler/icons-react";
2563
2543
  import { useEffect as useEffect8, useState as useState14 } from "react";
2564
2544
  import { useForm as useForm6 } from "react-hook-form";
@@ -2813,7 +2793,7 @@ import {
2813
2793
  DialogDescription,
2814
2794
  DialogHeader,
2815
2795
  DialogTitle
2816
- } from "@mesob/ui/components/dialog";
2796
+ } from "@mesob/ui/components";
2817
2797
  import { jsx as jsx22, jsxs as jsxs20 } from "react/jsx-runtime";
2818
2798
  function OtpVerificationModal({
2819
2799
  open,
@@ -3040,15 +3020,15 @@ function ChangeEmailForm() {
3040
3020
 
3041
3021
  // src/components/profile/change-password-form.tsx
3042
3022
  import { zodResolver as zodResolver7 } from "@hookform/resolvers/zod";
3043
- import { Button as Button15 } from "@mesob/ui/components/button";
3044
3023
  import {
3024
+ Button as Button15,
3045
3025
  Collapsible as Collapsible2,
3046
3026
  CollapsibleContent as CollapsibleContent2,
3047
- CollapsibleTrigger as CollapsibleTrigger2
3048
- } from "@mesob/ui/components/collapsible";
3049
- import { Input as Input6 } from "@mesob/ui/components/input";
3050
- import { Label as Label2 } from "@mesob/ui/components/label";
3051
- import { Spinner as Spinner7 } from "@mesob/ui/components/spinner";
3027
+ CollapsibleTrigger as CollapsibleTrigger2,
3028
+ Input as Input6,
3029
+ Label as Label2,
3030
+ Spinner as Spinner7
3031
+ } from "@mesob/ui/components";
3052
3032
  import { IconChevronDown as IconChevronDown2, IconEye as IconEye5, IconEyeOff as IconEyeOff5 } from "@tabler/icons-react";
3053
3033
  import { useState as useState17 } from "react";
3054
3034
  import { useForm as useForm7 } from "react-hook-form";
@@ -3258,21 +3238,18 @@ function ChangePasswordForm() {
3258
3238
  }
3259
3239
 
3260
3240
  // src/components/profile/change-phone-form.tsx
3261
- import { Button as Button17 } from "@mesob/ui/components/button";
3262
3241
  import {
3242
+ Button as Button17,
3263
3243
  Collapsible as Collapsible3,
3264
3244
  CollapsibleContent as CollapsibleContent3,
3265
3245
  CollapsibleTrigger as CollapsibleTrigger3
3266
- } from "@mesob/ui/components/collapsible";
3246
+ } from "@mesob/ui/components";
3267
3247
  import { IconChevronDown as IconChevronDown3 } from "@tabler/icons-react";
3268
3248
  import { useState as useState20 } from "react";
3269
3249
 
3270
3250
  // src/components/profile/request-change-phone-form.tsx
3271
3251
  import { zodResolver as zodResolver8 } from "@hookform/resolvers/zod";
3272
- import { Button as Button16 } from "@mesob/ui/components/button";
3273
- import { Input as Input7 } from "@mesob/ui/components/input";
3274
- import { Label as Label3 } from "@mesob/ui/components/label";
3275
- import { Spinner as Spinner8 } from "@mesob/ui/components/spinner";
3252
+ import { Button as Button16, Input as Input7, Label as Label3, Spinner as Spinner8 } from "@mesob/ui/components";
3276
3253
  import { IconEye as IconEye6, IconEyeOff as IconEyeOff6 } from "@tabler/icons-react";
3277
3254
  import { useEffect as useEffect9, useState as useState18 } from "react";
3278
3255
  import { useForm as useForm8 } from "react-hook-form";
@@ -3737,7 +3714,7 @@ function Security() {
3737
3714
  }
3738
3715
 
3739
3716
  // src/components/skeletons/auth-form-skeleton.tsx
3740
- import { Skeleton as Skeleton2 } from "@mesob/ui/components/skeleton";
3717
+ import { Skeleton as Skeleton2 } from "@mesob/ui/components";
3741
3718
  import { jsx as jsx30, jsxs as jsxs26 } from "react/jsx-runtime";
3742
3719
  function AuthFormSkeleton() {
3743
3720
  return /* @__PURE__ */ jsxs26("div", { className: "w-full max-w-md space-y-6 p-6", children: [
@@ -3764,7 +3741,7 @@ function AuthFormSkeleton() {
3764
3741
  }
3765
3742
 
3766
3743
  // src/components/skeletons/profile-skeleton.tsx
3767
- import { Skeleton as Skeleton3 } from "@mesob/ui/components/skeleton";
3744
+ import { Skeleton as Skeleton3 } from "@mesob/ui/components";
3768
3745
  import { jsx as jsx31, jsxs as jsxs27 } from "react/jsx-runtime";
3769
3746
  function ProfileSkeleton() {
3770
3747
  return /* @__PURE__ */ jsxs27("div", { className: "w-full max-w-4xl space-y-8 p-6", children: [