@grupor5/raya 0.2.21 → 0.2.23

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.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var React27 = require('react');
3
+ var React28 = require('react');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var clsx = require('clsx');
6
6
  var tailwindMerge = require('tailwind-merge');
@@ -48,7 +48,7 @@ function _interopNamespace(e) {
48
48
  return Object.freeze(n);
49
49
  }
50
50
 
51
- var React27__namespace = /*#__PURE__*/_interopNamespace(React27);
51
+ var React28__namespace = /*#__PURE__*/_interopNamespace(React28);
52
52
  var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
53
53
  var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
54
54
  var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
@@ -1567,13 +1567,13 @@ var loadingSpinnerSVG = `
1567
1567
  />
1568
1568
  </svg>
1569
1569
  `;
1570
- var ThemeContext = React27.createContext(void 0);
1570
+ var ThemeContext = React28.createContext(void 0);
1571
1571
  function ThemeProvider({ children }) {
1572
- const [theme, setTheme] = React27.useState("light");
1572
+ const [theme, setTheme] = React28.useState("light");
1573
1573
  return /* @__PURE__ */ jsxRuntime.jsx(ThemeContext.Provider, { value: { theme, setTheme }, children });
1574
1574
  }
1575
1575
  function useTheme() {
1576
- const context = React27.useContext(ThemeContext);
1576
+ const context = React28.useContext(ThemeContext);
1577
1577
  if (!context) {
1578
1578
  throw new Error("useTheme must be used within a ThemeProvider");
1579
1579
  }
@@ -1587,6 +1587,41 @@ function classNames(...classes) {
1587
1587
  function cn(...inputs) {
1588
1588
  return tailwindMerge.twMerge(clsx.clsx(inputs));
1589
1589
  }
1590
+ function getInitials(name) {
1591
+ const [firstName, lastName] = name.split(" ");
1592
+ if (firstName && lastName) {
1593
+ return `${firstName[0]}${lastName[0]}`.toUpperCase();
1594
+ }
1595
+ return firstName ? `${firstName.substring(0, 2)}`.toUpperCase() : "N/A";
1596
+ }
1597
+ var Avatar = React28__namespace.forwardRef(
1598
+ (_a, ref) => {
1599
+ var _b = _a, { src, name, className } = _b, props = __objRest(_b, ["src", "name", "className"]);
1600
+ return /* @__PURE__ */ jsxRuntime.jsx(
1601
+ "div",
1602
+ __spreadProps(__spreadValues({
1603
+ ref,
1604
+ className: cn(
1605
+ "relative flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-neutral-200 text-sm font-semibold text-primary",
1606
+ className
1607
+ )
1608
+ }, props), {
1609
+ children: src ? /* @__PURE__ */ jsxRuntime.jsx(
1610
+ "img",
1611
+ {
1612
+ src,
1613
+ alt: name,
1614
+ className: "h-full w-full rounded-full object-cover"
1615
+ }
1616
+ ) : /* @__PURE__ */ jsxRuntime.jsx("span", { children: getInitials(name) })
1617
+ })
1618
+ );
1619
+ }
1620
+ );
1621
+ Avatar.displayName = "Avatar";
1622
+ function AvatarSkeleton() {
1623
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-10 shrink-0 animate-pulse rounded-full bg-neutral-200" });
1624
+ }
1590
1625
  var badgeVariants = classVarianceAuthority.cva(
1591
1626
  "inline-flex items-center justify-center rounded-badge border px-badge-x py-badge-y text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
1592
1627
  {
@@ -1721,7 +1756,7 @@ var LoadingSpinner = ({
1721
1756
  )
1722
1757
  ] }) });
1723
1758
  };
1724
- var Button = React27.forwardRef((_a, ref) => {
1759
+ var Button = React28.forwardRef((_a, ref) => {
1725
1760
  var _b = _a, {
1726
1761
  variant = defaultButtonConfig.variant,
1727
1762
  size = defaultButtonConfig.size,
@@ -1758,7 +1793,7 @@ var Button = React27.forwardRef((_a, ref) => {
1758
1793
  "onClick"
1759
1794
  ]);
1760
1795
  const isIconOnly = variant === "icon" || !!(!children && (icon || iconLeft || iconRight));
1761
- const buttonClasses = React27.useMemo(() => {
1796
+ const buttonClasses = React28.useMemo(() => {
1762
1797
  const sizeClasses = getButtonSizeClasses(size, isIconOnly);
1763
1798
  const variantClasses = getButtonVariantClasses(variant, color);
1764
1799
  return cn(
@@ -1768,7 +1803,7 @@ var Button = React27.forwardRef((_a, ref) => {
1768
1803
  className
1769
1804
  );
1770
1805
  }, [variant, size, color, isIconOnly, className]);
1771
- const buttonContent = React27.useMemo(() => {
1806
+ const buttonContent = React28.useMemo(() => {
1772
1807
  if (loading) {
1773
1808
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: buttonLoadingClasses.container, children: [
1774
1809
  /* @__PURE__ */ jsxRuntime.jsx(LoadingSpinner, { size }),
@@ -1777,8 +1812,8 @@ var Button = React27.forwardRef((_a, ref) => {
1777
1812
  }
1778
1813
  const iconSizeClass = getButtonIconSize(size);
1779
1814
  const renderIcon = (iconNode) => {
1780
- if (React27__namespace.default.isValidElement(iconNode)) {
1781
- return React27__namespace.default.cloneElement(iconNode, {
1815
+ if (React28__namespace.default.isValidElement(iconNode)) {
1816
+ return React28__namespace.default.cloneElement(iconNode, {
1782
1817
  className: cn(iconSizeClass, iconNode.props.className),
1783
1818
  "aria-hidden": true
1784
1819
  });
@@ -1794,7 +1829,7 @@ var Button = React27.forwardRef((_a, ref) => {
1794
1829
  iconRight && renderIcon(iconRight)
1795
1830
  ] });
1796
1831
  }, [loading, loadingText, isIconOnly, icon, iconLeft, iconRight, children, size]);
1797
- const accessibilityProps = React27.useMemo(() => {
1832
+ const accessibilityProps = React28.useMemo(() => {
1798
1833
  const props2 = {};
1799
1834
  if (isIconOnly && !ariaLabel) {
1800
1835
  console.warn("Icon-only buttons should have an aria-label for accessibility");
@@ -1877,7 +1912,7 @@ var Button = React27.forwardRef((_a, ref) => {
1877
1912
  );
1878
1913
  });
1879
1914
  Button.displayName = "Button";
1880
- var Checkbox = React27__namespace.forwardRef((_a, ref) => {
1915
+ var Checkbox = React28__namespace.forwardRef((_a, ref) => {
1881
1916
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1882
1917
  return /* @__PURE__ */ jsxRuntime.jsx(
1883
1918
  CheckboxPrimitive__namespace.Root,
@@ -1909,10 +1944,10 @@ var Checkbox = React27__namespace.forwardRef((_a, ref) => {
1909
1944
  );
1910
1945
  });
1911
1946
  Checkbox.displayName = CheckboxPrimitive__namespace.Root.displayName;
1912
- var Input = React27__namespace.forwardRef(
1947
+ var Input = React28__namespace.forwardRef(
1913
1948
  (_a, ref) => {
1914
1949
  var _b = _a, { className, type, error, helperText, label, required, id, icon } = _b, props = __objRest(_b, ["className", "type", "error", "helperText", "label", "required", "id", "icon"]);
1915
- const inputId = id || `input-${React27__namespace.useId()}`;
1950
+ const inputId = id || `input-${React28__namespace.useId()}`;
1916
1951
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
1917
1952
  label && /* @__PURE__ */ jsxRuntime.jsx(
1918
1953
  "label",
@@ -1956,7 +1991,7 @@ Input.displayName = "Input";
1956
1991
  var labelVariants = classVarianceAuthority.cva(
1957
1992
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1958
1993
  );
1959
- var Label = React27__namespace.forwardRef((_a, ref) => {
1994
+ var Label = React28__namespace.forwardRef((_a, ref) => {
1960
1995
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1961
1996
  return /* @__PURE__ */ jsxRuntime.jsx(
1962
1997
  LabelPrimitive__namespace.Root,
@@ -1967,7 +2002,57 @@ var Label = React27__namespace.forwardRef((_a, ref) => {
1967
2002
  );
1968
2003
  });
1969
2004
  Label.displayName = LabelPrimitive__namespace.Root.displayName;
1970
- var RadioGroup = React27__namespace.forwardRef((_a, ref) => {
2005
+
2006
+ // src/atoms/logo/logo.png
2007
+ var logo_default = "./logo-N622EUTF.png";
2008
+ var Logo = React28.forwardRef((_a, ref) => {
2009
+ var _b = _a, {
2010
+ size = 120,
2011
+ variant = "default",
2012
+ wordmarkOnly = false,
2013
+ className,
2014
+ alt = "Manta Seguros Logo",
2015
+ src
2016
+ } = _b, props = __objRest(_b, [
2017
+ "size",
2018
+ "variant",
2019
+ "wordmarkOnly",
2020
+ "className",
2021
+ "alt",
2022
+ "src"
2023
+ ]);
2024
+ const getVariantFilter = () => {
2025
+ switch (variant) {
2026
+ case "white":
2027
+ return "brightness(0) invert(1)";
2028
+ // Convert to white
2029
+ case "dark":
2030
+ return "brightness(0) saturate(100%)";
2031
+ // Convert to black
2032
+ default:
2033
+ return "none";
2034
+ }
2035
+ };
2036
+ const logoStyles = __spreadValues({
2037
+ width: typeof size === "number" ? `${size}px` : size,
2038
+ height: "auto",
2039
+ filter: getVariantFilter(),
2040
+ maxWidth: "100%"
2041
+ }, props.style);
2042
+ const logoSrc = src || logo_default;
2043
+ return /* @__PURE__ */ jsxRuntime.jsx(
2044
+ "img",
2045
+ __spreadValues({
2046
+ ref,
2047
+ src: logoSrc,
2048
+ alt,
2049
+ className: cn("logo", className),
2050
+ style: logoStyles
2051
+ }, props)
2052
+ );
2053
+ });
2054
+ Logo.displayName = "Logo";
2055
+ var RadioGroup = React28__namespace.forwardRef((_a, ref) => {
1971
2056
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1972
2057
  return /* @__PURE__ */ jsxRuntime.jsx(
1973
2058
  RadioGroupPrimitive__namespace.Root,
@@ -1979,7 +2064,7 @@ var RadioGroup = React27__namespace.forwardRef((_a, ref) => {
1979
2064
  );
1980
2065
  });
1981
2066
  RadioGroup.displayName = RadioGroupPrimitive__namespace.Root.displayName;
1982
- var RadioGroupItem = React27__namespace.forwardRef((_a, ref) => {
2067
+ var RadioGroupItem = React28__namespace.forwardRef((_a, ref) => {
1983
2068
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1984
2069
  return /* @__PURE__ */ jsxRuntime.jsx(
1985
2070
  RadioGroupPrimitive__namespace.Item,
@@ -1997,7 +2082,7 @@ var RadioGroupItem = React27__namespace.forwardRef((_a, ref) => {
1997
2082
  );
1998
2083
  });
1999
2084
  RadioGroupItem.displayName = RadioGroupPrimitive__namespace.Item.displayName;
2000
- var Switch = React27__namespace.forwardRef((_a, ref) => {
2085
+ var Switch = React28__namespace.forwardRef((_a, ref) => {
2001
2086
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2002
2087
  return /* @__PURE__ */ jsxRuntime.jsx(
2003
2088
  SwitchPrimitives__namespace.Root,
@@ -2074,7 +2159,7 @@ var closeButtonVariants = classVarianceAuthority.cva(
2074
2159
  }
2075
2160
  }
2076
2161
  );
2077
- var Tag = React27__namespace.default.forwardRef(
2162
+ var Tag = React28__namespace.default.forwardRef(
2078
2163
  (_a, ref) => {
2079
2164
  var _b = _a, { className, children, showBullet = false, onClose, variant } = _b, props = __objRest(_b, ["className", "children", "showBullet", "onClose", "variant"]);
2080
2165
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -2108,11 +2193,11 @@ var Tag = React27__namespace.default.forwardRef(
2108
2193
  }
2109
2194
  );
2110
2195
  Tag.displayName = "Tag";
2111
- var Textarea = React27__namespace.forwardRef(
2196
+ var Textarea = React28__namespace.forwardRef(
2112
2197
  (_a, ref) => {
2113
2198
  var _b = _a, { className, error, helperText, label, required, id, maxLength, value, onChange, defaultValue } = _b, props = __objRest(_b, ["className", "error", "helperText", "label", "required", "id", "maxLength", "value", "onChange", "defaultValue"]);
2114
- const textareaId = id || `textarea-${React27__namespace.useId()}`;
2115
- const [charCount, setCharCount] = React27__namespace.useState(String(defaultValue || "").length);
2199
+ const textareaId = id || `textarea-${React28__namespace.useId()}`;
2200
+ const [charCount, setCharCount] = React28__namespace.useState(String(defaultValue || "").length);
2116
2201
  const isControlled = value !== void 0;
2117
2202
  const currentLength = isControlled ? String(value).length : charCount;
2118
2203
  const handleOnChange = (e) => {
@@ -2199,7 +2284,7 @@ var typographyVariants = classVarianceAuthority.cva("font-primary", {
2199
2284
  variant: "body-md"
2200
2285
  }
2201
2286
  });
2202
- var Typography = React27__namespace.forwardRef(
2287
+ var Typography = React28__namespace.forwardRef(
2203
2288
  (_a, ref) => {
2204
2289
  var _b = _a, { className, variant, as: Component = "p" } = _b, props = __objRest(_b, ["className", "variant", "as"]);
2205
2290
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -2220,7 +2305,7 @@ var levelMapping = {
2220
2305
  5: { as: "h5", variant: "heading-sm" },
2221
2306
  6: { as: "h6", variant: "subheading-lg" }
2222
2307
  };
2223
- var Title = React27__namespace.forwardRef(
2308
+ var Title = React28__namespace.forwardRef(
2224
2309
  (_a, ref) => {
2225
2310
  var _b = _a, { level, variant } = _b, props = __objRest(_b, ["level", "variant"]);
2226
2311
  const { as, variant: defaultVariant } = levelMapping[level];
@@ -2235,7 +2320,7 @@ var Title = React27__namespace.forwardRef(
2235
2320
  }
2236
2321
  );
2237
2322
  Title.displayName = "Title";
2238
- var Paragraph = React27__namespace.forwardRef(
2323
+ var Paragraph = React28__namespace.forwardRef(
2239
2324
  (_a, ref) => {
2240
2325
  var _b = _a, { variant = "body-md" } = _b, props = __objRest(_b, ["variant"]);
2241
2326
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -2249,7 +2334,7 @@ var Paragraph = React27__namespace.forwardRef(
2249
2334
  }
2250
2335
  );
2251
2336
  Paragraph.displayName = "Paragraph";
2252
- var AccordionItemContext = React27__namespace.createContext({});
2337
+ var AccordionItemContext = React28__namespace.createContext({});
2253
2338
  var accordionItemVariants = classVarianceAuthority.cva("w-full", {
2254
2339
  variants: {
2255
2340
  variant: {
@@ -2261,9 +2346,9 @@ var accordionItemVariants = classVarianceAuthority.cva("w-full", {
2261
2346
  variant: "default"
2262
2347
  }
2263
2348
  });
2264
- var AccordionTrigger = React27__namespace.forwardRef((_a, ref) => {
2349
+ var AccordionTrigger = React28__namespace.forwardRef((_a, ref) => {
2265
2350
  var _b = _a, { className, children, icon } = _b, props = __objRest(_b, ["className", "children", "icon"]);
2266
- const { variant } = React27__namespace.useContext(AccordionItemContext);
2351
+ const { variant } = React28__namespace.useContext(AccordionItemContext);
2267
2352
  return /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
2268
2353
  AccordionPrimitive__namespace.Trigger,
2269
2354
  __spreadProps(__spreadValues({
@@ -2295,7 +2380,7 @@ var AccordionTrigger = React27__namespace.forwardRef((_a, ref) => {
2295
2380
  ) });
2296
2381
  });
2297
2382
  AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
2298
- var AccordionContent = React27__namespace.forwardRef((_a, ref) => {
2383
+ var AccordionContent = React28__namespace.forwardRef((_a, ref) => {
2299
2384
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
2300
2385
  return /* @__PURE__ */ jsxRuntime.jsx(
2301
2386
  AccordionPrimitive__namespace.Content,
@@ -2308,7 +2393,7 @@ var AccordionContent = React27__namespace.forwardRef((_a, ref) => {
2308
2393
  );
2309
2394
  });
2310
2395
  AccordionContent.displayName = AccordionPrimitive__namespace.Content.displayName;
2311
- var AccordionItem = React27__namespace.forwardRef((_a, ref) => {
2396
+ var AccordionItem = React28__namespace.forwardRef((_a, ref) => {
2312
2397
  var _b = _a, { className, variant = "default", children } = _b, props = __objRest(_b, ["className", "variant", "children"]);
2313
2398
  const variantValue = variant != null ? variant : "default";
2314
2399
  return /* @__PURE__ */ jsxRuntime.jsx(AccordionItemContext.Provider, { value: { variant: variantValue }, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -2322,7 +2407,7 @@ var AccordionItem = React27__namespace.forwardRef((_a, ref) => {
2322
2407
  ) });
2323
2408
  });
2324
2409
  AccordionItem.displayName = "AccordionItem";
2325
- var Accordion = React27__namespace.forwardRef((_a, ref) => {
2410
+ var Accordion = React28__namespace.forwardRef((_a, ref) => {
2326
2411
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2327
2412
  return /* @__PURE__ */ jsxRuntime.jsx(
2328
2413
  AccordionPrimitive__namespace.Root,
@@ -2349,17 +2434,17 @@ var alertVariants = classVarianceAuthority.cva(
2349
2434
  }
2350
2435
  }
2351
2436
  );
2352
- var AlertContext = React27__namespace.createContext(null);
2437
+ var AlertContext = React28__namespace.createContext(null);
2353
2438
  var useAlertContext = () => {
2354
- const context = React27__namespace.useContext(AlertContext);
2439
+ const context = React28__namespace.useContext(AlertContext);
2355
2440
  if (!context) {
2356
2441
  throw new Error("useAlertContext must be used inside an Alert");
2357
2442
  }
2358
2443
  return context;
2359
2444
  };
2360
- var Alert = React27__namespace.forwardRef((_a, ref) => {
2445
+ var Alert = React28__namespace.forwardRef((_a, ref) => {
2361
2446
  var _b = _a, { className, variant, children, isClosable, actions } = _b, props = __objRest(_b, ["className", "variant", "children", "isClosable", "actions"]);
2362
- const [isVisible, setIsVisible] = React27__namespace.useState(true);
2447
+ const [isVisible, setIsVisible] = React28__namespace.useState(true);
2363
2448
  if (!isVisible) {
2364
2449
  return null;
2365
2450
  }
@@ -2388,7 +2473,7 @@ var Alert = React27__namespace.forwardRef((_a, ref) => {
2388
2473
  ) });
2389
2474
  });
2390
2475
  Alert.displayName = "Alert";
2391
- var AlertTitle = React27__namespace.forwardRef((_a, ref) => {
2476
+ var AlertTitle = React28__namespace.forwardRef((_a, ref) => {
2392
2477
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2393
2478
  const { variant } = useAlertContext();
2394
2479
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -2410,7 +2495,7 @@ var AlertTitle = React27__namespace.forwardRef((_a, ref) => {
2410
2495
  );
2411
2496
  });
2412
2497
  AlertTitle.displayName = "AlertTitle";
2413
- var AlertDescription = React27__namespace.forwardRef((_a, ref) => {
2498
+ var AlertDescription = React28__namespace.forwardRef((_a, ref) => {
2414
2499
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2415
2500
  const { variant } = useAlertContext();
2416
2501
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -2431,7 +2516,7 @@ var AlertDescription = React27__namespace.forwardRef((_a, ref) => {
2431
2516
  );
2432
2517
  });
2433
2518
  AlertDescription.displayName = "AlertDescription";
2434
- var Card = React27__namespace.forwardRef((_a, ref) => {
2519
+ var Card = React28__namespace.forwardRef((_a, ref) => {
2435
2520
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2436
2521
  return /* @__PURE__ */ jsxRuntime.jsx(
2437
2522
  "div",
@@ -2445,7 +2530,7 @@ var Card = React27__namespace.forwardRef((_a, ref) => {
2445
2530
  );
2446
2531
  });
2447
2532
  Card.displayName = "Card";
2448
- var CardHeader = React27__namespace.forwardRef((_a, ref) => {
2533
+ var CardHeader = React28__namespace.forwardRef((_a, ref) => {
2449
2534
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2450
2535
  return /* @__PURE__ */ jsxRuntime.jsx(
2451
2536
  "div",
@@ -2456,7 +2541,7 @@ var CardHeader = React27__namespace.forwardRef((_a, ref) => {
2456
2541
  );
2457
2542
  });
2458
2543
  CardHeader.displayName = "CardHeader";
2459
- var CardTitle = React27__namespace.forwardRef((_a, ref) => {
2544
+ var CardTitle = React28__namespace.forwardRef((_a, ref) => {
2460
2545
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2461
2546
  return /* @__PURE__ */ jsxRuntime.jsx(
2462
2547
  "div",
@@ -2467,7 +2552,7 @@ var CardTitle = React27__namespace.forwardRef((_a, ref) => {
2467
2552
  );
2468
2553
  });
2469
2554
  CardTitle.displayName = "CardTitle";
2470
- var CardDescription = React27__namespace.forwardRef((_a, ref) => {
2555
+ var CardDescription = React28__namespace.forwardRef((_a, ref) => {
2471
2556
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2472
2557
  return /* @__PURE__ */ jsxRuntime.jsx(
2473
2558
  "div",
@@ -2478,12 +2563,12 @@ var CardDescription = React27__namespace.forwardRef((_a, ref) => {
2478
2563
  );
2479
2564
  });
2480
2565
  CardDescription.displayName = "CardDescription";
2481
- var CardContent = React27__namespace.forwardRef((_a, ref) => {
2566
+ var CardContent = React28__namespace.forwardRef((_a, ref) => {
2482
2567
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2483
2568
  return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadValues({ ref, className: cn("p-6 pt-0", className) }, props));
2484
2569
  });
2485
2570
  CardContent.displayName = "CardContent";
2486
- var CardFooter = React27__namespace.forwardRef((_a, ref) => {
2571
+ var CardFooter = React28__namespace.forwardRef((_a, ref) => {
2487
2572
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2488
2573
  return /* @__PURE__ */ jsxRuntime.jsx(
2489
2574
  "div",
@@ -2495,17 +2580,17 @@ var CardFooter = React27__namespace.forwardRef((_a, ref) => {
2495
2580
  });
2496
2581
  CardFooter.displayName = "CardFooter";
2497
2582
  var THEMES = { light: "", dark: ".dark" };
2498
- var ChartContext = React27__namespace.createContext(null);
2583
+ var ChartContext = React28__namespace.createContext(null);
2499
2584
  function useChart() {
2500
- const context = React27__namespace.useContext(ChartContext);
2585
+ const context = React28__namespace.useContext(ChartContext);
2501
2586
  if (!context) {
2502
2587
  throw new Error("useChart must be used within a <ChartContainer />");
2503
2588
  }
2504
2589
  return context;
2505
2590
  }
2506
- var ChartContainer = React27__namespace.forwardRef((_a, ref) => {
2591
+ var ChartContainer = React28__namespace.forwardRef((_a, ref) => {
2507
2592
  var _b = _a, { id, className, children, config } = _b, props = __objRest(_b, ["id", "className", "children", "config"]);
2508
- const uniqueId = React27__namespace.useId();
2593
+ const uniqueId = React28__namespace.useId();
2509
2594
  const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
2510
2595
  return /* @__PURE__ */ jsxRuntime.jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxRuntime.jsxs(
2511
2596
  "div",
@@ -2552,7 +2637,7 @@ ${colorConfig.map(([key, itemConfig]) => {
2552
2637
  );
2553
2638
  };
2554
2639
  var ChartTooltip = RechartsPrimitive__namespace.Tooltip;
2555
- var ChartTooltipContent = React27__namespace.forwardRef(
2640
+ var ChartTooltipContent = React28__namespace.forwardRef(
2556
2641
  ({
2557
2642
  active,
2558
2643
  payload,
@@ -2569,7 +2654,7 @@ var ChartTooltipContent = React27__namespace.forwardRef(
2569
2654
  labelKey
2570
2655
  }, ref) => {
2571
2656
  const { config } = useChart();
2572
- const tooltipLabel = React27__namespace.useMemo(() => {
2657
+ const tooltipLabel = React28__namespace.useMemo(() => {
2573
2658
  var _a;
2574
2659
  if (hideLabel || !(payload == null ? void 0 : payload.length)) {
2575
2660
  return null;
@@ -2666,7 +2751,7 @@ var ChartTooltipContent = React27__namespace.forwardRef(
2666
2751
  );
2667
2752
  ChartTooltipContent.displayName = "ChartTooltip";
2668
2753
  var ChartLegend = RechartsPrimitive__namespace.Legend;
2669
- var ChartLegendContent = React27__namespace.forwardRef(
2754
+ var ChartLegendContent = React28__namespace.forwardRef(
2670
2755
  ({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
2671
2756
  const { config } = useChart();
2672
2757
  if (!(payload == null ? void 0 : payload.length)) {
@@ -2724,7 +2809,7 @@ function getPayloadConfigFromPayload(config, payload, key) {
2724
2809
  }
2725
2810
  return configLabelKey in config ? config[configLabelKey] : config[key];
2726
2811
  }
2727
- var ScrollArea = React27__namespace.forwardRef((_a, ref) => {
2812
+ var ScrollArea = React28__namespace.forwardRef((_a, ref) => {
2728
2813
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
2729
2814
  return /* @__PURE__ */ jsxRuntime.jsxs(
2730
2815
  ScrollAreaPrimitive__namespace.Root,
@@ -2741,7 +2826,7 @@ var ScrollArea = React27__namespace.forwardRef((_a, ref) => {
2741
2826
  );
2742
2827
  });
2743
2828
  ScrollArea.displayName = ScrollAreaPrimitive__namespace.Root.displayName;
2744
- var ScrollBar = React27__namespace.forwardRef((_a, ref) => {
2829
+ var ScrollBar = React28__namespace.forwardRef((_a, ref) => {
2745
2830
  var _b = _a, { className, orientation = "vertical" } = _b, props = __objRest(_b, ["className", "orientation"]);
2746
2831
  return /* @__PURE__ */ jsxRuntime.jsx(
2747
2832
  ScrollAreaPrimitive__namespace.ScrollAreaScrollbar,
@@ -2772,7 +2857,7 @@ var ScrollBar = React27__namespace.forwardRef((_a, ref) => {
2772
2857
  );
2773
2858
  });
2774
2859
  ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displayName;
2775
- var Table = React27__namespace.forwardRef((_a, ref) => {
2860
+ var Table = React28__namespace.forwardRef((_a, ref) => {
2776
2861
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2777
2862
  return /* @__PURE__ */ jsxRuntime.jsxs(ScrollArea, { className: "relative w-full", children: [
2778
2863
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -2786,12 +2871,12 @@ var Table = React27__namespace.forwardRef((_a, ref) => {
2786
2871
  ] });
2787
2872
  });
2788
2873
  Table.displayName = "Table";
2789
- var TableHeader = React27__namespace.forwardRef((_a, ref) => {
2874
+ var TableHeader = React28__namespace.forwardRef((_a, ref) => {
2790
2875
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2791
2876
  return /* @__PURE__ */ jsxRuntime.jsx("thead", __spreadValues({ ref, className: cn("[&_tr]:border-b", className) }, props));
2792
2877
  });
2793
2878
  TableHeader.displayName = "TableHeader";
2794
- var TableBody = React27__namespace.forwardRef((_a, ref) => {
2879
+ var TableBody = React28__namespace.forwardRef((_a, ref) => {
2795
2880
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2796
2881
  return /* @__PURE__ */ jsxRuntime.jsx(
2797
2882
  "tbody",
@@ -2802,7 +2887,7 @@ var TableBody = React27__namespace.forwardRef((_a, ref) => {
2802
2887
  );
2803
2888
  });
2804
2889
  TableBody.displayName = "TableBody";
2805
- var TableFooter = React27__namespace.forwardRef((_a, ref) => {
2890
+ var TableFooter = React28__namespace.forwardRef((_a, ref) => {
2806
2891
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2807
2892
  return /* @__PURE__ */ jsxRuntime.jsx(
2808
2893
  "tfoot",
@@ -2816,7 +2901,7 @@ var TableFooter = React27__namespace.forwardRef((_a, ref) => {
2816
2901
  );
2817
2902
  });
2818
2903
  TableFooter.displayName = "TableFooter";
2819
- var TableRow = React27__namespace.forwardRef((_a, ref) => {
2904
+ var TableRow = React28__namespace.forwardRef((_a, ref) => {
2820
2905
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2821
2906
  return /* @__PURE__ */ jsxRuntime.jsx(
2822
2907
  "tr",
@@ -2830,7 +2915,7 @@ var TableRow = React27__namespace.forwardRef((_a, ref) => {
2830
2915
  );
2831
2916
  });
2832
2917
  TableRow.displayName = "TableRow";
2833
- var TableHead = React27__namespace.forwardRef((_a, ref) => {
2918
+ var TableHead = React28__namespace.forwardRef((_a, ref) => {
2834
2919
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2835
2920
  return /* @__PURE__ */ jsxRuntime.jsx(
2836
2921
  "th",
@@ -2844,7 +2929,7 @@ var TableHead = React27__namespace.forwardRef((_a, ref) => {
2844
2929
  );
2845
2930
  });
2846
2931
  TableHead.displayName = "TableHead";
2847
- var TableCell = React27__namespace.forwardRef((_a, ref) => {
2932
+ var TableCell = React28__namespace.forwardRef((_a, ref) => {
2848
2933
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2849
2934
  return /* @__PURE__ */ jsxRuntime.jsx(
2850
2935
  "td",
@@ -2858,7 +2943,7 @@ var TableCell = React27__namespace.forwardRef((_a, ref) => {
2858
2943
  );
2859
2944
  });
2860
2945
  TableCell.displayName = "TableCell";
2861
- var TableCaption = React27__namespace.forwardRef((_a, ref) => {
2946
+ var TableCaption = React28__namespace.forwardRef((_a, ref) => {
2862
2947
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2863
2948
  return /* @__PURE__ */ jsxRuntime.jsx(
2864
2949
  "caption",
@@ -2880,7 +2965,7 @@ var usePagination = ({
2880
2965
  siblingCount = 1,
2881
2966
  currentPage
2882
2967
  }) => {
2883
- const paginationRange = React27.useMemo(() => {
2968
+ const paginationRange = React28.useMemo(() => {
2884
2969
  const totalPageCount = Math.ceil(totalCount / pageSize);
2885
2970
  if (totalPageCount <= 10) {
2886
2971
  return range(1, totalPageCount);
@@ -2918,7 +3003,7 @@ var usePagination = ({
2918
3003
  var Select = SelectPrimitive__namespace.Root;
2919
3004
  var SelectGroup = SelectPrimitive__namespace.Group;
2920
3005
  var SelectValue = SelectPrimitive__namespace.Value;
2921
- var SelectTrigger = React27__namespace.forwardRef((_a, ref) => {
3006
+ var SelectTrigger = React28__namespace.forwardRef((_a, ref) => {
2922
3007
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
2923
3008
  return /* @__PURE__ */ jsxRuntime.jsxs(
2924
3009
  SelectPrimitive__namespace.Trigger,
@@ -2937,7 +3022,7 @@ var SelectTrigger = React27__namespace.forwardRef((_a, ref) => {
2937
3022
  );
2938
3023
  });
2939
3024
  SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
2940
- var SelectScrollUpButton = React27__namespace.forwardRef((_a, ref) => {
3025
+ var SelectScrollUpButton = React28__namespace.forwardRef((_a, ref) => {
2941
3026
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2942
3027
  return /* @__PURE__ */ jsxRuntime.jsx(
2943
3028
  SelectPrimitive__namespace.ScrollUpButton,
@@ -2953,7 +3038,7 @@ var SelectScrollUpButton = React27__namespace.forwardRef((_a, ref) => {
2953
3038
  );
2954
3039
  });
2955
3040
  SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
2956
- var SelectScrollDownButton = React27__namespace.forwardRef((_a, ref) => {
3041
+ var SelectScrollDownButton = React28__namespace.forwardRef((_a, ref) => {
2957
3042
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2958
3043
  return /* @__PURE__ */ jsxRuntime.jsx(
2959
3044
  SelectPrimitive__namespace.ScrollDownButton,
@@ -2969,7 +3054,7 @@ var SelectScrollDownButton = React27__namespace.forwardRef((_a, ref) => {
2969
3054
  );
2970
3055
  });
2971
3056
  SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
2972
- var SelectContent = React27__namespace.forwardRef((_a, ref) => {
3057
+ var SelectContent = React28__namespace.forwardRef((_a, ref) => {
2973
3058
  var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
2974
3059
  return /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
2975
3060
  SelectPrimitive__namespace.Content,
@@ -3000,7 +3085,7 @@ var SelectContent = React27__namespace.forwardRef((_a, ref) => {
3000
3085
  ) });
3001
3086
  });
3002
3087
  SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
3003
- var SelectLabel = React27__namespace.forwardRef((_a, ref) => {
3088
+ var SelectLabel = React28__namespace.forwardRef((_a, ref) => {
3004
3089
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3005
3090
  return /* @__PURE__ */ jsxRuntime.jsx(
3006
3091
  SelectPrimitive__namespace.Label,
@@ -3011,7 +3096,7 @@ var SelectLabel = React27__namespace.forwardRef((_a, ref) => {
3011
3096
  );
3012
3097
  });
3013
3098
  SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
3014
- var SelectItem = React27__namespace.forwardRef((_a, ref) => {
3099
+ var SelectItem = React28__namespace.forwardRef((_a, ref) => {
3015
3100
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
3016
3101
  return /* @__PURE__ */ jsxRuntime.jsxs(
3017
3102
  SelectPrimitive__namespace.Item,
@@ -3030,7 +3115,7 @@ var SelectItem = React27__namespace.forwardRef((_a, ref) => {
3030
3115
  );
3031
3116
  });
3032
3117
  SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
3033
- var SelectSeparator = React27__namespace.forwardRef((_a, ref) => {
3118
+ var SelectSeparator = React28__namespace.forwardRef((_a, ref) => {
3034
3119
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3035
3120
  return /* @__PURE__ */ jsxRuntime.jsx(
3036
3121
  SelectPrimitive__namespace.Separator,
@@ -3207,12 +3292,12 @@ function DataTable(_a) {
3207
3292
  "stickyLastColumn"
3208
3293
  ]);
3209
3294
  var _a2, _b2;
3210
- const [sorting, setSorting] = React27__namespace.useState([]);
3211
- const [columnFilters, setColumnFilters] = React27__namespace.useState(
3295
+ const [sorting, setSorting] = React28__namespace.useState([]);
3296
+ const [columnFilters, setColumnFilters] = React28__namespace.useState(
3212
3297
  []
3213
3298
  );
3214
- const [columnVisibility, setColumnVisibility] = React27__namespace.useState({});
3215
- const [rowSelection, setRowSelection] = React27__namespace.useState({});
3299
+ const [columnVisibility, setColumnVisibility] = React28__namespace.useState({});
3300
+ const [rowSelection, setRowSelection] = React28__namespace.useState({});
3216
3301
  const table = reactTable.useReactTable({
3217
3302
  data,
3218
3303
  columns: columns2,
@@ -3281,7 +3366,7 @@ function DataTable(_a) {
3281
3366
  "sticky right-0 bg-white shadow-lg z-10": shouldStick,
3282
3367
  "border-l border-primary-300": shouldStick
3283
3368
  }),
3284
- children: ((_a3 = column.columnDef.meta) == null ? void 0 : _a3.skeleton) ? React27__namespace.createElement(
3369
+ children: ((_a3 = column.columnDef.meta) == null ? void 0 : _a3.skeleton) ? React28__namespace.createElement(
3285
3370
  column.columnDef.meta.skeleton
3286
3371
  ) : null
3287
3372
  },
@@ -3356,41 +3441,6 @@ function TextCellSkeleton() {
3356
3441
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-24 animate-pulse rounded-md bg-neutral-200" })
3357
3442
  ] });
3358
3443
  }
3359
- function getInitials(name) {
3360
- const [firstName, lastName] = name.split(" ");
3361
- if (firstName && lastName) {
3362
- return `${firstName[0]}${lastName[0]}`.toUpperCase();
3363
- }
3364
- return firstName ? `${firstName.substring(0, 2)}`.toUpperCase() : "N/A";
3365
- }
3366
- var Avatar = React27__namespace.forwardRef(
3367
- (_a, ref) => {
3368
- var _b = _a, { src, name, className } = _b, props = __objRest(_b, ["src", "name", "className"]);
3369
- return /* @__PURE__ */ jsxRuntime.jsx(
3370
- "div",
3371
- __spreadProps(__spreadValues({
3372
- ref,
3373
- className: cn(
3374
- "relative flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-neutral-200 text-sm font-semibold text-primary",
3375
- className
3376
- )
3377
- }, props), {
3378
- children: src ? /* @__PURE__ */ jsxRuntime.jsx(
3379
- "img",
3380
- {
3381
- src,
3382
- alt: name,
3383
- className: "h-full w-full rounded-full object-cover"
3384
- }
3385
- ) : /* @__PURE__ */ jsxRuntime.jsx("span", { children: getInitials(name) })
3386
- })
3387
- );
3388
- }
3389
- );
3390
- Avatar.displayName = "Avatar";
3391
- function AvatarSkeleton() {
3392
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-10 shrink-0 animate-pulse rounded-full bg-neutral-200" });
3393
- }
3394
3444
  function UserCell({ avatarUrl, name, email }) {
3395
3445
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-3", children: [
3396
3446
  /* @__PURE__ */ jsxRuntime.jsx(Avatar, { src: avatarUrl, name }),
@@ -3714,7 +3764,7 @@ function Calendar(_a) {
3714
3764
  var DropdownMenu = DropdownMenuPrimitive__namespace.Root;
3715
3765
  var DropdownMenuTrigger = DropdownMenuPrimitive__namespace.Trigger;
3716
3766
  var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
3717
- var DropdownMenuSubTrigger = React27__namespace.forwardRef((_a, ref) => {
3767
+ var DropdownMenuSubTrigger = React28__namespace.forwardRef((_a, ref) => {
3718
3768
  var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
3719
3769
  return /* @__PURE__ */ jsxRuntime.jsxs(
3720
3770
  DropdownMenuPrimitive__namespace.SubTrigger,
@@ -3734,7 +3784,7 @@ var DropdownMenuSubTrigger = React27__namespace.forwardRef((_a, ref) => {
3734
3784
  );
3735
3785
  });
3736
3786
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
3737
- var DropdownMenuSubContent = React27__namespace.forwardRef((_a, ref) => {
3787
+ var DropdownMenuSubContent = React28__namespace.forwardRef((_a, ref) => {
3738
3788
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3739
3789
  return /* @__PURE__ */ jsxRuntime.jsx(
3740
3790
  DropdownMenuPrimitive__namespace.SubContent,
@@ -3748,7 +3798,7 @@ var DropdownMenuSubContent = React27__namespace.forwardRef((_a, ref) => {
3748
3798
  );
3749
3799
  });
3750
3800
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
3751
- var DropdownMenuContent = React27__namespace.forwardRef((_a, ref) => {
3801
+ var DropdownMenuContent = React28__namespace.forwardRef((_a, ref) => {
3752
3802
  var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
3753
3803
  return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(
3754
3804
  DropdownMenuPrimitive__namespace.Content,
@@ -3764,7 +3814,7 @@ var DropdownMenuContent = React27__namespace.forwardRef((_a, ref) => {
3764
3814
  ) });
3765
3815
  });
3766
3816
  DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
3767
- var DropdownMenuItem = React27__namespace.forwardRef((_a, ref) => {
3817
+ var DropdownMenuItem = React28__namespace.forwardRef((_a, ref) => {
3768
3818
  var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
3769
3819
  return /* @__PURE__ */ jsxRuntime.jsx(
3770
3820
  DropdownMenuPrimitive__namespace.Item,
@@ -3779,7 +3829,7 @@ var DropdownMenuItem = React27__namespace.forwardRef((_a, ref) => {
3779
3829
  );
3780
3830
  });
3781
3831
  DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
3782
- var DropdownMenuCheckboxItem = React27__namespace.forwardRef((_a, ref) => {
3832
+ var DropdownMenuCheckboxItem = React28__namespace.forwardRef((_a, ref) => {
3783
3833
  var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
3784
3834
  return /* @__PURE__ */ jsxRuntime.jsxs(
3785
3835
  DropdownMenuPrimitive__namespace.CheckboxItem,
@@ -3799,7 +3849,7 @@ var DropdownMenuCheckboxItem = React27__namespace.forwardRef((_a, ref) => {
3799
3849
  );
3800
3850
  });
3801
3851
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
3802
- var DropdownMenuRadioItem = React27__namespace.forwardRef((_a, ref) => {
3852
+ var DropdownMenuRadioItem = React28__namespace.forwardRef((_a, ref) => {
3803
3853
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
3804
3854
  return /* @__PURE__ */ jsxRuntime.jsxs(
3805
3855
  DropdownMenuPrimitive__namespace.RadioItem,
@@ -3818,7 +3868,7 @@ var DropdownMenuRadioItem = React27__namespace.forwardRef((_a, ref) => {
3818
3868
  );
3819
3869
  });
3820
3870
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
3821
- var DropdownMenuLabel = React27__namespace.forwardRef((_a, ref) => {
3871
+ var DropdownMenuLabel = React28__namespace.forwardRef((_a, ref) => {
3822
3872
  var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
3823
3873
  return /* @__PURE__ */ jsxRuntime.jsx(
3824
3874
  DropdownMenuPrimitive__namespace.Label,
@@ -3833,7 +3883,7 @@ var DropdownMenuLabel = React27__namespace.forwardRef((_a, ref) => {
3833
3883
  );
3834
3884
  });
3835
3885
  DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
3836
- var DropdownMenuSeparator = React27__namespace.forwardRef((_a, ref) => {
3886
+ var DropdownMenuSeparator = React28__namespace.forwardRef((_a, ref) => {
3837
3887
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3838
3888
  return /* @__PURE__ */ jsxRuntime.jsx(
3839
3889
  DropdownMenuPrimitive__namespace.Separator,
@@ -3850,10 +3900,10 @@ function DatePickerWithRange({
3850
3900
  onDateChange,
3851
3901
  label
3852
3902
  }) {
3853
- const [month, setMonth] = React27__namespace.useState((date == null ? void 0 : date.from) || /* @__PURE__ */ new Date());
3854
- const [open, setOpen] = React27__namespace.useState(false);
3855
- const [inputValue, setInputValue] = React27__namespace.useState("");
3856
- React27__namespace.useEffect(() => {
3903
+ const [month, setMonth] = React28__namespace.useState((date == null ? void 0 : date.from) || /* @__PURE__ */ new Date());
3904
+ const [open, setOpen] = React28__namespace.useState(false);
3905
+ const [inputValue, setInputValue] = React28__namespace.useState("");
3906
+ React28__namespace.useEffect(() => {
3857
3907
  if (date == null ? void 0 : date.from) {
3858
3908
  if (date.to) {
3859
3909
  setInputValue(
@@ -3907,7 +3957,7 @@ function DatePickerWithRange({
3907
3957
  onDateChange(range2);
3908
3958
  setMonth(range2.from || /* @__PURE__ */ new Date());
3909
3959
  };
3910
- const isCustomDate = React27__namespace.useMemo(() => {
3960
+ const isCustomDate = React28__namespace.useMemo(() => {
3911
3961
  if (!date || !date.from) return false;
3912
3962
  return !presets2.some(
3913
3963
  (p) => dateFns.isEqual(p.range.from, date.from || /* @__PURE__ */ new Date(0)) && dateFns.isEqual(p.range.to || /* @__PURE__ */ new Date(0), date.to || /* @__PURE__ */ new Date(0))
@@ -3984,7 +4034,7 @@ function DatePickerWithRange({
3984
4034
  ] })
3985
4035
  ] });
3986
4036
  }
3987
- var Dropdown = React27__namespace.forwardRef(
4037
+ var Dropdown = React28__namespace.forwardRef(
3988
4038
  ({
3989
4039
  label,
3990
4040
  options,
@@ -3997,10 +4047,10 @@ var Dropdown = React27__namespace.forwardRef(
3997
4047
  helperText,
3998
4048
  required
3999
4049
  }, ref) => {
4000
- const [open, setOpen] = React27__namespace.useState(false);
4001
- const [inputValue, setInputValue] = React27__namespace.useState("");
4002
- const inputId = name || `dropdown-${React27__namespace.useId()}`;
4003
- const popoverRef = React27__namespace.useRef(null);
4050
+ const [open, setOpen] = React28__namespace.useState(false);
4051
+ const [inputValue, setInputValue] = React28__namespace.useState("");
4052
+ const inputId = name || `dropdown-${React28__namespace.useId()}`;
4053
+ const popoverRef = React28__namespace.useRef(null);
4004
4054
  const handleSelect = (currentValue) => {
4005
4055
  if (onChange) {
4006
4056
  onChange(currentValue);
@@ -4009,11 +4059,11 @@ var Dropdown = React27__namespace.forwardRef(
4009
4059
  setInputValue(selectedOption ? selectedOption.label : "");
4010
4060
  setOpen(false);
4011
4061
  };
4012
- React27__namespace.useEffect(() => {
4062
+ React28__namespace.useEffect(() => {
4013
4063
  const selectedOption = options.find((o) => o.value === value);
4014
4064
  setInputValue(selectedOption ? selectedOption.label : "");
4015
4065
  }, [value, options]);
4016
- React27__namespace.useEffect(() => {
4066
+ React28__namespace.useEffect(() => {
4017
4067
  const handleClickOutside = (event) => {
4018
4068
  if (popoverRef.current && !popoverRef.current.contains(event.target)) {
4019
4069
  setOpen(false);
@@ -4126,7 +4176,7 @@ var Dropdown = React27__namespace.forwardRef(
4126
4176
  }
4127
4177
  );
4128
4178
  Dropdown.displayName = "Dropdown";
4129
- var Form = React27__namespace.forwardRef(
4179
+ var Form = React28__namespace.forwardRef(
4130
4180
  (_a, ref) => {
4131
4181
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4132
4182
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -4139,7 +4189,7 @@ var Form = React27__namespace.forwardRef(
4139
4189
  }
4140
4190
  );
4141
4191
  Form.displayName = "Form";
4142
- var FormField = React27__namespace.forwardRef(
4192
+ var FormField = React28__namespace.forwardRef(
4143
4193
  (_a, ref) => {
4144
4194
  var _b = _a, { className, error } = _b, props = __objRest(_b, ["className", "error"]);
4145
4195
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -4157,7 +4207,7 @@ var FormField = React27__namespace.forwardRef(
4157
4207
  }
4158
4208
  );
4159
4209
  FormField.displayName = "FormField";
4160
- var FormLabel = React27__namespace.forwardRef(
4210
+ var FormLabel = React28__namespace.forwardRef(
4161
4211
  (_a, ref) => {
4162
4212
  var _b = _a, { className, required, children } = _b, props = __objRest(_b, ["className", "required", "children"]);
4163
4213
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -4178,7 +4228,7 @@ var FormLabel = React27__namespace.forwardRef(
4178
4228
  }
4179
4229
  );
4180
4230
  FormLabel.displayName = "FormLabel";
4181
- var FormMessage = React27__namespace.forwardRef(
4231
+ var FormMessage = React28__namespace.forwardRef(
4182
4232
  (_a, ref) => {
4183
4233
  var _b = _a, { className, type = "helper" } = _b, props = __objRest(_b, ["className", "type"]);
4184
4234
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -4319,7 +4369,7 @@ var getColPositionClasses = (colStart, colEnd) => {
4319
4369
  }
4320
4370
  return classes.join(" ");
4321
4371
  };
4322
- var Grid = React27__namespace.default.forwardRef(
4372
+ var Grid = React28__namespace.default.forwardRef(
4323
4373
  (_a, ref) => {
4324
4374
  var _b = _a, {
4325
4375
  container = true,
@@ -4375,7 +4425,7 @@ var Grid = React27__namespace.default.forwardRef(
4375
4425
  }
4376
4426
  );
4377
4427
  Grid.displayName = "Grid";
4378
- var GridItem = React27__namespace.default.forwardRef(
4428
+ var GridItem = React28__namespace.default.forwardRef(
4379
4429
  (_a, ref) => {
4380
4430
  var _b = _a, {
4381
4431
  span,
@@ -4451,7 +4501,7 @@ var progressBarIndicatorVariants = classVarianceAuthority.cva(
4451
4501
  defaultVariants: {}
4452
4502
  }
4453
4503
  );
4454
- var ProgressBar = React27__namespace.default.forwardRef(
4504
+ var ProgressBar = React28__namespace.default.forwardRef(
4455
4505
  (_a, ref) => {
4456
4506
  var _b = _a, {
4457
4507
  className,
@@ -4503,15 +4553,15 @@ var ProgressBar = React27__namespace.default.forwardRef(
4503
4553
  }
4504
4554
  );
4505
4555
  ProgressBar.displayName = "ProgressBar";
4506
- var StepperContext = React27__namespace.createContext(null);
4556
+ var StepperContext = React28__namespace.createContext(null);
4507
4557
  var useStepper = () => {
4508
- const context = React27__namespace.useContext(StepperContext);
4558
+ const context = React28__namespace.useContext(StepperContext);
4509
4559
  if (!context) {
4510
4560
  throw new Error("useStepper must be used within a Stepper component");
4511
4561
  }
4512
4562
  return context;
4513
4563
  };
4514
- var Stepper = React27__namespace.forwardRef(
4564
+ var Stepper = React28__namespace.forwardRef(
4515
4565
  (_a, ref) => {
4516
4566
  var _b = _a, {
4517
4567
  className,
@@ -4527,8 +4577,8 @@ var Stepper = React27__namespace.forwardRef(
4527
4577
  "onStepChange"
4528
4578
  ]);
4529
4579
  var _a2;
4530
- const [activeStep, setActiveStep] = React27__namespace.useState(initialStep);
4531
- React27__namespace.useImperativeHandle(ref, () => ({
4580
+ const [activeStep, setActiveStep] = React28__namespace.useState(initialStep);
4581
+ React28__namespace.useImperativeHandle(ref, () => ({
4532
4582
  goToNextStep: () => {
4533
4583
  setActiveStep((prev) => {
4534
4584
  const nextStep = prev < steps.length - 1 ? prev + 1 : prev;
@@ -4545,14 +4595,14 @@ var Stepper = React27__namespace.forwardRef(
4545
4595
  },
4546
4596
  activeStep
4547
4597
  }));
4548
- const stepStatuses = React27__namespace.useMemo(() => {
4598
+ const stepStatuses = React28__namespace.useMemo(() => {
4549
4599
  return steps.map((_, index) => {
4550
4600
  if (index < activeStep) return { status: "completed" };
4551
4601
  if (index === activeStep) return { status: "current" };
4552
4602
  return { status: "upcoming" };
4553
4603
  });
4554
4604
  }, [activeStep, steps]);
4555
- const contextValue = React27__namespace.useMemo(
4605
+ const contextValue = React28__namespace.useMemo(
4556
4606
  () => ({
4557
4607
  activeStep,
4558
4608
  orientation,
@@ -4614,7 +4664,7 @@ var connectorVariants = classVarianceAuthority.cva("", {
4614
4664
  status: "upcoming"
4615
4665
  }
4616
4666
  });
4617
- var Step = React27__namespace.forwardRef(({ className, children, index }, ref) => {
4667
+ var Step = React28__namespace.forwardRef(({ className, children, index }, ref) => {
4618
4668
  const { steps, stepCount, orientation } = useStepper();
4619
4669
  const status = steps[index].status;
4620
4670
  const isFirst = index === 0;
@@ -4698,12 +4748,12 @@ var Step = React27__namespace.forwardRef(({ className, children, index }, ref) =
4698
4748
  ] });
4699
4749
  });
4700
4750
  Step.displayName = "Step";
4701
- var StepLabel = React27__namespace.forwardRef((_a, ref) => {
4751
+ var StepLabel = React28__namespace.forwardRef((_a, ref) => {
4702
4752
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4703
4753
  return /* @__PURE__ */ jsxRuntime.jsx("p", __spreadValues({ ref, className: cn("text-lg font-normal", className) }, props));
4704
4754
  });
4705
4755
  StepLabel.displayName = "StepLabel";
4706
- var StepDescription = React27__namespace.forwardRef((_a, ref) => {
4756
+ var StepDescription = React28__namespace.forwardRef((_a, ref) => {
4707
4757
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4708
4758
  return /* @__PURE__ */ jsxRuntime.jsx(
4709
4759
  "p",
@@ -4714,7 +4764,7 @@ var StepDescription = React27__namespace.forwardRef((_a, ref) => {
4714
4764
  );
4715
4765
  });
4716
4766
  StepDescription.displayName = "StepDescription";
4717
- var StepContent = React27__namespace.forwardRef((_a, ref) => {
4767
+ var StepContent = React28__namespace.forwardRef((_a, ref) => {
4718
4768
  var _b = _a, { className, index, children } = _b, props = __objRest(_b, ["className", "index", "children"]);
4719
4769
  const { activeStep } = useStepper();
4720
4770
  if (activeStep !== index) return null;
@@ -4722,7 +4772,7 @@ var StepContent = React27__namespace.forwardRef((_a, ref) => {
4722
4772
  });
4723
4773
  StepContent.displayName = "StepContent";
4724
4774
  var Tabs = TabsPrimitive__namespace.Root;
4725
- var TabsList = React27__namespace.forwardRef((_a, ref) => {
4775
+ var TabsList = React28__namespace.forwardRef((_a, ref) => {
4726
4776
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4727
4777
  return /* @__PURE__ */ jsxRuntime.jsx(
4728
4778
  TabsPrimitive__namespace.List,
@@ -4736,7 +4786,7 @@ var TabsList = React27__namespace.forwardRef((_a, ref) => {
4736
4786
  );
4737
4787
  });
4738
4788
  TabsList.displayName = TabsPrimitive__namespace.List.displayName;
4739
- var TabsTrigger = React27__namespace.forwardRef((_a, ref) => {
4789
+ var TabsTrigger = React28__namespace.forwardRef((_a, ref) => {
4740
4790
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4741
4791
  return /* @__PURE__ */ jsxRuntime.jsx(
4742
4792
  TabsPrimitive__namespace.Trigger,
@@ -4754,7 +4804,7 @@ var TabsTrigger = React27__namespace.forwardRef((_a, ref) => {
4754
4804
  );
4755
4805
  });
4756
4806
  TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
4757
- var TabsContent = React27__namespace.forwardRef((_a, ref) => {
4807
+ var TabsContent = React28__namespace.forwardRef((_a, ref) => {
4758
4808
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4759
4809
  return /* @__PURE__ */ jsxRuntime.jsx(
4760
4810
  TabsPrimitive__namespace.Content,
@@ -4774,9 +4824,9 @@ function Modal({ open, onClose, children }) {
4774
4824
  }
4775
4825
  var MainNavigationItemComponent = ({ item, isActive, hasActiveSubItem, onNavigate, collapsed = false, currentPath }) => {
4776
4826
  var _a;
4777
- const [isExpanded, setIsExpanded] = React27__namespace.default.useState(hasActiveSubItem);
4827
+ const [isExpanded, setIsExpanded] = React28__namespace.default.useState(hasActiveSubItem);
4778
4828
  const hasSubItems = item.subItems && item.subItems.length > 0;
4779
- React27__namespace.default.useEffect(() => {
4829
+ React28__namespace.default.useEffect(() => {
4780
4830
  if (hasActiveSubItem) {
4781
4831
  setIsExpanded(true);
4782
4832
  }
@@ -4882,7 +4932,7 @@ var FooterMenuItemComponent = ({ item, isActive, onNavigate, collapsed = false }
4882
4932
  }
4883
4933
  );
4884
4934
  };
4885
- var Sidebar = React27__namespace.default.forwardRef(
4935
+ var Sidebar = React28__namespace.default.forwardRef(
4886
4936
  (_a, ref) => {
4887
4937
  var _b = _a, {
4888
4938
  brand,
@@ -4925,12 +4975,19 @@ var Sidebar = React27__namespace.default.forwardRef(
4925
4975
  }, props), {
4926
4976
  children: [
4927
4977
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
4928
- "p-4 border-b border-gray-100 overflow-hidden",
4978
+ "p-4 overflow-hidden",
4929
4979
  collapsed && "px-2"
4930
4980
  ), children: [
4931
4981
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 min-w-0", children: [
4932
- brand.logo && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-shrink-0", children: brand.logo }),
4933
- !collapsed && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1 overflow-hidden", children: [
4982
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-shrink-0 mx-auto", children: brand.logo ? brand.logo : /* @__PURE__ */ jsxRuntime.jsx(
4983
+ Logo,
4984
+ {
4985
+ size: collapsed ? 32 : 180,
4986
+ variant: "default",
4987
+ className: "transition-all duration-300"
4988
+ }
4989
+ ) }),
4990
+ !collapsed && brand.logo && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1 overflow-hidden", children: [
4934
4991
  /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "subheading-md", className: "text-gray-900 font-bold truncate block", children: brand.name }),
4935
4992
  brand.tagline && /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "body-xs", className: "text-gray-500 truncate block", children: brand.tagline })
4936
4993
  ] })
@@ -4969,7 +5026,7 @@ var Sidebar = React27__namespace.default.forwardRef(
4969
5026
  item.id
4970
5027
  )) }),
4971
5028
  showFooterMenu && footerMenu.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
4972
- "p-4 border-t border-gray-100 space-y-2 overflow-hidden",
5029
+ "p-4 space-y-2 overflow-hidden",
4973
5030
  collapsed && "px-2"
4974
5031
  ), children: footerMenu.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
4975
5032
  FooterMenuItemComponent,
@@ -5056,7 +5113,7 @@ var UserProfileComponent = ({ userProfile, onUserMenuClick }) => {
5056
5113
  userProfile.role && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs leading-none text-muted-foreground", children: userProfile.role })
5057
5114
  ] }) }),
5058
5115
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, {}),
5059
- menuOptions.map((option, index) => /* @__PURE__ */ jsxRuntime.jsxs(React27__namespace.default.Fragment, { children: [
5116
+ menuOptions.map((option, index) => /* @__PURE__ */ jsxRuntime.jsxs(React28__namespace.default.Fragment, { children: [
5060
5117
  option.separator && index > 0 && /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, {}),
5061
5118
  /* @__PURE__ */ jsxRuntime.jsx(
5062
5119
  DropdownMenuItem,
@@ -5073,7 +5130,7 @@ var UserProfileComponent = ({ userProfile, onUserMenuClick }) => {
5073
5130
  ] })
5074
5131
  ] });
5075
5132
  };
5076
- var TopNavbar = React27__namespace.default.forwardRef(
5133
+ var TopNavbar = React28__namespace.default.forwardRef(
5077
5134
  (_a, ref) => {
5078
5135
  var _b = _a, {
5079
5136
  sidebarCollapsed = false,
@@ -5143,7 +5200,7 @@ function AuthLayout({ children }) {
5143
5200
  return /* @__PURE__ */ jsxRuntime.jsx("div", { style: { minHeight: "100vh", display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ jsxRuntime.jsx("main", { children }) });
5144
5201
  }
5145
5202
  function useModal(initialOpen = false) {
5146
- const [open, setOpen] = React27.useState(initialOpen);
5203
+ const [open, setOpen] = React28.useState(initialOpen);
5147
5204
  function openModal() {
5148
5205
  setOpen(true);
5149
5206
  }
@@ -5163,6 +5220,8 @@ exports.Alert = Alert;
5163
5220
  exports.AlertDescription = AlertDescription;
5164
5221
  exports.AlertTitle = AlertTitle;
5165
5222
  exports.AuthLayout = AuthLayout;
5223
+ exports.Avatar = Avatar;
5224
+ exports.AvatarSkeleton = AvatarSkeleton;
5166
5225
  exports.Badge = Badge;
5167
5226
  exports.BadgeCell = BadgeCell;
5168
5227
  exports.BadgeCellSkeleton = BadgeCellSkeleton;
@@ -5192,6 +5251,7 @@ exports.Grid = Grid;
5192
5251
  exports.GridItem = GridItem;
5193
5252
  exports.Input = Input;
5194
5253
  exports.Label = Label;
5254
+ exports.Logo = Logo;
5195
5255
  exports.Modal = Modal;
5196
5256
  exports.Pagination = Pagination;
5197
5257
  exports.Paragraph = Paragraph;