@sunggang/ui-lib 0.1.72 → 0.1.74

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.1.72",
3
+ "version": "0.1.74",
4
4
  "dependencies": {
5
5
  "@iconify/react": "^4.1.1",
6
6
  "@mdx-js/react": "^3.0.1",
@@ -6,6 +6,11 @@ export interface Event {
6
6
  id?: number;
7
7
  color?: string;
8
8
  }
9
+ export interface Messages {
10
+ agenda?: string;
11
+ event?: string;
12
+ noEventsInRange?: string;
13
+ }
9
14
  export interface BigCalenderProps {
10
15
  events: Event[];
11
16
  setEvents: React.Dispatch<React.SetStateAction<Event[]>>;
@@ -15,6 +20,7 @@ export interface BigCalenderProps {
15
20
  handleSelectEvent: (event: Event) => void;
16
21
  handleNavigate: (event: string) => void;
17
22
  handleView: (event: string) => void;
23
+ messages: Messages;
18
24
  }
19
25
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
20
26
  export default _default;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ interface ImageItem {
3
+ url?: string;
4
+ id?: string;
5
+ preview?: string;
6
+ }
7
+ interface DragDropImagesProps {
8
+ imageUrls: ImageItem[];
9
+ onDragEnd: () => void;
10
+ handleRemove: (item: ImageItem) => void;
11
+ }
12
+ export declare const DragDropImages: React.FC<DragDropImagesProps>;
13
+ export {};
@@ -1,9 +1,3 @@
1
1
  import React from 'react';
2
- interface DropImageProps {
3
- preview?: boolean;
4
- imageUrls?: any;
5
- setFiles: React.Dispatch<React.SetStateAction<File[]>>;
6
- setImageUrls?: any;
7
- }
2
+ import { DropImageProps } from './index.stories';
8
3
  export declare const DropImage: React.FC<DropImageProps>;
9
- export {};
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ export interface ImageItem {
3
+ url?: string;
4
+ id?: string | null;
5
+ index?: number;
6
+ }
7
+ export interface DropImageProps {
8
+ preview: boolean;
9
+ imageUrls?: ImageItem[] | undefined;
10
+ setImageUrls?: any;
11
+ setFiles: React.Dispatch<React.SetStateAction<File[]>>;
12
+ }
13
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
14
+ export default _default;
15
+ export declare const Base: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, DropImageProps>;