@monolith-forensics/monolith-ui 1.1.59 → 1.1.60

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,44 +1,4 @@
1
- import { ReactNode } from "react";
2
- import { Size, Variant } from "../core";
3
- export type Option = {
4
- label: string;
5
- value: any;
6
- group?: string;
7
- data?: any;
8
- };
9
- export interface SelectBoxProps {
10
- className?: string;
11
- defaultValue?: Option | string;
12
- value?: Option | string;
13
- data?: Option[] | string[];
14
- placeholder?: string;
15
- arrow?: boolean;
16
- onChange?: (value: any, item: any) => void;
17
- onSearch?: (value: string) => void;
18
- searchFn?: (value: string) => void;
19
- onScroll?: (e: any) => void;
20
- loading?: boolean;
21
- onItemAdded?: (item: any) => void;
22
- size?: Size;
23
- variant?: Variant;
24
- width?: string | number | null;
25
- allowCustomValue?: boolean;
26
- searchable?: boolean;
27
- clearable?: boolean;
28
- label?: string;
29
- description?: string;
30
- required?: boolean;
31
- error?: string;
32
- openOnFocus?: boolean;
33
- renderOption?: (item: Option | string) => ReactNode;
34
- actionComponent?: JSX.Element;
35
- focused?: boolean;
36
- grouped?: boolean;
37
- TooltipContent?: React.FC<{
38
- data: any;
39
- }>;
40
- DropDownProps?: any;
41
- }
1
+ import { SelectBoxProps } from "./types";
42
2
  export declare const StyledInputContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
43
3
  width?: string | number | null;
44
4
  }>> & string;
@@ -1,2 +1,2 @@
1
1
  export { default } from "./SelectBox";
2
- export type { SelectBoxProps, Option } from "./SelectBox";
2
+ export type { SelectBoxProps, Option } from "./types";
@@ -0,0 +1,40 @@
1
+ import { Size, Variant } from "../core";
2
+ export type Option = {
3
+ label: string;
4
+ value: any;
5
+ group?: string;
6
+ data?: any;
7
+ };
8
+ export interface SelectBoxProps {
9
+ className?: string;
10
+ defaultValue?: Option | string;
11
+ value?: Option | string;
12
+ data?: Option[] | string[];
13
+ placeholder?: string;
14
+ arrow?: boolean;
15
+ onChange?: (value: any, item: any) => void;
16
+ onSearch?: (value: string) => void;
17
+ searchFn?: (value: string) => void;
18
+ onScroll?: (e: any) => void;
19
+ loading?: boolean;
20
+ onItemAdded?: (item: any) => void;
21
+ size?: Size;
22
+ variant?: Variant;
23
+ width?: string | number | null;
24
+ allowCustomValue?: boolean;
25
+ searchable?: boolean;
26
+ clearable?: boolean;
27
+ label?: string;
28
+ description?: string;
29
+ required?: boolean;
30
+ error?: string;
31
+ openOnFocus?: boolean;
32
+ renderOption?: (item: Option | string) => React.ReactNode;
33
+ actionComponent?: JSX.Element;
34
+ focused?: boolean;
35
+ grouped?: boolean;
36
+ TooltipContent?: React.FC<{
37
+ data: any;
38
+ }>;
39
+ DropDownProps?: any;
40
+ }
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.1.59",
3
+ "version": "1.1.60",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",