@rc-component/tree-select 1.3.0-alpha.0 → 1.3.0

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,4 +1,5 @@
1
1
  import type { BaseSelectPropsWithoutPrivate, BaseSelectRef } from '@rc-component/select';
2
+ import type { BaseSelectSemanticName } from '@rc-component/select/lib/BaseSelect';
2
3
  import type { IconType } from '@rc-component/tree/lib/interface';
3
4
  import type { ExpandAction } from '@rc-component/tree/lib/Tree';
4
5
  import * as React from 'react';
@@ -6,7 +7,7 @@ import TreeNode from './TreeNode';
6
7
  import type { CheckedStrategy } from './utils/strategyUtil';
7
8
  import { SHOW_ALL, SHOW_CHILD, SHOW_PARENT } from './utils/strategyUtil';
8
9
  import type { SafeKey, DataNode, SimpleModeConfig, ChangeEventExtra, FieldNames, LegacyDataNode } from './interface';
9
- export type SemanticName = 'input' | 'prefix' | 'suffix';
10
+ export type SemanticName = BaseSelectSemanticName;
10
11
  export type PopupSemantic = 'item' | 'itemTitle';
11
12
  export interface SearchConfig {
12
13
  searchValue?: string;
package/es/TreeSelect.js CHANGED
@@ -492,16 +492,8 @@ const TreeSelect = /*#__PURE__*/React.forwardRef((props, ref) => {
492
492
  }, /*#__PURE__*/React.createElement(BaseSelect, _extends({
493
493
  ref: ref
494
494
  }, restProps, {
495
- classNames: {
496
- prefix: treeSelectClassNames?.prefix,
497
- suffix: treeSelectClassNames?.suffix,
498
- input: treeSelectClassNames?.input
499
- },
500
- styles: {
501
- prefix: styles?.prefix,
502
- suffix: styles?.suffix,
503
- input: styles?.input
504
- }
495
+ classNames: treeSelectClassNames,
496
+ styles: styles
505
497
  // >>> MISC
506
498
  ,
507
499
  id: mergedId,
@@ -1,4 +1,5 @@
1
1
  import type { BaseSelectPropsWithoutPrivate, BaseSelectRef } from '@rc-component/select';
2
+ import type { BaseSelectSemanticName } from '@rc-component/select/lib/BaseSelect';
2
3
  import type { IconType } from '@rc-component/tree/lib/interface';
3
4
  import type { ExpandAction } from '@rc-component/tree/lib/Tree';
4
5
  import * as React from 'react';
@@ -6,7 +7,7 @@ import TreeNode from './TreeNode';
6
7
  import type { CheckedStrategy } from './utils/strategyUtil';
7
8
  import { SHOW_ALL, SHOW_CHILD, SHOW_PARENT } from './utils/strategyUtil';
8
9
  import type { SafeKey, DataNode, SimpleModeConfig, ChangeEventExtra, FieldNames, LegacyDataNode } from './interface';
9
- export type SemanticName = 'input' | 'prefix' | 'suffix';
10
+ export type SemanticName = BaseSelectSemanticName;
10
11
  export type PopupSemantic = 'item' | 'itemTitle';
11
12
  export interface SearchConfig {
12
13
  searchValue?: string;
package/lib/TreeSelect.js CHANGED
@@ -501,16 +501,8 @@ const TreeSelect = /*#__PURE__*/React.forwardRef((props, ref) => {
501
501
  }, /*#__PURE__*/React.createElement(_select.BaseSelect, _extends({
502
502
  ref: ref
503
503
  }, restProps, {
504
- classNames: {
505
- prefix: treeSelectClassNames?.prefix,
506
- suffix: treeSelectClassNames?.suffix,
507
- input: treeSelectClassNames?.input
508
- },
509
- styles: {
510
- prefix: styles?.prefix,
511
- suffix: styles?.suffix,
512
- input: styles?.input
513
- }
504
+ classNames: treeSelectClassNames,
505
+ styles: styles
514
506
  // >>> MISC
515
507
  ,
516
508
  id: mergedId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rc-component/tree-select",
3
- "version": "1.3.0-alpha.0",
3
+ "version": "1.3.0",
4
4
  "description": "tree-select ui component for react",
5
5
  "keywords": [
6
6
  "react",
@@ -44,7 +44,7 @@
44
44
  "*": "prettier --write --ignore-unknown"
45
45
  },
46
46
  "dependencies": {
47
- "@rc-component/select": "~1.2.0-alpha.0",
47
+ "@rc-component/select": "~1.2.0",
48
48
  "@rc-component/tree": "~1.0.1",
49
49
  "@rc-component/util": "^1.3.0",
50
50
  "clsx": "^2.1.1"