@krosoft/react 0.0.115 → 0.0.117

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 (44) hide show
  1. package/dist/components/core/cards/DashboardCard.d.ts +1 -1
  2. package/dist/components/core/cards/DashboardCard.d.ts.map +1 -1
  3. package/dist/components/core/cards/MetricCard.d.ts +1 -1
  4. package/dist/components/core/cards/MetricCard.d.ts.map +1 -1
  5. package/dist/components/core/dialogs/ConfirmationDialog.d.ts +1 -1
  6. package/dist/components/core/dialogs/ConfirmationDialog.d.ts.map +1 -1
  7. package/dist/components/core/inputs/DateRangePicker.d.ts +2 -1
  8. package/dist/components/core/inputs/DateRangePicker.d.ts.map +1 -1
  9. package/dist/components/core/layouts/KpiCardsLayout.d.ts +1 -1
  10. package/dist/components/core/layouts/KpiCardsLayout.d.ts.map +1 -1
  11. package/dist/components/core/states/ErrorAlert.d.ts +1 -1
  12. package/dist/components/core/states/ErrorAlert.d.ts.map +1 -1
  13. package/dist/components/ui/alert-dialog.d.ts +2 -2
  14. package/dist/components/ui/breadcrumb.d.ts +2 -2
  15. package/dist/components/ui/calendar.d.ts +1 -1
  16. package/dist/components/ui/calendar.d.ts.map +1 -1
  17. package/dist/components/ui/chart.d.ts +1 -1
  18. package/dist/components/ui/chart.d.ts.map +1 -1
  19. package/dist/components/ui/command.d.ts +2 -2
  20. package/dist/components/ui/command.d.ts.map +1 -1
  21. package/dist/components/ui/context-menu.d.ts +1 -1
  22. package/dist/components/ui/drawer.d.ts +3 -3
  23. package/dist/components/ui/form.d.ts +1 -1
  24. package/dist/components/ui/form.d.ts.map +1 -1
  25. package/dist/components/ui/menubar.d.ts +2 -2
  26. package/dist/components/ui/pagination.d.ts +5 -5
  27. package/dist/components/ui/resizable.d.ts +1 -1
  28. package/dist/components/ui/resizable.d.ts.map +1 -1
  29. package/dist/components/ui/sonner.d.ts +1 -1
  30. package/dist/components/ui/sonner.d.ts.map +1 -1
  31. package/dist/components/ui/toaster.d.ts +1 -1
  32. package/dist/components/ui/toaster.d.ts.map +1 -1
  33. package/dist/hooks/behavior/index.d.ts +5 -0
  34. package/dist/hooks/behavior/index.d.ts.map +1 -0
  35. package/dist/hooks/behavior/index.js +6 -0
  36. package/dist/hooks/index.d.ts +2 -13
  37. package/dist/hooks/index.d.ts.map +1 -1
  38. package/dist/hooks/index.js +17 -119
  39. package/dist/hooks/ui/index.d.ts +10 -0
  40. package/dist/hooks/ui/index.d.ts.map +1 -0
  41. package/dist/hooks/ui/index.js +15 -0
  42. package/dist/useConfirmDeleteDialog-BOb3XFpz.js +75 -0
  43. package/dist/useServerTable-UvTY6L1N.js +38 -0
  44. package/package.json +5 -5
@@ -5,6 +5,6 @@ interface DashboardCardProps {
5
5
  className?: string;
6
6
  children: React.ReactNode;
7
7
  }
8
- export declare const DashboardCard: ({ titleKey, icon: Icon, className, children }: DashboardCardProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const DashboardCard: ({ titleKey, icon: Icon, className, children }: DashboardCardProps) => React.JSX.Element;
9
9
  export {};
10
10
  //# sourceMappingURL=DashboardCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardCard.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/DashboardCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,aAAa,GAAI,+CAA+C,kBAAkB,4CAa9F,CAAC"}
1
+ {"version":3,"file":"DashboardCard.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/DashboardCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,aAAa,GAAI,+CAA+C,kBAAkB,sBAa9F,CAAC"}
@@ -30,6 +30,6 @@ export interface MetricCardProps {
30
30
  color?: MetricCardColor;
31
31
  children?: React.ReactNode;
32
32
  }
33
- export declare const MetricCard: ({ title, value, unit, subtitle, icon, iconSize, trend, trendValue, color, children }: MetricCardProps) => import("react/jsx-runtime").JSX.Element;
33
+ export declare const MetricCard: ({ title, value, unit, subtitle, icon, iconSize, trend, trendValue, color, children }: MetricCardProps) => React.JSX.Element;
34
34
  export {};
35
35
  //# sourceMappingURL=MetricCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MetricCard.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/MetricCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,QAAA,MAAM,YAAY;;;;;;;;;;;CAWR,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,QAAA,MAAM,eAAe;;;;CAIX,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,eAAe,CAAC;AAE9D,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC;IACxB,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAcD,eAAO,MAAM,UAAU,GAAI,sFAAsG,eAAe,4CA6B/I,CAAC"}
1
+ {"version":3,"file":"MetricCard.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/MetricCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,QAAA,MAAM,YAAY;;;;;;;;;;;CAWR,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,QAAA,MAAM,eAAe;;;;CAIX,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,eAAe,CAAC;AAE9D,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC;IACxB,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAcD,eAAO,MAAM,UAAU,GAAI,sFAAsG,eAAe,sBA6B/I,CAAC"}
@@ -6,6 +6,6 @@ interface ConfirmationDialogProps {
6
6
  config: ConfirmDialogConfig | null;
7
7
  destructive?: boolean;
8
8
  }
9
- export declare function ConfirmationDialog({ isLoading, error, config, destructive }: ConfirmationDialogProps): import("react/jsx-runtime").JSX.Element | null;
9
+ export declare function ConfirmationDialog({ isLoading, error, config, destructive }: ConfirmationDialogProps): import("react").JSX.Element | null;
10
10
  export {};
11
11
  //# sourceMappingURL=ConfirmationDialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmationDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/core/dialogs/ConfirmationDialog.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,UAAU,uBAAuB;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,SAAS,GAAG,KAAK,GAAG,IAAI,CAAC;IAChC,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,WAAmB,EAAE,EAAE,uBAAuB,kDA6C5G"}
1
+ {"version":3,"file":"ConfirmationDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/core/dialogs/ConfirmationDialog.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,UAAU,uBAAuB;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,SAAS,GAAG,KAAK,GAAG,IAAI,CAAC;IAChC,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,WAAmB,EAAE,EAAE,uBAAuB,sCA6C5G"}
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import type { DateRange } from "react-day-picker";
2
3
  interface DateRangePickerProps {
3
4
  value?: DateRange;
@@ -5,6 +6,6 @@ interface DateRangePickerProps {
5
6
  placeholder?: string;
6
7
  className?: string;
7
8
  }
8
- export declare const DateRangePicker: ({ value, onChange, placeholder, className }: DateRangePickerProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const DateRangePicker: ({ value, onChange, placeholder, className }: DateRangePickerProps) => React.JSX.Element;
9
10
  export {};
10
11
  //# sourceMappingURL=DateRangePicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/DateRangePicker.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,UAAU,oBAAoB;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,GAAI,6CAA0E,oBAAoB,4CAwF7H,CAAC"}
1
+ {"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/DateRangePicker.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,UAAU,oBAAoB;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,GAAI,6CAA0E,oBAAoB,sBAwF7H,CAAC"}
@@ -4,6 +4,6 @@ interface KpiCardsLayoutProps {
4
4
  isLoading: boolean;
5
5
  error: Error | null;
6
6
  }
7
- export declare const KpiCardsLayout: ({ stats, isLoading, error }: KpiCardsLayoutProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const KpiCardsLayout: ({ stats, isLoading, error }: KpiCardsLayoutProps) => import("react").JSX.Element;
8
8
  export {};
9
9
  //# sourceMappingURL=KpiCardsLayout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KpiCardsLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/core/layouts/KpiCardsLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,YAAY,EAAiB,MAAM,UAAU,CAAC;AAGjE,UAAU,mBAAmB;IAC3B,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,cAAc,GAAI,6BAA6B,mBAAmB,4CAI9E,CAAC"}
1
+ {"version":3,"file":"KpiCardsLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/core/layouts/KpiCardsLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,YAAY,EAAiB,MAAM,UAAU,CAAC;AAGjE,UAAU,mBAAmB;IAC3B,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,cAAc,GAAI,6BAA6B,mBAAmB,gCAI9E,CAAC"}
@@ -2,6 +2,6 @@ import { ErrorHttp } from "@krosoft/core/types";
2
2
  interface ErrorAlertProps {
3
3
  error: ErrorHttp | null;
4
4
  }
5
- export declare const ErrorAlert: ({ error }: ErrorAlertProps) => import("react/jsx-runtime").JSX.Element | null;
5
+ export declare const ErrorAlert: ({ error }: ErrorAlertProps) => import("react").JSX.Element | null;
6
6
  export {};
7
7
  //# sourceMappingURL=ErrorAlert.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/core/states/ErrorAlert.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,UAAU,eAAe;IACvB,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;CACzB;AAED,eAAO,MAAM,UAAU,GAAI,WAAW,eAAe,mDAsBpD,CAAC"}
1
+ {"version":3,"file":"ErrorAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/core/states/ErrorAlert.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,UAAU,eAAe;IACvB,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;CACzB;AAED,eAAO,MAAM,UAAU,GAAI,WAAW,eAAe,uCAsBpD,CAAC"}
@@ -6,11 +6,11 @@ declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortal
6
6
  declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
7
  declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
8
  declare const AlertDialogHeader: {
9
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
9
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
10
10
  displayName: string;
11
11
  };
12
12
  declare const AlertDialogFooter: {
13
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
13
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
14
14
  displayName: string;
15
15
  };
16
16
  declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
@@ -9,11 +9,11 @@ declare const BreadcrumbLink: React.ForwardRefExoticComponent<Omit<React.Detaile
9
9
  } & React.RefAttributes<HTMLAnchorElement>>;
10
10
  declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
11
11
  declare const BreadcrumbSeparator: {
12
- ({ children, className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
12
+ ({ children, className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
13
13
  displayName: string;
14
14
  };
15
15
  declare const BreadcrumbEllipsis: {
16
- ({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
16
+ ({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
17
17
  displayName: string;
18
18
  };
19
19
  export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { DayPicker } from "react-day-picker";
3
3
  export type CalendarProps = React.ComponentProps<typeof DayPicker>;
4
- declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
4
+ declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): React.JSX.Element;
5
5
  declare namespace Calendar {
6
6
  var displayName: string;
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAEnE,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,eAAsB,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CA4C3F;kBA5CQ,QAAQ;;;AA+CjB,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAEnE,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,eAAsB,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,qBA4C3F;kBA5CQ,QAAQ;;;AA+CjB,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -23,7 +23,7 @@ declare const ChartContainer: React.ForwardRefExoticComponent<Omit<React.ClassAt
23
23
  declare const ChartStyle: ({ id, config }: {
24
24
  id: string;
25
25
  config: ChartConfig;
26
- }) => import("react/jsx-runtime").JSX.Element | null;
26
+ }) => React.JSX.Element | null;
27
27
  declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
28
28
  declare const ChartTooltipContent: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
29
29
  active?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../src/components/ui/chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,UAAU,CAAC;AAK9C,QAAA,MAAM,MAAM;;;CAAwC,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG;KACvB,CAAC,IAAI,MAAM,GAAG;QACb,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC5B,GAAG,CAAC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,GAAG;QAAE,KAAK,CAAC,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC,MAAM,OAAO,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,CAAC;CACxG,CAAC;AAkBF,QAAA,MAAM,cAAc;YAGR,WAAW;cACT,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,mBAAmB,CAAC,CAAC,UAAU,CAAC;gDAsB1F,CAAC;AAGH,QAAA,MAAM,UAAU,GAAI,gBAAgB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAE,mDA2BtE,CAAC;AAEF,QAAA,MAAM,YAAY,kCAA4B,CAAC;AAE/C,QAAA,MAAM,mBAAmB;aAGZ,OAAO;cACN,GAAG,EAAE;YACP,GAAG;gBACC,OAAO;oBACH,OAAO;gBACX,MAAM,GAAG,KAAK,GAAG,QAAQ;cAC3B,MAAM;eACL,MAAM;qBACA,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC,SAAS;qBAC/C,MAAM;gBACX,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,KAAK,CAAC,SAAS;YACtF,MAAM;gDA8GjB,CAAC;AAGF,QAAA,MAAM,WAAW,sGAA2B,CAAC;AAE7C,QAAA,MAAM,kBAAkB;cAGV,GAAG,EAAE;oBACC,KAAK,GAAG,QAAQ;eACrB,OAAO;cACR,MAAM;gDAkClB,CAAC;AAsBH,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../src/components/ui/chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,UAAU,CAAC;AAK9C,QAAA,MAAM,MAAM;;;CAAwC,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG;KACvB,CAAC,IAAI,MAAM,GAAG;QACb,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC5B,GAAG,CAAC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,GAAG;QAAE,KAAK,CAAC,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC,MAAM,OAAO,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,CAAC;CACxG,CAAC;AAkBF,QAAA,MAAM,cAAc;YAGR,WAAW;cACT,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,mBAAmB,CAAC,CAAC,UAAU,CAAC;gDAsB1F,CAAC;AAGH,QAAA,MAAM,UAAU,GAAI,gBAAgB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAE,6BA2BtE,CAAC;AAEF,QAAA,MAAM,YAAY,kCAA4B,CAAC;AAE/C,QAAA,MAAM,mBAAmB;aAGZ,OAAO;cACN,GAAG,EAAE;YACP,GAAG;gBACC,OAAO;oBACH,OAAO;gBACX,MAAM,GAAG,KAAK,GAAG,QAAQ;cAC3B,MAAM;eACL,MAAM;qBACA,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC,SAAS;qBAC/C,MAAM;gBACX,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,KAAK,CAAC,SAAS;YACtF,MAAM;gDA8GjB,CAAC;AAGF,QAAA,MAAM,WAAW,sGAA2B,CAAC;AAE7C,QAAA,MAAM,kBAAkB;cAGV,GAAG,EAAE;oBACC,KAAK,GAAG,QAAQ;eACrB,OAAO;cACR,MAAM;gDAkClB,CAAC;AAsBH,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC"}
@@ -19,7 +19,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
19
19
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
20
  interface CommandDialogProps extends DialogProps {
21
21
  }
22
- declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => import("react/jsx-runtime").JSX.Element;
22
+ declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => React.JSX.Element;
23
23
  declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
24
24
  ref?: React.Ref<HTMLInputElement>;
25
25
  } & {
@@ -76,7 +76,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
76
76
  forceMount?: boolean;
77
77
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
78
78
  declare const CommandShortcut: {
79
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
79
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
80
80
  displayName: string;
81
81
  };
82
82
  export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/components/ui/command.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAG1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;sFAQZ,CAAC;AAGF,UAAU,kBAAmB,SAAQ,WAAW;CAAG;AAEnD,QAAA,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,4CAUhE,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;0FAcjB,CAAC;AAIF,QAAA,MAAM,WAAW;;;;;;;;sFAEhB,CAAC;AAIF,QAAA,MAAM,YAAY;;;;;;uJAEjB,CAAC;AAIF,QAAA,MAAM,YAAY;;;;;;;;;;sFAWjB,CAAC;AAIF,QAAA,MAAM,gBAAgB;;;;;;sFAGoH,CAAC;AAG3I,QAAA,MAAM,WAAW;;;;;;;;;;;;sFAWhB,CAAC;AAIF,QAAA,MAAM,eAAe;8BAA6B,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAEtF,CAAC;AAGF,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/components/ui/command.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAG1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;sFAQZ,CAAC;AAGF,UAAU,kBAAmB,SAAQ,WAAW;CAAG;AAEnD,QAAA,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,sBAUhE,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;0FAcjB,CAAC;AAIF,QAAA,MAAM,WAAW;;;;;;;;sFAEhB,CAAC;AAIF,QAAA,MAAM,YAAY;;;;;;uJAEjB,CAAC;AAIF,QAAA,MAAM,YAAY;;;;;;;;;;sFAWjB,CAAC;AAIF,QAAA,MAAM,gBAAgB;;;;;;sFAGoH,CAAC;AAG3I,QAAA,MAAM,WAAW;;;;;;;;;;;;sFAWhB,CAAC;AAIF,QAAA,MAAM,eAAe;8BAA6B,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAEtF,CAAC;AAGF,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC"}
@@ -21,7 +21,7 @@ declare const ContextMenuLabel: React.ForwardRefExoticComponent<Omit<ContextMenu
21
21
  } & React.RefAttributes<HTMLDivElement>>;
22
22
  declare const ContextMenuSeparator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
23
  declare const ContextMenuShortcut: {
24
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
24
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
25
25
  displayName: string;
26
26
  };
27
27
  export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { Drawer as DrawerPrimitive } from "vaul";
3
3
  declare const Drawer: {
4
- ({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ ({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  declare const DrawerTrigger: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
@@ -10,11 +10,11 @@ declare const DrawerClose: React.ForwardRefExoticComponent<import("@radix-ui/rea
10
10
  declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
11
  declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const DrawerHeader: {
13
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
13
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
14
14
  displayName: string;
15
15
  };
16
16
  declare const DrawerFooter: {
17
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
17
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
18
18
  displayName: string;
19
19
  };
20
20
  declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
@@ -2,7 +2,7 @@ import * as React from "react";
2
2
  import * as LabelPrimitive from "@radix-ui/react-label";
3
3
  import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
4
4
  declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, handleSubmit, unregister, control, register, setFocus, subscribe, }: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
5
- declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
5
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React.JSX.Element;
6
6
  declare const useFormField: () => {
7
7
  invalid: boolean;
8
8
  isDirty: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/ui/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAc,eAAe,EAAE,SAAS,EAAE,WAAW,EAAgC,MAAM,iBAAiB,CAAC;AAKpH,QAAA,MAAM,IAAI,0YAAe,CAAC;AAQ1B,QAAA,MAAM,SAAS,GAAI,YAAY,SAAS,WAAW,GAAG,WAAW,EAAE,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAAE,cAEjI,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,4CAMtC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAC;AAQF,QAAA,MAAM,QAAQ,6GAQZ,CAAC;AAGH,QAAA,MAAM,SAAS,yJAMd,CAAC;AAGF,QAAA,MAAM,WAAW,8JAYf,CAAC;AAGH,QAAA,MAAM,eAAe,yHAInB,CAAC;AAGH,QAAA,MAAM,WAAW,yHAaf,CAAC;AAGH,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/ui/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAc,eAAe,EAAE,SAAS,EAAE,WAAW,EAAgC,MAAM,iBAAiB,CAAC;AAKpH,QAAA,MAAM,IAAI,0YAAe,CAAC;AAQ1B,QAAA,MAAM,SAAS,GAAI,YAAY,SAAS,WAAW,GAAG,WAAW,EAAE,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAAE,cAEjI,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,sBAMtC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAC;AAQF,QAAA,MAAM,QAAQ,6GAQZ,CAAC;AAGH,QAAA,MAAM,SAAS,yJAMd,CAAC;AAGF,QAAA,MAAM,WAAW,8JAYf,CAAC;AAGH,QAAA,MAAM,eAAe,yHAInB,CAAC;AAGH,QAAA,MAAM,WAAW,yHAaf,CAAC;AAGH,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC"}
@@ -3,7 +3,7 @@ import * as MenubarPrimitive from "@radix-ui/react-menubar";
3
3
  declare const MenubarMenu: {
4
4
  (props: MenubarPrimitive.MenubarMenuProps & {
5
5
  __scopeMenubar?: import("@radix-ui/react-context").Scope;
6
- }): import("react/jsx-runtime").JSX.Element;
6
+ }): React.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  declare const MenubarGroup: React.ForwardRefExoticComponent<MenubarPrimitive.MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
@@ -27,7 +27,7 @@ declare const MenubarLabel: React.ForwardRefExoticComponent<Omit<MenubarPrimitiv
27
27
  } & React.RefAttributes<HTMLDivElement>>;
28
28
  declare const MenubarSeparator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
29
29
  declare const MenubarShortcut: {
30
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
30
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
31
31
  displayname: string;
32
32
  };
33
33
  export { Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarSeparator, MenubarLabel, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarPortal, MenubarSubContent, MenubarSubTrigger, MenubarGroup, MenubarSub, MenubarShortcut, };
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { ButtonProps } from "./button";
3
3
  declare const Pagination: {
4
- ({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
4
+ ({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
@@ -10,23 +10,23 @@ type PaginationLinkProps = {
10
10
  isActive?: boolean;
11
11
  } & Pick<ButtonProps, "size"> & React.ComponentProps<"a">;
12
12
  declare const PaginationLink: {
13
- ({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
13
+ ({ className, isActive, size, ...props }: PaginationLinkProps): React.JSX.Element;
14
14
  displayName: string;
15
15
  };
16
16
  declare const PaginationPrevious: {
17
17
  ({ className, label, ...props }: React.ComponentProps<typeof PaginationLink> & {
18
18
  label?: string;
19
- }): import("react/jsx-runtime").JSX.Element;
19
+ }): React.JSX.Element;
20
20
  displayName: string;
21
21
  };
22
22
  declare const PaginationNext: {
23
23
  ({ className, label, ...props }: React.ComponentProps<typeof PaginationLink> & {
24
24
  label?: string;
25
- }): import("react/jsx-runtime").JSX.Element;
25
+ }): React.JSX.Element;
26
26
  displayName: string;
27
27
  };
28
28
  declare const PaginationEllipsis: {
29
- ({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
29
+ ({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
30
30
  displayName: string;
31
31
  };
32
32
  export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
@@ -3,6 +3,6 @@ declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProp
3
3
  declare const ResizablePanel: typeof ResizablePrimitive.Panel;
4
4
  declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.Separator> & {
5
5
  withHandle?: boolean;
6
- }) => import("react/jsx-runtime").JSX.Element;
6
+ }) => import("react").JSX.Element;
7
7
  export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
8
8
  //# sourceMappingURL=resizable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../../src/components/ui/resizable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAG7D,QAAA,MAAM,mBAAmB,GAAI,yBAAyB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,KAAK,CAAC,KAAG,KAAK,CAAC,YAEnH,CAAC;AAEF,QAAA,MAAM,cAAc,iCAA2B,CAAC;AAEhD,QAAA,MAAM,eAAe,GAAI,qCAItB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,SAAS,CAAC,GAAG;IAC7D,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,4CAcA,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../../src/components/ui/resizable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAG7D,QAAA,MAAM,mBAAmB,GAAI,yBAAyB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,KAAK,CAAC,KAAG,KAAK,CAAC,YAEnH,CAAC;AAEF,QAAA,MAAM,cAAc,iCAA2B,CAAC;AAEhD,QAAA,MAAM,eAAe,GAAI,qCAItB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,SAAS,CAAC,GAAG;IAC7D,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,gCAcA,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Toaster as Sonner, toast } from "sonner";
2
2
  type ToasterProps = React.ComponentProps<typeof Sonner>;
3
- declare const Toaster: ({ ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const Toaster: ({ ...props }: ToasterProps) => import("react").JSX.Element;
4
4
  export { Toaster, toast };
5
5
  //# sourceMappingURL=sonner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sonner.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAElD,KAAK,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAExD,QAAA,MAAM,OAAO,GAAI,cAAc,YAAY,4CAkB1C,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sonner.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAElD,KAAK,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAExD,QAAA,MAAM,OAAO,GAAI,cAAc,YAAY,gCAkB1C,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare function Toaster(): import("react/jsx-runtime").JSX.Element;
1
+ export declare function Toaster(): import("react").JSX.Element;
2
2
  //# sourceMappingURL=toaster.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toaster.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toaster.tsx"],"names":[],"mappings":"AAGA,wBAAgB,OAAO,4CAoBtB"}
1
+ {"version":3,"file":"toaster.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toaster.tsx"],"names":[],"mappings":"AAGA,wBAAgB,OAAO,gCAoBtB"}
@@ -0,0 +1,5 @@
1
+ export { useConfirmationDialog } from "./useConfirmationDialog";
2
+ export { useConfirmDeleteDialog } from "./useConfirmDeleteDialog";
3
+ export { useDialog } from "./useDialog";
4
+ export type { DialogState } from "./useDialog";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/behavior/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { u as e, a as i, b as s } from "../../useConfirmDeleteDialog-BOb3XFpz.js";
2
+ export {
3
+ e as useConfirmDeleteDialog,
4
+ i as useConfirmationDialog,
5
+ s as useDialog
6
+ };
@@ -1,14 +1,3 @@
1
- export { useConfirmationDialog } from "./behavior/useConfirmationDialog";
2
- export { useConfirmDeleteDialog } from "./behavior/useConfirmDeleteDialog";
3
- export { useDataTable } from "./ui/useDataTable";
4
- export { useDialog } from "./behavior/useDialog";
5
- export type { DialogState } from "./behavior/useDialog";
6
- export { useMobile } from "./ui/useMobile";
7
- export { useNotifications } from "./ui/useNotifications";
8
- export type { UseNotificationsResult } from "./ui/useNotifications";
9
- export { useServerTable } from "./ui/useServerTable";
10
- export type { UseServerTableResult } from "./ui/useServerTable";
11
- export { useTheme } from "./ui/useTheme";
12
- export type { ThemeOption } from "./ui/useTheme";
13
- export { toast, useToast } from "./ui/useToast";
1
+ export * from "./behavior";
2
+ export * from "./ui";
14
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,YAAY,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,MAAM,CAAC"}
@@ -1,121 +1,19 @@
1
- import { useState as i, useEffect as M, useCallback as u } from "react";
2
- import { c as k } from "../createLucideIcon-MP_wDWjs.js";
3
- import { u as A } from "../useDataTable-CxcA5S-s.js";
4
- import { u as K } from "../useMobile-DN1_OMDB.js";
5
- import { u as R } from "../useNotifications-zbUhCvF_.js";
6
- import { u as B } from "../useTheme-B0Bxda3I.js";
7
- import { t as J, u as Q } from "../useToast-BFTk4lWz.js";
8
- /**
9
- * @license lucide-react v1.17.0 - ISC
10
- *
11
- * This source code is licensed under the ISC license.
12
- * See the LICENSE file in the root directory of this source tree.
13
- */
14
- const z = [
15
- ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
16
- ["path", { d: "M3 6h18", key: "d0wm0j" }],
17
- ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
18
- ], N = k("trash", z), v = (o) => {
19
- const [t, e] = i(null), s = (n, l) => {
20
- var c;
21
- (c = o == null ? void 0 : o.onReset) == null || c.call(o), e({ id: n, name: l });
22
- }, a = () => {
23
- e(null);
24
- };
25
- return {
26
- id: (t == null ? void 0 : t.id) ?? null,
27
- name: (t == null ? void 0 : t.name) ?? null,
28
- isOpen: !!t,
29
- openDialog: s,
30
- onClose: a
31
- };
32
- }, F = ({
33
- titleKey: o,
34
- descriptionKey: t,
35
- confirmKey: e = "Confirmer",
36
- onConfirm: s,
37
- onReset: a
38
- }) => {
39
- const n = v({ onReset: a }), l = async () => {
40
- if (n.id)
41
- try {
42
- await s(n.id), n.onClose();
43
- } catch (c) {
44
- console.error("Error confirming action:", c);
45
- }
46
- };
47
- return {
48
- isOpen: n.isOpen,
49
- itemName: n.name,
50
- title: o,
51
- description: t,
52
- confirmKey: e,
53
- openDialog: n.openDialog,
54
- onClose: n.onClose,
55
- onConfirm: l
56
- };
57
- }, w = ({
58
- titleKey: o,
59
- descriptionKey: t,
60
- confirmKey: e = "Supprimer",
61
- onConfirm: s,
62
- onReset: a
63
- }) => ({
64
- ...F({
65
- titleKey: o,
66
- descriptionKey: t,
67
- confirmKey: e,
68
- onConfirm: s,
69
- onReset: a
70
- }),
71
- loadingKey: "Suppression...",
72
- icon: N,
73
- titleClassName: "flex items-center gap-2 text-destructive",
74
- headerClassName: "bg-gradient-to-r from-slate-900 to-purple-700 rounded-t-lg shrink-0"
75
- });
76
- function E(o, t = "nom", e = {}) {
77
- const [s, a] = i(e.initialPage ?? 1), [n, l] = i(e.initialPageSize ?? 10), [c, h] = i(t), [m, d] = i(e.initialSortDirection ?? "asc"), [g, C] = i(e.initialSearchText ?? ""), [f, S] = i(e.initialSearchText ?? ""), [x, D] = i(o);
78
- M(() => {
79
- const r = setTimeout(() => {
80
- S(g);
81
- }, e.debounceMs ?? 300);
82
- return () => {
83
- clearTimeout(r);
84
- };
85
- }, [g, e.debounceMs]);
86
- const T = u((r) => {
87
- C(r), a(1);
88
- }, []), b = u((r) => {
89
- D(r), a(1);
90
- }, []), p = u((r, y) => {
91
- h(r), d(y);
92
- }, []), P = u((r) => {
93
- l(r), a(1);
94
- }, []);
95
- return {
96
- currentPage: s,
97
- onPageChange: a,
98
- pageSize: n,
99
- onPageSizeChange: P,
100
- sortColumn: c,
101
- sortDirection: m,
102
- onSortChange: p,
103
- searchText: g,
104
- debouncedSearchText: f,
105
- onSearchChange: T,
106
- appliedFilters: x,
107
- onFiltersChange: b
108
- };
109
- }
1
+ import { u as a, a as s, b as r } from "../useConfirmDeleteDialog-BOb3XFpz.js";
2
+ import { u } from "../useDataTable-CxcA5S-s.js";
3
+ import { u as i } from "../useMobile-DN1_OMDB.js";
4
+ import { u as l } from "../useNotifications-zbUhCvF_.js";
5
+ import { u as x } from "../useServerTable-UvTY6L1N.js";
6
+ import { u as b } from "../useTheme-B0Bxda3I.js";
7
+ import { t as T, u as g } from "../useToast-BFTk4lWz.js";
110
8
  export {
111
- J as toast,
112
- w as useConfirmDeleteDialog,
113
- F as useConfirmationDialog,
114
- A as useDataTable,
115
- v as useDialog,
116
- K as useMobile,
117
- R as useNotifications,
118
- E as useServerTable,
119
- B as useTheme,
120
- Q as useToast
9
+ T as toast,
10
+ a as useConfirmDeleteDialog,
11
+ s as useConfirmationDialog,
12
+ u as useDataTable,
13
+ r as useDialog,
14
+ i as useMobile,
15
+ l as useNotifications,
16
+ x as useServerTable,
17
+ b as useTheme,
18
+ g as useToast
121
19
  };
@@ -0,0 +1,10 @@
1
+ export { useDataTable } from "./useDataTable";
2
+ export { useMobile } from "./useMobile";
3
+ export { useNotifications } from "./useNotifications";
4
+ export type { UseNotificationsResult } from "./useNotifications";
5
+ export { useServerTable } from "./useServerTable";
6
+ export type { UseServerTableResult } from "./useServerTable";
7
+ export { useTheme } from "./useTheme";
8
+ export type { ThemeOption } from "./useTheme";
9
+ export { toast, useToast } from "./useToast";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { u as s } from "../../useDataTable-CxcA5S-s.js";
2
+ import { u as r } from "../../useMobile-DN1_OMDB.js";
3
+ import { u } from "../../useNotifications-zbUhCvF_.js";
4
+ import { u as m } from "../../useServerTable-UvTY6L1N.js";
5
+ import { u as x } from "../../useTheme-B0Bxda3I.js";
6
+ import { t as T, u as b } from "../../useToast-BFTk4lWz.js";
7
+ export {
8
+ T as toast,
9
+ s as useDataTable,
10
+ r as useMobile,
11
+ u as useNotifications,
12
+ m as useServerTable,
13
+ x as useTheme,
14
+ b as useToast
15
+ };
@@ -0,0 +1,75 @@
1
+ import { useState as l } from "react";
2
+ import { c } from "./createLucideIcon-MP_wDWjs.js";
3
+ /**
4
+ * @license lucide-react v1.17.0 - ISC
5
+ *
6
+ * This source code is licensed under the ISC license.
7
+ * See the LICENSE file in the root directory of this source tree.
8
+ */
9
+ const m = [
10
+ ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
11
+ ["path", { d: "M3 6h18", key: "d0wm0j" }],
12
+ ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
13
+ ], u = c("trash", m), d = (o) => {
14
+ const [e, i] = l(null), t = (n, s) => {
15
+ var r;
16
+ (r = o == null ? void 0 : o.onReset) == null || r.call(o), i({ id: n, name: s });
17
+ }, a = () => {
18
+ i(null);
19
+ };
20
+ return {
21
+ id: (e == null ? void 0 : e.id) ?? null,
22
+ name: (e == null ? void 0 : e.name) ?? null,
23
+ isOpen: !!e,
24
+ openDialog: t,
25
+ onClose: a
26
+ };
27
+ }, g = ({
28
+ titleKey: o,
29
+ descriptionKey: e,
30
+ confirmKey: i = "Confirmer",
31
+ onConfirm: t,
32
+ onReset: a
33
+ }) => {
34
+ const n = d({ onReset: a }), s = async () => {
35
+ if (n.id)
36
+ try {
37
+ await t(n.id), n.onClose();
38
+ } catch (r) {
39
+ console.error("Error confirming action:", r);
40
+ }
41
+ };
42
+ return {
43
+ isOpen: n.isOpen,
44
+ itemName: n.name,
45
+ title: o,
46
+ description: e,
47
+ confirmKey: i,
48
+ openDialog: n.openDialog,
49
+ onClose: n.onClose,
50
+ onConfirm: s
51
+ };
52
+ }, C = ({
53
+ titleKey: o,
54
+ descriptionKey: e,
55
+ confirmKey: i = "Supprimer",
56
+ onConfirm: t,
57
+ onReset: a
58
+ }) => ({
59
+ ...g({
60
+ titleKey: o,
61
+ descriptionKey: e,
62
+ confirmKey: i,
63
+ onConfirm: t,
64
+ onReset: a
65
+ }),
66
+ loadingKey: "Suppression...",
67
+ icon: u,
68
+ titleClassName: "flex items-center gap-2 text-destructive",
69
+ headerClassName: "bg-gradient-to-r from-slate-900 to-purple-700 rounded-t-lg shrink-0"
70
+ });
71
+ export {
72
+ g as a,
73
+ d as b,
74
+ C as u
75
+ };
@@ -0,0 +1,38 @@
1
+ import { useState as n, useEffect as M, useCallback as r } from "react";
2
+ function p(i, s = "nom", t = {}) {
3
+ const [o, a] = n(t.initialPage ?? 1), [h, l] = n(t.initialPageSize ?? 10), [S, g] = n(s), [u, C] = n(t.initialSortDirection ?? "asc"), [c, d] = n(t.initialSearchText ?? ""), [T, P] = n(t.initialSearchText ?? ""), [m, x] = n(i);
4
+ M(() => {
5
+ const e = setTimeout(() => {
6
+ P(c);
7
+ }, t.debounceMs ?? 300);
8
+ return () => {
9
+ clearTimeout(e);
10
+ };
11
+ }, [c, t.debounceMs]);
12
+ const b = r((e) => {
13
+ d(e), a(1);
14
+ }, []), z = r((e) => {
15
+ x(e), a(1);
16
+ }, []), f = r((e, F) => {
17
+ g(e), C(F);
18
+ }, []), D = r((e) => {
19
+ l(e), a(1);
20
+ }, []);
21
+ return {
22
+ currentPage: o,
23
+ onPageChange: a,
24
+ pageSize: h,
25
+ onPageSizeChange: D,
26
+ sortColumn: S,
27
+ sortDirection: u,
28
+ onSortChange: f,
29
+ searchText: c,
30
+ debouncedSearchText: T,
31
+ onSearchChange: b,
32
+ appliedFilters: m,
33
+ onFiltersChange: z
34
+ };
35
+ }
36
+ export {
37
+ p as u
38
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krosoft/react",
3
- "version": "0.0.115",
3
+ "version": "0.0.117",
4
4
  "description": "Krosoft shared React package",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -32,7 +32,7 @@
32
32
  "peerDependencies": {
33
33
  "@krosoft/core": ">=0.0.1",
34
34
  "next-themes": ">=0.4.6",
35
- "react": ">=19.2.6",
35
+ "react": ">=19.2.7",
36
36
  "react-i18next": ">=17.0.8",
37
37
  "react-router-dom": ">=7.16.0"
38
38
  },
@@ -98,15 +98,15 @@
98
98
  "@storybook/react": "^10.4.1",
99
99
  "@storybook/react-vite": "^10.4.1",
100
100
  "@types/node": "^25.9.1",
101
- "@types/react": "^19.2.15",
101
+ "@types/react": "^19.2.16",
102
102
  "@types/react-dom": "^19.2.3",
103
103
  "autoprefixer": "^10.5.0",
104
104
  "eslint-plugin-storybook": "10.4.1",
105
105
  "jsdom": "^29.1.1",
106
106
  "next-themes": "^0.4.6",
107
107
  "prettier": "^3.8.3",
108
- "react": "^19.2.6",
109
- "react-dom": "^19.2.6",
108
+ "react": "^19.2.7",
109
+ "react-dom": "^19.2.7",
110
110
  "react-i18next": "^17.0.8",
111
111
  "react-resizable-panels": "^4.11.2",
112
112
  "react-router-dom": "^7.16.0",