@cerberus-design/react 0.12.0-next-34ac941 → 0.12.0-next-635644c

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 (43) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.cts +45 -1
  2. package/build/legacy/components/Portal.cjs +3 -5
  3. package/build/legacy/components/Portal.cjs.map +1 -1
  4. package/build/legacy/components/Tooltip.cjs +55 -0
  5. package/build/legacy/components/Tooltip.cjs.map +1 -0
  6. package/build/legacy/context/confirm-modal.cjs +2 -5
  7. package/build/legacy/context/confirm-modal.cjs.map +1 -1
  8. package/build/legacy/context/cta-modal.cjs +2 -5
  9. package/build/legacy/context/cta-modal.cjs.map +1 -1
  10. package/build/legacy/context/notification-center.cjs +2 -5
  11. package/build/legacy/context/notification-center.cjs.map +1 -1
  12. package/build/legacy/context/prompt-modal.cjs +2 -5
  13. package/build/legacy/context/prompt-modal.cjs.map +1 -1
  14. package/build/legacy/index.cjs +114 -88
  15. package/build/legacy/index.cjs.map +1 -1
  16. package/build/modern/_tsup-dts-rollup.d.ts +45 -1
  17. package/build/modern/{chunk-NJIX4CY2.js → chunk-3FCUTX4S.js} +2 -2
  18. package/build/modern/{chunk-EZ56D7WO.js → chunk-IFD2BUUW.js} +2 -2
  19. package/build/modern/chunk-K2PSHGS7.js +11 -0
  20. package/build/modern/chunk-K2PSHGS7.js.map +1 -0
  21. package/build/modern/chunk-KML4CTMK.js +33 -0
  22. package/build/modern/chunk-KML4CTMK.js.map +1 -0
  23. package/build/modern/{chunk-CEC4EXVR.js → chunk-ON64MA6L.js} +2 -2
  24. package/build/modern/{chunk-5OSUZUR4.js → chunk-PNR7ZUAR.js} +2 -2
  25. package/build/modern/components/Portal.js +2 -1
  26. package/build/modern/components/Tooltip.js +7 -0
  27. package/build/modern/components/Tooltip.js.map +1 -0
  28. package/build/modern/context/confirm-modal.js +2 -2
  29. package/build/modern/context/cta-modal.js +2 -2
  30. package/build/modern/context/notification-center.js +2 -2
  31. package/build/modern/context/prompt-modal.js +2 -2
  32. package/build/modern/index.js +9 -5
  33. package/build/modern/index.js.map +1 -1
  34. package/package.json +2 -2
  35. package/src/components/Portal.tsx +17 -6
  36. package/src/components/Tooltip.tsx +61 -0
  37. package/src/index.ts +1 -0
  38. package/build/modern/chunk-GLY7GU5S.js +0 -14
  39. package/build/modern/chunk-GLY7GU5S.js.map +0 -1
  40. /package/build/modern/{chunk-NJIX4CY2.js.map → chunk-3FCUTX4S.js.map} +0 -0
  41. /package/build/modern/{chunk-EZ56D7WO.js.map → chunk-IFD2BUUW.js.map} +0 -0
  42. /package/build/modern/{chunk-CEC4EXVR.js.map → chunk-ON64MA6L.js.map} +0 -0
  43. /package/build/modern/{chunk-5OSUZUR4.js.map → chunk-PNR7ZUAR.js.map} +0 -0
@@ -87,6 +87,7 @@ __export(src_exports, {
87
87
  Thead: () => Thead,
88
88
  ThemeProvider: () => ThemeProvider,
89
89
  Toggle: () => Toggle,
90
+ Tooltip: () => Tooltip,
90
91
  Tr: () => Tr,
91
92
  createNavTriggerProps: () => createNavTriggerProps,
92
93
  defineIcons: () => defineIcons,
@@ -1724,11 +1725,8 @@ function NotificationDescription(props) {
1724
1725
  // src/components/Portal.tsx
1725
1726
  var import_react_dom = require("react-dom");
1726
1727
  function Portal(props) {
1727
- if (typeof window !== "undefined") {
1728
- const container = props.container || document.body;
1729
- return (0, import_react_dom.createPortal)(props.children, container, props.key);
1730
- }
1731
- return null;
1728
+ const container = props.container || document.body;
1729
+ return (0, import_react_dom.createPortal)(props.children, container, props.key);
1732
1730
  }
1733
1731
 
1734
1732
  // src/components/Radio.tsx
@@ -2316,9 +2314,36 @@ function Toggle(props) {
2316
2314
  );
2317
2315
  }
2318
2316
 
2317
+ // src/components/Tooltip.tsx
2318
+ var import_tooltip = require("@ark-ui/react/tooltip");
2319
+ var import_css41 = require("@cerberus/styled-system/css");
2320
+ var import_recipes33 = require("@cerberus/styled-system/recipes");
2321
+ var import_jsx_runtime49 = require("react/jsx-runtime");
2322
+ function Tooltip(props) {
2323
+ const { content, children, ...nativeProps } = props;
2324
+ const styles = (0, import_recipes33.tooltip)();
2325
+ const position = {
2326
+ placement: props.position || "top"
2327
+ };
2328
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_tooltip.Tooltip.Root, { openDelay: 400, positioning: position, children: [
2329
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_tooltip.Tooltip.Trigger, { className: styles.trigger, children }),
2330
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_tooltip.Tooltip.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
2331
+ import_tooltip.Tooltip.Content,
2332
+ {
2333
+ ...nativeProps,
2334
+ className: (0, import_css41.cx)(nativeProps.className, styles.content),
2335
+ children: [
2336
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_tooltip.Tooltip.Arrow, { className: styles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_tooltip.Tooltip.ArrowTip, { className: styles.arrowTip }) }),
2337
+ content
2338
+ ]
2339
+ }
2340
+ ) })
2341
+ ] });
2342
+ }
2343
+
2319
2344
  // src/context/confirm-modal.tsx
2320
2345
  var import_react17 = require("react");
2321
- var import_css41 = require("@cerberus/styled-system/css");
2346
+ var import_css42 = require("@cerberus/styled-system/css");
2322
2347
  var import_patterns16 = require("@cerberus/styled-system/patterns");
2323
2348
 
2324
2349
  // src/hooks/useModal.ts
@@ -2347,7 +2372,7 @@ function useModal() {
2347
2372
  }
2348
2373
 
2349
2374
  // src/context/confirm-modal.tsx
2350
- var import_jsx_runtime49 = require("react/jsx-runtime");
2375
+ var import_jsx_runtime50 = require("react/jsx-runtime");
2351
2376
  var ConfirmModalContext = (0, import_react17.createContext)(null);
2352
2377
  function ConfirmModal(props) {
2353
2378
  const { modalRef, show, close } = useModal();
@@ -2387,36 +2412,36 @@ function ConfirmModal(props) {
2387
2412
  }),
2388
2413
  [handleShow]
2389
2414
  );
2390
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(ConfirmModalContext.Provider, { value, children: [
2415
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(ConfirmModalContext.Provider, { value, children: [
2391
2416
  props.children,
2392
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
2393
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(ModalHeader, { children: [
2394
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2417
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
2418
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(ModalHeader, { children: [
2419
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2395
2420
  "div",
2396
2421
  {
2397
2422
  className: (0, import_patterns16.hstack)({
2398
2423
  justify: "center",
2399
2424
  w: "full"
2400
2425
  }),
2401
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2426
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2402
2427
  Show,
2403
2428
  {
2404
2429
  when: palette === "danger",
2405
- fallback: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2430
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2406
2431
  Avatar,
2407
2432
  {
2408
2433
  ariaLabel: "",
2409
2434
  gradient: "charon-light",
2410
- icon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ConfirmIcon, { size: 24 }),
2435
+ icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ConfirmIcon, { size: 24 }),
2411
2436
  src: ""
2412
2437
  }
2413
2438
  ),
2414
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2439
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2415
2440
  Avatar,
2416
2441
  {
2417
2442
  ariaLabel: "",
2418
2443
  gradient: "hades-dark",
2419
- icon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ConfirmIcon, { size: 24 }),
2444
+ icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ConfirmIcon, { size: 24 }),
2420
2445
  src: ""
2421
2446
  }
2422
2447
  )
@@ -2424,21 +2449,21 @@ function ConfirmModal(props) {
2424
2449
  )
2425
2450
  }
2426
2451
  ),
2427
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
2428
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
2452
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
2453
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
2429
2454
  ] }),
2430
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
2455
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
2431
2456
  "div",
2432
2457
  {
2433
2458
  className: (0, import_patterns16.hstack)({
2434
2459
  gap: "4"
2435
2460
  }),
2436
2461
  children: [
2437
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2462
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2438
2463
  Button,
2439
2464
  {
2440
2465
  autoFocus: true,
2441
- className: (0, import_css41.css)({
2466
+ className: (0, import_css42.css)({
2442
2467
  w: "1/2"
2443
2468
  }),
2444
2469
  name: "confirm",
@@ -2448,10 +2473,10 @@ function ConfirmModal(props) {
2448
2473
  children: content == null ? void 0 : content.actionText
2449
2474
  }
2450
2475
  ),
2451
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2476
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2452
2477
  Button,
2453
2478
  {
2454
- className: (0, import_css41.css)({
2479
+ className: (0, import_css42.css)({
2455
2480
  w: "1/2"
2456
2481
  }),
2457
2482
  name: "cancel",
@@ -2480,9 +2505,9 @@ function useConfirmModal() {
2480
2505
  // src/context/cta-modal.tsx
2481
2506
  var import_react18 = require("react");
2482
2507
  var import_jsx = require("@cerberus/styled-system/jsx");
2483
- var import_css42 = require("@cerberus/styled-system/css");
2508
+ var import_css43 = require("@cerberus/styled-system/css");
2484
2509
  var import_jsx2 = require("@cerberus/styled-system/jsx");
2485
- var import_jsx_runtime50 = require("react/jsx-runtime");
2510
+ var import_jsx_runtime51 = require("react/jsx-runtime");
2486
2511
  var CTAModalContext = (0, import_react18.createContext)(null);
2487
2512
  function CTAModal(props) {
2488
2513
  var _a, _b;
@@ -2522,49 +2547,49 @@ function CTAModal(props) {
2522
2547
  }),
2523
2548
  [handleShow]
2524
2549
  );
2525
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(CTAModalContext.Provider, { value, children: [
2550
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(CTAModalContext.Provider, { value, children: [
2526
2551
  props.children,
2527
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
2528
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2552
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
2553
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2529
2554
  "span",
2530
2555
  {
2531
- className: (0, import_css42.css)({
2556
+ className: (0, import_css43.css)({
2532
2557
  padding: "md",
2533
2558
  position: "absolute",
2534
2559
  right: 0,
2535
2560
  top: 0,
2536
2561
  zIndex: "decorator"
2537
2562
  }),
2538
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(IconButton, { ariaLabel: "Close modal", onClick: close, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(CloseIcon, {}) })
2563
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(IconButton, { ariaLabel: "Close modal", onClick: close, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(CloseIcon, {}) })
2539
2564
  }
2540
2565
  ),
2541
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(ModalHeader, { children: [
2542
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx.HStack, { justify: "center", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2566
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(ModalHeader, { children: [
2567
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx.HStack, { justify: "center", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2543
2568
  Avatar,
2544
2569
  {
2545
2570
  ariaLabel: "",
2546
2571
  gradient: "charon-light",
2547
- icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2572
+ icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2548
2573
  Show,
2549
2574
  {
2550
2575
  when: Boolean(confirmIcon),
2551
- fallback: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(FallbackIcon, { size: 24 }),
2576
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(FallbackIcon, { size: 24 }),
2552
2577
  children: confirmIcon
2553
2578
  }
2554
2579
  ),
2555
2580
  src: ""
2556
2581
  }
2557
2582
  ) }),
2558
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx2.VStack, { gap: "lg", w: "full", children: [
2559
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
2560
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
2583
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx2.VStack, { gap: "lg", w: "full", children: [
2584
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
2585
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
2561
2586
  ] })
2562
2587
  ] }),
2563
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx.HStack, { gap: "md", pt: "sm", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Show, { when: Boolean((_a = content == null ? void 0 : content.actions) == null ? void 0 : _a.length), children: (_b = content == null ? void 0 : content.actions) == null ? void 0 : _b.map((action, index) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2588
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx.HStack, { gap: "md", pt: "sm", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Show, { when: Boolean((_a = content == null ? void 0 : content.actions) == null ? void 0 : _a.length), children: (_b = content == null ? void 0 : content.actions) == null ? void 0 : _b.map((action, index) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2564
2589
  Button,
2565
2590
  {
2566
2591
  "data-index": index,
2567
- className: (0, import_css42.css)({
2592
+ className: (0, import_css43.css)({
2568
2593
  w: "1/2"
2569
2594
  }),
2570
2595
  onClick: handleActionClick,
@@ -2588,13 +2613,13 @@ function useCTAModal() {
2588
2613
  // src/context/notification-center.tsx
2589
2614
  var import_react19 = require("react");
2590
2615
  var import_patterns17 = require("@cerberus/styled-system/patterns");
2591
- var import_recipes33 = require("@cerberus/styled-system/recipes");
2592
- var import_css43 = require("@cerberus/styled-system/css");
2593
- var import_jsx_runtime51 = require("react/jsx-runtime");
2616
+ var import_recipes34 = require("@cerberus/styled-system/recipes");
2617
+ var import_css44 = require("@cerberus/styled-system/css");
2618
+ var import_jsx_runtime52 = require("react/jsx-runtime");
2594
2619
  var NotificationsContext = (0, import_react19.createContext)(null);
2595
2620
  function NotificationCenter(props) {
2596
2621
  const [activeNotifications, setActiveNotifications] = (0, import_react19.useState)([]);
2597
- const styles = (0, import_recipes33.notification)();
2622
+ const styles = (0, import_recipes34.notification)();
2598
2623
  const handleNotify = (0, import_react19.useCallback)((options) => {
2599
2624
  setActiveNotifications((prev) => {
2600
2625
  const id = `${options.palette}:${prev.length + 1}`;
@@ -2623,13 +2648,13 @@ function NotificationCenter(props) {
2623
2648
  }),
2624
2649
  [handleNotify]
2625
2650
  );
2626
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(NotificationsContext.Provider, { value, children: [
2651
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(NotificationsContext.Provider, { value, children: [
2627
2652
  props.children,
2628
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Show, { when: activeNotifications.length > 0, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Portal, { container: props.container, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: styles.center, children: [
2629
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Show, { when: activeNotifications.length >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2653
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Show, { when: activeNotifications.length > 0, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Portal, { container: props.container, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: styles.center, children: [
2654
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Show, { when: activeNotifications.length >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2630
2655
  Button,
2631
2656
  {
2632
- className: (0, import_css43.cx)(styles.closeAll, (0, import_patterns17.animateIn)()),
2657
+ className: (0, import_css44.cx)(styles.closeAll, (0, import_patterns17.animateIn)()),
2633
2658
  onClick: handleCloseAll,
2634
2659
  palette: "action",
2635
2660
  shape: "rounded",
@@ -2638,7 +2663,7 @@ function NotificationCenter(props) {
2638
2663
  children: "Close all"
2639
2664
  }
2640
2665
  ) }),
2641
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2666
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2642
2667
  "div",
2643
2668
  {
2644
2669
  className: (0, import_patterns17.vstack)({
@@ -2648,7 +2673,7 @@ function NotificationCenter(props) {
2648
2673
  style: {
2649
2674
  alignItems: "flex-end"
2650
2675
  },
2651
- children: activeNotifications.map((option) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2676
+ children: activeNotifications.map((option) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2652
2677
  MatchNotification,
2653
2678
  {
2654
2679
  ...option,
@@ -2665,7 +2690,7 @@ function MatchNotification(props) {
2665
2690
  const { palette, id, onClose, heading, description } = props;
2666
2691
  switch (palette) {
2667
2692
  case "success":
2668
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
2693
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2669
2694
  Notification,
2670
2695
  {
2671
2696
  id,
@@ -2673,14 +2698,14 @@ function MatchNotification(props) {
2673
2698
  open: true,
2674
2699
  palette: "success",
2675
2700
  children: [
2676
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(NotificationHeading, { palette: "success", children: heading }),
2677
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(NotificationDescription, { palette: "success", children: description })
2701
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(NotificationHeading, { palette: "success", children: heading }),
2702
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(NotificationDescription, { palette: "success", children: description })
2678
2703
  ]
2679
2704
  },
2680
2705
  id
2681
2706
  );
2682
2707
  case "warning":
2683
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
2708
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2684
2709
  Notification,
2685
2710
  {
2686
2711
  id,
@@ -2688,22 +2713,22 @@ function MatchNotification(props) {
2688
2713
  open: true,
2689
2714
  palette: "warning",
2690
2715
  children: [
2691
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(NotificationHeading, { palette: "warning", children: heading }),
2692
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(NotificationDescription, { palette: "warning", children: description })
2716
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(NotificationHeading, { palette: "warning", children: heading }),
2717
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(NotificationDescription, { palette: "warning", children: description })
2693
2718
  ]
2694
2719
  },
2695
2720
  id
2696
2721
  );
2697
2722
  case "danger":
2698
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Notification, { id, onClose, open: true, palette: "danger", children: [
2699
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(NotificationHeading, { palette: "danger", children: heading }),
2700
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(NotificationDescription, { palette: "danger", children: description })
2723
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Notification, { id, onClose, open: true, palette: "danger", children: [
2724
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(NotificationHeading, { palette: "danger", children: heading }),
2725
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(NotificationDescription, { palette: "danger", children: description })
2701
2726
  ] }, id);
2702
2727
  case "info":
2703
2728
  default:
2704
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Notification, { id, onClose, open: true, palette: "info", children: [
2705
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(NotificationHeading, { palette: "info", children: heading }),
2706
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(NotificationDescription, { palette: "info", children: description })
2729
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Notification, { id, onClose, open: true, palette: "info", children: [
2730
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(NotificationHeading, { palette: "info", children: heading }),
2731
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(NotificationDescription, { palette: "info", children: description })
2707
2732
  ] }, id);
2708
2733
  }
2709
2734
  }
@@ -2719,9 +2744,9 @@ function useNotificationCenter() {
2719
2744
 
2720
2745
  // src/context/prompt-modal.tsx
2721
2746
  var import_react20 = require("react");
2722
- var import_css44 = require("@cerberus/styled-system/css");
2747
+ var import_css45 = require("@cerberus/styled-system/css");
2723
2748
  var import_patterns18 = require("@cerberus/styled-system/patterns");
2724
- var import_jsx_runtime52 = require("react/jsx-runtime");
2749
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2725
2750
  var PromptModalContext = (0, import_react20.createContext)(null);
2726
2751
  function PromptModal(props) {
2727
2752
  const { modalRef, show, close } = useModal();
@@ -2771,36 +2796,36 @@ function PromptModal(props) {
2771
2796
  }),
2772
2797
  [handleShow]
2773
2798
  );
2774
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(PromptModalContext.Provider, { value, children: [
2799
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(PromptModalContext.Provider, { value, children: [
2775
2800
  props.children,
2776
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
2777
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(ModalHeader, { children: [
2778
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2801
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
2802
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(ModalHeader, { children: [
2803
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2779
2804
  "div",
2780
2805
  {
2781
2806
  className: (0, import_patterns18.hstack)({
2782
2807
  justify: "center",
2783
2808
  w: "full"
2784
2809
  }),
2785
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2810
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2786
2811
  Show,
2787
2812
  {
2788
2813
  when: palette === "danger",
2789
- fallback: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2814
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2790
2815
  Avatar,
2791
2816
  {
2792
2817
  ariaLabel: "",
2793
2818
  gradient: "charon-light",
2794
- icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PromptIcon, { size: 24 }),
2819
+ icon: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(PromptIcon, { size: 24 }),
2795
2820
  src: ""
2796
2821
  }
2797
2822
  ),
2798
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2823
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2799
2824
  Avatar,
2800
2825
  {
2801
2826
  ariaLabel: "",
2802
2827
  gradient: "hades-dark",
2803
- icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PromptIcon, { size: 24 }),
2828
+ icon: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(PromptIcon, { size: 24 }),
2804
2829
  src: ""
2805
2830
  }
2806
2831
  )
@@ -2808,10 +2833,10 @@ function PromptModal(props) {
2808
2833
  )
2809
2834
  }
2810
2835
  ),
2811
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
2812
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
2836
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
2837
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ModalDescription, { children: content == null ? void 0 : content.description })
2813
2838
  ] }),
2814
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2839
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2815
2840
  "div",
2816
2841
  {
2817
2842
  className: (0, import_patterns18.vstack)({
@@ -2819,11 +2844,11 @@ function PromptModal(props) {
2819
2844
  mt: "4",
2820
2845
  mb: "8"
2821
2846
  }),
2822
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Field, { invalid: !isValid, children: [
2823
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2847
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Field, { invalid: !isValid, children: [
2848
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
2824
2849
  Label,
2825
2850
  {
2826
- className: (0, import_css44.css)({
2851
+ className: (0, import_css45.css)({
2827
2852
  gap: 1,
2828
2853
  justifyContent: "flex-start"
2829
2854
  }),
@@ -2831,10 +2856,10 @@ function PromptModal(props) {
2831
2856
  size: "md",
2832
2857
  children: [
2833
2858
  "Type",
2834
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2859
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2835
2860
  "strong",
2836
2861
  {
2837
- className: (0, import_css44.css)({
2862
+ className: (0, import_css45.css)({
2838
2863
  textTransform: "uppercase"
2839
2864
  }),
2840
2865
  children: content == null ? void 0 : content.key
@@ -2844,7 +2869,7 @@ function PromptModal(props) {
2844
2869
  ]
2845
2870
  }
2846
2871
  ),
2847
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2872
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2848
2873
  Input,
2849
2874
  {
2850
2875
  id: "confirm",
@@ -2856,7 +2881,7 @@ function PromptModal(props) {
2856
2881
  ] })
2857
2882
  }
2858
2883
  ),
2859
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2884
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
2860
2885
  "div",
2861
2886
  {
2862
2887
  className: (0, import_patterns18.hstack)({
@@ -2864,11 +2889,11 @@ function PromptModal(props) {
2864
2889
  gap: "4"
2865
2890
  }),
2866
2891
  children: [
2867
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2892
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2868
2893
  Button,
2869
2894
  {
2870
2895
  autoFocus: true,
2871
- className: (0, import_css44.css)({
2896
+ className: (0, import_css45.css)({
2872
2897
  w: "1/2"
2873
2898
  }),
2874
2899
  disabled: !isValid,
@@ -2879,10 +2904,10 @@ function PromptModal(props) {
2879
2904
  children: content == null ? void 0 : content.actionText
2880
2905
  }
2881
2906
  ),
2882
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2907
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2883
2908
  Button,
2884
2909
  {
2885
- className: (0, import_css44.css)({
2910
+ className: (0, import_css45.css)({
2886
2911
  w: "1/2"
2887
2912
  }),
2888
2913
  name: "cancel",
@@ -2973,7 +2998,7 @@ function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options
2973
2998
  }
2974
2999
 
2975
3000
  // src/context/theme.tsx
2976
- var import_jsx_runtime53 = require("react/jsx-runtime");
3001
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2977
3002
  var ThemeContext = (0, import_react22.createContext)(
2978
3003
  null
2979
3004
  );
@@ -2983,7 +3008,7 @@ function ThemeProvider(props) {
2983
3008
  updateMode: props.updateMode,
2984
3009
  updateTheme: props.updateTheme
2985
3010
  });
2986
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ThemeContext.Provider, { value: state, children: props.children });
3011
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ThemeContext.Provider, { value: state, children: props.children });
2987
3012
  }
2988
3013
  function useThemeContext() {
2989
3014
  const context = (0, import_react22.useContext)(ThemeContext);
@@ -3087,6 +3112,7 @@ __reExport(src_exports, require("@dnd-kit/core"), module.exports);
3087
3112
  Thead,
3088
3113
  ThemeProvider,
3089
3114
  Toggle,
3115
+ Tooltip,
3090
3116
  Tr,
3091
3117
  createNavTriggerProps,
3092
3118
  defineIcons,