Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update snapshot #3069

Merged
merged 4 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"@types/lodash": "4.14.182",
"@types/node": "^17.0.21",
"@types/raf": "^3.4.0",
"@types/react": "^18.2.0",
"@types/react": "~18.2.0",
"@types/react-dom": "^18.2.1",
"@types/react-is": "^18.2.0",
"@types/react-transition-group": "^4.4.2",
Expand Down
6 changes: 3 additions & 3 deletions src/tree-select/TreeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import SelectInput, { SelectInputProps } from '../select-input/SelectInput';
import { usePersistFn } from '../hooks/usePersistFn';
import useSwitch from '../hooks/useSwitch';
import noop from '../_util/noop';
import { useTreeSelectUtils } from './useTreeSelectUtils';
import { useTreeSelectUtils } from './hooks/useTreeSelectUtils';
import { SelectArrow } from './SelectArrow';
import { useTreeSelectPassThroughProps } from './useTreeSelectPassthoughProps';
import { useTreeSelectLocale } from './useTreeSelectLocale';
import { useTreeSelectPassThroughProps } from './hooks/useTreeSelectPassthroughProps';
import { useTreeSelectLocale } from './hooks/useTreeSelectLocale';
import { treeSelectDefaultProps } from './defaultProps';
import parseTNode from '../_util/parseTNode';
import useDefaultProps from '../hooks/useDefaultProps';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import type { TreeSelectProps } from './TreeSelect';
import { useLocaleReceiver } from '../locale/LocalReceiver';
import useConfig from '../hooks/useConfig';
import type { TreeSelectProps } from '../TreeSelect';
import { useLocaleReceiver } from '../../locale/LocalReceiver';
import useConfig from '../../hooks/useConfig';

export const useTreeSelectLocale = (props: TreeSelectProps) => {
const { classPrefix } = useConfig();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pick from 'lodash/pick';
import classNames from 'classnames';
import useConfig from '../hooks/useConfig';
import type { TreeSelectProps } from './TreeSelect';
import type { SelectInputProps } from '../select-input';
import useConfig from '../../hooks/useConfig';
import type { TreeSelectProps } from '../TreeSelect';
import type { SelectInputProps } from '../../select-input';

const SelectInputPassthroughPropsKey: Array<keyof SelectInputProps> = [
'multiple',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { ElementRef, MutableRefObject, useMemo } from 'react';
import type { TreeSelectValue } from './type';
import Tree, { TreeNodeValue } from '../tree';
import TreeStore from '../_common/js/tree-v1/tree-store';
import { usePersistFn } from '../hooks/usePersistFn';
import { treeSelectDefaultProps } from './defaultProps';
import type { TreeSelectValue } from '../type';
import Tree, { TreeNodeValue } from '../../tree';
import TreeStore from '../../_common/js/tree-v1/tree-store';
import { usePersistFn } from '../../hooks/usePersistFn';
import { treeSelectDefaultProps } from '../defaultProps';

import type { NodeOptions, TreeSelectProps } from './TreeSelect';
import type { TypeTreeNodeData } from '../_common/js/tree-v1/types';
import type { NodeOptions, TreeSelectProps } from '../TreeSelect';
import type { TypeTreeNodeData } from '../../_common/js/tree-v1/types';

export const useTreeSelectUtils = (
{ data, treeProps, valueType }: TreeSelectProps,
Expand Down
78 changes: 35 additions & 43 deletions test/snap/__snapshots__/csr.test.jsx.snap

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions test/snap/__snapshots__/ssr.test.jsx.snap

Large diffs are not rendered by default.

Loading