beca-ui 0.1.26 → 0.1.27
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.
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { PdfDragBoxProps } from "..";
|
|
3
3
|
export interface BoxItem {
|
|
4
4
|
id: React.Key;
|
|
5
5
|
image?: string;
|
|
6
6
|
title?: string;
|
|
7
7
|
text?: string;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
itemsTitle: string;
|
|
11
|
-
boxes: BoxItem[];
|
|
12
|
-
pdf: string;
|
|
13
|
-
onSubmit?: (data: ContainerBoxItem[]) => void;
|
|
14
|
-
}
|
|
15
|
-
declare const PdfDragBox: React.NamedExoticComponent<PdfDragProps>;
|
|
9
|
+
declare const PdfDragBox: React.NamedExoticComponent<PdfDragBoxProps>;
|
|
16
10
|
export default PdfDragBox;
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ContainerBoxItem } from "./BoxContainer";
|
|
2
3
|
import { BoxItem } from "./PdfDragBox";
|
|
3
4
|
export interface PdfDragBoxProps {
|
|
5
|
+
itemsTitle: string;
|
|
6
|
+
boxes: BoxItem[];
|
|
7
|
+
pdf: string;
|
|
8
|
+
onSubmit?: (data: ContainerBoxItem[]) => void;
|
|
9
|
+
submitButton?: {
|
|
10
|
+
text?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
};
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
isMultiple?: boolean;
|
|
4
15
|
}
|
|
5
16
|
export type { BoxItem, ContainerBoxItem };
|
|
@@ -21,5 +21,6 @@ export interface TargetBoxRef {
|
|
|
21
21
|
}
|
|
22
22
|
export interface StatefulTargetBoxState {
|
|
23
23
|
pdf: string;
|
|
24
|
+
isMultiple?: boolean;
|
|
24
25
|
}
|
|
25
26
|
export declare const StatefulTargetBox: import("react").ForwardRefExoticComponent<StatefulTargetBoxState & import("react").RefAttributes<TargetBoxRef>>;
|