@sharpnr/ui 1.0.1 → 1.0.2

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 declare function SharpnrSidebarFooter(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ interface DialogModalContextType {
3
+ openModal: (content: ReactNode, title?: string, description?: string) => void;
4
+ closeModal: () => void;
5
+ }
6
+ export declare const DialogModalProvider: ({ children }: {
7
+ children: ReactNode;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const useDialogModal: () => DialogModalContextType;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ interface ModalContextProps {
3
+ showModal: (heading: string, description: string, component: ReactNode) => void;
4
+ closeModal: () => void;
5
+ }
6
+ export declare const useFormsModal: () => ModalContextProps;
7
+ export declare const FormsModalProvider: React.FC<{
8
+ children: ReactNode;
9
+ }>;
10
+ export {};
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from 'react';
2
+ type SheetSize = "1/4" | "2/4" | "3/4" | "full";
3
+ interface SheetContextProps {
4
+ openSheet: (content: ReactNode, size?: SheetSize) => void;
5
+ closeSheet: () => void;
6
+ }
7
+ export declare const useSheet: () => SheetContextProps;
8
+ export declare const SheetProvider: ({ children }: {
9
+ children: ReactNode;
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
package/dist/index.d.ts CHANGED
@@ -28,6 +28,7 @@ export { Skeleton } from './components/ui/skeleton';
28
28
  export { Kbd, KbdGroup } from './components/ui/kbd';
29
29
  export { Button } from './components/ui/button';
30
30
  export { ScrollArea, ScrollBar } from './components/ui/scroll-area';
31
+ export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, } from './components/ui/avatar';
31
32
  export { cn } from './lib/utils';
32
33
  export { GlobalLoader } from './components/ui/GlobalLoader';
33
34
  export { GlobalErrorPage } from './components/ui/global-err';