@bizapps/ui 1.3.5 → 1.3.7

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/main.js CHANGED
@@ -2225,7 +2225,7 @@ function DialogTrigger({ ...props }) {
2225
2225
  }
2226
2226
  function DialogPortal({ children, ...props }) {
2227
2227
  const isOpen = useContext(DialogContext);
2228
- return /* @__PURE__ */ jsx(Dialog$1.Portal, { "data-slot": "dialog-portal", forceMount: true, ...props, children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: isOpen && children }) });
2228
+ return /* @__PURE__ */ jsx(Dialog$1.Portal, { "data-slot": "dialog-portal", forceMount: true, ...props, children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "sync", children: isOpen && children }) });
2229
2229
  }
2230
2230
  function DialogClose({ ...props }) {
2231
2231
  return /* @__PURE__ */ jsx(Dialog$1.Close, { "data-slot": "dialog-close", ...props });
@@ -2252,7 +2252,7 @@ function DialogContent({
2252
2252
  ...props
2253
2253
  }) {
2254
2254
  return /* @__PURE__ */ jsxs(DialogPortal, { children: [
2255
- /* @__PURE__ */ jsx(DialogOverlay, {}),
2255
+ /* @__PURE__ */ jsx(DialogOverlay, {}, "dialog-overlay"),
2256
2256
  /* @__PURE__ */ jsx(
2257
2257
  Dialog$1.Content,
2258
2258
  {
@@ -2289,7 +2289,8 @@ function DialogContent({
2289
2289
  ]
2290
2290
  }
2291
2291
  )
2292
- }
2292
+ },
2293
+ "dialog-content"
2293
2294
  )
2294
2295
  ] });
2295
2296
  }
@@ -2392,7 +2393,7 @@ function AlertDialogPortal({
2392
2393
  ...props
2393
2394
  }) {
2394
2395
  const isOpen = useContext(AlertDialogContext);
2395
- return /* @__PURE__ */ jsx(AlertDialog$1.Portal, { "data-slot": "alert-dialog-portal", forceMount: true, ...props, children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: isOpen && children }) });
2396
+ return /* @__PURE__ */ jsx(AlertDialog$1.Portal, { "data-slot": "alert-dialog-portal", forceMount: true, ...props, children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "sync", children: isOpen && children }) });
2396
2397
  }
2397
2398
  function AlertDialogOverlay({
2398
2399
  className,
@@ -2434,7 +2435,8 @@ function AlertDialogContent({
2434
2435
  AlertDialogOverlay,
2435
2436
  {
2436
2437
  className: cn(variant === "dark-glass" && "bg-primary/60 backdrop-blur-md")
2437
- }
2438
+ },
2439
+ "alert-dialog-overlay"
2438
2440
  ),
2439
2441
  /* @__PURE__ */ jsx(
2440
2442
  AlertDialog$1.Content,
@@ -2468,7 +2470,8 @@ function AlertDialogContent({
2468
2470
  ]
2469
2471
  }
2470
2472
  )
2471
- }
2473
+ },
2474
+ "alert-dialog-content"
2472
2475
  )
2473
2476
  ] });
2474
2477
  }
@@ -8490,7 +8493,7 @@ function BottomNavTabsList({ items, className }) {
8490
8493
  {
8491
8494
  "data-slot": "bottom-nav-tabs-list",
8492
8495
  className: cn(
8493
- "fixed bottom-0 left-0 right-0 z-50 mx-4 mb-4 rounded-2xl bg-background shadow-[0_-4px_20px_rgba(0,0,0,0.08)]",
8496
+ "fixed bottom-0 left-0 right-0 z-50 mx-6 max-w- mb-4 rounded-2xl bg-background shadow-[0_-4px_20px_rgba(0,0,0,0.08)]",
8494
8497
  className
8495
8498
  ),
8496
8499
  children: /* @__PURE__ */ jsx(Tabs$1.List, { className: "flex h-20 items-center justify-around px-4", children: items.map(({ value, label, icon, activeIcon }) => {
@@ -8501,12 +8504,12 @@ function BottomNavTabsList({ items, className }) {
8501
8504
  value,
8502
8505
  "data-slot": "bottom-nav-tabs-trigger",
8503
8506
  className: cn(
8504
- "group flex flex-col items-center gap-0.5 transition-colors",
8507
+ "group flex flex-col items-center transition-colors",
8505
8508
  "data-[state=active]:text-primary data-[state=inactive]:text-muted-foreground",
8506
8509
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:rounded-2xl"
8507
8510
  ),
8508
8511
  children: [
8509
- /* @__PURE__ */ jsxs("span", { className: "relative flex h-12 w-12 items-center justify-center", children: [
8512
+ /* @__PURE__ */ jsxs("span", { className: "relative flex h-15 w-16 flex-col items-center justify-center gap-1.5", children: [
8510
8513
  /* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: isActive && /* @__PURE__ */ jsx(
8511
8514
  motion.span,
8512
8515
  {
@@ -8515,23 +8518,14 @@ function BottomNavTabsList({ items, className }) {
8515
8518
  transition: spring.snappy
8516
8519
  }
8517
8520
  ) }),
8518
- /* @__PURE__ */ jsx("span", { className: "relative z-10 h-6 w-6", children: isActive ? activeIcon ?? icon : icon })
8521
+ /* @__PURE__ */ jsx("span", { className: "relative z-10 h-6 w-6", children: isActive ? activeIcon ?? icon : icon }),
8522
+ /* @__PURE__ */ jsx("span", { className: "relative z-10 text-[10px] font-medium leading-none", children: label })
8519
8523
  ] }),
8520
8524
  /* @__PURE__ */ jsx(
8521
8525
  "span",
8522
8526
  {
8523
8527
  className: cn(
8524
- "text-[10px] font-medium",
8525
- isActive && "font-semibold"
8526
- ),
8527
- children: label
8528
- }
8529
- ),
8530
- /* @__PURE__ */ jsx(
8531
- "span",
8532
- {
8533
- className: cn(
8534
- "h-1 w-5 rounded-full transition-colors",
8528
+ "mt-1 h-1 w-6 rounded-full transition-colors",
8535
8529
  isActive ? "bg-primary" : "bg-transparent"
8536
8530
  )
8537
8531
  }
@@ -8610,7 +8604,7 @@ function DrawerContent({
8610
8604
  const dragRef = useRef(null);
8611
8605
  const { modal } = useContext(DrawerContext);
8612
8606
  return /* @__PURE__ */ jsxs(DrawerPortal, { children: [
8613
- modal && /* @__PURE__ */ jsx(DrawerOverlay, {}),
8607
+ modal && /* @__PURE__ */ jsx(DrawerOverlay, {}, "drawer-overlay"),
8614
8608
  /* @__PURE__ */ jsx(
8615
8609
  Dialog$1.Content,
8616
8610
  {
@@ -8707,7 +8701,8 @@ function DrawerContent({
8707
8701
  ]
8708
8702
  }
8709
8703
  )
8710
- }
8704
+ },
8705
+ "drawer-content"
8711
8706
  )
8712
8707
  ] });
8713
8708
  }