Skip to content

Commit 6cccc9c

Browse files
authored
Tableview DnD: add headers (#4307)
1 parent 83677f9 commit 6cccc9c

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

packages/@react-spectrum/table/src/DragPreview.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Adobe. All rights reserved.
2+
* Copyright 2023 Adobe. All rights reserved.
33
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License. You may obtain a copy
55
* of the License at http://www.apache.org/licenses/LICENSE-2.0
@@ -9,6 +9,7 @@
99
* OF ANY KIND, either express or implied. See the License for the specific language
1010
* governing permissions and limitations under the License.
1111
*/
12+
1213
import {classNames} from '@react-spectrum/utils';
1314
import {Direction, Node} from '@react-types/shared';
1415
import {Flex} from '@react-spectrum/layout';

packages/@react-spectrum/table/src/InsertionIndicator.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/*
2+
* Copyright 2023 Adobe. All rights reserved.
3+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License. You may obtain a copy
5+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under
8+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9+
* OF ANY KIND, either express or implied. See the License for the specific language
10+
* governing permissions and limitations under the License.
11+
*/
12+
113
import {classNames} from '@react-spectrum/utils';
214
import {FocusableElement, ItemDropTarget} from '@react-types/shared';
315
import React, {DOMAttributes, HTMLAttributes, useRef} from 'react';

packages/@react-spectrum/table/src/RootDropIndicator.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/*
2+
* Copyright 2023 Adobe. All rights reserved.
3+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License. You may obtain a copy
5+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under
8+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9+
* OF ANY KIND, either express or implied. See the License for the specific language
10+
* governing permissions and limitations under the License.
11+
*/
12+
113
import React, {useRef} from 'react';
214
import {useTableContext} from './TableView';
315
import {useVisuallyHidden} from '@react-aria/visually-hidden';

0 commit comments

Comments
 (0)