@react-spectrum/table 3.17.10 → 3.18.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.
- package/dist/import.mjs +2 -6
- package/dist/main.js +8 -12
- package/dist/main.js.map +1 -1
- package/dist/module.js +2 -6
- package/dist/module.js.map +1 -1
- package/dist/types/src/index.d.ts +3 -0
- package/package.json +14 -52
- package/src/index.ts +3 -18
- package/dist/DragPreview.main.js +0 -54
- package/dist/DragPreview.main.js.map +0 -1
- package/dist/DragPreview.mjs +0 -49
- package/dist/DragPreview.module.js +0 -49
- package/dist/DragPreview.module.js.map +0 -1
- package/dist/InsertionIndicator.main.js +0 -64
- package/dist/InsertionIndicator.main.js.map +0 -1
- package/dist/InsertionIndicator.mjs +0 -59
- package/dist/InsertionIndicator.module.js +0 -59
- package/dist/InsertionIndicator.module.js.map +0 -1
- package/dist/Nubbin.main.js +0 -62
- package/dist/Nubbin.main.js.map +0 -1
- package/dist/Nubbin.mjs +0 -53
- package/dist/Nubbin.module.js +0 -53
- package/dist/Nubbin.module.js.map +0 -1
- package/dist/Resizer.main.js +0 -150
- package/dist/Resizer.main.js.map +0 -1
- package/dist/Resizer.mjs +0 -144
- package/dist/Resizer.module.js +0 -144
- package/dist/Resizer.module.js.map +0 -1
- package/dist/RootDropIndicator.main.js +0 -57
- package/dist/RootDropIndicator.main.js.map +0 -1
- package/dist/RootDropIndicator.mjs +0 -48
- package/dist/RootDropIndicator.module.js +0 -48
- package/dist/RootDropIndicator.module.js.map +0 -1
- package/dist/TableView.main.js +0 -49
- package/dist/TableView.main.js.map +0 -1
- package/dist/TableView.mjs +0 -40
- package/dist/TableView.module.js +0 -40
- package/dist/TableView.module.js.map +0 -1
- package/dist/TableViewBase.main.js +0 -1239
- package/dist/TableViewBase.main.js.map +0 -1
- package/dist/TableViewBase.mjs +0 -1232
- package/dist/TableViewBase.module.js +0 -1232
- package/dist/TableViewBase.module.js.map +0 -1
- package/dist/TableViewLayout.main.js +0 -101
- package/dist/TableViewLayout.main.js.map +0 -1
- package/dist/TableViewLayout.mjs +0 -96
- package/dist/TableViewLayout.module.js +0 -96
- package/dist/TableViewLayout.module.js.map +0 -1
- package/dist/TableViewWrapper.main.js +0 -45
- package/dist/TableViewWrapper.main.js.map +0 -1
- package/dist/TableViewWrapper.mjs +0 -36
- package/dist/TableViewWrapper.module.js +0 -36
- package/dist/TableViewWrapper.module.js.map +0 -1
- package/dist/TreeGridTableView.main.js +0 -49
- package/dist/TreeGridTableView.main.js.map +0 -1
- package/dist/TreeGridTableView.mjs +0 -40
- package/dist/TreeGridTableView.module.js +0 -40
- package/dist/TreeGridTableView.module.js.map +0 -1
- package/dist/ar-AE.main.js +0 -14
- package/dist/ar-AE.main.js.map +0 -1
- package/dist/ar-AE.mjs +0 -16
- package/dist/ar-AE.module.js +0 -16
- package/dist/ar-AE.module.js.map +0 -1
- package/dist/bg-BG.main.js +0 -14
- package/dist/bg-BG.main.js.map +0 -1
- package/dist/bg-BG.mjs +0 -16
- package/dist/bg-BG.module.js +0 -16
- package/dist/bg-BG.module.js.map +0 -1
- package/dist/cs-CZ.main.js +0 -14
- package/dist/cs-CZ.main.js.map +0 -1
- package/dist/cs-CZ.mjs +0 -16
- package/dist/cs-CZ.module.js +0 -16
- package/dist/cs-CZ.module.js.map +0 -1
- package/dist/da-DK.main.js +0 -14
- package/dist/da-DK.main.js.map +0 -1
- package/dist/da-DK.mjs +0 -16
- package/dist/da-DK.module.js +0 -16
- package/dist/da-DK.module.js.map +0 -1
- package/dist/de-DE.main.js +0 -14
- package/dist/de-DE.main.js.map +0 -1
- package/dist/de-DE.mjs +0 -16
- package/dist/de-DE.module.js +0 -16
- package/dist/de-DE.module.js.map +0 -1
- package/dist/el-GR.main.js +0 -14
- package/dist/el-GR.main.js.map +0 -1
- package/dist/el-GR.mjs +0 -16
- package/dist/el-GR.module.js +0 -16
- package/dist/el-GR.module.js.map +0 -1
- package/dist/en-US.main.js +0 -14
- package/dist/en-US.main.js.map +0 -1
- package/dist/en-US.mjs +0 -16
- package/dist/en-US.module.js +0 -16
- package/dist/en-US.module.js.map +0 -1
- package/dist/es-ES.main.js +0 -14
- package/dist/es-ES.main.js.map +0 -1
- package/dist/es-ES.mjs +0 -16
- package/dist/es-ES.module.js +0 -16
- package/dist/es-ES.module.js.map +0 -1
- package/dist/et-EE.main.js +0 -14
- package/dist/et-EE.main.js.map +0 -1
- package/dist/et-EE.mjs +0 -16
- package/dist/et-EE.module.js +0 -16
- package/dist/et-EE.module.js.map +0 -1
- package/dist/fi-FI.main.js +0 -14
- package/dist/fi-FI.main.js.map +0 -1
- package/dist/fi-FI.mjs +0 -16
- package/dist/fi-FI.module.js +0 -16
- package/dist/fi-FI.module.js.map +0 -1
- package/dist/fr-FR.main.js +0 -14
- package/dist/fr-FR.main.js.map +0 -1
- package/dist/fr-FR.mjs +0 -16
- package/dist/fr-FR.module.js +0 -16
- package/dist/fr-FR.module.js.map +0 -1
- package/dist/he-IL.main.js +0 -14
- package/dist/he-IL.main.js.map +0 -1
- package/dist/he-IL.mjs +0 -16
- package/dist/he-IL.module.js +0 -16
- package/dist/he-IL.module.js.map +0 -1
- package/dist/hr-HR.main.js +0 -14
- package/dist/hr-HR.main.js.map +0 -1
- package/dist/hr-HR.mjs +0 -16
- package/dist/hr-HR.module.js +0 -16
- package/dist/hr-HR.module.js.map +0 -1
- package/dist/hu-HU.main.js +0 -14
- package/dist/hu-HU.main.js.map +0 -1
- package/dist/hu-HU.mjs +0 -16
- package/dist/hu-HU.module.js +0 -16
- package/dist/hu-HU.module.js.map +0 -1
- package/dist/intlStrings.main.js +0 -108
- package/dist/intlStrings.main.js.map +0 -1
- package/dist/intlStrings.mjs +0 -110
- package/dist/intlStrings.module.js +0 -110
- package/dist/intlStrings.module.js.map +0 -1
- package/dist/it-IT.main.js +0 -14
- package/dist/it-IT.main.js.map +0 -1
- package/dist/it-IT.mjs +0 -16
- package/dist/it-IT.module.js +0 -16
- package/dist/it-IT.module.js.map +0 -1
- package/dist/ja-JP.main.js +0 -14
- package/dist/ja-JP.main.js.map +0 -1
- package/dist/ja-JP.mjs +0 -16
- package/dist/ja-JP.module.js +0 -16
- package/dist/ja-JP.module.js.map +0 -1
- package/dist/ko-KR.main.js +0 -14
- package/dist/ko-KR.main.js.map +0 -1
- package/dist/ko-KR.mjs +0 -16
- package/dist/ko-KR.module.js +0 -16
- package/dist/ko-KR.module.js.map +0 -1
- package/dist/lt-LT.main.js +0 -14
- package/dist/lt-LT.main.js.map +0 -1
- package/dist/lt-LT.mjs +0 -16
- package/dist/lt-LT.module.js +0 -16
- package/dist/lt-LT.module.js.map +0 -1
- package/dist/lv-LV.main.js +0 -14
- package/dist/lv-LV.main.js.map +0 -1
- package/dist/lv-LV.mjs +0 -16
- package/dist/lv-LV.module.js +0 -16
- package/dist/lv-LV.module.js.map +0 -1
- package/dist/nb-NO.main.js +0 -14
- package/dist/nb-NO.main.js.map +0 -1
- package/dist/nb-NO.mjs +0 -16
- package/dist/nb-NO.module.js +0 -16
- package/dist/nb-NO.module.js.map +0 -1
- package/dist/nl-NL.main.js +0 -14
- package/dist/nl-NL.main.js.map +0 -1
- package/dist/nl-NL.mjs +0 -16
- package/dist/nl-NL.module.js +0 -16
- package/dist/nl-NL.module.js.map +0 -1
- package/dist/pl-PL.main.js +0 -14
- package/dist/pl-PL.main.js.map +0 -1
- package/dist/pl-PL.mjs +0 -16
- package/dist/pl-PL.module.js +0 -16
- package/dist/pl-PL.module.js.map +0 -1
- package/dist/pt-BR.main.js +0 -14
- package/dist/pt-BR.main.js.map +0 -1
- package/dist/pt-BR.mjs +0 -16
- package/dist/pt-BR.module.js +0 -16
- package/dist/pt-BR.module.js.map +0 -1
- package/dist/pt-PT.main.js +0 -14
- package/dist/pt-PT.main.js.map +0 -1
- package/dist/pt-PT.mjs +0 -16
- package/dist/pt-PT.module.js +0 -16
- package/dist/pt-PT.module.js.map +0 -1
- package/dist/ro-RO.main.js +0 -14
- package/dist/ro-RO.main.js.map +0 -1
- package/dist/ro-RO.mjs +0 -16
- package/dist/ro-RO.module.js +0 -16
- package/dist/ro-RO.module.js.map +0 -1
- package/dist/ru-RU.main.js +0 -14
- package/dist/ru-RU.main.js.map +0 -1
- package/dist/ru-RU.mjs +0 -16
- package/dist/ru-RU.module.js +0 -16
- package/dist/ru-RU.module.js.map +0 -1
- package/dist/sk-SK.main.js +0 -14
- package/dist/sk-SK.main.js.map +0 -1
- package/dist/sk-SK.mjs +0 -16
- package/dist/sk-SK.module.js +0 -16
- package/dist/sk-SK.module.js.map +0 -1
- package/dist/sl-SI.main.js +0 -14
- package/dist/sl-SI.main.js.map +0 -1
- package/dist/sl-SI.mjs +0 -16
- package/dist/sl-SI.module.js +0 -16
- package/dist/sl-SI.module.js.map +0 -1
- package/dist/sr-SP.main.js +0 -14
- package/dist/sr-SP.main.js.map +0 -1
- package/dist/sr-SP.mjs +0 -16
- package/dist/sr-SP.module.js +0 -16
- package/dist/sr-SP.module.js.map +0 -1
- package/dist/sv-SE.main.js +0 -14
- package/dist/sv-SE.main.js.map +0 -1
- package/dist/sv-SE.mjs +0 -16
- package/dist/sv-SE.module.js +0 -16
- package/dist/sv-SE.module.js.map +0 -1
- package/dist/table.0cdc494a.css +0 -992
- package/dist/table.0cdc494a.css.map +0 -1
- package/dist/table.11fc8462.css +0 -220
- package/dist/table.11fc8462.css.map +0 -1
- package/dist/table_css.main.js +0 -74
- package/dist/table_css.main.js.map +0 -1
- package/dist/table_css.mjs +0 -76
- package/dist/table_css.module.js +0 -76
- package/dist/table_css.module.js.map +0 -1
- package/dist/table_vars_css.main.js +0 -197
- package/dist/table_vars_css.main.js.map +0 -1
- package/dist/table_vars_css.mjs +0 -199
- package/dist/table_vars_css.module.js +0 -199
- package/dist/table_vars_css.module.js.map +0 -1
- package/dist/tr-TR.main.js +0 -14
- package/dist/tr-TR.main.js.map +0 -1
- package/dist/tr-TR.mjs +0 -16
- package/dist/tr-TR.module.js +0 -16
- package/dist/tr-TR.module.js.map +0 -1
- package/dist/types.d.ts +0 -85
- package/dist/types.d.ts.map +0 -1
- package/dist/uk-UA.main.js +0 -14
- package/dist/uk-UA.main.js.map +0 -1
- package/dist/uk-UA.mjs +0 -16
- package/dist/uk-UA.module.js +0 -16
- package/dist/uk-UA.module.js.map +0 -1
- package/dist/zh-CN.main.js +0 -14
- package/dist/zh-CN.main.js.map +0 -1
- package/dist/zh-CN.mjs +0 -16
- package/dist/zh-CN.module.js +0 -16
- package/dist/zh-CN.module.js.map +0 -1
- package/dist/zh-TW.main.js +0 -14
- package/dist/zh-TW.main.js.map +0 -1
- package/dist/zh-TW.mjs +0 -16
- package/dist/zh-TW.module.js +0 -16
- package/dist/zh-TW.module.js.map +0 -1
- package/src/DragPreview.tsx +0 -77
- package/src/InsertionIndicator.tsx +0 -62
- package/src/Nubbin.tsx +0 -28
- package/src/Resizer.tsx +0 -137
- package/src/RootDropIndicator.tsx +0 -40
- package/src/TableView.tsx +0 -44
- package/src/TableViewBase.tsx +0 -1569
- package/src/TableViewLayout.ts +0 -102
- package/src/TableViewWrapper.tsx +0 -103
- package/src/TreeGridTableView.tsx +0 -44
- package/src/cursors/Cur_MoveHorizontal_9_9.svg +0 -10
- package/src/cursors/Cur_MoveToLeft_9_9.svg +0 -10
- package/src/cursors/Cur_MoveToRight_9_9.svg +0 -10
- package/src/table.css +0 -235
package/dist/import.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {TableView as $
|
|
2
|
-
import {Column as $gyhAV$Column, TableHeader as $e668f3d0f378a712$re_export$TableHeader, TableBody as $e668f3d0f378a712$re_export$TableBody, Section as $e668f3d0f378a712$re_export$Section, Row as $e668f3d0f378a712$re_export$Row, Cell as $e668f3d0f378a712$re_export$Cell} from "@react-stately/table";
|
|
1
|
+
import {TableView as $c9c1ffcfc6a061ee$re_export$TableView, TableHeader as $c9c1ffcfc6a061ee$re_export$TableHeader, TableBody as $c9c1ffcfc6a061ee$re_export$TableBody, Column as $c9c1ffcfc6a061ee$re_export$Column, Section as $c9c1ffcfc6a061ee$re_export$Section, Row as $c9c1ffcfc6a061ee$re_export$Row, Cell as $c9c1ffcfc6a061ee$re_export$Cell} from "@adobe/react-spectrum/TableView";
|
|
3
2
|
|
|
4
3
|
/*
|
|
5
4
|
* Copyright 2020 Adobe. All rights reserved.
|
|
@@ -14,9 +13,6 @@ import {Column as $gyhAV$Column, TableHeader as $e668f3d0f378a712$re_export$Tabl
|
|
|
14
13
|
*/ /// <reference types="css-module-types" />
|
|
15
14
|
|
|
16
15
|
|
|
17
|
-
// Override TS for Column to support spectrum specific props.
|
|
18
|
-
const $e668f3d0f378a712$export$816b5d811295e6bc = (0, $gyhAV$Column);
|
|
19
16
|
|
|
20
|
-
|
|
21
|
-
export {$e668f3d0f378a712$export$816b5d811295e6bc as Column, $9f67189e3f884740$export$b3c27e869d856b7 as TableView, $e668f3d0f378a712$re_export$TableHeader as TableHeader, $e668f3d0f378a712$re_export$TableBody as TableBody, $e668f3d0f378a712$re_export$Section as Section, $e668f3d0f378a712$re_export$Row as Row, $e668f3d0f378a712$re_export$Cell as Cell};
|
|
17
|
+
export {$c9c1ffcfc6a061ee$re_export$TableView as TableView, $c9c1ffcfc6a061ee$re_export$TableHeader as TableHeader, $c9c1ffcfc6a061ee$re_export$TableBody as TableBody, $c9c1ffcfc6a061ee$re_export$Column as Column, $c9c1ffcfc6a061ee$re_export$Section as Section, $c9c1ffcfc6a061ee$re_export$Row as Row, $c9c1ffcfc6a061ee$re_export$Cell as Cell};
|
|
22
18
|
//# sourceMappingURL=module.js.map
|
package/dist/main.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
var $
|
|
2
|
-
var $3fpzo$reactstatelytable = require("@react-stately/table");
|
|
1
|
+
var $bNsRg$adobereactspectrumTableView = require("@adobe/react-spectrum/TableView");
|
|
3
2
|
|
|
4
3
|
|
|
5
4
|
function $parcel$export(e, n, v, s) {
|
|
6
5
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
7
6
|
}
|
|
8
7
|
|
|
9
|
-
$parcel$export(module.exports, "
|
|
10
|
-
$parcel$export(module.exports, "
|
|
11
|
-
$parcel$export(module.exports, "
|
|
12
|
-
$parcel$export(module.exports, "
|
|
13
|
-
$parcel$export(module.exports, "Section", ()
|
|
14
|
-
$parcel$export(module.exports, "Row", ()
|
|
15
|
-
$parcel$export(module.exports, "Cell", ()
|
|
8
|
+
$parcel$export(module.exports, "TableView", function () { return $bNsRg$adobereactspectrumTableView.TableView; });
|
|
9
|
+
$parcel$export(module.exports, "TableHeader", function () { return $bNsRg$adobereactspectrumTableView.TableHeader; });
|
|
10
|
+
$parcel$export(module.exports, "TableBody", function () { return $bNsRg$adobereactspectrumTableView.TableBody; });
|
|
11
|
+
$parcel$export(module.exports, "Column", function () { return $bNsRg$adobereactspectrumTableView.Column; });
|
|
12
|
+
$parcel$export(module.exports, "Section", function () { return $bNsRg$adobereactspectrumTableView.Section; });
|
|
13
|
+
$parcel$export(module.exports, "Row", function () { return $bNsRg$adobereactspectrumTableView.Row; });
|
|
14
|
+
$parcel$export(module.exports, "Cell", function () { return $bNsRg$adobereactspectrumTableView.Cell; });
|
|
16
15
|
/*
|
|
17
16
|
* Copyright 2020 Adobe. All rights reserved.
|
|
18
17
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -26,8 +25,5 @@ $parcel$export(module.exports, "Cell", () => $3fpzo$reactstatelytable.Cell);
|
|
|
26
25
|
*/ /// <reference types="css-module-types" />
|
|
27
26
|
|
|
28
27
|
|
|
29
|
-
// Override TS for Column to support spectrum specific props.
|
|
30
|
-
const $4b0b515c47252574$export$816b5d811295e6bc = (0, $3fpzo$reactstatelytable.Column);
|
|
31
|
-
|
|
32
28
|
|
|
33
29
|
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/table/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {TableView, TableHeader, TableBody, Column, Section, Row, Cell} from '@adobe/react-spectrum/TableView';\n\nexport type {SpectrumColumnProps, SpectrumTableProps} from '@adobe/react-spectrum/TableView';\nexport type {TableHeaderProps, TableBodyProps, RowProps, CellProps} from 'react-stately/useTableState';\n"],"names":[],"version":3,"file":"main.js.map"}
|
package/dist/module.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {TableView as $
|
|
2
|
-
import {Column as $gyhAV$Column, TableHeader as $e668f3d0f378a712$re_export$TableHeader, TableBody as $e668f3d0f378a712$re_export$TableBody, Section as $e668f3d0f378a712$re_export$Section, Row as $e668f3d0f378a712$re_export$Row, Cell as $e668f3d0f378a712$re_export$Cell} from "@react-stately/table";
|
|
1
|
+
import {TableView as $c9c1ffcfc6a061ee$re_export$TableView, TableHeader as $c9c1ffcfc6a061ee$re_export$TableHeader, TableBody as $c9c1ffcfc6a061ee$re_export$TableBody, Column as $c9c1ffcfc6a061ee$re_export$Column, Section as $c9c1ffcfc6a061ee$re_export$Section, Row as $c9c1ffcfc6a061ee$re_export$Row, Cell as $c9c1ffcfc6a061ee$re_export$Cell} from "@adobe/react-spectrum/TableView";
|
|
3
2
|
|
|
4
3
|
/*
|
|
5
4
|
* Copyright 2020 Adobe. All rights reserved.
|
|
@@ -14,9 +13,6 @@ import {Column as $gyhAV$Column, TableHeader as $e668f3d0f378a712$re_export$Tabl
|
|
|
14
13
|
*/ /// <reference types="css-module-types" />
|
|
15
14
|
|
|
16
15
|
|
|
17
|
-
// Override TS for Column to support spectrum specific props.
|
|
18
|
-
const $e668f3d0f378a712$export$816b5d811295e6bc = (0, $gyhAV$Column);
|
|
19
16
|
|
|
20
|
-
|
|
21
|
-
export {$e668f3d0f378a712$export$816b5d811295e6bc as Column, $9f67189e3f884740$export$b3c27e869d856b7 as TableView, $e668f3d0f378a712$re_export$TableHeader as TableHeader, $e668f3d0f378a712$re_export$TableBody as TableBody, $e668f3d0f378a712$re_export$Section as Section, $e668f3d0f378a712$re_export$Row as Row, $e668f3d0f378a712$re_export$Cell as Cell};
|
|
17
|
+
export {$c9c1ffcfc6a061ee$re_export$TableView as TableView, $c9c1ffcfc6a061ee$re_export$TableHeader as TableHeader, $c9c1ffcfc6a061ee$re_export$TableBody as TableBody, $c9c1ffcfc6a061ee$re_export$Column as Column, $c9c1ffcfc6a061ee$re_export$Section as Section, $c9c1ffcfc6a061ee$re_export$Row as Row, $c9c1ffcfc6a061ee$re_export$Cell as Cell};
|
|
22
18
|
//# sourceMappingURL=module.js.map
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/table/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {TableView, TableHeader, TableBody, Column, Section, Row, Cell} from '@adobe/react-spectrum/TableView';\n\nexport type {SpectrumColumnProps, SpectrumTableProps} from '@adobe/react-spectrum/TableView';\nexport type {TableHeaderProps, TableBodyProps, RowProps, CellProps} from 'react-stately/useTableState';\n"],"names":[],"version":3,"file":"module.js.map"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { TableView, TableHeader, TableBody, Column, Section, Row, Cell } from '@adobe/react-spectrum/TableView';
|
|
2
|
+
export type { SpectrumColumnProps, SpectrumTableProps } from '@adobe/react-spectrum/TableView';
|
|
3
|
+
export type { TableHeaderProps, TableBodyProps, RowProps, CellProps } from 'react-stately/useTableState';
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/table",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.18.0",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"module": "dist/module.js",
|
|
8
8
|
"exports": {
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"./dist/types.d.ts",
|
|
12
|
-
"./
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
9
|
+
".": {
|
|
10
|
+
"source": "./src/index.ts",
|
|
11
|
+
"types": "./dist/types/src/index.d.ts",
|
|
12
|
+
"import": "./dist/import.mjs",
|
|
13
|
+
"require": "./dist/main.js"
|
|
14
|
+
},
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
16
|
},
|
|
17
|
-
"types": "dist/types.d.ts",
|
|
17
|
+
"types": "dist/types/src/index.d.ts",
|
|
18
18
|
"source": "src/index.ts",
|
|
19
19
|
"files": [
|
|
20
20
|
"dist",
|
|
@@ -24,61 +24,23 @@
|
|
|
24
24
|
"*.css"
|
|
25
25
|
],
|
|
26
26
|
"targets": {
|
|
27
|
-
"
|
|
28
|
-
"includeNodeModules": [
|
|
29
|
-
"@adobe/spectrum-css-temp"
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
"module": {
|
|
33
|
-
"includeNodeModules": [
|
|
34
|
-
"@adobe/spectrum-css-temp"
|
|
35
|
-
]
|
|
36
|
-
}
|
|
27
|
+
"types": false
|
|
37
28
|
},
|
|
38
29
|
"repository": {
|
|
39
30
|
"type": "git",
|
|
40
31
|
"url": "https://github.com/adobe/react-spectrum"
|
|
41
32
|
},
|
|
42
33
|
"dependencies": {
|
|
43
|
-
"@react-
|
|
44
|
-
"@
|
|
45
|
-
"
|
|
46
|
-
"@react-aria/interactions": "^3.27.0",
|
|
47
|
-
"@react-aria/overlays": "^3.31.1",
|
|
48
|
-
"@react-aria/selection": "^3.27.1",
|
|
49
|
-
"@react-aria/table": "^3.17.10",
|
|
50
|
-
"@react-aria/utils": "^3.33.0",
|
|
51
|
-
"@react-aria/virtualizer": "^4.1.12",
|
|
52
|
-
"@react-aria/visually-hidden": "^3.8.30",
|
|
53
|
-
"@react-spectrum/checkbox": "^3.10.6",
|
|
54
|
-
"@react-spectrum/dnd": "^3.6.4",
|
|
55
|
-
"@react-spectrum/layout": "^3.6.21",
|
|
56
|
-
"@react-spectrum/menu": "^3.22.10",
|
|
57
|
-
"@react-spectrum/progress": "^3.7.22",
|
|
58
|
-
"@react-spectrum/tooltip": "^3.8.1",
|
|
59
|
-
"@react-spectrum/utils": "^3.12.11",
|
|
60
|
-
"@react-stately/flags": "^3.1.2",
|
|
61
|
-
"@react-stately/layout": "^4.5.3",
|
|
62
|
-
"@react-stately/table": "^3.15.3",
|
|
63
|
-
"@react-stately/virtualizer": "^4.4.5",
|
|
64
|
-
"@react-types/grid": "^3.3.7",
|
|
65
|
-
"@react-types/shared": "^3.33.0",
|
|
66
|
-
"@react-types/table": "^3.13.5",
|
|
67
|
-
"@spectrum-icons/ui": "^3.6.22",
|
|
68
|
-
"@swc/helpers": "^0.5.0"
|
|
69
|
-
},
|
|
70
|
-
"devDependencies": {
|
|
71
|
-
"@adobe/spectrum-css-temp": "3.0.0-alpha.1",
|
|
72
|
-
"@react-aria/dnd": "^3.1.0",
|
|
73
|
-
"@react-stately/dnd": "^3.1.0"
|
|
34
|
+
"@adobe/react-spectrum": "3.47.0",
|
|
35
|
+
"@swc/helpers": "^0.5.0",
|
|
36
|
+
"react-stately": "3.46.0"
|
|
74
37
|
},
|
|
75
38
|
"peerDependencies": {
|
|
76
|
-
"@react-spectrum/provider": "^3.0.0",
|
|
77
39
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
|
|
78
40
|
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
|
|
79
41
|
},
|
|
80
42
|
"publishConfig": {
|
|
81
43
|
"access": "public"
|
|
82
44
|
},
|
|
83
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
|
|
84
46
|
}
|
package/src/index.ts
CHANGED
|
@@ -12,22 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
/// <reference types="css-module-types" />
|
|
14
14
|
|
|
15
|
-
export {TableView} from '
|
|
16
|
-
import {Column} from '@react-stately/table';
|
|
17
|
-
import {JSX} from 'react';
|
|
18
|
-
import {SpectrumColumnProps} from '@react-types/table';
|
|
15
|
+
export {TableView, TableHeader, TableBody, Column, Section, Row, Cell} from '@adobe/react-spectrum/TableView';
|
|
19
16
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export {SpectrumColumn as Column};
|
|
23
|
-
|
|
24
|
-
export {
|
|
25
|
-
TableHeader,
|
|
26
|
-
TableBody,
|
|
27
|
-
Section,
|
|
28
|
-
Row,
|
|
29
|
-
Cell
|
|
30
|
-
} from '@react-stately/table';
|
|
31
|
-
|
|
32
|
-
export type {SpectrumColumnProps, TableHeaderProps, TableBodyProps, RowProps, CellProps} from '@react-types/table';
|
|
33
|
-
export type {SpectrumTableProps} from './TableViewWrapper';
|
|
17
|
+
export type {SpectrumColumnProps, SpectrumTableProps} from '@adobe/react-spectrum/TableView';
|
|
18
|
+
export type {TableHeaderProps, TableBodyProps, RowProps, CellProps} from 'react-stately/useTableState';
|
package/dist/DragPreview.main.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
require("./table.0cdc494a.css");
|
|
2
|
-
var $982885d0a34882ea$exports = require("./table_vars_css.main.js");
|
|
3
|
-
require("./table.11fc8462.css");
|
|
4
|
-
var $4afcd54cfd94dbb9$exports = require("./table_css.main.js");
|
|
5
|
-
var $4Sj2U$reactspectrumutils = require("@react-spectrum/utils");
|
|
6
|
-
var $4Sj2U$reactspectrumlayout = require("@react-spectrum/layout");
|
|
7
|
-
var $4Sj2U$react = require("react");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function $parcel$interopDefault(a) {
|
|
11
|
-
return a && a.__esModule ? a.default : a;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function $parcel$export(e, n, v, s) {
|
|
15
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
$parcel$export(module.exports, "DragPreview", () => $f65d44d222cc509b$export$905ab40ac2179daa);
|
|
19
|
-
/*
|
|
20
|
-
* Copyright 2023 Adobe. All rights reserved.
|
|
21
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
22
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
23
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
24
|
-
*
|
|
25
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
26
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
27
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
28
|
-
* governing permissions and limitations under the License.
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
function $f65d44d222cc509b$export$905ab40ac2179daa(props) {
|
|
35
|
-
let { itemText: itemText, itemCount: itemCount, height: height, maxWidth: maxWidth } = props;
|
|
36
|
-
let isDraggingMultiple = itemCount > 1;
|
|
37
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($4Sj2U$react))).createElement((0, $4Sj2U$reactspectrumlayout.Flex), {
|
|
38
|
-
justifyContent: "space-between",
|
|
39
|
-
height: height,
|
|
40
|
-
maxWidth: maxWidth,
|
|
41
|
-
UNSAFE_className: (0, $4Sj2U$reactspectrumutils.classNames)((0, ($parcel$interopDefault($982885d0a34882ea$exports))), 'spectrum-Table-row', (0, $4Sj2U$reactspectrumutils.classNames)((0, ($parcel$interopDefault($4afcd54cfd94dbb9$exports))), 'react-spectrum-Table-row', 'react-spectrum-Table-row-dragPreview', {
|
|
42
|
-
'react-spectrum-Table-row-dragPreview--multiple': isDraggingMultiple
|
|
43
|
-
}))
|
|
44
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($4Sj2U$react))).createElement("div", {
|
|
45
|
-
className: (0, $4Sj2U$reactspectrumutils.classNames)((0, ($parcel$interopDefault($982885d0a34882ea$exports))), 'spectrum-Table-cell', (0, $4Sj2U$reactspectrumutils.classNames)((0, ($parcel$interopDefault($4afcd54cfd94dbb9$exports))), 'react-spectrum-Table-cell'))
|
|
46
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($4Sj2U$react))).createElement("span", {
|
|
47
|
-
className: (0, $4Sj2U$reactspectrumutils.classNames)((0, ($parcel$interopDefault($982885d0a34882ea$exports))), 'spectrum-Table-cellContents')
|
|
48
|
-
}, itemText)), isDraggingMultiple && /*#__PURE__*/ (0, ($parcel$interopDefault($4Sj2U$react))).createElement("div", {
|
|
49
|
-
className: (0, $4Sj2U$reactspectrumutils.classNames)((0, ($parcel$interopDefault($4afcd54cfd94dbb9$exports))), 'react-spectrum-Table-row-badge')
|
|
50
|
-
}, itemCount));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
//# sourceMappingURL=DragPreview.main.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAeM,SAAS,0CAAY,KAAuB;IACjD,IAAI,YACF,QAAQ,aACR,SAAS,UACT,MAAM,YACN,QAAQ,EACT,GAAG;IACJ,IAAI,qBAAqB,YAAY;IACrC,qBACE,0DAAC,CAAA,GAAA,+BAAG;QACF,gBAAe;QACf,QAAQ;QACR,UAAU;QACV,kBACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,GACL,sBACA,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAc,GACd,4BACA,wCACA;YAAC,kDAAkD;QAAkB;qBAI3E,0DAAC;QACC,WACA,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,GACL,uBACA,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAc,GACd;qBAIJ,0DAAC;QACC,WACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,GACL;OAGH,YAGJ,oCACC,0DAAC;QAAI,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAc,GAAG;OAAoC;AAIxF","sources":["packages/@react-spectrum/table/src/DragPreview.tsx"],"sourcesContent":["/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames} from '@react-spectrum/utils';\nimport {Flex} from '@react-spectrum/layout';\nimport React, {ReactNode} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/table/vars.css';\nimport stylesOverrides from './table.css';\n\ninterface DragPreviewProps {\n itemText: string,\n itemCount: number,\n height: number,\n maxWidth: number\n}\n\nexport function DragPreview(props: DragPreviewProps): ReactNode {\n let {\n itemText,\n itemCount,\n height,\n maxWidth\n } = props;\n let isDraggingMultiple = itemCount > 1;\n return (\n <Flex\n justifyContent=\"space-between\"\n height={height}\n maxWidth={maxWidth}\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-Table-row',\n classNames(\n stylesOverrides,\n 'react-spectrum-Table-row',\n 'react-spectrum-Table-row-dragPreview',\n {'react-spectrum-Table-row-dragPreview--multiple': isDraggingMultiple}\n )\n )\n }>\n <div\n className={\n classNames(\n styles,\n 'spectrum-Table-cell',\n classNames(\n stylesOverrides,\n 'react-spectrum-Table-cell'\n )\n )\n }>\n <span\n className={\n classNames(\n styles,\n 'spectrum-Table-cellContents'\n )\n }>\n {itemText}\n </span>\n </div>\n {isDraggingMultiple &&\n <div className={classNames(stylesOverrides, 'react-spectrum-Table-row-badge')}>{itemCount}</div>\n }\n </Flex>\n );\n}\n"],"names":[],"version":3,"file":"DragPreview.main.js.map"}
|
package/dist/DragPreview.mjs
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import "./table.0cdc494a.css";
|
|
2
|
-
import $9Othb$table_vars_cssmodulejs from "./table_vars_css.mjs";
|
|
3
|
-
import "./table.11fc8462.css";
|
|
4
|
-
import $9Othb$table_cssmodulejs from "./table_css.mjs";
|
|
5
|
-
import {classNames as $9Othb$classNames} from "@react-spectrum/utils";
|
|
6
|
-
import {Flex as $9Othb$Flex} from "@react-spectrum/layout";
|
|
7
|
-
import $9Othb$react from "react";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function $parcel$interopDefault(a) {
|
|
11
|
-
return a && a.__esModule ? a.default : a;
|
|
12
|
-
}
|
|
13
|
-
/*
|
|
14
|
-
* Copyright 2023 Adobe. All rights reserved.
|
|
15
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
16
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
17
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
-
*
|
|
19
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
20
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
21
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
22
|
-
* governing permissions and limitations under the License.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
function $daa6ead3d9d3506a$export$905ab40ac2179daa(props) {
|
|
29
|
-
let { itemText: itemText, itemCount: itemCount, height: height, maxWidth: maxWidth } = props;
|
|
30
|
-
let isDraggingMultiple = itemCount > 1;
|
|
31
|
-
return /*#__PURE__*/ (0, $9Othb$react).createElement((0, $9Othb$Flex), {
|
|
32
|
-
justifyContent: "space-between",
|
|
33
|
-
height: height,
|
|
34
|
-
maxWidth: maxWidth,
|
|
35
|
-
UNSAFE_className: (0, $9Othb$classNames)((0, ($parcel$interopDefault($9Othb$table_vars_cssmodulejs))), 'spectrum-Table-row', (0, $9Othb$classNames)((0, ($parcel$interopDefault($9Othb$table_cssmodulejs))), 'react-spectrum-Table-row', 'react-spectrum-Table-row-dragPreview', {
|
|
36
|
-
'react-spectrum-Table-row-dragPreview--multiple': isDraggingMultiple
|
|
37
|
-
}))
|
|
38
|
-
}, /*#__PURE__*/ (0, $9Othb$react).createElement("div", {
|
|
39
|
-
className: (0, $9Othb$classNames)((0, ($parcel$interopDefault($9Othb$table_vars_cssmodulejs))), 'spectrum-Table-cell', (0, $9Othb$classNames)((0, ($parcel$interopDefault($9Othb$table_cssmodulejs))), 'react-spectrum-Table-cell'))
|
|
40
|
-
}, /*#__PURE__*/ (0, $9Othb$react).createElement("span", {
|
|
41
|
-
className: (0, $9Othb$classNames)((0, ($parcel$interopDefault($9Othb$table_vars_cssmodulejs))), 'spectrum-Table-cellContents')
|
|
42
|
-
}, itemText)), isDraggingMultiple && /*#__PURE__*/ (0, $9Othb$react).createElement("div", {
|
|
43
|
-
className: (0, $9Othb$classNames)((0, ($parcel$interopDefault($9Othb$table_cssmodulejs))), 'react-spectrum-Table-row-badge')
|
|
44
|
-
}, itemCount));
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
export {$daa6ead3d9d3506a$export$905ab40ac2179daa as DragPreview};
|
|
49
|
-
//# sourceMappingURL=DragPreview.module.js.map
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import "./table.0cdc494a.css";
|
|
2
|
-
import $9Othb$table_vars_cssmodulejs from "./table_vars_css.module.js";
|
|
3
|
-
import "./table.11fc8462.css";
|
|
4
|
-
import $9Othb$table_cssmodulejs from "./table_css.module.js";
|
|
5
|
-
import {classNames as $9Othb$classNames} from "@react-spectrum/utils";
|
|
6
|
-
import {Flex as $9Othb$Flex} from "@react-spectrum/layout";
|
|
7
|
-
import $9Othb$react from "react";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function $parcel$interopDefault(a) {
|
|
11
|
-
return a && a.__esModule ? a.default : a;
|
|
12
|
-
}
|
|
13
|
-
/*
|
|
14
|
-
* Copyright 2023 Adobe. All rights reserved.
|
|
15
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
16
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
17
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
-
*
|
|
19
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
20
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
21
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
22
|
-
* governing permissions and limitations under the License.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
function $daa6ead3d9d3506a$export$905ab40ac2179daa(props) {
|
|
29
|
-
let { itemText: itemText, itemCount: itemCount, height: height, maxWidth: maxWidth } = props;
|
|
30
|
-
let isDraggingMultiple = itemCount > 1;
|
|
31
|
-
return /*#__PURE__*/ (0, $9Othb$react).createElement((0, $9Othb$Flex), {
|
|
32
|
-
justifyContent: "space-between",
|
|
33
|
-
height: height,
|
|
34
|
-
maxWidth: maxWidth,
|
|
35
|
-
UNSAFE_className: (0, $9Othb$classNames)((0, ($parcel$interopDefault($9Othb$table_vars_cssmodulejs))), 'spectrum-Table-row', (0, $9Othb$classNames)((0, ($parcel$interopDefault($9Othb$table_cssmodulejs))), 'react-spectrum-Table-row', 'react-spectrum-Table-row-dragPreview', {
|
|
36
|
-
'react-spectrum-Table-row-dragPreview--multiple': isDraggingMultiple
|
|
37
|
-
}))
|
|
38
|
-
}, /*#__PURE__*/ (0, $9Othb$react).createElement("div", {
|
|
39
|
-
className: (0, $9Othb$classNames)((0, ($parcel$interopDefault($9Othb$table_vars_cssmodulejs))), 'spectrum-Table-cell', (0, $9Othb$classNames)((0, ($parcel$interopDefault($9Othb$table_cssmodulejs))), 'react-spectrum-Table-cell'))
|
|
40
|
-
}, /*#__PURE__*/ (0, $9Othb$react).createElement("span", {
|
|
41
|
-
className: (0, $9Othb$classNames)((0, ($parcel$interopDefault($9Othb$table_vars_cssmodulejs))), 'spectrum-Table-cellContents')
|
|
42
|
-
}, itemText)), isDraggingMultiple && /*#__PURE__*/ (0, $9Othb$react).createElement("div", {
|
|
43
|
-
className: (0, $9Othb$classNames)((0, ($parcel$interopDefault($9Othb$table_cssmodulejs))), 'react-spectrum-Table-row-badge')
|
|
44
|
-
}, itemCount));
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
export {$daa6ead3d9d3506a$export$905ab40ac2179daa as DragPreview};
|
|
49
|
-
//# sourceMappingURL=DragPreview.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAeM,SAAS,0CAAY,KAAuB;IACjD,IAAI,YACF,QAAQ,aACR,SAAS,UACT,MAAM,YACN,QAAQ,EACT,GAAG;IACJ,IAAI,qBAAqB,YAAY;IACrC,qBACE,gCAAC,CAAA,GAAA,WAAG;QACF,gBAAe;QACf,QAAQ;QACR,UAAU;QACV,kBACE,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,uDAAK,GACL,sBACA,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,kDAAc,GACd,4BACA,wCACA;YAAC,kDAAkD;QAAkB;qBAI3E,gCAAC;QACC,WACA,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,uDAAK,GACL,uBACA,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,kDAAc,GACd;qBAIJ,gCAAC;QACC,WACE,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,uDAAK,GACL;OAGH,YAGJ,oCACC,gCAAC;QAAI,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,kDAAc,GAAG;OAAoC;AAIxF","sources":["packages/@react-spectrum/table/src/DragPreview.tsx"],"sourcesContent":["/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames} from '@react-spectrum/utils';\nimport {Flex} from '@react-spectrum/layout';\nimport React, {ReactNode} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/table/vars.css';\nimport stylesOverrides from './table.css';\n\ninterface DragPreviewProps {\n itemText: string,\n itemCount: number,\n height: number,\n maxWidth: number\n}\n\nexport function DragPreview(props: DragPreviewProps): ReactNode {\n let {\n itemText,\n itemCount,\n height,\n maxWidth\n } = props;\n let isDraggingMultiple = itemCount > 1;\n return (\n <Flex\n justifyContent=\"space-between\"\n height={height}\n maxWidth={maxWidth}\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-Table-row',\n classNames(\n stylesOverrides,\n 'react-spectrum-Table-row',\n 'react-spectrum-Table-row-dragPreview',\n {'react-spectrum-Table-row-dragPreview--multiple': isDraggingMultiple}\n )\n )\n }>\n <div\n className={\n classNames(\n styles,\n 'spectrum-Table-cell',\n classNames(\n stylesOverrides,\n 'react-spectrum-Table-cell'\n )\n )\n }>\n <span\n className={\n classNames(\n styles,\n 'spectrum-Table-cellContents'\n )\n }>\n {itemText}\n </span>\n </div>\n {isDraggingMultiple &&\n <div className={classNames(stylesOverrides, 'react-spectrum-Table-row-badge')}>{itemCount}</div>\n }\n </Flex>\n );\n}\n"],"names":[],"version":3,"file":"DragPreview.module.js.map"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
require("./table.11fc8462.css");
|
|
2
|
-
var $4afcd54cfd94dbb9$exports = require("./table_css.main.js");
|
|
3
|
-
var $e39c6de4eb69450d$exports = require("./TableViewBase.main.js");
|
|
4
|
-
var $k3Oqb$reactspectrumutils = require("@react-spectrum/utils");
|
|
5
|
-
var $k3Oqb$react = require("react");
|
|
6
|
-
var $k3Oqb$reactariavisuallyhidden = require("@react-aria/visually-hidden");
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function $parcel$interopDefault(a) {
|
|
10
|
-
return a && a.__esModule ? a.default : a;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function $parcel$export(e, n, v, s) {
|
|
14
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
$parcel$export(module.exports, "InsertionIndicator", () => $c44674ca7612e997$export$2c0bab5914a9d088);
|
|
18
|
-
/*
|
|
19
|
-
* Copyright 2023 Adobe. All rights reserved.
|
|
20
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
21
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
22
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
23
|
-
*
|
|
24
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
25
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
26
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
27
|
-
* governing permissions and limitations under the License.
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
function $c44674ca7612e997$export$2c0bab5914a9d088(props) {
|
|
34
|
-
var _rowProps_style, _rowProps_style1, _rowProps_style2;
|
|
35
|
-
let { dropState: dropState, dragAndDropHooks: dragAndDropHooks } = (0, $e39c6de4eb69450d$exports.useTableContext)();
|
|
36
|
-
const { target: target, rowProps: rowProps } = props;
|
|
37
|
-
let ref = (0, $k3Oqb$react.useRef)(null);
|
|
38
|
-
let { dropIndicatorProps: dropIndicatorProps } = dragAndDropHooks.useDropIndicator(props, dropState, ref);
|
|
39
|
-
let { visuallyHiddenProps: visuallyHiddenProps } = (0, $k3Oqb$reactariavisuallyhidden.useVisuallyHidden)();
|
|
40
|
-
let isDropTarget = dropState.isDropTarget(target);
|
|
41
|
-
if (!isDropTarget && dropIndicatorProps['aria-hidden']) return null;
|
|
42
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($k3Oqb$react))).createElement("div", {
|
|
43
|
-
style: {
|
|
44
|
-
position: 'absolute',
|
|
45
|
-
top: typeof ((_rowProps_style = rowProps.style) === null || _rowProps_style === void 0 ? void 0 : _rowProps_style.top) === 'number' && typeof ((_rowProps_style1 = rowProps.style) === null || _rowProps_style1 === void 0 ? void 0 : _rowProps_style1.height) === 'number' ? rowProps.style.top + (target.dropPosition === 'after' ? rowProps.style.height : 0) : 0,
|
|
46
|
-
width: (_rowProps_style2 = rowProps.style) === null || _rowProps_style2 === void 0 ? void 0 : _rowProps_style2.width
|
|
47
|
-
},
|
|
48
|
-
role: "row",
|
|
49
|
-
"aria-hidden": dropIndicatorProps['aria-hidden']
|
|
50
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($k3Oqb$react))).createElement("div", {
|
|
51
|
-
role: "gridcell",
|
|
52
|
-
className: (0, $k3Oqb$reactspectrumutils.classNames)((0, ($parcel$interopDefault($4afcd54cfd94dbb9$exports))), 'react-spectrum-Table-InsertionIndicator', {
|
|
53
|
-
'react-spectrum-Table-InsertionIndicator--dropTarget': isDropTarget
|
|
54
|
-
})
|
|
55
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($k3Oqb$react))).createElement("div", {
|
|
56
|
-
...visuallyHiddenProps,
|
|
57
|
-
role: "button",
|
|
58
|
-
...dropIndicatorProps,
|
|
59
|
-
ref: ref
|
|
60
|
-
})));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
//# sourceMappingURL=InsertionIndicator.main.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAcM,SAAS,0CAAmB,KAA8B;QAkB7C,iBAA2C,kBAChD;IAlBb,IAAI,aAAC,SAAS,oBAAE,gBAAgB,EAAC,GAAG,CAAA,GAAA,yCAAc;IAClD,MAAM,UAAC,MAAM,YAAE,QAAQ,EAAC,GAAG;IAE3B,IAAI,MAAM,CAAA,GAAA,mBAAK,EAAyB;IACxC,IAAI,sBAAC,kBAAkB,EAAC,GAAG,iBAAkB,gBAAgB,CAAE,OAAO,WAAY;IAClF,IAAI,uBAAC,mBAAmB,EAAC,GAAG,CAAA,GAAA,gDAAgB;IAE5C,IAAI,eAAe,UAAW,YAAY,CAAC;IAE3C,IAAI,CAAC,gBAAgB,kBAAkB,CAAC,cAAc,EACpD,OAAO;IAGT,qBACE,0DAAC;QACC,OAAO;YACL,UAAU;YACV,KAAK,SAAO,kBAAA,SAAS,KAAK,cAAd,sCAAA,gBAAgB,GAAG,MAAK,YAAY,SAAO,mBAAA,SAAS,KAAK,cAAd,uCAAA,iBAAgB,MAAM,MAAK,WAAW,SAAS,KAAK,CAAC,GAAG,GAAI,CAAA,OAAO,YAAY,KAAK,UAAU,SAAS,KAAK,CAAC,MAAM,GAAG,CAAA,IAAK;YAClL,KAAK,GAAE,mBAAA,SAAS,KAAK,cAAd,uCAAA,iBAAgB,KAAK;QAC9B;QACA,MAAK;QACL,eAAa,kBAAkB,CAAC,cAAc;qBAC9C,0DAAC;QACC,MAAK;QACL,WACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,GACL,2CACA;YACE,uDAAuD;QACzD;qBAEJ,0DAAC;QAAK,GAAG,mBAAmB;QAAE,MAAK;QAAU,GAAG,kBAAkB;QAAE,KAAK;;AAIjF","sources":["packages/@react-spectrum/table/src/InsertionIndicator.tsx"],"sourcesContent":["/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames} from '@react-spectrum/utils';\nimport {FocusableElement, ItemDropTarget} from '@react-types/shared';\nimport React, {DOMAttributes, HTMLAttributes, ReactNode, useRef} from 'react';\nimport styles from './table.css';\nimport {useTableContext} from './TableViewBase';\nimport {useVisuallyHidden} from '@react-aria/visually-hidden';\n\ninterface InsertionIndicatorProps {\n target: ItemDropTarget,\n rowProps: HTMLAttributes<HTMLElement> & DOMAttributes<FocusableElement>\n}\n\nexport function InsertionIndicator(props: InsertionIndicatorProps): ReactNode | null {\n let {dropState, dragAndDropHooks} = useTableContext();\n const {target, rowProps} = props;\n\n let ref = useRef<HTMLDivElement | null>(null);\n let {dropIndicatorProps} = dragAndDropHooks!.useDropIndicator!(props, dropState!, ref);\n let {visuallyHiddenProps} = useVisuallyHidden();\n\n let isDropTarget = dropState!.isDropTarget(target);\n\n if (!isDropTarget && dropIndicatorProps['aria-hidden']) {\n return null;\n }\n\n return (\n <div\n style={{\n position: 'absolute',\n top: typeof rowProps.style?.top === 'number' && typeof rowProps.style?.height === 'number' ? rowProps.style.top + (target.dropPosition === 'after' ? rowProps.style.height : 0) : 0,\n width: rowProps.style?.width\n }}\n role=\"row\"\n aria-hidden={dropIndicatorProps['aria-hidden']}>\n <div\n role=\"gridcell\"\n className={\n classNames(\n styles,\n 'react-spectrum-Table-InsertionIndicator',\n {\n 'react-spectrum-Table-InsertionIndicator--dropTarget': isDropTarget\n }\n )}>\n <div {...visuallyHiddenProps} role=\"button\" {...dropIndicatorProps} ref={ref} />\n </div>\n </div>\n );\n}\n"],"names":[],"version":3,"file":"InsertionIndicator.main.js.map"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import "./table.11fc8462.css";
|
|
2
|
-
import $khOO8$table_cssmodulejs from "./table_css.mjs";
|
|
3
|
-
import {useTableContext as $bd013581c0a4b065$export$3cb274deb6c2d854} from "./TableViewBase.mjs";
|
|
4
|
-
import {classNames as $khOO8$classNames} from "@react-spectrum/utils";
|
|
5
|
-
import $khOO8$react, {useRef as $khOO8$useRef} from "react";
|
|
6
|
-
import {useVisuallyHidden as $khOO8$useVisuallyHidden} from "@react-aria/visually-hidden";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function $parcel$interopDefault(a) {
|
|
10
|
-
return a && a.__esModule ? a.default : a;
|
|
11
|
-
}
|
|
12
|
-
/*
|
|
13
|
-
* Copyright 2023 Adobe. All rights reserved.
|
|
14
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
15
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
16
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
-
*
|
|
18
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
19
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
20
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
21
|
-
* governing permissions and limitations under the License.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
function $7ee9a922ee4e8032$export$2c0bab5914a9d088(props) {
|
|
28
|
-
var _rowProps_style, _rowProps_style1, _rowProps_style2;
|
|
29
|
-
let { dropState: dropState, dragAndDropHooks: dragAndDropHooks } = (0, $bd013581c0a4b065$export$3cb274deb6c2d854)();
|
|
30
|
-
const { target: target, rowProps: rowProps } = props;
|
|
31
|
-
let ref = (0, $khOO8$useRef)(null);
|
|
32
|
-
let { dropIndicatorProps: dropIndicatorProps } = dragAndDropHooks.useDropIndicator(props, dropState, ref);
|
|
33
|
-
let { visuallyHiddenProps: visuallyHiddenProps } = (0, $khOO8$useVisuallyHidden)();
|
|
34
|
-
let isDropTarget = dropState.isDropTarget(target);
|
|
35
|
-
if (!isDropTarget && dropIndicatorProps['aria-hidden']) return null;
|
|
36
|
-
return /*#__PURE__*/ (0, $khOO8$react).createElement("div", {
|
|
37
|
-
style: {
|
|
38
|
-
position: 'absolute',
|
|
39
|
-
top: typeof ((_rowProps_style = rowProps.style) === null || _rowProps_style === void 0 ? void 0 : _rowProps_style.top) === 'number' && typeof ((_rowProps_style1 = rowProps.style) === null || _rowProps_style1 === void 0 ? void 0 : _rowProps_style1.height) === 'number' ? rowProps.style.top + (target.dropPosition === 'after' ? rowProps.style.height : 0) : 0,
|
|
40
|
-
width: (_rowProps_style2 = rowProps.style) === null || _rowProps_style2 === void 0 ? void 0 : _rowProps_style2.width
|
|
41
|
-
},
|
|
42
|
-
role: "row",
|
|
43
|
-
"aria-hidden": dropIndicatorProps['aria-hidden']
|
|
44
|
-
}, /*#__PURE__*/ (0, $khOO8$react).createElement("div", {
|
|
45
|
-
role: "gridcell",
|
|
46
|
-
className: (0, $khOO8$classNames)((0, ($parcel$interopDefault($khOO8$table_cssmodulejs))), 'react-spectrum-Table-InsertionIndicator', {
|
|
47
|
-
'react-spectrum-Table-InsertionIndicator--dropTarget': isDropTarget
|
|
48
|
-
})
|
|
49
|
-
}, /*#__PURE__*/ (0, $khOO8$react).createElement("div", {
|
|
50
|
-
...visuallyHiddenProps,
|
|
51
|
-
role: "button",
|
|
52
|
-
...dropIndicatorProps,
|
|
53
|
-
ref: ref
|
|
54
|
-
})));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
export {$7ee9a922ee4e8032$export$2c0bab5914a9d088 as InsertionIndicator};
|
|
59
|
-
//# sourceMappingURL=InsertionIndicator.module.js.map
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import "./table.11fc8462.css";
|
|
2
|
-
import $khOO8$table_cssmodulejs from "./table_css.module.js";
|
|
3
|
-
import {useTableContext as $bd013581c0a4b065$export$3cb274deb6c2d854} from "./TableViewBase.module.js";
|
|
4
|
-
import {classNames as $khOO8$classNames} from "@react-spectrum/utils";
|
|
5
|
-
import $khOO8$react, {useRef as $khOO8$useRef} from "react";
|
|
6
|
-
import {useVisuallyHidden as $khOO8$useVisuallyHidden} from "@react-aria/visually-hidden";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function $parcel$interopDefault(a) {
|
|
10
|
-
return a && a.__esModule ? a.default : a;
|
|
11
|
-
}
|
|
12
|
-
/*
|
|
13
|
-
* Copyright 2023 Adobe. All rights reserved.
|
|
14
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
15
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
16
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
-
*
|
|
18
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
19
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
20
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
21
|
-
* governing permissions and limitations under the License.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
function $7ee9a922ee4e8032$export$2c0bab5914a9d088(props) {
|
|
28
|
-
var _rowProps_style, _rowProps_style1, _rowProps_style2;
|
|
29
|
-
let { dropState: dropState, dragAndDropHooks: dragAndDropHooks } = (0, $bd013581c0a4b065$export$3cb274deb6c2d854)();
|
|
30
|
-
const { target: target, rowProps: rowProps } = props;
|
|
31
|
-
let ref = (0, $khOO8$useRef)(null);
|
|
32
|
-
let { dropIndicatorProps: dropIndicatorProps } = dragAndDropHooks.useDropIndicator(props, dropState, ref);
|
|
33
|
-
let { visuallyHiddenProps: visuallyHiddenProps } = (0, $khOO8$useVisuallyHidden)();
|
|
34
|
-
let isDropTarget = dropState.isDropTarget(target);
|
|
35
|
-
if (!isDropTarget && dropIndicatorProps['aria-hidden']) return null;
|
|
36
|
-
return /*#__PURE__*/ (0, $khOO8$react).createElement("div", {
|
|
37
|
-
style: {
|
|
38
|
-
position: 'absolute',
|
|
39
|
-
top: typeof ((_rowProps_style = rowProps.style) === null || _rowProps_style === void 0 ? void 0 : _rowProps_style.top) === 'number' && typeof ((_rowProps_style1 = rowProps.style) === null || _rowProps_style1 === void 0 ? void 0 : _rowProps_style1.height) === 'number' ? rowProps.style.top + (target.dropPosition === 'after' ? rowProps.style.height : 0) : 0,
|
|
40
|
-
width: (_rowProps_style2 = rowProps.style) === null || _rowProps_style2 === void 0 ? void 0 : _rowProps_style2.width
|
|
41
|
-
},
|
|
42
|
-
role: "row",
|
|
43
|
-
"aria-hidden": dropIndicatorProps['aria-hidden']
|
|
44
|
-
}, /*#__PURE__*/ (0, $khOO8$react).createElement("div", {
|
|
45
|
-
role: "gridcell",
|
|
46
|
-
className: (0, $khOO8$classNames)((0, ($parcel$interopDefault($khOO8$table_cssmodulejs))), 'react-spectrum-Table-InsertionIndicator', {
|
|
47
|
-
'react-spectrum-Table-InsertionIndicator--dropTarget': isDropTarget
|
|
48
|
-
})
|
|
49
|
-
}, /*#__PURE__*/ (0, $khOO8$react).createElement("div", {
|
|
50
|
-
...visuallyHiddenProps,
|
|
51
|
-
role: "button",
|
|
52
|
-
...dropIndicatorProps,
|
|
53
|
-
ref: ref
|
|
54
|
-
})));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
export {$7ee9a922ee4e8032$export$2c0bab5914a9d088 as InsertionIndicator};
|
|
59
|
-
//# sourceMappingURL=InsertionIndicator.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAcM,SAAS,0CAAmB,KAA8B;QAkB7C,iBAA2C,kBAChD;IAlBb,IAAI,aAAC,SAAS,oBAAE,gBAAgB,EAAC,GAAG,CAAA,GAAA,yCAAc;IAClD,MAAM,UAAC,MAAM,YAAE,QAAQ,EAAC,GAAG;IAE3B,IAAI,MAAM,CAAA,GAAA,aAAK,EAAyB;IACxC,IAAI,sBAAC,kBAAkB,EAAC,GAAG,iBAAkB,gBAAgB,CAAE,OAAO,WAAY;IAClF,IAAI,uBAAC,mBAAmB,EAAC,GAAG,CAAA,GAAA,wBAAgB;IAE5C,IAAI,eAAe,UAAW,YAAY,CAAC;IAE3C,IAAI,CAAC,gBAAgB,kBAAkB,CAAC,cAAc,EACpD,OAAO;IAGT,qBACE,gCAAC;QACC,OAAO;YACL,UAAU;YACV,KAAK,SAAO,kBAAA,SAAS,KAAK,cAAd,sCAAA,gBAAgB,GAAG,MAAK,YAAY,SAAO,mBAAA,SAAS,KAAK,cAAd,uCAAA,iBAAgB,MAAM,MAAK,WAAW,SAAS,KAAK,CAAC,GAAG,GAAI,CAAA,OAAO,YAAY,KAAK,UAAU,SAAS,KAAK,CAAC,MAAM,GAAG,CAAA,IAAK;YAClL,KAAK,GAAE,mBAAA,SAAS,KAAK,cAAd,uCAAA,iBAAgB,KAAK;QAC9B;QACA,MAAK;QACL,eAAa,kBAAkB,CAAC,cAAc;qBAC9C,gCAAC;QACC,MAAK;QACL,WACE,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,kDAAK,GACL,2CACA;YACE,uDAAuD;QACzD;qBAEJ,gCAAC;QAAK,GAAG,mBAAmB;QAAE,MAAK;QAAU,GAAG,kBAAkB;QAAE,KAAK;;AAIjF","sources":["packages/@react-spectrum/table/src/InsertionIndicator.tsx"],"sourcesContent":["/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames} from '@react-spectrum/utils';\nimport {FocusableElement, ItemDropTarget} from '@react-types/shared';\nimport React, {DOMAttributes, HTMLAttributes, ReactNode, useRef} from 'react';\nimport styles from './table.css';\nimport {useTableContext} from './TableViewBase';\nimport {useVisuallyHidden} from '@react-aria/visually-hidden';\n\ninterface InsertionIndicatorProps {\n target: ItemDropTarget,\n rowProps: HTMLAttributes<HTMLElement> & DOMAttributes<FocusableElement>\n}\n\nexport function InsertionIndicator(props: InsertionIndicatorProps): ReactNode | null {\n let {dropState, dragAndDropHooks} = useTableContext();\n const {target, rowProps} = props;\n\n let ref = useRef<HTMLDivElement | null>(null);\n let {dropIndicatorProps} = dragAndDropHooks!.useDropIndicator!(props, dropState!, ref);\n let {visuallyHiddenProps} = useVisuallyHidden();\n\n let isDropTarget = dropState!.isDropTarget(target);\n\n if (!isDropTarget && dropIndicatorProps['aria-hidden']) {\n return null;\n }\n\n return (\n <div\n style={{\n position: 'absolute',\n top: typeof rowProps.style?.top === 'number' && typeof rowProps.style?.height === 'number' ? rowProps.style.top + (target.dropPosition === 'after' ? rowProps.style.height : 0) : 0,\n width: rowProps.style?.width\n }}\n role=\"row\"\n aria-hidden={dropIndicatorProps['aria-hidden']}>\n <div\n role=\"gridcell\"\n className={\n classNames(\n styles,\n 'react-spectrum-Table-InsertionIndicator',\n {\n 'react-spectrum-Table-InsertionIndicator--dropTarget': isDropTarget\n }\n )}>\n <div {...visuallyHiddenProps} role=\"button\" {...dropIndicatorProps} ref={ref} />\n </div>\n </div>\n );\n}\n"],"names":[],"version":3,"file":"InsertionIndicator.module.js.map"}
|