@sunggang/ui-lib 0.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.
package/package.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@sunggang/ui-lib",
3
+ "version": "0.0.1",
4
+ "module": "./index.esm.js",
5
+ "type": "module",
6
+ "main": "./index.esm.js"
7
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export * from './lib/uiLibrary';
2
+ export * from './lib/Spin';
3
+ export * from './lib/DropImage';
4
+ export * from './lib/UploadImage/CustomUpload';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface DropImageProps {
3
+ preview?: boolean;
4
+ setFiles: React.Dispatch<React.SetStateAction<File[]>>;
5
+ }
6
+ export declare const DropImage: React.FC<DropImageProps>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface ErrorContentProps {
3
+ setModal: any;
4
+ errmsg: React.ReactNode | string;
5
+ }
6
+ declare const ErrorContent: React.FC<ErrorContentProps>;
7
+ export default ErrorContent;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface ModalProps {
3
+ modal: React.ReactElement;
4
+ unsetModal?: () => void;
5
+ }
6
+ declare const Modal: React.FC<ModalProps>;
7
+ export default Modal;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface ModalContentProps {
3
+ title?: string;
4
+ setModal?: any;
5
+ children: React.ReactNode;
6
+ onClick?: any;
7
+ notice?: boolean;
8
+ }
9
+ declare const ModalContent: React.FC<ModalContentProps>;
10
+ export default ModalContent;
@@ -0,0 +1,5 @@
1
+ export declare function Spin(props: {
2
+ show: boolean;
3
+ overlayBackground?: 'bg-[#00000055]' | undefined;
4
+ }): import("react/jsx-runtime").JSX.Element | null;
5
+ export default Spin;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ interface BaseTemplateProps {
3
+ file?: File | null;
4
+ }
5
+ declare const BaseTemplate: FC<BaseTemplateProps>;
6
+ export default BaseTemplate;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface CustomUploadProps {
3
+ className?: string;
4
+ children?: React.ReactNode;
5
+ file?: File | null;
6
+ setFile: any;
7
+ }
8
+ export declare const CustomUpload: React.FC<CustomUploadProps>;
9
+ export default CustomUpload;
@@ -0,0 +1 @@
1
+ export declare function HelloServer(): Promise<import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,4 @@
1
+ export interface UiLibraryProps {
2
+ }
3
+ export declare function UiLibrary(props: UiLibraryProps): import("react/jsx-runtime").JSX.Element;
4
+ export default UiLibrary;
@@ -0,0 +1 @@
1
+ export * from './lib/hello-server';