@splpi/estore-shared-components 0.0.3 → 0.0.5

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/index.mjs CHANGED
@@ -3510,20 +3510,9 @@ var BottomQuickActions_default = BottomQuickActions;
3510
3510
 
3511
3511
  // src/Generic/NotifyInstall.tsx
3512
3512
  import { useEffect as useEffect8, useState as useState13 } from "react";
3513
- import {
3514
- Dialog as Dialog3,
3515
- Button as Button3,
3516
- Text as Text9,
3517
- VStack as VStack8,
3518
- HStack as HStack5,
3519
- Box as Box16,
3520
- Flex as Flex9,
3521
- Heading,
3522
- Icon as Icon5,
3523
- Portal as Portal5,
3524
- CloseButton as CloseButton4
3525
- } from "@chakra-ui/react";
3526
- import { FiDownload, FiPlusSquare, FiShare } from "react-icons/fi";
3513
+ import { Button as Button3, Flex as Flex9, HStack as HStack5, Icon as Icon5, Text as Text9, VStack as VStack8 } from "@chakra-ui/react";
3514
+ import { AnimatePresence, motion } from "motion/react";
3515
+ import { FiDownload, FiPlusSquare, FiShare, FiX } from "react-icons/fi";
3527
3516
 
3528
3517
  // src/hooks/useNotifyInstall.ts
3529
3518
  import { useEffect as useEffect7, useState as useState12 } from "react";
@@ -3565,157 +3554,169 @@ function useNotifyInstall() {
3565
3554
  // src/Generic/NotifyInstall.tsx
3566
3555
  import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs16 } from "react/jsx-runtime";
3567
3556
  var STEPS = [
3568
- {
3569
- icon: FiShare,
3570
- label: "Tap the browser menu or Share button"
3571
- },
3572
- {
3573
- icon: FiPlusSquare,
3574
- label: 'Choose "Add to Home Screen"'
3575
- }
3557
+ { icon: FiShare, label: "Tap the browser menu or Share button" },
3558
+ { icon: FiPlusSquare, label: 'Choose "Add to Home Screen"' }
3576
3559
  ];
3577
- var INSTALL_DIALOG_DISMISSED_KEY = "estore-install-dialog-dismissed";
3560
+ var DISMISSED_KEY = "estore-install-dialog-dismissed";
3578
3561
  function NotifyInstall({
3579
- children
3562
+ children,
3563
+ appName
3580
3564
  }) {
3581
3565
  const { isInstalled, isMobile, canInstall, install } = useNotifyInstall();
3582
- const [isDismissed, setIsDismissed] = useState13(false);
3566
+ const [isDismissed, setIsDismissed] = useState13(true);
3583
3567
  useEffect8(() => {
3584
- const wasDismissed = localStorage.getItem(INSTALL_DIALOG_DISMISSED_KEY);
3585
- setIsDismissed(wasDismissed === "true");
3568
+ if (localStorage.getItem(DISMISSED_KEY) !== "true") {
3569
+ setIsDismissed(false);
3570
+ }
3586
3571
  }, []);
3587
- const handleClose = () => {
3588
- localStorage.setItem(INSTALL_DIALOG_DISMISSED_KEY, "true");
3572
+ const handleDismiss = () => {
3573
+ localStorage.setItem(DISMISSED_KEY, "true");
3589
3574
  setIsDismissed(true);
3590
3575
  };
3591
- const isOpen = !isInstalled && isMobile && !isDismissed;
3592
- if (!isOpen) {
3593
- return children;
3594
- }
3576
+ const showPrompt = isMobile && !isInstalled && !isDismissed;
3595
3577
  return /* @__PURE__ */ jsxs16(Fragment3, { children: [
3596
3578
  children,
3597
- /* @__PURE__ */ jsx19(
3598
- Dialog3.Root,
3599
- {
3600
- open: isOpen,
3601
- onOpenChange: (details) => {
3602
- if (!details.open) {
3603
- handleClose();
3579
+ /* @__PURE__ */ jsx19(AnimatePresence, { children: showPrompt && /* @__PURE__ */ jsxs16(Fragment3, { children: [
3580
+ /* @__PURE__ */ jsx19(
3581
+ motion.div,
3582
+ {
3583
+ initial: { opacity: 0 },
3584
+ animate: { opacity: 1 },
3585
+ exit: { opacity: 0 },
3586
+ transition: { duration: 0.2 },
3587
+ onClick: handleDismiss,
3588
+ style: {
3589
+ position: "fixed",
3590
+ inset: 0,
3591
+ zIndex: 1300,
3592
+ background: "rgba(0,0,0,0.55)",
3593
+ backdropFilter: "blur(3px)",
3594
+ WebkitBackdropFilter: "blur(3px)"
3604
3595
  }
3605
3596
  },
3606
- placement: "center",
3607
- motionPreset: "slide-in-bottom",
3608
- children: /* @__PURE__ */ jsxs16(Portal5, { children: [
3609
- /* @__PURE__ */ jsx19(Dialog3.Backdrop, { bg: "blackAlpha.600", backdropFilter: "blur(2px)" }),
3610
- /* @__PURE__ */ jsx19(
3611
- Dialog3.Positioner,
3612
- {
3613
- p: { base: 0, sm: 4 },
3614
- alignItems: { base: "flex-end", sm: "center" },
3615
- children: /* @__PURE__ */ jsxs16(
3616
- Dialog3.Content,
3597
+ "install-backdrop"
3598
+ ),
3599
+ /* @__PURE__ */ jsxs16(
3600
+ motion.div,
3601
+ {
3602
+ initial: { y: "100%" },
3603
+ animate: { y: 0 },
3604
+ exit: { y: "100%" },
3605
+ transition: { type: "spring", damping: 28, stiffness: 280 },
3606
+ style: {
3607
+ position: "fixed",
3608
+ bottom: 0,
3609
+ left: 0,
3610
+ right: 0,
3611
+ zIndex: 1400,
3612
+ background: "white",
3613
+ borderRadius: "24px 24px 0 0",
3614
+ boxShadow: "0 -8px 40px rgba(0,0,0,0.14)",
3615
+ paddingBottom: "env(safe-area-inset-bottom)"
3616
+ },
3617
+ children: [
3618
+ /* @__PURE__ */ jsx19(
3619
+ "button",
3620
+ {
3621
+ "aria-label": "Dismiss install prompt",
3622
+ onClick: handleDismiss,
3623
+ style: {
3624
+ position: "absolute",
3625
+ top: 12,
3626
+ right: 12,
3627
+ background: "none",
3628
+ border: "none",
3629
+ cursor: "pointer",
3630
+ padding: 8,
3631
+ borderRadius: "50%",
3632
+ display: "flex",
3633
+ alignItems: "center",
3634
+ justifyContent: "center",
3635
+ color: "#9ca3af"
3636
+ },
3637
+ children: /* @__PURE__ */ jsx19(FiX, { size: 18 })
3638
+ }
3639
+ ),
3640
+ /* @__PURE__ */ jsxs16(VStack8, { gap: 6, textAlign: "center", px: 6, py: 8, children: [
3641
+ /* @__PURE__ */ jsx19(
3642
+ Flex9,
3617
3643
  {
3618
- w: "xl",
3619
- maxW: { base: "full", sm: "sm" },
3620
- borderRadius: { base: "2xl 2xl 0 0", sm: "2xl" },
3621
- overflow: "hidden",
3622
- boxShadow: "2xl",
3623
- m: 0,
3644
+ boxSize: 16,
3645
+ align: "center",
3646
+ justify: "center",
3647
+ rounded: "2xl",
3648
+ bg: "green.50",
3649
+ color: "green.600",
3650
+ shadow: "sm",
3651
+ children: /* @__PURE__ */ jsx19(Icon5, { as: FiDownload, boxSize: 8 })
3652
+ }
3653
+ ),
3654
+ /* @__PURE__ */ jsxs16(VStack8, { gap: 2, children: [
3655
+ /* @__PURE__ */ jsxs16(
3656
+ Text9,
3657
+ {
3658
+ fontSize: "lg",
3659
+ fontWeight: "bold",
3660
+ color: "gray.900",
3661
+ lineHeight: "short",
3662
+ children: [
3663
+ "Install ",
3664
+ appName
3665
+ ]
3666
+ }
3667
+ ),
3668
+ /* @__PURE__ */ jsx19(Text9, { fontSize: "sm", color: "gray.500", lineHeight: "tall", children: "Add the app to your home screen for a faster, app-like experience before continuing." })
3669
+ ] }),
3670
+ canInstall ? /* @__PURE__ */ jsxs16(
3671
+ Button3,
3672
+ {
3673
+ onClick: install,
3674
+ colorPalette: "green",
3675
+ size: "lg",
3676
+ w: "full",
3677
+ rounded: "xl",
3624
3678
  children: [
3625
- /* @__PURE__ */ jsx19(Dialog3.Body, { px: { base: 6, sm: 8 }, py: { base: 8, sm: 10 }, children: /* @__PURE__ */ jsxs16(VStack8, { gap: 6, textAlign: "center", children: [
3626
- /* @__PURE__ */ jsx19(
3627
- Flex9,
3628
- {
3629
- boxSize: { base: 16, sm: 20 },
3630
- align: "center",
3631
- justify: "center",
3632
- rounded: "2xl",
3633
- bg: "green.50",
3634
- color: "green.600",
3635
- shadow: "sm",
3636
- children: /* @__PURE__ */ jsx19(Icon5, { as: FiDownload, boxSize: { base: 8, sm: 9 } })
3637
- }
3638
- ),
3639
- /* @__PURE__ */ jsxs16(VStack8, { gap: 2, children: [
3640
- /* @__PURE__ */ jsx19(
3641
- Heading,
3642
- {
3643
- fontSize: { base: "lg", sm: "xl" },
3644
- fontWeight: "bold",
3645
- color: "gray.900",
3646
- children: "Install St. Peter eStore"
3647
- }
3648
- ),
3649
- /* @__PURE__ */ jsx19(
3650
- Text9,
3651
- {
3652
- fontSize: { base: "sm", sm: "md" },
3653
- color: "gray.600",
3654
- lineHeight: "tall",
3655
- children: "Add the app to your home screen for a faster, app-like experience before continuing."
3656
- }
3657
- )
3658
- ] }),
3659
- canInstall ? /* @__PURE__ */ jsxs16(
3660
- Button3,
3661
- {
3662
- onClick: install,
3663
- colorPalette: "green",
3664
- size: "lg",
3665
- w: "full",
3666
- rounded: "xl",
3667
- children: [
3668
- /* @__PURE__ */ jsx19(Icon5, { as: FiDownload }),
3669
- "Add to Home Screen"
3670
- ]
3671
- }
3672
- ) : /* @__PURE__ */ jsx19(
3673
- Box16,
3674
- {
3675
- w: "full",
3676
- bg: "gray.50",
3677
- borderWidth: "1px",
3678
- borderColor: "gray.100",
3679
- rounded: "xl",
3680
- p: 4,
3681
- children: /* @__PURE__ */ jsx19(VStack8, { gap: 4, align: "stretch", children: STEPS.map((step, index) => /* @__PURE__ */ jsxs16(HStack5, { gap: 3, align: "center", children: [
3682
- /* @__PURE__ */ jsx19(
3683
- Flex9,
3684
- {
3685
- boxSize: 9,
3686
- flexShrink: 0,
3687
- align: "center",
3688
- justify: "center",
3689
- rounded: "lg",
3690
- bg: "white",
3691
- borderWidth: "1px",
3692
- borderColor: "gray.200",
3693
- color: "green.600",
3694
- children: /* @__PURE__ */ jsx19(Icon5, { as: step.icon, boxSize: 4 })
3695
- }
3696
- ),
3697
- /* @__PURE__ */ jsx19(
3698
- Text9,
3699
- {
3700
- fontSize: "sm",
3701
- color: "gray.700",
3702
- textAlign: "left",
3703
- children: step.label
3704
- }
3705
- )
3706
- ] }, index)) })
3707
- }
3708
- )
3709
- ] }) }),
3710
- /* @__PURE__ */ jsx19(Dialog3.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx19(CloseButton4, { size: "sm", onClick: handleClose }) })
3679
+ /* @__PURE__ */ jsx19(Icon5, { as: FiDownload }),
3680
+ "Add to Home Screen"
3711
3681
  ]
3712
3682
  }
3683
+ ) : /* @__PURE__ */ jsx19(
3684
+ VStack8,
3685
+ {
3686
+ w: "full",
3687
+ bg: "gray.50",
3688
+ borderWidth: "1px",
3689
+ borderColor: "gray.100",
3690
+ rounded: "xl",
3691
+ p: 4,
3692
+ gap: 4,
3693
+ align: "stretch",
3694
+ children: STEPS.map((step, i) => /* @__PURE__ */ jsxs16(HStack5, { gap: 3, align: "center", children: [
3695
+ /* @__PURE__ */ jsx19(
3696
+ Flex9,
3697
+ {
3698
+ boxSize: 9,
3699
+ flexShrink: 0,
3700
+ align: "center",
3701
+ justify: "center",
3702
+ rounded: "lg",
3703
+ bg: "white",
3704
+ borderWidth: "1px",
3705
+ borderColor: "gray.200",
3706
+ color: "green.600",
3707
+ children: /* @__PURE__ */ jsx19(Icon5, { as: step.icon, boxSize: 4 })
3708
+ }
3709
+ ),
3710
+ /* @__PURE__ */ jsx19(Text9, { fontSize: "sm", color: "gray.700", textAlign: "left", children: step.label })
3711
+ ] }, i))
3712
+ }
3713
3713
  )
3714
- }
3715
- )
3716
- ] })
3717
- }
3718
- )
3714
+ ] })
3715
+ ]
3716
+ },
3717
+ "install-sheet"
3718
+ )
3719
+ ] }) })
3719
3720
  ] });
3720
3721
  }
3721
3722
 
@@ -3724,7 +3725,7 @@ import { useEffect as useEffect9, useMemo, useState as useState14 } from "react"
3724
3725
  import {
3725
3726
  Avatar,
3726
3727
  Badge as Badge2,
3727
- Box as Box17,
3728
+ Box as Box16,
3728
3729
  Button as Button4,
3729
3730
  Flex as Flex10,
3730
3731
  HStack as HStack6,
@@ -4241,7 +4242,7 @@ function ReusableProfile({
4241
4242
  const roleLabel = user.role ? ROLE_LABELS[user.role] ?? user.role : "";
4242
4243
  const mainContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
4243
4244
  /* @__PURE__ */ jsxs17(
4244
- Box17,
4245
+ Box16,
4245
4246
  {
4246
4247
  bg: "var(--chakra-colors-primary)",
4247
4248
  pt: 12,
@@ -4274,7 +4275,7 @@ function ReusableProfile({
4274
4275
  }
4275
4276
  ),
4276
4277
  user.email && /* @__PURE__ */ jsx20(Text10, { color: "rgba(255,255,255,0.75)", fontSize: "sm", mb: 2, children: user.email }),
4277
- roleLabel && /* @__PURE__ */ jsx20(Box17, { display: "inline-flex", children: /* @__PURE__ */ jsx20(
4278
+ roleLabel && /* @__PURE__ */ jsx20(Box16, { display: "inline-flex", children: /* @__PURE__ */ jsx20(
4278
4279
  Badge2,
4279
4280
  {
4280
4281
  bg: "rgba(255,255,255,0.15)",
@@ -4291,7 +4292,7 @@ function ReusableProfile({
4291
4292
  ]
4292
4293
  }
4293
4294
  ),
4294
- /* @__PURE__ */ jsxs17(Box17, { px: 4, pt: 5, pb: 1, children: [
4295
+ /* @__PURE__ */ jsxs17(Box16, { px: 4, pt: 5, pb: 1, children: [
4295
4296
  /* @__PURE__ */ jsx20(
4296
4297
  Text10,
4297
4298
  {
@@ -4305,7 +4306,7 @@ function ReusableProfile({
4305
4306
  }
4306
4307
  ),
4307
4308
  /* @__PURE__ */ jsx20(
4308
- Box17,
4309
+ Box16,
4309
4310
  {
4310
4311
  as: "button",
4311
4312
  w: "full",
@@ -4325,7 +4326,7 @@ function ReusableProfile({
4325
4326
  children: [
4326
4327
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
4327
4328
  /* @__PURE__ */ jsx20(
4328
- Box17,
4329
+ Box16,
4329
4330
  {
4330
4331
  w: "38px",
4331
4332
  h: "38px",
@@ -4339,7 +4340,7 @@ function ReusableProfile({
4339
4340
  children: /* @__PURE__ */ jsx20(LuUser, { size: 16 })
4340
4341
  }
4341
4342
  ),
4342
- /* @__PURE__ */ jsxs17(Box17, { children: [
4343
+ /* @__PURE__ */ jsxs17(Box16, { children: [
4343
4344
  /* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Edit Account" }),
4344
4345
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: "gray.500", children: "Update your display name and contact details" })
4345
4346
  ] })
@@ -4352,7 +4353,7 @@ function ReusableProfile({
4352
4353
  ),
4353
4354
  /* @__PURE__ */ jsx20(Separator4, {}),
4354
4355
  /* @__PURE__ */ jsx20(
4355
- Box17,
4356
+ Box16,
4356
4357
  {
4357
4358
  as: "button",
4358
4359
  w: "full",
@@ -4375,7 +4376,7 @@ function ReusableProfile({
4375
4376
  children: [
4376
4377
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
4377
4378
  /* @__PURE__ */ jsx20(
4378
- Box17,
4379
+ Box16,
4379
4380
  {
4380
4381
  w: "38px",
4381
4382
  h: "38px",
@@ -4389,7 +4390,7 @@ function ReusableProfile({
4389
4390
  children: /* @__PURE__ */ jsx20(LuLock, { size: 16 })
4390
4391
  }
4391
4392
  ),
4392
- /* @__PURE__ */ jsxs17(Box17, { children: [
4393
+ /* @__PURE__ */ jsxs17(Box16, { children: [
4393
4394
  /* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Change Password" }),
4394
4395
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: "gray.500", children: "Test locally through the callback prop" })
4395
4396
  ] })
@@ -4404,7 +4405,7 @@ function ReusableProfile({
4404
4405
  /* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
4405
4406
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
4406
4407
  /* @__PURE__ */ jsx20(
4407
- Box17,
4408
+ Box16,
4408
4409
  {
4409
4410
  w: "38px",
4410
4411
  h: "38px",
@@ -4418,13 +4419,13 @@ function ReusableProfile({
4418
4419
  children: /* @__PURE__ */ jsx20(LuShield, { size: 16 })
4419
4420
  }
4420
4421
  ),
4421
- /* @__PURE__ */ jsxs17(Box17, { children: [
4422
+ /* @__PURE__ */ jsxs17(Box16, { children: [
4422
4423
  /* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Two Factor Authentication" }),
4423
4424
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: "gray.500", children: twoFactorEnabled ? "Enabled" : "Disabled" })
4424
4425
  ] })
4425
4426
  ] }),
4426
4427
  /* @__PURE__ */ jsx20(
4427
- Box17,
4428
+ Box16,
4428
4429
  {
4429
4430
  role: "switch",
4430
4431
  "aria-checked": twoFactorEnabled,
@@ -4447,7 +4448,7 @@ function ReusableProfile({
4447
4448
  flexShrink: 0,
4448
4449
  outline: "none",
4449
4450
  children: /* @__PURE__ */ jsx20(
4450
- Box17,
4451
+ Box16,
4451
4452
  {
4452
4453
  position: "absolute",
4453
4454
  top: "3px",
@@ -4464,7 +4465,7 @@ function ReusableProfile({
4464
4465
  )
4465
4466
  ] })
4466
4467
  ] }),
4467
- /* @__PURE__ */ jsxs17(Box17, { px: 4, pt: 4, pb: 2, children: [
4468
+ /* @__PURE__ */ jsxs17(Box16, { px: 4, pt: 4, pb: 2, children: [
4468
4469
  /* @__PURE__ */ jsx20(
4469
4470
  Text10,
4470
4471
  {
@@ -4480,7 +4481,7 @@ function ReusableProfile({
4480
4481
  /* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
4481
4482
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
4482
4483
  /* @__PURE__ */ jsx20(
4483
- Box17,
4484
+ Box16,
4484
4485
  {
4485
4486
  w: "38px",
4486
4487
  h: "38px",
@@ -4494,7 +4495,7 @@ function ReusableProfile({
4494
4495
  children: colorMode === "dark" ? /* @__PURE__ */ jsx20(LuMoon, { size: 16 }) : /* @__PURE__ */ jsx20(LuSun, { size: 16 })
4495
4496
  }
4496
4497
  ),
4497
- /* @__PURE__ */ jsxs17(Box17, { children: [
4498
+ /* @__PURE__ */ jsxs17(Box16, { children: [
4498
4499
  /* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Appearance" }),
4499
4500
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: "gray.500", children: colorMode === "light" ? "Light mode" : "Dark mode" })
4500
4501
  ] })
@@ -4537,7 +4538,7 @@ function ReusableProfile({
4537
4538
  /* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
4538
4539
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
4539
4540
  /* @__PURE__ */ jsx20(
4540
- Box17,
4541
+ Box16,
4541
4542
  {
4542
4543
  w: "38px",
4543
4544
  h: "38px",
@@ -4553,7 +4554,7 @@ function ReusableProfile({
4553
4554
  children: "A"
4554
4555
  }
4555
4556
  ),
4556
- /* @__PURE__ */ jsxs17(Box17, { children: [
4557
+ /* @__PURE__ */ jsxs17(Box16, { children: [
4557
4558
  /* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Text Size" }),
4558
4559
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: "gray.500", children: fontSizeLabel })
4559
4560
  ] })
@@ -4591,7 +4592,7 @@ function ReusableProfile({
4591
4592
  ] }),
4592
4593
  /* @__PURE__ */ jsx20(Separator4, {}),
4593
4594
  /* @__PURE__ */ jsx20(
4594
- Box17,
4595
+ Box16,
4595
4596
  {
4596
4597
  as: "button",
4597
4598
  w: "full",
@@ -4602,7 +4603,7 @@ function ReusableProfile({
4602
4603
  children: /* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
4603
4604
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
4604
4605
  /* @__PURE__ */ jsx20(
4605
- Box17,
4606
+ Box16,
4606
4607
  {
4607
4608
  w: "38px",
4608
4609
  h: "38px",
@@ -4616,7 +4617,7 @@ function ReusableProfile({
4616
4617
  children: /* @__PURE__ */ jsx20(LuArrowLeftRight, { size: 16 })
4617
4618
  }
4618
4619
  ),
4619
- /* @__PURE__ */ jsxs17(Box17, { children: [
4620
+ /* @__PURE__ */ jsxs17(Box16, { children: [
4620
4621
  /* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Quick Navigation" }),
4621
4622
  /* @__PURE__ */ jsxs17(Text10, { fontSize: "xs", color: "gray.500", children: [
4622
4623
  quickNavHrefs.length,
@@ -4631,7 +4632,7 @@ function ReusableProfile({
4631
4632
  }
4632
4633
  )
4633
4634
  ] }),
4634
- /* @__PURE__ */ jsx20(Box17, { px: 4, pt: 4, pb: 10, children: /* @__PURE__ */ jsx20(VStack9, { gap: 2.5, children: /* @__PURE__ */ jsx20(
4635
+ /* @__PURE__ */ jsx20(Box16, { px: 4, pt: 4, pb: 10, children: /* @__PURE__ */ jsx20(VStack9, { gap: 2.5, children: /* @__PURE__ */ jsx20(
4635
4636
  Button4,
4636
4637
  {
4637
4638
  w: "full",
@@ -4645,7 +4646,7 @@ function ReusableProfile({
4645
4646
  ) }) })
4646
4647
  ] });
4647
4648
  const editAccountContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
4648
- /* @__PURE__ */ jsx20(Box17, { px: 4, pt: 4, pb: 3, borderBottomWidth: "1px", borderColor: "gray.200", children: /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 2, pr: 10, children: [
4649
+ /* @__PURE__ */ jsx20(Box16, { px: 4, pt: 4, pb: 3, borderBottomWidth: "1px", borderColor: "gray.200", children: /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 2, pr: 10, children: [
4649
4650
  /* @__PURE__ */ jsx20(
4650
4651
  IconButton3,
4651
4652
  {
@@ -4659,12 +4660,12 @@ function ReusableProfile({
4659
4660
  ),
4660
4661
  /* @__PURE__ */ jsx20(Text10, { fontWeight: "bold", fontSize: "md", children: "Edit Account" })
4661
4662
  ] }) }),
4662
- /* @__PURE__ */ jsx20(Box17, { textAlign: "center", pt: 5, pb: 4, children: /* @__PURE__ */ jsxs17(Avatar.Root, { size: "xl", mx: "auto", mb: 1, children: [
4663
+ /* @__PURE__ */ jsx20(Box16, { textAlign: "center", pt: 5, pb: 4, children: /* @__PURE__ */ jsxs17(Avatar.Root, { size: "xl", mx: "auto", mb: 1, children: [
4663
4664
  user.avatarSrc && /* @__PURE__ */ jsx20(Avatar.Image, { src: user.avatarSrc, alt: editName }),
4664
4665
  /* @__PURE__ */ jsx20(Avatar.Fallback, { name: editName })
4665
4666
  ] }) }),
4666
4667
  /* @__PURE__ */ jsxs17(VStack9, { gap: 4, px: 4, pb: 10, align: "stretch", children: [
4667
- /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
4668
+ /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
4668
4669
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Display Name" }),
4669
4670
  /* @__PURE__ */ jsx20(
4670
4671
  Input4,
@@ -4676,7 +4677,7 @@ function ReusableProfile({
4676
4677
  }
4677
4678
  )
4678
4679
  ] }),
4679
- /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
4680
+ /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
4680
4681
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Email" }),
4681
4682
  /* @__PURE__ */ jsx20(
4682
4683
  Input4,
@@ -4689,7 +4690,7 @@ function ReusableProfile({
4689
4690
  }
4690
4691
  )
4691
4692
  ] }),
4692
- /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
4693
+ /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
4693
4694
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Mobile Number" }),
4694
4695
  /* @__PURE__ */ jsx20(
4695
4696
  Input4,
@@ -4718,7 +4719,7 @@ function ReusableProfile({
4718
4719
  ] })
4719
4720
  ] });
4720
4721
  const changePasswordContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
4721
- /* @__PURE__ */ jsx20(Box17, { px: 4, pt: 4, pb: 3, borderBottomWidth: "1px", borderColor: "gray.200", children: /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 2, pr: 10, children: [
4722
+ /* @__PURE__ */ jsx20(Box16, { px: 4, pt: 4, pb: 3, borderBottomWidth: "1px", borderColor: "gray.200", children: /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 2, pr: 10, children: [
4722
4723
  /* @__PURE__ */ jsx20(
4723
4724
  IconButton3,
4724
4725
  {
@@ -4733,7 +4734,7 @@ function ReusableProfile({
4733
4734
  /* @__PURE__ */ jsx20(Text10, { fontWeight: "bold", fontSize: "md", children: "Change Password" })
4734
4735
  ] }) }),
4735
4736
  /* @__PURE__ */ jsxs17(VStack9, { gap: 5, px: 4, pt: 6, pb: 10, children: [
4736
- /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
4737
+ /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
4737
4738
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Current Password" }),
4738
4739
  /* @__PURE__ */ jsx20(
4739
4740
  InputGroup,
@@ -4762,7 +4763,7 @@ function ReusableProfile({
4762
4763
  }
4763
4764
  )
4764
4765
  ] }),
4765
- /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
4766
+ /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
4766
4767
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "New Password" }),
4767
4768
  /* @__PURE__ */ jsx20(
4768
4769
  InputGroup,
@@ -4790,9 +4791,9 @@ function ReusableProfile({
4790
4791
  )
4791
4792
  }
4792
4793
  ),
4793
- newPw && /* @__PURE__ */ jsxs17(Box17, { mt: 2, children: [
4794
+ newPw && /* @__PURE__ */ jsxs17(Box16, { mt: 2, children: [
4794
4795
  /* @__PURE__ */ jsx20(Flex10, { gap: 1, mb: 1, children: [1, 2, 3, 4, 5].map((i) => /* @__PURE__ */ jsx20(
4795
- Box17,
4796
+ Box16,
4796
4797
  {
4797
4798
  flex: 1,
4798
4799
  h: "3px",
@@ -4805,7 +4806,7 @@ function ReusableProfile({
4805
4806
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: pwMeta.color, fontWeight: "medium", children: pwMeta.label })
4806
4807
  ] })
4807
4808
  ] }),
4808
- /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
4809
+ /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
4809
4810
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Confirm New Password" }),
4810
4811
  /* @__PURE__ */ jsx20(
4811
4812
  InputGroup,
@@ -4853,7 +4854,7 @@ function ReusableProfile({
4853
4854
  ] });
4854
4855
  const navbarCustomizeContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
4855
4856
  /* @__PURE__ */ jsx20(
4856
- Box17,
4857
+ Box16,
4857
4858
  {
4858
4859
  px: 4,
4859
4860
  pt: 4,
@@ -4879,7 +4880,7 @@ function ReusableProfile({
4879
4880
  children: /* @__PURE__ */ jsx20(LuChevronLeft2, {})
4880
4881
  }
4881
4882
  ),
4882
- /* @__PURE__ */ jsxs17(Box17, { children: [
4883
+ /* @__PURE__ */ jsxs17(Box16, { children: [
4883
4884
  /* @__PURE__ */ jsx20(Text10, { fontWeight: "bold", fontSize: "md", children: "Quick Navigation" }),
4884
4885
  /* @__PURE__ */ jsxs17(Text10, { fontSize: "xs", color: "gray.500", children: [
4885
4886
  "Choose up to ",
@@ -4890,7 +4891,7 @@ function ReusableProfile({
4890
4891
  ] })
4891
4892
  }
4892
4893
  ),
4893
- /* @__PURE__ */ jsxs17(Box17, { px: 4, pt: 5, pb: 2, children: [
4894
+ /* @__PURE__ */ jsxs17(Box16, { px: 4, pt: 5, pb: 2, children: [
4894
4895
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", justify: "space-between", mb: 3, children: [
4895
4896
  /* @__PURE__ */ jsx20(
4896
4897
  Text10,
@@ -4936,7 +4937,7 @@ function ReusableProfile({
4936
4937
  const isFirst = idx === 0;
4937
4938
  const isLast = idx === quickNavHrefs.length - 1;
4938
4939
  const isReplacing = replacingIdx === idx;
4939
- return /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
4940
+ return /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
4940
4941
  /* @__PURE__ */ jsxs17(
4941
4942
  Flex10,
4942
4943
  {
@@ -4952,7 +4953,7 @@ function ReusableProfile({
4952
4953
  children: [
4953
4954
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
4954
4955
  /* @__PURE__ */ jsx20(
4955
- Box17,
4956
+ Box16,
4956
4957
  {
4957
4958
  w: "36px",
4958
4959
  h: "36px",
@@ -4966,7 +4967,7 @@ function ReusableProfile({
4966
4967
  children: /* @__PURE__ */ jsx20(ItemIcon, { size: 15 })
4967
4968
  }
4968
4969
  ),
4969
- /* @__PURE__ */ jsxs17(Box17, { children: [
4970
+ /* @__PURE__ */ jsxs17(Box16, { children: [
4970
4971
  /* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "medium", children: option.title }),
4971
4972
  isReplacing && /* @__PURE__ */ jsx20(
4972
4973
  Text10,
@@ -5039,9 +5040,9 @@ function ReusableProfile({
5039
5040
  }) })
5040
5041
  ] }),
5041
5042
  /* @__PURE__ */ jsx20(Separator4, { mx: 4, my: 1 }),
5042
- /* @__PURE__ */ jsxs17(Box17, { px: 4, pt: 4, pb: 10, children: [
5043
+ /* @__PURE__ */ jsxs17(Box16, { px: 4, pt: 4, pb: 10, children: [
5043
5044
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", justify: "space-between", mb: 3, children: [
5044
- replacingIdx !== null ? /* @__PURE__ */ jsxs17(Box17, { children: [
5045
+ replacingIdx !== null ? /* @__PURE__ */ jsxs17(Box16, { children: [
5045
5046
  /* @__PURE__ */ jsx20(
5046
5047
  Text10,
5047
5048
  {
@@ -5088,11 +5089,11 @@ function ReusableProfile({
5088
5089
  const isReplacingMode = replacingIdx !== null;
5089
5090
  const canAdd = quickNavHrefs.length < maxQuickNavItems;
5090
5091
  const actionEnabled = isReplacingMode || canAdd;
5091
- return /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
5092
+ return /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
5092
5093
  /* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 2.5, children: [
5093
5094
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
5094
5095
  /* @__PURE__ */ jsx20(
5095
- Box17,
5096
+ Box16,
5096
5097
  {
5097
5098
  w: "36px",
5098
5099
  h: "36px",
@@ -5162,7 +5163,7 @@ function ReusableProfile({
5162
5163
  align: "start",
5163
5164
  children: [
5164
5165
  /* @__PURE__ */ jsx20(
5165
- Box17,
5166
+ Box16,
5166
5167
  {
5167
5168
  w: { md: "300px", lg: "340px" },
5168
5169
  flexShrink: 0,
@@ -5177,7 +5178,7 @@ function ReusableProfile({
5177
5178
  }
5178
5179
  ),
5179
5180
  /* @__PURE__ */ jsx20(
5180
- Box17,
5181
+ Box16,
5181
5182
  {
5182
5183
  flex: "1",
5183
5184
  minW: 0,
@@ -5199,7 +5200,7 @@ function ReusableProfile({
5199
5200
  color: "gray.400",
5200
5201
  children: [
5201
5202
  /* @__PURE__ */ jsx20(
5202
- Box17,
5203
+ Box16,
5203
5204
  {
5204
5205
  w: "56px",
5205
5206
  h: "56px",
@@ -5222,7 +5223,7 @@ function ReusableProfile({
5222
5223
  }
5223
5224
  );
5224
5225
  }
5225
- return /* @__PURE__ */ jsx20(Box17, { maxW: "480px", mx: "auto", w: "full", minH: "100%", bg: "bg", children: profileView === "main" ? mainContent : subViewContent });
5226
+ return /* @__PURE__ */ jsx20(Box16, { maxW: "480px", mx: "auto", w: "full", minH: "100%", bg: "bg", children: profileView === "main" ? mainContent : subViewContent });
5226
5227
  }
5227
5228
  var UserProfile_default = ReusableProfile;
5228
5229
  export {