@splpi/estore-shared-components 0.0.4 → 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,161 +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
3562
  children,
3580
3563
  appName
3581
3564
  }) {
3582
3565
  const { isInstalled, isMobile, canInstall, install } = useNotifyInstall();
3583
- const [isDismissed, setIsDismissed] = useState13(false);
3566
+ const [isDismissed, setIsDismissed] = useState13(true);
3584
3567
  useEffect8(() => {
3585
- const wasDismissed = localStorage.getItem(INSTALL_DIALOG_DISMISSED_KEY);
3586
- setIsDismissed(wasDismissed === "true");
3568
+ if (localStorage.getItem(DISMISSED_KEY) !== "true") {
3569
+ setIsDismissed(false);
3570
+ }
3587
3571
  }, []);
3588
- const handleClose = () => {
3589
- localStorage.setItem(INSTALL_DIALOG_DISMISSED_KEY, "true");
3572
+ const handleDismiss = () => {
3573
+ localStorage.setItem(DISMISSED_KEY, "true");
3590
3574
  setIsDismissed(true);
3591
3575
  };
3592
- const isOpen = !isInstalled && isMobile && !isDismissed;
3593
- if (!isOpen) {
3594
- return children;
3595
- }
3576
+ const showPrompt = isMobile && !isInstalled && !isDismissed;
3596
3577
  return /* @__PURE__ */ jsxs16(Fragment3, { children: [
3597
3578
  children,
3598
- /* @__PURE__ */ jsx19(
3599
- Dialog3.Root,
3600
- {
3601
- open: isOpen,
3602
- onOpenChange: (details) => {
3603
- if (!details.open) {
3604
- 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)"
3605
3595
  }
3606
3596
  },
3607
- placement: "center",
3608
- motionPreset: "slide-in-bottom",
3609
- children: /* @__PURE__ */ jsxs16(Portal5, { children: [
3610
- /* @__PURE__ */ jsx19(Dialog3.Backdrop, { bg: "blackAlpha.600", backdropFilter: "blur(2px)" }),
3611
- /* @__PURE__ */ jsx19(
3612
- Dialog3.Positioner,
3613
- {
3614
- p: { base: 0, sm: 4 },
3615
- alignItems: { base: "flex-end", sm: "center" },
3616
- children: /* @__PURE__ */ jsxs16(
3617
- 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,
3618
3643
  {
3619
- w: "xl",
3620
- maxW: { base: "full", sm: "sm" },
3621
- borderRadius: { base: "2xl 2xl 0 0", sm: "2xl" },
3622
- overflow: "hidden",
3623
- boxShadow: "2xl",
3624
- 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",
3625
3678
  children: [
3626
- /* @__PURE__ */ jsx19(Dialog3.Body, { px: { base: 6, sm: 8 }, py: { base: 8, sm: 10 }, children: /* @__PURE__ */ jsxs16(VStack8, { gap: 6, textAlign: "center", children: [
3627
- /* @__PURE__ */ jsx19(
3628
- Flex9,
3629
- {
3630
- boxSize: { base: 16, sm: 20 },
3631
- align: "center",
3632
- justify: "center",
3633
- rounded: "2xl",
3634
- bg: "green.50",
3635
- color: "green.600",
3636
- shadow: "sm",
3637
- children: /* @__PURE__ */ jsx19(Icon5, { as: FiDownload, boxSize: { base: 8, sm: 9 } })
3638
- }
3639
- ),
3640
- /* @__PURE__ */ jsxs16(VStack8, { gap: 2, children: [
3641
- /* @__PURE__ */ jsxs16(
3642
- Heading,
3643
- {
3644
- fontSize: { base: "lg", sm: "xl" },
3645
- fontWeight: "bold",
3646
- color: "gray.900",
3647
- children: [
3648
- "Install ",
3649
- appName || "eStore"
3650
- ]
3651
- }
3652
- ),
3653
- /* @__PURE__ */ jsx19(
3654
- Text9,
3655
- {
3656
- fontSize: { base: "sm", sm: "md" },
3657
- color: "gray.600",
3658
- lineHeight: "tall",
3659
- children: "Add the app to your home screen for a faster, app-like experience before continuing."
3660
- }
3661
- )
3662
- ] }),
3663
- canInstall ? /* @__PURE__ */ jsxs16(
3664
- Button3,
3665
- {
3666
- onClick: install,
3667
- colorPalette: "green",
3668
- size: "lg",
3669
- w: "full",
3670
- rounded: "xl",
3671
- children: [
3672
- /* @__PURE__ */ jsx19(Icon5, { as: FiDownload }),
3673
- "Add to Home Screen"
3674
- ]
3675
- }
3676
- ) : /* @__PURE__ */ jsx19(
3677
- Box16,
3678
- {
3679
- w: "full",
3680
- bg: "gray.50",
3681
- borderWidth: "1px",
3682
- borderColor: "gray.100",
3683
- rounded: "xl",
3684
- p: 4,
3685
- children: /* @__PURE__ */ jsx19(VStack8, { gap: 4, align: "stretch", children: STEPS.map((step, index) => /* @__PURE__ */ jsxs16(HStack5, { gap: 3, align: "center", children: [
3686
- /* @__PURE__ */ jsx19(
3687
- Flex9,
3688
- {
3689
- boxSize: 9,
3690
- flexShrink: 0,
3691
- align: "center",
3692
- justify: "center",
3693
- rounded: "lg",
3694
- bg: "white",
3695
- borderWidth: "1px",
3696
- borderColor: "gray.200",
3697
- color: "green.600",
3698
- children: /* @__PURE__ */ jsx19(Icon5, { as: step.icon, boxSize: 4 })
3699
- }
3700
- ),
3701
- /* @__PURE__ */ jsx19(
3702
- Text9,
3703
- {
3704
- fontSize: "sm",
3705
- color: "gray.700",
3706
- textAlign: "left",
3707
- children: step.label
3708
- }
3709
- )
3710
- ] }, index)) })
3711
- }
3712
- )
3713
- ] }) }),
3714
- /* @__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"
3715
3681
  ]
3716
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
+ }
3717
3713
  )
3718
- }
3719
- )
3720
- ] })
3721
- }
3722
- )
3714
+ ] })
3715
+ ]
3716
+ },
3717
+ "install-sheet"
3718
+ )
3719
+ ] }) })
3723
3720
  ] });
3724
3721
  }
3725
3722
 
@@ -3728,7 +3725,7 @@ import { useEffect as useEffect9, useMemo, useState as useState14 } from "react"
3728
3725
  import {
3729
3726
  Avatar,
3730
3727
  Badge as Badge2,
3731
- Box as Box17,
3728
+ Box as Box16,
3732
3729
  Button as Button4,
3733
3730
  Flex as Flex10,
3734
3731
  HStack as HStack6,
@@ -4245,7 +4242,7 @@ function ReusableProfile({
4245
4242
  const roleLabel = user.role ? ROLE_LABELS[user.role] ?? user.role : "";
4246
4243
  const mainContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
4247
4244
  /* @__PURE__ */ jsxs17(
4248
- Box17,
4245
+ Box16,
4249
4246
  {
4250
4247
  bg: "var(--chakra-colors-primary)",
4251
4248
  pt: 12,
@@ -4278,7 +4275,7 @@ function ReusableProfile({
4278
4275
  }
4279
4276
  ),
4280
4277
  user.email && /* @__PURE__ */ jsx20(Text10, { color: "rgba(255,255,255,0.75)", fontSize: "sm", mb: 2, children: user.email }),
4281
- roleLabel && /* @__PURE__ */ jsx20(Box17, { display: "inline-flex", children: /* @__PURE__ */ jsx20(
4278
+ roleLabel && /* @__PURE__ */ jsx20(Box16, { display: "inline-flex", children: /* @__PURE__ */ jsx20(
4282
4279
  Badge2,
4283
4280
  {
4284
4281
  bg: "rgba(255,255,255,0.15)",
@@ -4295,7 +4292,7 @@ function ReusableProfile({
4295
4292
  ]
4296
4293
  }
4297
4294
  ),
4298
- /* @__PURE__ */ jsxs17(Box17, { px: 4, pt: 5, pb: 1, children: [
4295
+ /* @__PURE__ */ jsxs17(Box16, { px: 4, pt: 5, pb: 1, children: [
4299
4296
  /* @__PURE__ */ jsx20(
4300
4297
  Text10,
4301
4298
  {
@@ -4309,7 +4306,7 @@ function ReusableProfile({
4309
4306
  }
4310
4307
  ),
4311
4308
  /* @__PURE__ */ jsx20(
4312
- Box17,
4309
+ Box16,
4313
4310
  {
4314
4311
  as: "button",
4315
4312
  w: "full",
@@ -4329,7 +4326,7 @@ function ReusableProfile({
4329
4326
  children: [
4330
4327
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
4331
4328
  /* @__PURE__ */ jsx20(
4332
- Box17,
4329
+ Box16,
4333
4330
  {
4334
4331
  w: "38px",
4335
4332
  h: "38px",
@@ -4343,7 +4340,7 @@ function ReusableProfile({
4343
4340
  children: /* @__PURE__ */ jsx20(LuUser, { size: 16 })
4344
4341
  }
4345
4342
  ),
4346
- /* @__PURE__ */ jsxs17(Box17, { children: [
4343
+ /* @__PURE__ */ jsxs17(Box16, { children: [
4347
4344
  /* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Edit Account" }),
4348
4345
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: "gray.500", children: "Update your display name and contact details" })
4349
4346
  ] })
@@ -4356,7 +4353,7 @@ function ReusableProfile({
4356
4353
  ),
4357
4354
  /* @__PURE__ */ jsx20(Separator4, {}),
4358
4355
  /* @__PURE__ */ jsx20(
4359
- Box17,
4356
+ Box16,
4360
4357
  {
4361
4358
  as: "button",
4362
4359
  w: "full",
@@ -4379,7 +4376,7 @@ function ReusableProfile({
4379
4376
  children: [
4380
4377
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
4381
4378
  /* @__PURE__ */ jsx20(
4382
- Box17,
4379
+ Box16,
4383
4380
  {
4384
4381
  w: "38px",
4385
4382
  h: "38px",
@@ -4393,7 +4390,7 @@ function ReusableProfile({
4393
4390
  children: /* @__PURE__ */ jsx20(LuLock, { size: 16 })
4394
4391
  }
4395
4392
  ),
4396
- /* @__PURE__ */ jsxs17(Box17, { children: [
4393
+ /* @__PURE__ */ jsxs17(Box16, { children: [
4397
4394
  /* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Change Password" }),
4398
4395
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: "gray.500", children: "Test locally through the callback prop" })
4399
4396
  ] })
@@ -4408,7 +4405,7 @@ function ReusableProfile({
4408
4405
  /* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
4409
4406
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
4410
4407
  /* @__PURE__ */ jsx20(
4411
- Box17,
4408
+ Box16,
4412
4409
  {
4413
4410
  w: "38px",
4414
4411
  h: "38px",
@@ -4422,13 +4419,13 @@ function ReusableProfile({
4422
4419
  children: /* @__PURE__ */ jsx20(LuShield, { size: 16 })
4423
4420
  }
4424
4421
  ),
4425
- /* @__PURE__ */ jsxs17(Box17, { children: [
4422
+ /* @__PURE__ */ jsxs17(Box16, { children: [
4426
4423
  /* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Two Factor Authentication" }),
4427
4424
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: "gray.500", children: twoFactorEnabled ? "Enabled" : "Disabled" })
4428
4425
  ] })
4429
4426
  ] }),
4430
4427
  /* @__PURE__ */ jsx20(
4431
- Box17,
4428
+ Box16,
4432
4429
  {
4433
4430
  role: "switch",
4434
4431
  "aria-checked": twoFactorEnabled,
@@ -4451,7 +4448,7 @@ function ReusableProfile({
4451
4448
  flexShrink: 0,
4452
4449
  outline: "none",
4453
4450
  children: /* @__PURE__ */ jsx20(
4454
- Box17,
4451
+ Box16,
4455
4452
  {
4456
4453
  position: "absolute",
4457
4454
  top: "3px",
@@ -4468,7 +4465,7 @@ function ReusableProfile({
4468
4465
  )
4469
4466
  ] })
4470
4467
  ] }),
4471
- /* @__PURE__ */ jsxs17(Box17, { px: 4, pt: 4, pb: 2, children: [
4468
+ /* @__PURE__ */ jsxs17(Box16, { px: 4, pt: 4, pb: 2, children: [
4472
4469
  /* @__PURE__ */ jsx20(
4473
4470
  Text10,
4474
4471
  {
@@ -4484,7 +4481,7 @@ function ReusableProfile({
4484
4481
  /* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
4485
4482
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
4486
4483
  /* @__PURE__ */ jsx20(
4487
- Box17,
4484
+ Box16,
4488
4485
  {
4489
4486
  w: "38px",
4490
4487
  h: "38px",
@@ -4498,7 +4495,7 @@ function ReusableProfile({
4498
4495
  children: colorMode === "dark" ? /* @__PURE__ */ jsx20(LuMoon, { size: 16 }) : /* @__PURE__ */ jsx20(LuSun, { size: 16 })
4499
4496
  }
4500
4497
  ),
4501
- /* @__PURE__ */ jsxs17(Box17, { children: [
4498
+ /* @__PURE__ */ jsxs17(Box16, { children: [
4502
4499
  /* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Appearance" }),
4503
4500
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: "gray.500", children: colorMode === "light" ? "Light mode" : "Dark mode" })
4504
4501
  ] })
@@ -4541,7 +4538,7 @@ function ReusableProfile({
4541
4538
  /* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
4542
4539
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
4543
4540
  /* @__PURE__ */ jsx20(
4544
- Box17,
4541
+ Box16,
4545
4542
  {
4546
4543
  w: "38px",
4547
4544
  h: "38px",
@@ -4557,7 +4554,7 @@ function ReusableProfile({
4557
4554
  children: "A"
4558
4555
  }
4559
4556
  ),
4560
- /* @__PURE__ */ jsxs17(Box17, { children: [
4557
+ /* @__PURE__ */ jsxs17(Box16, { children: [
4561
4558
  /* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Text Size" }),
4562
4559
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: "gray.500", children: fontSizeLabel })
4563
4560
  ] })
@@ -4595,7 +4592,7 @@ function ReusableProfile({
4595
4592
  ] }),
4596
4593
  /* @__PURE__ */ jsx20(Separator4, {}),
4597
4594
  /* @__PURE__ */ jsx20(
4598
- Box17,
4595
+ Box16,
4599
4596
  {
4600
4597
  as: "button",
4601
4598
  w: "full",
@@ -4606,7 +4603,7 @@ function ReusableProfile({
4606
4603
  children: /* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
4607
4604
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
4608
4605
  /* @__PURE__ */ jsx20(
4609
- Box17,
4606
+ Box16,
4610
4607
  {
4611
4608
  w: "38px",
4612
4609
  h: "38px",
@@ -4620,7 +4617,7 @@ function ReusableProfile({
4620
4617
  children: /* @__PURE__ */ jsx20(LuArrowLeftRight, { size: 16 })
4621
4618
  }
4622
4619
  ),
4623
- /* @__PURE__ */ jsxs17(Box17, { children: [
4620
+ /* @__PURE__ */ jsxs17(Box16, { children: [
4624
4621
  /* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Quick Navigation" }),
4625
4622
  /* @__PURE__ */ jsxs17(Text10, { fontSize: "xs", color: "gray.500", children: [
4626
4623
  quickNavHrefs.length,
@@ -4635,7 +4632,7 @@ function ReusableProfile({
4635
4632
  }
4636
4633
  )
4637
4634
  ] }),
4638
- /* @__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(
4639
4636
  Button4,
4640
4637
  {
4641
4638
  w: "full",
@@ -4649,7 +4646,7 @@ function ReusableProfile({
4649
4646
  ) }) })
4650
4647
  ] });
4651
4648
  const editAccountContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
4652
- /* @__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: [
4653
4650
  /* @__PURE__ */ jsx20(
4654
4651
  IconButton3,
4655
4652
  {
@@ -4663,12 +4660,12 @@ function ReusableProfile({
4663
4660
  ),
4664
4661
  /* @__PURE__ */ jsx20(Text10, { fontWeight: "bold", fontSize: "md", children: "Edit Account" })
4665
4662
  ] }) }),
4666
- /* @__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: [
4667
4664
  user.avatarSrc && /* @__PURE__ */ jsx20(Avatar.Image, { src: user.avatarSrc, alt: editName }),
4668
4665
  /* @__PURE__ */ jsx20(Avatar.Fallback, { name: editName })
4669
4666
  ] }) }),
4670
4667
  /* @__PURE__ */ jsxs17(VStack9, { gap: 4, px: 4, pb: 10, align: "stretch", children: [
4671
- /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
4668
+ /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
4672
4669
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Display Name" }),
4673
4670
  /* @__PURE__ */ jsx20(
4674
4671
  Input4,
@@ -4680,7 +4677,7 @@ function ReusableProfile({
4680
4677
  }
4681
4678
  )
4682
4679
  ] }),
4683
- /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
4680
+ /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
4684
4681
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Email" }),
4685
4682
  /* @__PURE__ */ jsx20(
4686
4683
  Input4,
@@ -4693,7 +4690,7 @@ function ReusableProfile({
4693
4690
  }
4694
4691
  )
4695
4692
  ] }),
4696
- /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
4693
+ /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
4697
4694
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Mobile Number" }),
4698
4695
  /* @__PURE__ */ jsx20(
4699
4696
  Input4,
@@ -4722,7 +4719,7 @@ function ReusableProfile({
4722
4719
  ] })
4723
4720
  ] });
4724
4721
  const changePasswordContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
4725
- /* @__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: [
4726
4723
  /* @__PURE__ */ jsx20(
4727
4724
  IconButton3,
4728
4725
  {
@@ -4737,7 +4734,7 @@ function ReusableProfile({
4737
4734
  /* @__PURE__ */ jsx20(Text10, { fontWeight: "bold", fontSize: "md", children: "Change Password" })
4738
4735
  ] }) }),
4739
4736
  /* @__PURE__ */ jsxs17(VStack9, { gap: 5, px: 4, pt: 6, pb: 10, children: [
4740
- /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
4737
+ /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
4741
4738
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Current Password" }),
4742
4739
  /* @__PURE__ */ jsx20(
4743
4740
  InputGroup,
@@ -4766,7 +4763,7 @@ function ReusableProfile({
4766
4763
  }
4767
4764
  )
4768
4765
  ] }),
4769
- /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
4766
+ /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
4770
4767
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "New Password" }),
4771
4768
  /* @__PURE__ */ jsx20(
4772
4769
  InputGroup,
@@ -4794,9 +4791,9 @@ function ReusableProfile({
4794
4791
  )
4795
4792
  }
4796
4793
  ),
4797
- newPw && /* @__PURE__ */ jsxs17(Box17, { mt: 2, children: [
4794
+ newPw && /* @__PURE__ */ jsxs17(Box16, { mt: 2, children: [
4798
4795
  /* @__PURE__ */ jsx20(Flex10, { gap: 1, mb: 1, children: [1, 2, 3, 4, 5].map((i) => /* @__PURE__ */ jsx20(
4799
- Box17,
4796
+ Box16,
4800
4797
  {
4801
4798
  flex: 1,
4802
4799
  h: "3px",
@@ -4809,7 +4806,7 @@ function ReusableProfile({
4809
4806
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: pwMeta.color, fontWeight: "medium", children: pwMeta.label })
4810
4807
  ] })
4811
4808
  ] }),
4812
- /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
4809
+ /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
4813
4810
  /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Confirm New Password" }),
4814
4811
  /* @__PURE__ */ jsx20(
4815
4812
  InputGroup,
@@ -4857,7 +4854,7 @@ function ReusableProfile({
4857
4854
  ] });
4858
4855
  const navbarCustomizeContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
4859
4856
  /* @__PURE__ */ jsx20(
4860
- Box17,
4857
+ Box16,
4861
4858
  {
4862
4859
  px: 4,
4863
4860
  pt: 4,
@@ -4883,7 +4880,7 @@ function ReusableProfile({
4883
4880
  children: /* @__PURE__ */ jsx20(LuChevronLeft2, {})
4884
4881
  }
4885
4882
  ),
4886
- /* @__PURE__ */ jsxs17(Box17, { children: [
4883
+ /* @__PURE__ */ jsxs17(Box16, { children: [
4887
4884
  /* @__PURE__ */ jsx20(Text10, { fontWeight: "bold", fontSize: "md", children: "Quick Navigation" }),
4888
4885
  /* @__PURE__ */ jsxs17(Text10, { fontSize: "xs", color: "gray.500", children: [
4889
4886
  "Choose up to ",
@@ -4894,7 +4891,7 @@ function ReusableProfile({
4894
4891
  ] })
4895
4892
  }
4896
4893
  ),
4897
- /* @__PURE__ */ jsxs17(Box17, { px: 4, pt: 5, pb: 2, children: [
4894
+ /* @__PURE__ */ jsxs17(Box16, { px: 4, pt: 5, pb: 2, children: [
4898
4895
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", justify: "space-between", mb: 3, children: [
4899
4896
  /* @__PURE__ */ jsx20(
4900
4897
  Text10,
@@ -4940,7 +4937,7 @@ function ReusableProfile({
4940
4937
  const isFirst = idx === 0;
4941
4938
  const isLast = idx === quickNavHrefs.length - 1;
4942
4939
  const isReplacing = replacingIdx === idx;
4943
- return /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
4940
+ return /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
4944
4941
  /* @__PURE__ */ jsxs17(
4945
4942
  Flex10,
4946
4943
  {
@@ -4956,7 +4953,7 @@ function ReusableProfile({
4956
4953
  children: [
4957
4954
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
4958
4955
  /* @__PURE__ */ jsx20(
4959
- Box17,
4956
+ Box16,
4960
4957
  {
4961
4958
  w: "36px",
4962
4959
  h: "36px",
@@ -4970,7 +4967,7 @@ function ReusableProfile({
4970
4967
  children: /* @__PURE__ */ jsx20(ItemIcon, { size: 15 })
4971
4968
  }
4972
4969
  ),
4973
- /* @__PURE__ */ jsxs17(Box17, { children: [
4970
+ /* @__PURE__ */ jsxs17(Box16, { children: [
4974
4971
  /* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "medium", children: option.title }),
4975
4972
  isReplacing && /* @__PURE__ */ jsx20(
4976
4973
  Text10,
@@ -5043,9 +5040,9 @@ function ReusableProfile({
5043
5040
  }) })
5044
5041
  ] }),
5045
5042
  /* @__PURE__ */ jsx20(Separator4, { mx: 4, my: 1 }),
5046
- /* @__PURE__ */ jsxs17(Box17, { px: 4, pt: 4, pb: 10, children: [
5043
+ /* @__PURE__ */ jsxs17(Box16, { px: 4, pt: 4, pb: 10, children: [
5047
5044
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", justify: "space-between", mb: 3, children: [
5048
- replacingIdx !== null ? /* @__PURE__ */ jsxs17(Box17, { children: [
5045
+ replacingIdx !== null ? /* @__PURE__ */ jsxs17(Box16, { children: [
5049
5046
  /* @__PURE__ */ jsx20(
5050
5047
  Text10,
5051
5048
  {
@@ -5092,11 +5089,11 @@ function ReusableProfile({
5092
5089
  const isReplacingMode = replacingIdx !== null;
5093
5090
  const canAdd = quickNavHrefs.length < maxQuickNavItems;
5094
5091
  const actionEnabled = isReplacingMode || canAdd;
5095
- return /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
5092
+ return /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
5096
5093
  /* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 2.5, children: [
5097
5094
  /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
5098
5095
  /* @__PURE__ */ jsx20(
5099
- Box17,
5096
+ Box16,
5100
5097
  {
5101
5098
  w: "36px",
5102
5099
  h: "36px",
@@ -5166,7 +5163,7 @@ function ReusableProfile({
5166
5163
  align: "start",
5167
5164
  children: [
5168
5165
  /* @__PURE__ */ jsx20(
5169
- Box17,
5166
+ Box16,
5170
5167
  {
5171
5168
  w: { md: "300px", lg: "340px" },
5172
5169
  flexShrink: 0,
@@ -5181,7 +5178,7 @@ function ReusableProfile({
5181
5178
  }
5182
5179
  ),
5183
5180
  /* @__PURE__ */ jsx20(
5184
- Box17,
5181
+ Box16,
5185
5182
  {
5186
5183
  flex: "1",
5187
5184
  minW: 0,
@@ -5203,7 +5200,7 @@ function ReusableProfile({
5203
5200
  color: "gray.400",
5204
5201
  children: [
5205
5202
  /* @__PURE__ */ jsx20(
5206
- Box17,
5203
+ Box16,
5207
5204
  {
5208
5205
  w: "56px",
5209
5206
  h: "56px",
@@ -5226,7 +5223,7 @@ function ReusableProfile({
5226
5223
  }
5227
5224
  );
5228
5225
  }
5229
- 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 });
5230
5227
  }
5231
5228
  var UserProfile_default = ReusableProfile;
5232
5229
  export {