@opencx/widget-react 4.0.8 → 4.0.9

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,39 @@
1
+ import { default as React } from 'react';
2
+ interface DialogerProviderValue {
3
+ open: (content: React.ReactNode) => void;
4
+ close: () => void;
5
+ isOpen: boolean;
6
+ content: React.ReactNode | null;
7
+ }
8
+ export declare function DialogerProvider({ children }: {
9
+ children: React.ReactNode;
10
+ }): React.JSX.Element;
11
+ export declare function useDialoger(): DialogerProviderValue;
12
+ export declare function DialogerContent({ children, className, withClose, }: {
13
+ children: React.ReactNode;
14
+ className?: string;
15
+ withClose?: boolean;
16
+ }): React.JSX.Element;
17
+ export declare const DialogerHeader: {
18
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
19
+ displayName: string;
20
+ };
21
+ export declare const DialogerBody: {
22
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
23
+ displayName: string;
24
+ };
25
+ export declare const DialogerFooter: {
26
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
27
+ displayName: string;
28
+ };
29
+ export declare const DialogerTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
30
+ export declare const DialogerDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
31
+ export declare function Dialoger({ children, trigger, }: {
32
+ children: React.ReactNode;
33
+ trigger: React.ReactElement<{
34
+ onClick: () => void;
35
+ }>;
36
+ }): React.ReactElement<{
37
+ onClick: () => void;
38
+ }, string | React.JSXElementConstructor<any>>;
39
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
4
+ variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
5
5
  size?: "default" | "icon" | "sm" | "lg" | "fit" | "free" | "selfless" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {