lawgic-dev-kit 0.21.4 → 0.21.6
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/dist/components/atoms/SelectInput/SelectInput.d.ts +1 -1
- package/dist/components/atoms/SelectInput/SelectInput.js +59 -56
- package/dist/components/atoms/SelectInput/SelectInput.types.d.ts +2 -0
- package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +1 -0
- package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.js +33 -32
- package/dist/lawgic-dev-kit.umd.js +28 -28
- package/dist/src/components/atoms/SelectInput/SelectInput.d.ts +1 -1
- package/dist/src/components/atoms/SelectInput/SelectInput.types.d.ts +2 -0
- package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +1 -0
- package/package.json +1 -1
- package/dist/src/types/toast.d.ts +0 -26
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FieldValues } from "react-hook-form";
|
|
2
2
|
import type { SelectInputProps } from "./SelectInput.types";
|
|
3
|
-
declare const SelectInput: <T extends FieldValues>({ options, name, control, label, placeholder, className, input, dropdownStyle, innerClassName }: SelectInputProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const SelectInput: <T extends FieldValues>({ options, name, control, label, placeholder, className, input, dropdownStyle, innerClassName, showChevron, }: SelectInputProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default SelectInput;
|
|
@@ -14,6 +14,7 @@ export interface SelectInputProps<T extends FieldValues> {
|
|
|
14
14
|
className?: string;
|
|
15
15
|
innerClassName?: string;
|
|
16
16
|
dropdownStyle?: React.CSSProperties;
|
|
17
|
+
showChevron?: boolean;
|
|
17
18
|
}
|
|
18
19
|
export interface SelectInputFieldProps {
|
|
19
20
|
options: Option[];
|
|
@@ -26,4 +27,5 @@ export interface SelectInputFieldProps {
|
|
|
26
27
|
className?: string;
|
|
27
28
|
innerClassName?: string;
|
|
28
29
|
dropdownStyle?: React.CSSProperties;
|
|
30
|
+
showChevron?: boolean;
|
|
29
31
|
}
|
|
@@ -16,6 +16,7 @@ interface UncontrolledSelectorProps {
|
|
|
16
16
|
className?: string;
|
|
17
17
|
innerClassName?: string;
|
|
18
18
|
dropdownStyle?: React.CSSProperties;
|
|
19
|
+
showChevron?: boolean;
|
|
19
20
|
}
|
|
20
21
|
declare const UncontrolledSelector: React.FC<UncontrolledSelectorProps>;
|
|
21
22
|
export default UncontrolledSelector;
|
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export type ToastContent = React.ReactNode;
|
|
2
|
-
export type ToastPosition = "top-left" | "top-right" | "top-center" | "bottom-left" | "bottom-right" | "bottom-center";
|
|
3
|
-
export interface ToastOptions {
|
|
4
|
-
duration?: number;
|
|
5
|
-
position?: ToastPosition;
|
|
6
|
-
}
|
|
7
|
-
export type ToastType = "success" | "error" | "warning" | "info" | "loading";
|
|
8
|
-
export interface ToastMethods {
|
|
9
|
-
success: (content: ToastContent, options?: ToastOptions) => void;
|
|
10
|
-
error: (content: ToastContent, options?: ToastOptions) => void;
|
|
11
|
-
warning: (content: ToastContent, options?: ToastOptions) => void;
|
|
12
|
-
info: (content: ToastContent, options?: ToastOptions) => void;
|
|
13
|
-
loading: (messages: {
|
|
14
|
-
loading: ToastContent;
|
|
15
|
-
success: ToastContent;
|
|
16
|
-
error: ToastContent;
|
|
17
|
-
}, options?: ToastOptions) => {
|
|
18
|
-
resolve: (value?: unknown) => void;
|
|
19
|
-
reject: (reason?: unknown) => void;
|
|
20
|
-
};
|
|
21
|
-
async: (promise: Promise<unknown>, messages: {
|
|
22
|
-
loading: ToastContent;
|
|
23
|
-
success: ToastContent;
|
|
24
|
-
error: ToastContent;
|
|
25
|
-
}, options?: ToastOptions) => void;
|
|
26
|
-
}
|