fis-component 0.0.49 → 0.0.51
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/cjs/index.js +9 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/Combobox/types.d.ts +1 -1
- package/dist/cjs/types/src/components/Pagination/styles.d.ts +2 -0
- package/dist/cjs/types/src/components/Portal/index.d.ts +2 -1
- package/dist/cjs/types/src/components/Select/types.d.ts +2 -1
- package/dist/esm/index.js +9 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/Combobox/types.d.ts +1 -1
- package/dist/esm/types/src/components/Pagination/styles.d.ts +2 -0
- package/dist/esm/types/src/components/Portal/index.d.ts +2 -1
- package/dist/esm/types/src/components/Select/types.d.ts +2 -1
- package/dist/index.d.ts +3 -2
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ export declare const SelectPageSizeSC: import("styled-components/dist/types").IS
|
|
|
11
11
|
positive?: boolean;
|
|
12
12
|
multiDisplayText?: (count: number) => string;
|
|
13
13
|
renderOption?: (option: import("../Select/types").SelectOption) => React.ReactNode;
|
|
14
|
+
portal?: boolean;
|
|
14
15
|
} & import("../Select/types").SingleSelect<string> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
|
|
15
16
|
ref?: ((instance: HTMLInputElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
16
17
|
}) | (Omit<Partial<import("../Input/InputLabel").InputLabelProps> & Omit<import("../MenuSelect/types").MenuProps, "size" | "onClickMenu" | "groups" | "multi" | "selectedValues" | "onChangeSelected"> & Omit<import("../SelectItem").SelectFieldProps, "onChange" | "value"> & {
|
|
@@ -20,6 +21,7 @@ export declare const SelectPageSizeSC: import("styled-components/dist/types").IS
|
|
|
20
21
|
positive?: boolean;
|
|
21
22
|
multiDisplayText?: (count: number) => string;
|
|
22
23
|
renderOption?: (option: import("../Select/types").SelectOption) => React.ReactNode;
|
|
24
|
+
portal?: boolean;
|
|
23
25
|
} & import("../Select/types").MultiSelect<string> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
|
|
24
26
|
ref?: ((instance: HTMLInputElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
25
27
|
}), import("styled-components/dist/types").BaseObject>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Select/types").SelectProps<string> & import("react").RefAttributes<HTMLInputElement>>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -9,6 +9,7 @@ type Props = {
|
|
|
9
9
|
* The `container` will have the portal children appended to it.
|
|
10
10
|
*/
|
|
11
11
|
container?: HTMLElement | null;
|
|
12
|
+
portal?: boolean;
|
|
12
13
|
};
|
|
13
|
-
declare function Portal(
|
|
14
|
+
declare function Portal({ container, children, portal }: Props): string | number | true | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null;
|
|
14
15
|
export { Portal };
|
|
@@ -10,7 +10,7 @@ export interface SelectOption {
|
|
|
10
10
|
}[];
|
|
11
11
|
}
|
|
12
12
|
export type SingleSelect<T> = {
|
|
13
|
-
multi
|
|
13
|
+
multi?: boolean;
|
|
14
14
|
value: T;
|
|
15
15
|
onChange: (value: T) => void;
|
|
16
16
|
displayValue?: (value: SelectOption) => string;
|
|
@@ -28,4 +28,5 @@ export type SelectProps<T> = Partial<InputLabelProps> & Omit<MenuProps, "groups"
|
|
|
28
28
|
positive?: boolean;
|
|
29
29
|
multiDisplayText?: (count: number) => string;
|
|
30
30
|
renderOption?: (option: SelectOption) => React.ReactNode;
|
|
31
|
+
portal?: boolean;
|
|
31
32
|
} & (SingleSelect<T> | MultiSelect<T>);
|
package/dist/index.d.ts
CHANGED
|
@@ -3989,7 +3989,7 @@ interface ComboboxOption {
|
|
|
3989
3989
|
}[];
|
|
3990
3990
|
}
|
|
3991
3991
|
type SingleSelect$1<T> = {
|
|
3992
|
-
multi
|
|
3992
|
+
multi?: boolean;
|
|
3993
3993
|
value: T;
|
|
3994
3994
|
onChange: (value: T) => void;
|
|
3995
3995
|
displayValue?: (value: ComboboxOption) => string;
|
|
@@ -4226,7 +4226,7 @@ interface SelectOption {
|
|
|
4226
4226
|
}[];
|
|
4227
4227
|
}
|
|
4228
4228
|
type SingleSelect<T> = {
|
|
4229
|
-
multi
|
|
4229
|
+
multi?: boolean;
|
|
4230
4230
|
value: T;
|
|
4231
4231
|
onChange: (value: T) => void;
|
|
4232
4232
|
displayValue?: (value: SelectOption) => string;
|
|
@@ -4244,6 +4244,7 @@ type SelectProps<T> = Partial<InputLabelProps> & Omit<MenuProps, "groups" | "mul
|
|
|
4244
4244
|
positive?: boolean;
|
|
4245
4245
|
multiDisplayText?: (count: number) => string;
|
|
4246
4246
|
renderOption?: (option: SelectOption) => React.ReactNode;
|
|
4247
|
+
portal?: boolean;
|
|
4247
4248
|
} & (SingleSelect<T> | MultiSelect<T>);
|
|
4248
4249
|
|
|
4249
4250
|
declare const FISSelect: React$1.ForwardRefExoticComponent<SelectProps<string> & React$1.RefAttributes<HTMLInputElement>>;
|