fis-component 0.0.50 → 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.
@@ -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(props: Props): import("react").ReactPortal | null;
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 };
@@ -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
@@ -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>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "homepage": "https://vietdiemtran.github.io/fis-component/",
3
3
  "name": "fis-component",
4
- "version": "0.0.50",
4
+ "version": "0.0.51",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.js",