prom-pal-ui 1.0.0 → 1.0.1

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.
@@ -0,0 +1 @@
1
+ export { usePromPromiseQuery } from "./query";
@@ -0,0 +1,8 @@
1
+ declare const usePromPromiseQuery: <T>(fetchFn?: () => Promise<T>) => {
2
+ data: T;
3
+ error: string;
4
+ execute: (fn?: () => Promise<T>) => Promise<T>;
5
+ loading: boolean;
6
+ onRefetch: () => Promise<T>;
7
+ };
8
+ export { usePromPromiseQuery };
@@ -0,0 +1 @@
1
+ export { usePromPromiseQuery } from "./api";
@@ -2,6 +2,6 @@ export * from "./ui/button";
2
2
  export * from "./ui/select";
3
3
  export * from "./ui/fields";
4
4
  export * from "./ui/skeleton";
5
- export * from "./lib/index";
6
5
  import "./styles/tailwind.css";
6
+ export * from "./lib/index";
7
7
  export * from "./ui/test";
@@ -2,11 +2,11 @@ import { type VariantProps } from "class-variance-authority";
2
2
  import * as React from "react";
3
3
  import { CommonPromComponentProps } from "./types";
4
4
  declare const buttonVariants: (props?: {
5
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
5
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost";
6
6
  size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg";
7
7
  } & import("class-variance-authority/dist/types").ClassProp) => string;
8
8
  declare const skeletonVariants: (props?: {
9
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
9
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost";
10
10
  size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg";
11
11
  } & import("class-variance-authority/dist/types").ClassProp) => string;
12
12
  interface PromButtonProps extends React.ComponentProps<"button">, VariantProps<typeof buttonVariants>, CommonPromComponentProps {