@sunggang/ui-lib 0.2.2 → 0.2.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.2.2",
3
+ "version": "0.2.5",
4
4
  "dependencies": {
5
5
  "@iconify/react": "^4.1.1",
6
6
  "@mdx-js/react": "^3.0.1",
package/src/index.d.ts CHANGED
@@ -14,3 +14,4 @@ export * from './lib/DataTable/BaseTable';
14
14
  export * from './lib/Function';
15
15
  export * from './lib/BigCalender';
16
16
  export * from './lib/BigCalender/dnd';
17
+ export * from './lib/Function/Hook/useBaseLiff';
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ interface ImageItem {
3
+ url?: string;
4
+ id?: string;
5
+ preview?: string;
6
+ }
7
+ interface CustomDragDropImagesProps {
8
+ imageUrls: ImageItem[];
9
+ onDragEnd: () => void;
10
+ handleRemove: (item: ImageItem) => void;
11
+ }
12
+ export declare const CustomDragDropImages: React.FC<CustomDragDropImagesProps>;
13
+ export {};
@@ -10,7 +10,9 @@ export interface DropImageProps {
10
10
  imageUrls?: ImageItem[] | undefined;
11
11
  setImageUrls?: any;
12
12
  setFiles: React.Dispatch<React.SetStateAction<File[]>>;
13
+ imageStyleType: 'base' | 'custom';
13
14
  }
14
15
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
15
16
  export default _default;
16
17
  export declare const Base: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, DropImageProps>;
18
+ export declare const Custom: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, DropImageProps>;
@@ -0,0 +1,14 @@
1
+ import type { Liff } from '@line/liff';
2
+ interface UseLiffProps {
3
+ liffId: string;
4
+ withLoginOnExternalBrowser?: boolean;
5
+ redirectPath?: string;
6
+ }
7
+ interface UseLiffReturn {
8
+ accessToken: string | null;
9
+ isLoggedIn: boolean;
10
+ liffObject: Liff | null;
11
+ liffError: Error | null;
12
+ }
13
+ export declare const useBaseLiff: ({ liffId, withLoginOnExternalBrowser, redirectPath, }: UseLiffProps) => UseLiffReturn;
14
+ export {};