@rc-component/tree-select 1.1.2 → 1.1.3

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.
@@ -60,9 +60,7 @@ export interface TreeSelectProps<ValueType = any, OptionType extends DataNode =
60
60
  switcherIcon?: IconType;
61
61
  treeMotion?: any;
62
62
  }
63
- declare const GenericTreeSelect: (<ValueType = any, OptionType extends DataNode = DataNode>(props: TreeSelectProps<ValueType, OptionType> & {
64
- children?: React.ReactNode;
65
- } & {
63
+ declare const GenericTreeSelect: (<ValueType = any, OptionType extends DataNode = DataNode>(props: React.PropsWithChildren<TreeSelectProps<ValueType, OptionType>> & {
66
64
  ref?: React.Ref<BaseSelectRef>;
67
65
  }) => React.ReactElement) & {
68
66
  TreeNode: typeof TreeNode;
package/es/TreeSelect.js CHANGED
@@ -1,6 +1,6 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
  import { BaseSelect } from '@rc-component/select';
3
- import useId from "@rc-component/select/es/hooks/useId";
3
+ import useId from "@rc-component/util/es/hooks/useId";
4
4
  import { conductCheck } from "@rc-component/tree/es/utils/conductUtil";
5
5
  import useMergedState from "@rc-component/util/es/hooks/useMergedState";
6
6
  import * as React from 'react';
@@ -60,9 +60,7 @@ export interface TreeSelectProps<ValueType = any, OptionType extends DataNode =
60
60
  switcherIcon?: IconType;
61
61
  treeMotion?: any;
62
62
  }
63
- declare const GenericTreeSelect: (<ValueType = any, OptionType extends DataNode = DataNode>(props: TreeSelectProps<ValueType, OptionType> & {
64
- children?: React.ReactNode;
65
- } & {
63
+ declare const GenericTreeSelect: (<ValueType = any, OptionType extends DataNode = DataNode>(props: React.PropsWithChildren<TreeSelectProps<ValueType, OptionType>> & {
66
64
  ref?: React.Ref<BaseSelectRef>;
67
65
  }) => React.ReactElement) & {
68
66
  TreeNode: typeof TreeNode;
package/lib/TreeSelect.js CHANGED
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _select = require("@rc-component/select");
8
- var _useId = _interopRequireDefault(require("@rc-component/select/lib/hooks/useId"));
8
+ var _useId = _interopRequireDefault(require("@rc-component/util/lib/hooks/useId"));
9
9
  var _conductUtil = require("@rc-component/tree/lib/utils/conductUtil");
10
10
  var _useMergedState = _interopRequireDefault(require("@rc-component/util/lib/hooks/useMergedState"));
11
11
  var React = _interopRequireWildcard(require("react"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rc-component/tree-select",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "tree-select ui component for react",
5
5
  "keywords": [
6
6
  "react",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "classnames": "2.x",
48
- "@rc-component/select": "~1.0.2",
48
+ "@rc-component/select": "~1.0.7",
49
49
  "@rc-component/tree": "~1.0.1",
50
50
  "@rc-component/util": "^1.2.1"
51
51
  },