@krosoft/react 0.0.69 → 0.0.70

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 (34) hide show
  1. package/dist/{KpiCards-jWYPbprR.js → KpiCards-D4Cy8CLT.js} +7 -6
  2. package/dist/{SearchInput-C2mFWiBb.js → SearchInput-LIey3bo9.js} +9 -8
  3. package/dist/Topbar-CtXJ337W.js +2314 -0
  4. package/dist/{badge-EcCaGyMI.js → badge-Cj2EQgcL.js} +3 -3
  5. package/dist/components/core/cards/index.js +1 -1
  6. package/dist/components/core/index.d.ts +1 -0
  7. package/dist/components/core/index.d.ts.map +1 -1
  8. package/dist/components/core/index.js +6 -3
  9. package/dist/components/core/inputs/index.js +1 -1
  10. package/dist/components/core/navbar/Sidebar.d.ts +32 -0
  11. package/dist/components/core/navbar/Sidebar.d.ts.map +1 -0
  12. package/dist/components/core/navbar/SidebarNavItem.d.ts +9 -0
  13. package/dist/components/core/navbar/SidebarNavItem.d.ts.map +1 -0
  14. package/dist/components/core/navbar/Topbar.d.ts +10 -0
  15. package/dist/components/core/navbar/Topbar.d.ts.map +1 -0
  16. package/dist/components/core/navbar/index.d.ts +3 -0
  17. package/dist/components/core/navbar/index.d.ts.map +1 -0
  18. package/dist/components/core/navbar/index.js +5 -0
  19. package/dist/components/index.js +33 -29
  20. package/dist/components/ui/index.js +18 -17
  21. package/dist/components/ui/separator.d.ts +5 -0
  22. package/dist/components/ui/separator.d.ts.map +1 -0
  23. package/dist/components/ui/sheet.d.ts +26 -0
  24. package/dist/components/ui/sheet.d.ts.map +1 -0
  25. package/dist/components/ui/skeleton.d.ts +3 -0
  26. package/dist/components/ui/skeleton.d.ts.map +1 -0
  27. package/dist/components/ui/tooltip.d.ts +8 -0
  28. package/dist/components/ui/tooltip.d.ts.map +1 -0
  29. package/dist/hooks/index.js +3 -1
  30. package/dist/hooks/ui/useMobile.d.ts.map +1 -1
  31. package/dist/index-BNCR478R.js +272 -0
  32. package/dist/toast-B6CC_ory.js +856 -0
  33. package/package.json +8 -5
  34. package/dist/toast-B6sBreHk.js +0 -1107
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { o as n } from "./toast-B6sBreHk.js";
2
+ import { c as n } from "./index-BNCR478R.js";
3
3
  import { c as a } from "./index-gWiv5-6R.js";
4
4
  const s = n(
5
5
  "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
@@ -17,10 +17,10 @@ const s = n(
17
17
  }
18
18
  }
19
19
  );
20
- function c({ className: r, variant: e, ...t }) {
20
+ function u({ className: r, variant: e, ...t }) {
21
21
  return /* @__PURE__ */ o("div", { className: a(s({ variant: e }), r), ...t });
22
22
  }
23
23
  export {
24
- c as B,
24
+ u as B,
25
25
  s as b
26
26
  };
@@ -1,4 +1,4 @@
1
- import { K as p, a as s } from "../../../KpiCards-jWYPbprR.js";
1
+ import { K as p, a as s } from "../../../KpiCards-D4Cy8CLT.js";
2
2
  export {
3
3
  p as KpiCard,
4
4
  s as KpiCards
@@ -1,4 +1,5 @@
1
1
  export * from "./cards";
2
2
  export * from "./inputs";
3
3
  export * from "./states";
4
+ export * from "./navbar";
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
@@ -1,10 +1,13 @@
1
- import { K as o, a as t } from "../../KpiCards-jWYPbprR.js";
2
- import { S as p } from "../../SearchInput-C2mFWiBb.js";
1
+ import { K as o, a as t } from "../../KpiCards-D4Cy8CLT.js";
2
+ import { S as p } from "../../SearchInput-LIey3bo9.js";
3
3
  import { E as S, L as d } from "../../LoadingState-C0uS6aGT.js";
4
+ import { S as i, T as m } from "../../Topbar-CtXJ337W.js";
4
5
  export {
5
6
  S as ErrorState,
6
7
  o as KpiCard,
7
8
  t as KpiCards,
8
9
  d as LoadingState,
9
- p as SearchInput
10
+ p as SearchInput,
11
+ i as Sidebar,
12
+ m as Topbar
10
13
  };
@@ -1,4 +1,4 @@
1
- import { S as e } from "../../../SearchInput-C2mFWiBb.js";
1
+ import { S as e } from "../../../SearchInput-LIey3bo9.js";
2
2
  export {
3
3
  e as SearchInput
4
4
  };
@@ -0,0 +1,32 @@
1
+ import * as React from "react";
2
+ export interface SidebarItem {
3
+ icon: React.ElementType;
4
+ label: string;
5
+ path?: string;
6
+ badge?: number;
7
+ subItems?: {
8
+ label: string;
9
+ path: string;
10
+ badge?: number;
11
+ }[];
12
+ }
13
+ export interface SidebarGroup {
14
+ title?: string;
15
+ items: SidebarItem[];
16
+ }
17
+ export interface SidebarProps {
18
+ groups: SidebarGroup[];
19
+ collapsed: boolean;
20
+ mobileOpen: boolean;
21
+ isMobile: boolean;
22
+ onMobileClose: () => void;
23
+ onItemClick: (path: string) => void;
24
+ currentPath: string;
25
+ appName?: string;
26
+ appSubName?: string;
27
+ appIcon?: React.ElementType;
28
+ headerNode?: React.ReactNode;
29
+ footerNode?: React.ReactNode;
30
+ }
31
+ export declare const Sidebar: ({ groups, collapsed, mobileOpen, isMobile, onMobileClose, onItemClick, currentPath, appName, appSubName, appIcon: AppIcon, headerNode, footerNode, }: SidebarProps) => React.ReactElement;
32
+ //# sourceMappingURL=Sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/core/navbar/Sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC9D;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAC5B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,eAAO,MAAM,OAAO,GAAI,sJAarB,YAAY,KAAG,KAAK,CAAC,YA6DvB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ import { SidebarItem } from "./Sidebar";
3
+ export interface SidebarNavItemProps extends SidebarItem {
4
+ currentPath: string;
5
+ collapsed: boolean;
6
+ onItemClick: (path: string) => void;
7
+ }
8
+ export declare const SidebarNavItem: ({ path, icon: Icon, label, badge, subItems, currentPath, collapsed, onItemClick, }: SidebarNavItemProps) => React.ReactElement;
9
+ //# sourceMappingURL=SidebarNavItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarNavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/core/navbar/SidebarNavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAED,eAAO,MAAM,cAAc,GAAI,oFAU5B,mBAAmB,KAAG,KAAK,CAAC,YA+F9B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ export interface TopbarProps {
3
+ collapsed: boolean;
4
+ isMobile: boolean;
5
+ onToggleSidebar: () => void;
6
+ actionsNode?: React.ReactNode;
7
+ userMenuNode?: React.ReactNode;
8
+ }
9
+ export declare const Topbar: ({ collapsed, isMobile, onToggleSidebar, actionsNode, userMenuNode }: TopbarProps) => React.ReactElement;
10
+ //# sourceMappingURL=Topbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Topbar.d.ts","sourceRoot":"","sources":["../../../../src/components/core/navbar/Topbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,WAAW;IAE1B,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,MAAM,IAAI,CAAC;IAG5B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAG9B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAChC;AAED,eAAO,MAAM,MAAM,GAAI,qEAAqE,WAAW,KAAG,KAAK,CAAC,YAiC/G,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Sidebar } from "./Sidebar";
2
+ export { Topbar } from "./Topbar";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/navbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { S as o, T as b } from "../../../Topbar-CtXJ337W.js";
2
+ export {
3
+ o as Sidebar,
4
+ b as Topbar
5
+ };
@@ -1,33 +1,37 @@
1
- import { K as t, a as r } from "../KpiCards-jWYPbprR.js";
2
- import { S as e } from "../SearchInput-C2mFWiBb.js";
3
- import { E as d, L as n } from "../LoadingState-C0uS6aGT.js";
4
- import { A as C, a as T, b as l, B as c, C as f, c as m, d as x, e as A, f as b, g, I as u, T as B, h as S, i as D, j as I, k as K, l as V, m as h, n as E } from "../toast-B6sBreHk.js";
5
- import { B as j, b as k } from "../badge-EcCaGyMI.js";
1
+ import { K as r, a as t } from "../KpiCards-D4Cy8CLT.js";
2
+ import { S as e } from "../SearchInput-LIey3bo9.js";
3
+ import { E as p, L as d } from "../LoadingState-C0uS6aGT.js";
4
+ import { S as T, T as C } from "../Topbar-CtXJ337W.js";
5
+ import { A as l, a as m, b, C as x, c, d as S, e as A, f as g, g as u, I as B, T as D, h as I, i as K, j as V, k as h, l as E, m as L } from "../toast-B6CC_ory.js";
6
+ import { B as k, b as v } from "../index-BNCR478R.js";
7
+ import { B as F, b as H } from "../badge-Cj2EQgcL.js";
6
8
  export {
7
- C as Alert,
8
- T as AlertDescription,
9
- l as AlertTitle,
10
- j as Badge,
11
- c as Button,
12
- f as Card,
13
- m as CardContent,
14
- x as CardDescription,
9
+ l as Alert,
10
+ m as AlertDescription,
11
+ b as AlertTitle,
12
+ F as Badge,
13
+ k as Button,
14
+ x as Card,
15
+ c as CardContent,
16
+ S as CardDescription,
15
17
  A as CardFooter,
16
- b as CardHeader,
17
- g as CardTitle,
18
- d as ErrorState,
19
- u as Input,
20
- t as KpiCard,
21
- r as KpiCards,
22
- n as LoadingState,
18
+ g as CardHeader,
19
+ u as CardTitle,
20
+ p as ErrorState,
21
+ B as Input,
22
+ r as KpiCard,
23
+ t as KpiCards,
24
+ d as LoadingState,
23
25
  e as SearchInput,
24
- B as Toast,
25
- S as ToastAction,
26
- D as ToastClose,
27
- I as ToastDescription,
28
- K as ToastProvider,
29
- V as ToastTitle,
30
- h as ToastViewport,
31
- k as badgeVariants,
32
- E as buttonVariants
26
+ T as Sidebar,
27
+ D as Toast,
28
+ I as ToastAction,
29
+ K as ToastClose,
30
+ V as ToastDescription,
31
+ h as ToastProvider,
32
+ E as ToastTitle,
33
+ L as ToastViewport,
34
+ C as Topbar,
35
+ H as badgeVariants,
36
+ v as buttonVariants
33
37
  };
@@ -1,25 +1,26 @@
1
- import { A as t, a as o, b as r, B as e, C as i, c as n, d, e as T, f as C, g as l, I as p, T as c, h as A, i as b, j as B, k as f, l as g, m, n as u } from "../../toast-B6sBreHk.js";
2
- import { B as V, b as x } from "../../badge-EcCaGyMI.js";
1
+ import { A as t, a as o, b as r, C as e, c as i, d, e as n, f as T, g as C, I as l, T as p, h as b, i as c, j as A, k as f, l as m, m as B } from "../../toast-B6CC_ory.js";
2
+ import { B as u, b as x } from "../../index-BNCR478R.js";
3
+ import { B as V, b as I } from "../../badge-Cj2EQgcL.js";
3
4
  export {
4
5
  t as Alert,
5
6
  o as AlertDescription,
6
7
  r as AlertTitle,
7
8
  V as Badge,
8
- e as Button,
9
- i as Card,
10
- n as CardContent,
9
+ u as Button,
10
+ e as Card,
11
+ i as CardContent,
11
12
  d as CardDescription,
12
- T as CardFooter,
13
- C as CardHeader,
14
- l as CardTitle,
15
- p as Input,
16
- c as Toast,
17
- A as ToastAction,
18
- b as ToastClose,
19
- B as ToastDescription,
13
+ n as CardFooter,
14
+ T as CardHeader,
15
+ C as CardTitle,
16
+ l as Input,
17
+ p as Toast,
18
+ b as ToastAction,
19
+ c as ToastClose,
20
+ A as ToastDescription,
20
21
  f as ToastProvider,
21
- g as ToastTitle,
22
- m as ToastViewport,
23
- x as badgeVariants,
24
- u as buttonVariants
22
+ m as ToastTitle,
23
+ B as ToastViewport,
24
+ I as badgeVariants,
25
+ x as buttonVariants
25
26
  };
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
3
+ declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ export { Separator };
5
+ //# sourceMappingURL=separator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../src/components/ui/separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAIhE,QAAA,MAAM,SAAS,6JAUd,CAAC;AAGF,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,26 @@
1
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ import * as React from "react";
4
+ declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
5
+ declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
8
+ declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const sheetVariants: (props?: ({
10
+ side?: "top" | "right" | "bottom" | "left" | null | undefined;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
+ interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
13
+ }
14
+ declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
15
+ declare const SheetHeader: {
16
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
17
+ displayName: string;
18
+ };
19
+ declare const SheetFooter: {
20
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
21
+ displayName: string;
22
+ };
23
+ declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
24
+ declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
25
+ export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger };
26
+ //# sourceMappingURL=sheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,KAAK,sCAAsB,CAAC;AAElC,QAAA,MAAM,YAAY,6GAAyB,CAAC;AAE5C,QAAA,MAAM,UAAU,2GAAuB,CAAC;AAExC,QAAA,MAAM,WAAW,4CAAwB,CAAC;AAE1C,QAAA,MAAM,YAAY,6JAWjB,CAAC;AAGF,QAAA,MAAM,aAAa;;8EAelB,CAAC;AAEF,UAAU,iBAAkB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAExI,QAAA,MAAM,YAAY,0FAajB,CAAC;AAGF,QAAA,MAAM,WAAW;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;;CAErG,CAAC;AAGF,QAAA,MAAM,WAAW;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;;CAErG,CAAC;AAGF,QAAA,MAAM,UAAU,mKAEf,CAAC;AAGF,QAAA,MAAM,gBAAgB,6KAG6H,CAAC;AAGpJ,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.ReactElement;
2
+ export { Skeleton };
3
+ //# sourceMappingURL=skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ui/skeleton.tsx"],"names":[],"mappings":"AAEA,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,YAAY,CAEnG;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
3
+ declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
4
+ declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
5
+ declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
8
+ //# sourceMappingURL=tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAI5D,QAAA,MAAM,eAAe,iDAA4B,CAAC;AAElD,QAAA,MAAM,OAAO,yCAAwB,CAAC;AAEtC,QAAA,MAAM,cAAc,gHAA2B,CAAC;AAEhD,QAAA,MAAM,cAAc,gKAYnB,CAAC;AAGF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
@@ -7,7 +7,9 @@ function _() {
7
7
  const e = window.matchMedia(`(max-width: ${String(u - 1)}px)`), o = () => {
8
8
  s(window.innerWidth < u);
9
9
  };
10
- return e.addEventListener("change", o), s(window.innerWidth < u), () => e.removeEventListener("change", o);
10
+ return e.addEventListener("change", o), s(window.innerWidth < u), () => {
11
+ e.removeEventListener("change", o);
12
+ };
11
13
  }, []), t;
12
14
  }
13
15
  const p = 1, A = 1e6;
@@ -1 +1 @@
1
- {"version":3,"file":"useMobile.d.ts","sourceRoot":"","sources":["../../../src/hooks/ui/useMobile.tsx"],"names":[],"mappings":"AAIA,wBAAgB,SAAS,IAAI,OAAO,CAcnC"}
1
+ {"version":3,"file":"useMobile.d.ts","sourceRoot":"","sources":["../../../src/hooks/ui/useMobile.tsx"],"names":[],"mappings":"AAIA,wBAAgB,SAAS,IAAI,OAAO,CAgBnC"}
@@ -0,0 +1,272 @@
1
+ import { jsx as h, Fragment as _ } from "react/jsx-runtime";
2
+ import { a as R, c as P } from "./index-gWiv5-6R.js";
3
+ import * as c from "react";
4
+ const x = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, C = R, V = (e, n) => (t) => {
5
+ var r;
6
+ if ((n == null ? void 0 : n.variants) == null) return C(e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
7
+ const { variants: o, defaultVariants: s } = n, u = Object.keys(o).map((l) => {
8
+ const f = t == null ? void 0 : t[l], a = s == null ? void 0 : s[l];
9
+ if (f === null) return null;
10
+ const d = x(f) || x(a);
11
+ return o[l][d];
12
+ }), i = t && Object.entries(t).reduce((l, f) => {
13
+ let [a, d] = f;
14
+ return d === void 0 || (l[a] = d), l;
15
+ }, {}), m = n == null || (r = n.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((l, f) => {
16
+ let { class: a, className: d, ...y } = f;
17
+ return Object.entries(y).every((v) => {
18
+ let [p, b] = v;
19
+ return Array.isArray(b) ? b.includes({
20
+ ...s,
21
+ ...i
22
+ }[p]) : {
23
+ ...s,
24
+ ...i
25
+ }[p] === b;
26
+ }) ? [
27
+ ...l,
28
+ a,
29
+ d
30
+ ] : l;
31
+ }, []);
32
+ return C(e, u, m, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
33
+ };
34
+ function S(e, n) {
35
+ if (typeof e == "function")
36
+ return e(n);
37
+ e != null && (e.current = n);
38
+ }
39
+ function w(...e) {
40
+ return (n) => {
41
+ let t = !1;
42
+ const r = e.map((o) => {
43
+ const s = S(o, n);
44
+ return !t && typeof s == "function" && (t = !0), s;
45
+ });
46
+ if (t)
47
+ return () => {
48
+ for (let o = 0; o < r.length; o++) {
49
+ const s = r[o];
50
+ typeof s == "function" ? s() : S(e[o], null);
51
+ }
52
+ };
53
+ };
54
+ }
55
+ function U(...e) {
56
+ return c.useCallback(w(...e), e);
57
+ }
58
+ // @__NO_SIDE_EFFECTS__
59
+ function N(e) {
60
+ const n = /* @__PURE__ */ $(e), t = c.forwardRef((r, o) => {
61
+ const { children: s, ...u } = r, i = c.Children.toArray(s), m = i.find(j);
62
+ if (m) {
63
+ const l = m.props.children, f = i.map((a) => a === m ? c.Children.count(l) > 1 ? c.Children.only(null) : c.isValidElement(l) ? l.props.children : null : a);
64
+ return /* @__PURE__ */ h(n, { ...u, ref: o, children: c.isValidElement(l) ? c.cloneElement(l, void 0, f) : null });
65
+ }
66
+ return /* @__PURE__ */ h(n, { ...u, ref: o, children: s });
67
+ });
68
+ return t.displayName = `${e}.Slot`, t;
69
+ }
70
+ var k = /* @__PURE__ */ N("Slot");
71
+ // @__NO_SIDE_EFFECTS__
72
+ function $(e) {
73
+ const n = c.forwardRef((t, r) => {
74
+ const { children: o, ...s } = t;
75
+ if (c.isValidElement(o)) {
76
+ const u = I(o), i = O(s, o.props);
77
+ return o.type !== c.Fragment && (i.ref = r ? w(r, u) : u), c.cloneElement(o, i);
78
+ }
79
+ return c.Children.count(o) > 1 ? c.Children.only(null) : null;
80
+ });
81
+ return n.displayName = `${e}.SlotClone`, n;
82
+ }
83
+ var E = Symbol("radix.slottable");
84
+ // @__NO_SIDE_EFFECTS__
85
+ function Z(e) {
86
+ const n = ({ children: t }) => /* @__PURE__ */ h(_, { children: t });
87
+ return n.displayName = `${e}.Slottable`, n.__radixId = E, n;
88
+ }
89
+ function j(e) {
90
+ return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === E;
91
+ }
92
+ function O(e, n) {
93
+ const t = { ...n };
94
+ for (const r in n) {
95
+ const o = e[r], s = n[r];
96
+ /^on[A-Z]/.test(r) ? o && s ? t[r] = (...i) => {
97
+ const m = s(...i);
98
+ return o(...i), m;
99
+ } : o && (t[r] = o) : r === "style" ? t[r] = { ...o, ...s } : r === "className" && (t[r] = [o, s].filter(Boolean).join(" "));
100
+ }
101
+ return { ...e, ...t };
102
+ }
103
+ function I(e) {
104
+ var r, o;
105
+ let n = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, t = n && "isReactWarning" in n && n.isReactWarning;
106
+ return t ? e.ref : (n = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, t = n && "isReactWarning" in n && n.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
107
+ }
108
+ const A = V(
109
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
110
+ {
111
+ variants: {
112
+ variant: {
113
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
114
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
115
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
116
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
117
+ ghost: "hover:bg-accent hover:text-accent-foreground",
118
+ link: "text-primary underline-offset-4 hover:underline",
119
+ styled: "bg-gradient-to-r from-slate-900 to-purple-700 hover:from-slate-800 hover:to-purple-600 text-white shadow-lg shadow-purple-500/25 px-6 h-12"
120
+ },
121
+ size: {
122
+ default: "h-10 px-4 py-2",
123
+ sm: "h-9 rounded-md px-3",
124
+ lg: "h-11 rounded-md px-8",
125
+ icon: "h-10 w-10"
126
+ }
127
+ },
128
+ defaultVariants: {
129
+ variant: "default",
130
+ size: "default"
131
+ }
132
+ }
133
+ ), B = c.forwardRef(({ className: e, variant: n, size: t, asChild: r = !1, ...o }, s) => /* @__PURE__ */ h(r ? k : "button", { className: P(A({ variant: n, size: t, className: e })), ref: s, ...o }));
134
+ B.displayName = "Button";
135
+ function q(e, n, { checkForDefaultPrevented: t = !0 } = {}) {
136
+ return function(o) {
137
+ if (e == null || e(o), t === !1 || !o.defaultPrevented)
138
+ return n == null ? void 0 : n(o);
139
+ };
140
+ }
141
+ function G(e, n = []) {
142
+ let t = [];
143
+ function r(s, u) {
144
+ const i = c.createContext(u), m = t.length;
145
+ t = [...t, u];
146
+ const l = (a) => {
147
+ var g;
148
+ const { scope: d, children: y, ...v } = a, p = ((g = d == null ? void 0 : d[e]) == null ? void 0 : g[m]) || i, b = c.useMemo(() => v, Object.values(v));
149
+ return /* @__PURE__ */ h(p.Provider, { value: b, children: y });
150
+ };
151
+ l.displayName = s + "Provider";
152
+ function f(a, d) {
153
+ var p;
154
+ const y = ((p = d == null ? void 0 : d[e]) == null ? void 0 : p[m]) || i, v = c.useContext(y);
155
+ if (v) return v;
156
+ if (u !== void 0) return u;
157
+ throw new Error(`\`${a}\` must be used within \`${s}\``);
158
+ }
159
+ return [l, f];
160
+ }
161
+ const o = () => {
162
+ const s = t.map((u) => c.createContext(u));
163
+ return function(i) {
164
+ const m = (i == null ? void 0 : i[e]) || s;
165
+ return c.useMemo(
166
+ () => ({ [`__scope${e}`]: { ...i, [e]: m } }),
167
+ [i, m]
168
+ );
169
+ };
170
+ };
171
+ return o.scopeName = e, [r, L(o, ...n)];
172
+ }
173
+ function L(...e) {
174
+ const n = e[0];
175
+ if (e.length === 1) return n;
176
+ const t = () => {
177
+ const r = e.map((o) => ({
178
+ useScope: o(),
179
+ scopeName: o.scopeName
180
+ }));
181
+ return function(s) {
182
+ const u = r.reduce((i, { useScope: m, scopeName: l }) => {
183
+ const a = m(s)[`__scope${l}`];
184
+ return { ...i, ...a };
185
+ }, {});
186
+ return c.useMemo(() => ({ [`__scope${n.scopeName}`]: u }), [u]);
187
+ };
188
+ };
189
+ return t.scopeName = n.scopeName, t;
190
+ }
191
+ function T(e) {
192
+ const n = c.useRef(e);
193
+ return c.useEffect(() => {
194
+ n.current = e;
195
+ }), c.useMemo(() => (...t) => {
196
+ var r;
197
+ return (r = n.current) == null ? void 0 : r.call(n, ...t);
198
+ }, []);
199
+ }
200
+ function J(e, n = globalThis == null ? void 0 : globalThis.document) {
201
+ const t = T(e);
202
+ c.useEffect(() => {
203
+ const r = (o) => {
204
+ o.key === "Escape" && t(o);
205
+ };
206
+ return n.addEventListener("keydown", r, { capture: !0 }), () => n.removeEventListener("keydown", r, { capture: !0 });
207
+ }, [t, n]);
208
+ }
209
+ var W = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
210
+ }, D = c[" useInsertionEffect ".trim().toString()] || W;
211
+ function Q({
212
+ prop: e,
213
+ defaultProp: n,
214
+ onChange: t = () => {
215
+ },
216
+ caller: r
217
+ }) {
218
+ const [o, s, u] = F({
219
+ defaultProp: n,
220
+ onChange: t
221
+ }), i = e !== void 0, m = i ? e : o;
222
+ {
223
+ const f = c.useRef(e !== void 0);
224
+ c.useEffect(() => {
225
+ const a = f.current;
226
+ a !== i && console.warn(
227
+ `${r} is changing from ${a ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
228
+ ), f.current = i;
229
+ }, [i, r]);
230
+ }
231
+ const l = c.useCallback(
232
+ (f) => {
233
+ var a;
234
+ if (i) {
235
+ const d = K(f) ? f(e) : f;
236
+ d !== e && ((a = u.current) == null || a.call(u, d));
237
+ } else
238
+ s(f);
239
+ },
240
+ [i, e, s, u]
241
+ );
242
+ return [m, l];
243
+ }
244
+ function F({
245
+ defaultProp: e,
246
+ onChange: n
247
+ }) {
248
+ const [t, r] = c.useState(e), o = c.useRef(t), s = c.useRef(n);
249
+ return D(() => {
250
+ s.current = n;
251
+ }, [n]), c.useEffect(() => {
252
+ var u;
253
+ o.current !== t && ((u = s.current) == null || u.call(s, t), o.current = t);
254
+ }, [t, o]), [t, r, s];
255
+ }
256
+ function K(e) {
257
+ return typeof e == "function";
258
+ }
259
+ export {
260
+ B,
261
+ G as a,
262
+ A as b,
263
+ V as c,
264
+ N as d,
265
+ J as e,
266
+ q as f,
267
+ T as g,
268
+ W as h,
269
+ Q as i,
270
+ Z as j,
271
+ U as u
272
+ };