beca-ui 2.0.20-beta.30 → 2.0.20-beta.32

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,9 +1,8 @@
1
1
  import { OptionProps as AntOptionProps } from "rc-select/lib/Option";
2
- import { SelectProps } from "../Select/Select.types";
3
2
  import { FormItemProps } from "../Form";
3
+ import { SelectProps } from "..";
4
4
  export interface OptionProps extends AntOptionProps {
5
5
  }
6
- export type PopupPosition = "relative" | "fixed";
7
6
  export interface SelectFieldProps {
8
7
  selectProps: SelectProps;
9
8
  formItemProps?: FormItemProps;
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
2
  import { TreeNodeProps, TreeSelectProps } from ".";
3
- declare const TreeSelect: React.FunctionComponent<TreeSelectProps> & {
4
- TreeNode: React.FunctionComponent<TreeNodeProps>;
3
+ import { BaseSelectRef } from "..";
4
+ declare const TreeSelect: React.ForwardRefExoticComponent<React.PropsWithoutRef<TreeSelectProps> & React.RefAttributes<BaseSelectRef>> & {
5
+ TreeNode: React.FC<TreeNodeProps>;
5
6
  };
6
7
  export declare const TreeNode: React.FunctionComponent<TreeNodeProps>;
7
8
  export default TreeSelect;
@@ -3,6 +3,7 @@ import { Key } from "react";
3
3
  import { PopupPosition } from "..";
4
4
  export interface TreeSelectProps extends AntTreeSelectProps {
5
5
  position?: PopupPosition;
6
+ searchByTitleAndValue?: boolean;
6
7
  }
7
8
  export interface TreeNodeProps extends AntTreeNodeProps {
8
9
  value: Key;
@@ -0,0 +1,3 @@
1
+ import { TreeSelectFieldProps } from "..";
2
+ declare const TreeSelectField: (props: TreeSelectFieldProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default TreeSelectField;
@@ -0,0 +1,7 @@
1
+ import { FormItemProps } from "../Form";
2
+ import { TreeSelectProps } from "..";
3
+ export interface TreeSelectFieldProps {
4
+ selectProps: TreeSelectProps;
5
+ formItemProps?: FormItemProps;
6
+ isAutoComplete?: boolean;
7
+ }
@@ -0,0 +1,2 @@
1
+ export { default as TreeSelectField } from "./TreeSelectField";
2
+ export * from "./TreeSelectField.types";
@@ -32,7 +32,6 @@ export * from "./Tooltip";
32
32
  export * from "./Content";
33
33
  export * from "./DatePicker";
34
34
  export * from "./TimePicker";
35
- export * from "./TreeSelect";
36
35
  export * from "./Upload";
37
36
  export * from "./Space";
38
37
  export * from "./Skeleton";
@@ -45,7 +44,6 @@ export * from "./Divider";
45
44
  export * from "./Statistic";
46
45
  export * from "./ConfigProvider";
47
46
  export * from "./Steps";
48
- export * from "./Tree";
49
47
  export * from "./Layout";
50
48
  export * from "./Breadcrumb";
51
49
  export * from "./Progress";
@@ -74,3 +72,6 @@ export * from "./Tour";
74
72
  export * from "./App";
75
73
  export * from "./ScrollView";
76
74
  export * from "./Mentions";
75
+ export * from "./Tree";
76
+ export * from "./TreeSelect";
77
+ export * from "./TreeSelectField";
@@ -1,5 +1,5 @@
1
1
  type DeviceType = "Chrome" | "Firefox" | "Safari";
2
- export declare function useDevice(): {
2
+ export declare function useBecaDevice(): {
3
3
  os: DeviceType;
4
4
  isMobileApp: boolean;
5
5
  };