@cerberus-design/react 0.12.0-next-bd594cf → 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.
@@ -130,6 +130,7 @@ import { TdVariantProps } from '@cerberus/styled-system/recipes';
130
130
  import type { TextareaHTMLAttributes } from 'react';
131
131
  import { ThVariantProps } from '@cerberus/styled-system/recipes';
132
132
  import { ToggleVariantProps } from '@cerberus/styled-system/recipes';
133
+ import { TooltipContentProps } from '@ark-ui/react/tooltip';
133
134
  import { TouchSensor } from '@dnd-kit/core';
134
135
  import { TouchSensorOptions } from '@dnd-kit/core';
135
136
  import { Translate } from '@dnd-kit/core';
@@ -2731,6 +2732,36 @@ declare type ToggleProps = ToggleBase & ToggleVariantProps;
2731
2732
  export { ToggleProps }
2732
2733
  export { ToggleProps as ToggleProps_alias_1 }
2733
2734
 
2735
+ /**
2736
+ * The Tooltip component is used to provide additional information about an element when it is hovered over.
2737
+ * @definition [Tooltip docs](https://cerberus.digitalu.design/react/tooltip)
2738
+ * @example
2739
+ * ```tsx
2740
+ * <Tooltip content="This is a tooltip">
2741
+ * <Information />
2742
+ * </Tooltip>
2743
+ */
2744
+ declare function Tooltip(props: TooltipProps & TooltipContentProps): JSX_2.Element;
2745
+ export { Tooltip }
2746
+ export { Tooltip as Tooltip_alias_1 }
2747
+
2748
+ /**
2749
+ * This module contains the Tooltip component.
2750
+ * @module Tooltip
2751
+ */
2752
+ declare interface TooltipProps {
2753
+ /**
2754
+ * The text content to display in the tooltip.
2755
+ */
2756
+ content: ReactNode;
2757
+ /**
2758
+ * The position of the tooltip relative to the trigger element.
2759
+ */
2760
+ position?: 'top' | 'right' | 'bottom' | 'left';
2761
+ }
2762
+ export { TooltipProps }
2763
+ export { TooltipProps as TooltipProps_alias_1 }
2764
+
2734
2765
  export { TouchSensor }
2735
2766
 
2736
2767
  export { TouchSensorOptions }
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/Tooltip.tsx
21
+ var Tooltip_exports = {};
22
+ __export(Tooltip_exports, {
23
+ Tooltip: () => Tooltip
24
+ });
25
+ module.exports = __toCommonJS(Tooltip_exports);
26
+ var import_tooltip = require("@ark-ui/react/tooltip");
27
+ var import_css = require("@cerberus/styled-system/css");
28
+ var import_recipes = require("@cerberus/styled-system/recipes");
29
+ var import_jsx_runtime = require("react/jsx-runtime");
30
+ function Tooltip(props) {
31
+ const { content, children, ...nativeProps } = props;
32
+ const styles = (0, import_recipes.tooltip)();
33
+ const position = {
34
+ placement: props.position || "top"
35
+ };
36
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tooltip.Tooltip.Root, { openDelay: 400, positioning: position, children: [
37
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tooltip.Tooltip.Trigger, { className: styles.trigger, children }),
38
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tooltip.Tooltip.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
39
+ import_tooltip.Tooltip.Content,
40
+ {
41
+ ...nativeProps,
42
+ className: (0, import_css.cx)(nativeProps.className, styles.content),
43
+ children: [
44
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tooltip.Tooltip.Arrow, { className: styles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tooltip.Tooltip.ArrowTip, { className: styles.arrowTip }) }),
45
+ content
46
+ ]
47
+ }
48
+ ) })
49
+ ] });
50
+ }
51
+ // Annotate the CommonJS export names for ESM import in node:
52
+ 0 && (module.exports = {
53
+ Tooltip
54
+ });
55
+ //# sourceMappingURL=Tooltip.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Tooltip.tsx"],"sourcesContent":["import {\n Tooltip as ArkTooltip,\n type TooltipContentProps,\n} from '@ark-ui/react/tooltip'\nimport { cx } from '@cerberus/styled-system/css'\nimport { tooltip } from '@cerberus/styled-system/recipes'\nimport type { ReactNode } from 'react'\n\n/**\n * This module contains the Tooltip component.\n * @module Tooltip\n */\n\nexport interface TooltipProps {\n /**\n * The text content to display in the tooltip.\n */\n content: ReactNode\n /**\n * The position of the tooltip relative to the trigger element.\n */\n position?: 'top' | 'right' | 'bottom' | 'left'\n}\n\n/**\n * The Tooltip component is used to provide additional information about an element when it is hovered over.\n * @definition [Tooltip docs](https://cerberus.digitalu.design/react/tooltip)\n * @example\n * ```tsx\n * <Tooltip content=\"This is a tooltip\">\n * <Information />\n * </Tooltip>\n */\nexport function Tooltip(props: TooltipProps & TooltipContentProps) {\n const { content, children, ...nativeProps } = props\n const styles = tooltip()\n const position = {\n placement: props.position || 'top',\n }\n\n return (\n <ArkTooltip.Root openDelay={400} positioning={position}>\n <ArkTooltip.Trigger className={styles.trigger}>\n {children}\n </ArkTooltip.Trigger>\n\n <ArkTooltip.Positioner>\n <ArkTooltip.Content\n {...nativeProps}\n className={cx(nativeProps.className, styles.content)}\n >\n <ArkTooltip.Arrow className={styles.arrow}>\n <ArkTooltip.ArrowTip className={styles.arrowTip} />\n </ArkTooltip.Arrow>\n\n {content}\n </ArkTooltip.Content>\n </ArkTooltip.Positioner>\n </ArkTooltip.Root>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAGO;AACP,iBAAmB;AACnB,qBAAwB;AAqClB;AATC,SAAS,QAAQ,OAA2C;AACjE,QAAM,EAAE,SAAS,UAAU,GAAG,YAAY,IAAI;AAC9C,QAAM,aAAS,wBAAQ;AACvB,QAAM,WAAW;AAAA,IACf,WAAW,MAAM,YAAY;AAAA,EAC/B;AAEA,SACE,6CAAC,eAAAA,QAAW,MAAX,EAAgB,WAAW,KAAK,aAAa,UAC5C;AAAA,gDAAC,eAAAA,QAAW,SAAX,EAAmB,WAAW,OAAO,SACnC,UACH;AAAA,IAEA,4CAAC,eAAAA,QAAW,YAAX,EACC;AAAA,MAAC,eAAAA,QAAW;AAAA,MAAX;AAAA,QACE,GAAG;AAAA,QACJ,eAAW,eAAG,YAAY,WAAW,OAAO,OAAO;AAAA,QAEnD;AAAA,sDAAC,eAAAA,QAAW,OAAX,EAAiB,WAAW,OAAO,OAClC,sDAAC,eAAAA,QAAW,UAAX,EAAoB,WAAW,OAAO,UAAU,GACnD;AAAA,UAEC;AAAA;AAAA;AAAA,IACH,GACF;AAAA,KACF;AAEJ;","names":["ArkTooltip"]}
@@ -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,
@@ -2313,9 +2314,36 @@ function Toggle(props) {
2313
2314
  );
2314
2315
  }
2315
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
+
2316
2344
  // src/context/confirm-modal.tsx
2317
2345
  var import_react17 = require("react");
2318
- var import_css41 = require("@cerberus/styled-system/css");
2346
+ var import_css42 = require("@cerberus/styled-system/css");
2319
2347
  var import_patterns16 = require("@cerberus/styled-system/patterns");
2320
2348
 
2321
2349
  // src/hooks/useModal.ts
@@ -2344,7 +2372,7 @@ function useModal() {
2344
2372
  }
2345
2373
 
2346
2374
  // src/context/confirm-modal.tsx
2347
- var import_jsx_runtime49 = require("react/jsx-runtime");
2375
+ var import_jsx_runtime50 = require("react/jsx-runtime");
2348
2376
  var ConfirmModalContext = (0, import_react17.createContext)(null);
2349
2377
  function ConfirmModal(props) {
2350
2378
  const { modalRef, show, close } = useModal();
@@ -2384,36 +2412,36 @@ function ConfirmModal(props) {
2384
2412
  }),
2385
2413
  [handleShow]
2386
2414
  );
2387
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(ConfirmModalContext.Provider, { value, children: [
2415
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(ConfirmModalContext.Provider, { value, children: [
2388
2416
  props.children,
2389
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
2390
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(ModalHeader, { children: [
2391
- /* @__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)(
2392
2420
  "div",
2393
2421
  {
2394
2422
  className: (0, import_patterns16.hstack)({
2395
2423
  justify: "center",
2396
2424
  w: "full"
2397
2425
  }),
2398
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2426
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2399
2427
  Show,
2400
2428
  {
2401
2429
  when: palette === "danger",
2402
- fallback: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2430
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2403
2431
  Avatar,
2404
2432
  {
2405
2433
  ariaLabel: "",
2406
2434
  gradient: "charon-light",
2407
- icon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ConfirmIcon, { size: 24 }),
2435
+ icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ConfirmIcon, { size: 24 }),
2408
2436
  src: ""
2409
2437
  }
2410
2438
  ),
2411
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2439
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2412
2440
  Avatar,
2413
2441
  {
2414
2442
  ariaLabel: "",
2415
2443
  gradient: "hades-dark",
2416
- icon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ConfirmIcon, { size: 24 }),
2444
+ icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ConfirmIcon, { size: 24 }),
2417
2445
  src: ""
2418
2446
  }
2419
2447
  )
@@ -2421,21 +2449,21 @@ function ConfirmModal(props) {
2421
2449
  )
2422
2450
  }
2423
2451
  ),
2424
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
2425
- /* @__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 })
2426
2454
  ] }),
2427
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
2455
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
2428
2456
  "div",
2429
2457
  {
2430
2458
  className: (0, import_patterns16.hstack)({
2431
2459
  gap: "4"
2432
2460
  }),
2433
2461
  children: [
2434
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2462
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2435
2463
  Button,
2436
2464
  {
2437
2465
  autoFocus: true,
2438
- className: (0, import_css41.css)({
2466
+ className: (0, import_css42.css)({
2439
2467
  w: "1/2"
2440
2468
  }),
2441
2469
  name: "confirm",
@@ -2445,10 +2473,10 @@ function ConfirmModal(props) {
2445
2473
  children: content == null ? void 0 : content.actionText
2446
2474
  }
2447
2475
  ),
2448
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2476
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2449
2477
  Button,
2450
2478
  {
2451
- className: (0, import_css41.css)({
2479
+ className: (0, import_css42.css)({
2452
2480
  w: "1/2"
2453
2481
  }),
2454
2482
  name: "cancel",
@@ -2477,9 +2505,9 @@ function useConfirmModal() {
2477
2505
  // src/context/cta-modal.tsx
2478
2506
  var import_react18 = require("react");
2479
2507
  var import_jsx = require("@cerberus/styled-system/jsx");
2480
- var import_css42 = require("@cerberus/styled-system/css");
2508
+ var import_css43 = require("@cerberus/styled-system/css");
2481
2509
  var import_jsx2 = require("@cerberus/styled-system/jsx");
2482
- var import_jsx_runtime50 = require("react/jsx-runtime");
2510
+ var import_jsx_runtime51 = require("react/jsx-runtime");
2483
2511
  var CTAModalContext = (0, import_react18.createContext)(null);
2484
2512
  function CTAModal(props) {
2485
2513
  var _a, _b;
@@ -2519,49 +2547,49 @@ function CTAModal(props) {
2519
2547
  }),
2520
2548
  [handleShow]
2521
2549
  );
2522
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(CTAModalContext.Provider, { value, children: [
2550
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(CTAModalContext.Provider, { value, children: [
2523
2551
  props.children,
2524
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
2525
- /* @__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)(
2526
2554
  "span",
2527
2555
  {
2528
- className: (0, import_css42.css)({
2556
+ className: (0, import_css43.css)({
2529
2557
  padding: "md",
2530
2558
  position: "absolute",
2531
2559
  right: 0,
2532
2560
  top: 0,
2533
2561
  zIndex: "decorator"
2534
2562
  }),
2535
- 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, {}) })
2536
2564
  }
2537
2565
  ),
2538
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(ModalHeader, { children: [
2539
- /* @__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)(
2540
2568
  Avatar,
2541
2569
  {
2542
2570
  ariaLabel: "",
2543
2571
  gradient: "charon-light",
2544
- icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2572
+ icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2545
2573
  Show,
2546
2574
  {
2547
2575
  when: Boolean(confirmIcon),
2548
- fallback: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(FallbackIcon, { size: 24 }),
2576
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(FallbackIcon, { size: 24 }),
2549
2577
  children: confirmIcon
2550
2578
  }
2551
2579
  ),
2552
2580
  src: ""
2553
2581
  }
2554
2582
  ) }),
2555
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx2.VStack, { gap: "lg", w: "full", children: [
2556
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
2557
- /* @__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 })
2558
2586
  ] })
2559
2587
  ] }),
2560
- /* @__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)(
2561
2589
  Button,
2562
2590
  {
2563
2591
  "data-index": index,
2564
- className: (0, import_css42.css)({
2592
+ className: (0, import_css43.css)({
2565
2593
  w: "1/2"
2566
2594
  }),
2567
2595
  onClick: handleActionClick,
@@ -2585,13 +2613,13 @@ function useCTAModal() {
2585
2613
  // src/context/notification-center.tsx
2586
2614
  var import_react19 = require("react");
2587
2615
  var import_patterns17 = require("@cerberus/styled-system/patterns");
2588
- var import_recipes33 = require("@cerberus/styled-system/recipes");
2589
- var import_css43 = require("@cerberus/styled-system/css");
2590
- 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");
2591
2619
  var NotificationsContext = (0, import_react19.createContext)(null);
2592
2620
  function NotificationCenter(props) {
2593
2621
  const [activeNotifications, setActiveNotifications] = (0, import_react19.useState)([]);
2594
- const styles = (0, import_recipes33.notification)();
2622
+ const styles = (0, import_recipes34.notification)();
2595
2623
  const handleNotify = (0, import_react19.useCallback)((options) => {
2596
2624
  setActiveNotifications((prev) => {
2597
2625
  const id = `${options.palette}:${prev.length + 1}`;
@@ -2620,13 +2648,13 @@ function NotificationCenter(props) {
2620
2648
  }),
2621
2649
  [handleNotify]
2622
2650
  );
2623
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(NotificationsContext.Provider, { value, children: [
2651
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(NotificationsContext.Provider, { value, children: [
2624
2652
  props.children,
2625
- /* @__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: [
2626
- /* @__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)(
2627
2655
  Button,
2628
2656
  {
2629
- className: (0, import_css43.cx)(styles.closeAll, (0, import_patterns17.animateIn)()),
2657
+ className: (0, import_css44.cx)(styles.closeAll, (0, import_patterns17.animateIn)()),
2630
2658
  onClick: handleCloseAll,
2631
2659
  palette: "action",
2632
2660
  shape: "rounded",
@@ -2635,7 +2663,7 @@ function NotificationCenter(props) {
2635
2663
  children: "Close all"
2636
2664
  }
2637
2665
  ) }),
2638
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2666
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2639
2667
  "div",
2640
2668
  {
2641
2669
  className: (0, import_patterns17.vstack)({
@@ -2645,7 +2673,7 @@ function NotificationCenter(props) {
2645
2673
  style: {
2646
2674
  alignItems: "flex-end"
2647
2675
  },
2648
- children: activeNotifications.map((option) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2676
+ children: activeNotifications.map((option) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2649
2677
  MatchNotification,
2650
2678
  {
2651
2679
  ...option,
@@ -2662,7 +2690,7 @@ function MatchNotification(props) {
2662
2690
  const { palette, id, onClose, heading, description } = props;
2663
2691
  switch (palette) {
2664
2692
  case "success":
2665
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
2693
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2666
2694
  Notification,
2667
2695
  {
2668
2696
  id,
@@ -2670,14 +2698,14 @@ function MatchNotification(props) {
2670
2698
  open: true,
2671
2699
  palette: "success",
2672
2700
  children: [
2673
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(NotificationHeading, { palette: "success", children: heading }),
2674
- /* @__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 })
2675
2703
  ]
2676
2704
  },
2677
2705
  id
2678
2706
  );
2679
2707
  case "warning":
2680
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
2708
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2681
2709
  Notification,
2682
2710
  {
2683
2711
  id,
@@ -2685,22 +2713,22 @@ function MatchNotification(props) {
2685
2713
  open: true,
2686
2714
  palette: "warning",
2687
2715
  children: [
2688
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(NotificationHeading, { palette: "warning", children: heading }),
2689
- /* @__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 })
2690
2718
  ]
2691
2719
  },
2692
2720
  id
2693
2721
  );
2694
2722
  case "danger":
2695
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Notification, { id, onClose, open: true, palette: "danger", children: [
2696
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(NotificationHeading, { palette: "danger", children: heading }),
2697
- /* @__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 })
2698
2726
  ] }, id);
2699
2727
  case "info":
2700
2728
  default:
2701
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Notification, { id, onClose, open: true, palette: "info", children: [
2702
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(NotificationHeading, { palette: "info", children: heading }),
2703
- /* @__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 })
2704
2732
  ] }, id);
2705
2733
  }
2706
2734
  }
@@ -2716,9 +2744,9 @@ function useNotificationCenter() {
2716
2744
 
2717
2745
  // src/context/prompt-modal.tsx
2718
2746
  var import_react20 = require("react");
2719
- var import_css44 = require("@cerberus/styled-system/css");
2747
+ var import_css45 = require("@cerberus/styled-system/css");
2720
2748
  var import_patterns18 = require("@cerberus/styled-system/patterns");
2721
- var import_jsx_runtime52 = require("react/jsx-runtime");
2749
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2722
2750
  var PromptModalContext = (0, import_react20.createContext)(null);
2723
2751
  function PromptModal(props) {
2724
2752
  const { modalRef, show, close } = useModal();
@@ -2768,36 +2796,36 @@ function PromptModal(props) {
2768
2796
  }),
2769
2797
  [handleShow]
2770
2798
  );
2771
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(PromptModalContext.Provider, { value, children: [
2799
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(PromptModalContext.Provider, { value, children: [
2772
2800
  props.children,
2773
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Modal, { onKeyDown: focusTrap, ref: modalRef, children: [
2774
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(ModalHeader, { children: [
2775
- /* @__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)(
2776
2804
  "div",
2777
2805
  {
2778
2806
  className: (0, import_patterns18.hstack)({
2779
2807
  justify: "center",
2780
2808
  w: "full"
2781
2809
  }),
2782
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2810
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2783
2811
  Show,
2784
2812
  {
2785
2813
  when: palette === "danger",
2786
- fallback: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2814
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2787
2815
  Avatar,
2788
2816
  {
2789
2817
  ariaLabel: "",
2790
2818
  gradient: "charon-light",
2791
- icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PromptIcon, { size: 24 }),
2819
+ icon: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(PromptIcon, { size: 24 }),
2792
2820
  src: ""
2793
2821
  }
2794
2822
  ),
2795
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2823
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2796
2824
  Avatar,
2797
2825
  {
2798
2826
  ariaLabel: "",
2799
2827
  gradient: "hades-dark",
2800
- icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PromptIcon, { size: 24 }),
2828
+ icon: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(PromptIcon, { size: 24 }),
2801
2829
  src: ""
2802
2830
  }
2803
2831
  )
@@ -2805,10 +2833,10 @@ function PromptModal(props) {
2805
2833
  )
2806
2834
  }
2807
2835
  ),
2808
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ModalHeading, { children: content == null ? void 0 : content.heading }),
2809
- /* @__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 })
2810
2838
  ] }),
2811
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2839
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2812
2840
  "div",
2813
2841
  {
2814
2842
  className: (0, import_patterns18.vstack)({
@@ -2816,11 +2844,11 @@ function PromptModal(props) {
2816
2844
  mt: "4",
2817
2845
  mb: "8"
2818
2846
  }),
2819
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Field, { invalid: !isValid, children: [
2820
- /* @__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)(
2821
2849
  Label,
2822
2850
  {
2823
- className: (0, import_css44.css)({
2851
+ className: (0, import_css45.css)({
2824
2852
  gap: 1,
2825
2853
  justifyContent: "flex-start"
2826
2854
  }),
@@ -2828,10 +2856,10 @@ function PromptModal(props) {
2828
2856
  size: "md",
2829
2857
  children: [
2830
2858
  "Type",
2831
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2859
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2832
2860
  "strong",
2833
2861
  {
2834
- className: (0, import_css44.css)({
2862
+ className: (0, import_css45.css)({
2835
2863
  textTransform: "uppercase"
2836
2864
  }),
2837
2865
  children: content == null ? void 0 : content.key
@@ -2841,7 +2869,7 @@ function PromptModal(props) {
2841
2869
  ]
2842
2870
  }
2843
2871
  ),
2844
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2872
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2845
2873
  Input,
2846
2874
  {
2847
2875
  id: "confirm",
@@ -2853,7 +2881,7 @@ function PromptModal(props) {
2853
2881
  ] })
2854
2882
  }
2855
2883
  ),
2856
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2884
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
2857
2885
  "div",
2858
2886
  {
2859
2887
  className: (0, import_patterns18.hstack)({
@@ -2861,11 +2889,11 @@ function PromptModal(props) {
2861
2889
  gap: "4"
2862
2890
  }),
2863
2891
  children: [
2864
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2892
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2865
2893
  Button,
2866
2894
  {
2867
2895
  autoFocus: true,
2868
- className: (0, import_css44.css)({
2896
+ className: (0, import_css45.css)({
2869
2897
  w: "1/2"
2870
2898
  }),
2871
2899
  disabled: !isValid,
@@ -2876,10 +2904,10 @@ function PromptModal(props) {
2876
2904
  children: content == null ? void 0 : content.actionText
2877
2905
  }
2878
2906
  ),
2879
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2907
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2880
2908
  Button,
2881
2909
  {
2882
- className: (0, import_css44.css)({
2910
+ className: (0, import_css45.css)({
2883
2911
  w: "1/2"
2884
2912
  }),
2885
2913
  name: "cancel",
@@ -2970,7 +2998,7 @@ function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options
2970
2998
  }
2971
2999
 
2972
3000
  // src/context/theme.tsx
2973
- var import_jsx_runtime53 = require("react/jsx-runtime");
3001
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2974
3002
  var ThemeContext = (0, import_react22.createContext)(
2975
3003
  null
2976
3004
  );
@@ -2980,7 +3008,7 @@ function ThemeProvider(props) {
2980
3008
  updateMode: props.updateMode,
2981
3009
  updateTheme: props.updateTheme
2982
3010
  });
2983
- 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 });
2984
3012
  }
2985
3013
  function useThemeContext() {
2986
3014
  const context = (0, import_react22.useContext)(ThemeContext);
@@ -3084,6 +3112,7 @@ __reExport(src_exports, require("@dnd-kit/core"), module.exports);
3084
3112
  Thead,
3085
3113
  ThemeProvider,
3086
3114
  Toggle,
3115
+ Tooltip,
3087
3116
  Tr,
3088
3117
  createNavTriggerProps,
3089
3118
  defineIcons,