@react-spectrum/table 3.12.2-nightly.4250 → 3.12.2-nightly.4256

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/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { AriaLabelingProps, DOMProps, DOMRef, SpectrumSelectionProps, StyleProps } from "@react-types/shared";
1
+ import { AriaLabelingProps, DOMProps, DOMRef, Key, SpectrumSelectionProps, StyleProps } from "@react-types/shared";
2
2
  import { ColumnSize, TableProps, SpectrumColumnProps } from "@react-types/table";
3
3
  import { DragAndDropHooks } from "@react-spectrum/dnd";
4
- import { Key, ReactElement } from "react";
4
+ import React, { ReactElement } from "react";
5
5
  export interface SpectrumTableProps<T> extends TableProps<T>, SpectrumSelectionProps, DOMProps, AriaLabelingProps, StyleProps {
6
6
  /**
7
7
  * Sets the amount of vertical padding within each cell.
@@ -16,7 +16,7 @@ export interface SpectrumTableProps<T> extends TableProps<T>, SpectrumSelectionP
16
16
  /** Whether the TableView should be displayed with a quiet style. */
17
17
  isQuiet?: boolean;
18
18
  /** Sets what the TableView should render when there is no content to display. */
19
- renderEmptyState?: () => JSX.Element;
19
+ renderEmptyState?: () => React.JSX.Element;
20
20
  /** Handler that is called when a user performs an action on a row. */
21
21
  onAction?: (key: Key) => void;
22
22
  /**
@@ -73,7 +73,7 @@ export interface SpectrumTableProps<T> extends TableProps<T>, SpectrumSelectionP
73
73
  export const TableView: <T>(props: SpectrumTableProps<T> & {
74
74
  ref?: DOMRef<HTMLDivElement>;
75
75
  }) => ReactElement;
76
- export const Column: <T>(props: SpectrumColumnProps<T>) => JSX.Element;
76
+ export const Column: <T>(props: SpectrumColumnProps<T>) => React.JSX.Element;
77
77
  export { TableHeader, TableBody, Section, Row, Cell } from '@react-stately/table';
78
78
  export type { SpectrumColumnProps, TableHeaderProps, TableBodyProps, RowProps, CellProps } from '@react-types/table';
79
79
 
@@ -1 +1 @@
1
- {"mappings":";;;;AQoBA,oC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YAAY,CAAC;AC/EnJ,OAAA,MAAM,8CAAiE,WAAW,CAAC;AAGnF,OAAO,EACL,WAAW,EACX,SAAS,EACT,OAAO,EACP,GAAG,EACH,IAAI,EACL,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EAAC,mBAAmB,EAAE,gBAAgB,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAC,MAAM,oBAAoB,CAAC","sources":["packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/InsertionIndicator.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/Nubbin.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/Resizer.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/RootDropIndicator.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/DragPreview.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TableViewBase.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TableView.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TreeGridTableView.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TableViewWrapper.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/index.ts","packages/@react-spectrum/table/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,"/*\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} from './TableViewWrapper';\nimport {Column} from '@react-stately/table';\nimport {SpectrumColumnProps} from '@react-types/table';\n\n// Override TS for Column to support spectrum specific props.\nconst SpectrumColumn = Column as <T>(props: SpectrumColumnProps<T>) => JSX.Element;\nexport {SpectrumColumn as Column};\n\nexport {\n TableHeader,\n TableBody,\n Section,\n Row,\n Cell\n} from '@react-stately/table';\n\nexport type {SpectrumColumnProps, TableHeaderProps, TableBodyProps, RowProps, CellProps} from '@react-types/table';\nexport type {SpectrumTableProps} from './TableViewWrapper';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;;;AQoBA,oCAAoC,CAAC,CAAE,SAAQ,WAAW,CAAC,CAAC,EAAE,sBAAsB,EAAE,QAAQ,EAAE,iBAAiB,EAAE,UAAU;IAC3H;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;IAC7C;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACnC,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,MAAM,MAAM,GAAG,CAAC,OAAO,CAAC;IAC3C,sEAAsE;IACtE,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAC9B;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IACvD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAClD;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IACrD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;IACxD;;;;OAIG;IACH,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACxC;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC9C;;;;;OAKG;IACH,4BAA4B,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IACrD;;;;;OAKG;IACH,yBAAyB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,KAAK,GAAG,CAAA;CACpD;AAWD;;GAEG;AACH,OAAA,MAAM;UAAoG,OAAO,cAAc,CAAC;MAAM,YAAY,CAAC;AC9EnJ,OAAA,MAAM,8CAAiE,SAAS,QAAQ,CAAC;AAGzF,OAAO,EACL,WAAW,EACX,SAAS,EACT,OAAO,EACP,GAAG,EACH,IAAI,EACL,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EAAC,mBAAmB,EAAE,gBAAgB,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAC,MAAM,oBAAoB,CAAC","sources":["packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/InsertionIndicator.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/Nubbin.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/Resizer.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/RootDropIndicator.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/DragPreview.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TableViewBase.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TableView.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TreeGridTableView.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TableViewWrapper.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/index.ts","packages/@react-spectrum/table/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,"/*\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} from './TableViewWrapper';\nimport {Column} from '@react-stately/table';\nimport React from 'react';\nimport {SpectrumColumnProps} from '@react-types/table';\n\n// Override TS for Column to support spectrum specific props.\nconst SpectrumColumn = Column as <T>(props: SpectrumColumnProps<T>) => React.JSX.Element;\nexport {SpectrumColumn as Column};\n\nexport {\n TableHeader,\n TableBody,\n Section,\n Row,\n Cell\n} from '@react-stately/table';\n\nexport type {SpectrumColumnProps, TableHeaderProps, TableBodyProps, RowProps, CellProps} from '@react-types/table';\nexport type {SpectrumTableProps} from './TableViewWrapper';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/table",
3
- "version": "3.12.2-nightly.4250+5240d4dbc",
3
+ "version": "3.12.2-nightly.4256+4dede01e2",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -36,39 +36,39 @@
36
36
  "url": "https://github.com/adobe/react-spectrum"
37
37
  },
38
38
  "dependencies": {
39
- "@react-aria/button": "3.0.0-nightly.2539+5240d4dbc",
40
- "@react-aria/focus": "3.0.0-nightly.2539+5240d4dbc",
41
- "@react-aria/grid": "3.8.5-nightly.4250+5240d4dbc",
42
- "@react-aria/i18n": "3.0.0-nightly.2539+5240d4dbc",
43
- "@react-aria/interactions": "3.0.0-nightly.2539+5240d4dbc",
44
- "@react-aria/table": "3.13.2-nightly.4250+5240d4dbc",
45
- "@react-aria/utils": "3.0.0-nightly.2539+5240d4dbc",
46
- "@react-aria/virtualizer": "3.9.5-nightly.4250+5240d4dbc",
47
- "@react-aria/visually-hidden": "3.0.0-nightly.2539+5240d4dbc",
48
- "@react-spectrum/button": "3.0.0-nightly.2539+5240d4dbc",
49
- "@react-spectrum/checkbox": "3.0.0-nightly.2539+5240d4dbc",
50
- "@react-spectrum/dnd": "3.3.5-nightly.4250+5240d4dbc",
51
- "@react-spectrum/layout": "3.5.8-nightly.4250+5240d4dbc",
52
- "@react-spectrum/menu": "3.15.2-nightly.4250+5240d4dbc",
53
- "@react-spectrum/progress": "3.0.0-nightly.2539+5240d4dbc",
54
- "@react-spectrum/tooltip": "3.0.0-nightly.2539+5240d4dbc",
55
- "@react-spectrum/utils": "3.0.0-nightly.2539+5240d4dbc",
56
- "@react-stately/collections": "3.0.0-nightly.2539+5240d4dbc",
57
- "@react-stately/flags": "3.0.1-nightly.4250+5240d4dbc",
58
- "@react-stately/grid": "3.8.3-nightly.4250+5240d4dbc",
59
- "@react-stately/layout": "3.13.4-nightly.4250+5240d4dbc",
60
- "@react-stately/table": "3.11.3-nightly.4250+5240d4dbc",
61
- "@react-stately/virtualizer": "3.6.5-nightly.4250+5240d4dbc",
62
- "@react-types/grid": "3.2.3-nightly.4250+5240d4dbc",
63
- "@react-types/shared": "3.0.0-nightly.2539+5240d4dbc",
64
- "@react-types/table": "3.9.1-nightly.4250+5240d4dbc",
65
- "@spectrum-icons/ui": "3.0.0-nightly.2539+5240d4dbc",
39
+ "@react-aria/button": "3.0.0-nightly.2545+4dede01e2",
40
+ "@react-aria/focus": "3.0.0-nightly.2545+4dede01e2",
41
+ "@react-aria/grid": "3.8.5-nightly.4256+4dede01e2",
42
+ "@react-aria/i18n": "3.0.0-nightly.2545+4dede01e2",
43
+ "@react-aria/interactions": "3.0.0-nightly.2545+4dede01e2",
44
+ "@react-aria/table": "3.13.2-nightly.4256+4dede01e2",
45
+ "@react-aria/utils": "3.0.0-nightly.2545+4dede01e2",
46
+ "@react-aria/virtualizer": "3.9.5-nightly.4256+4dede01e2",
47
+ "@react-aria/visually-hidden": "3.0.0-nightly.2545+4dede01e2",
48
+ "@react-spectrum/button": "3.0.0-nightly.2545+4dede01e2",
49
+ "@react-spectrum/checkbox": "3.0.0-nightly.2545+4dede01e2",
50
+ "@react-spectrum/dnd": "3.3.5-nightly.4256+4dede01e2",
51
+ "@react-spectrum/layout": "3.5.8-nightly.4256+4dede01e2",
52
+ "@react-spectrum/menu": "3.15.2-nightly.4256+4dede01e2",
53
+ "@react-spectrum/progress": "3.0.0-nightly.2545+4dede01e2",
54
+ "@react-spectrum/tooltip": "3.0.0-nightly.2545+4dede01e2",
55
+ "@react-spectrum/utils": "3.0.0-nightly.2545+4dede01e2",
56
+ "@react-stately/collections": "3.0.0-nightly.2545+4dede01e2",
57
+ "@react-stately/flags": "3.0.1-nightly.4256+4dede01e2",
58
+ "@react-stately/grid": "3.8.3-nightly.4256+4dede01e2",
59
+ "@react-stately/layout": "3.13.4-nightly.4256+4dede01e2",
60
+ "@react-stately/table": "3.11.3-nightly.4256+4dede01e2",
61
+ "@react-stately/virtualizer": "3.6.5-nightly.4256+4dede01e2",
62
+ "@react-types/grid": "3.2.3-nightly.4256+4dede01e2",
63
+ "@react-types/shared": "3.0.0-nightly.2545+4dede01e2",
64
+ "@react-types/table": "3.9.1-nightly.4256+4dede01e2",
65
+ "@spectrum-icons/ui": "3.0.0-nightly.2545+4dede01e2",
66
66
  "@swc/helpers": "^0.5.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@adobe/spectrum-css-temp": "3.0.0-nightly.2539+5240d4dbc",
70
- "@react-aria/dnd": "3.4.4-nightly.4250+5240d4dbc",
71
- "@react-stately/dnd": "3.2.6-nightly.4250+5240d4dbc"
69
+ "@adobe/spectrum-css-temp": "3.0.0-nightly.2545+4dede01e2",
70
+ "@react-aria/dnd": "3.4.4-nightly.4256+4dede01e2",
71
+ "@react-stately/dnd": "3.2.6-nightly.4256+4dede01e2"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "@react-spectrum/provider": "^3.0.0",
@@ -78,5 +78,5 @@
78
78
  "publishConfig": {
79
79
  "access": "public"
80
80
  },
81
- "gitHead": "5240d4dbc58794072c0508217ced575330f483f7"
81
+ "gitHead": "4dede01e242937311970bd495319a89bb48e33a5"
82
82
  }
package/src/Resizer.tsx CHANGED
@@ -10,7 +10,8 @@ import {GridNode} from '@react-types/grid';
10
10
  // @ts-ignore
11
11
  import intlMessages from '../intl/*.json';
12
12
  import {isWebKit, mergeProps} from '@react-aria/utils';
13
- import React, {Key, RefObject, useEffect, useState} from 'react';
13
+ import {Key} from '@react-types/shared';
14
+ import React, {RefObject, useEffect, useState} from 'react';
14
15
  import ReactDOM from 'react-dom';
15
16
  import styles from '@adobe/spectrum-css-temp/components/table/vars.css';
16
17
  import {useLocale, useLocalizedStringFormatter} from '@react-aria/i18n';
@@ -24,7 +24,7 @@ import {
24
24
  useUnwrapDOMRef
25
25
  } from '@react-spectrum/utils';
26
26
  import {ColumnSize, SpectrumColumnProps} from '@react-types/table';
27
- import {DOMRef, DropTarget, FocusableElement, FocusableRef} from '@react-types/shared';
27
+ import {DOMRef, DropTarget, FocusableElement, FocusableRef, Key} from '@react-types/shared';
28
28
  import type {DragAndDropHooks} from '@react-spectrum/dnd';
29
29
  import type {DraggableCollectionState, DroppableCollectionState} from '@react-stately/dnd';
30
30
  import type {DraggableItemResult, DropIndicatorAria, DroppableCollectionResult, DroppableItemResult} from '@react-aria/dnd';
@@ -39,7 +39,7 @@ import {layoutInfoToStyle, ScrollView, setScrollLeft, useVirtualizer, Virtualize
39
39
  import ListGripper from '@spectrum-icons/ui/ListGripper';
40
40
  import {Nubbin} from './Nubbin';
41
41
  import {ProgressCircle} from '@react-spectrum/progress';
42
- import React, {DOMAttributes, HTMLAttributes, Key, ReactElement, ReactNode, useCallback, useContext, useEffect, useMemo, useRef, useState} from 'react';
42
+ import React, {DOMAttributes, HTMLAttributes, ReactElement, ReactNode, useCallback, useContext, useEffect, useMemo, useRef, useState} from 'react';
43
43
  import {Resizer} from './Resizer';
44
44
  import {ReusableView, useVirtualizerState} from '@react-stately/virtualizer';
45
45
  import {RootDropIndicator} from './RootDropIndicator';
@@ -10,10 +10,10 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import type {AriaLabelingProps, DOMProps, DOMRef, SpectrumSelectionProps, StyleProps} from '@react-types/shared';
13
+ import type {AriaLabelingProps, DOMProps, DOMRef, Key, SpectrumSelectionProps, StyleProps} from '@react-types/shared';
14
14
  import type {ColumnSize, TableProps} from '@react-types/table';
15
15
  import type {DragAndDropHooks} from '@react-spectrum/dnd';
16
- import React, {Key, ReactElement} from 'react';
16
+ import React, {ReactElement} from 'react';
17
17
  import {tableNestedRows} from '@react-stately/flags';
18
18
  import {TableView} from './TableView';
19
19
  import {TreeGridTableView} from './TreeGridTableView';
@@ -32,7 +32,7 @@ export interface SpectrumTableProps<T> extends TableProps<T>, SpectrumSelectionP
32
32
  /** Whether the TableView should be displayed with a quiet style. */
33
33
  isQuiet?: boolean,
34
34
  /** Sets what the TableView should render when there is no content to display. */
35
- renderEmptyState?: () => JSX.Element,
35
+ renderEmptyState?: () => React.JSX.Element,
36
36
  /** Handler that is called when a user performs an action on a row. */
37
37
  onAction?: (key: Key) => void,
38
38
  /**
package/src/index.ts CHANGED
@@ -14,10 +14,11 @@
14
14
 
15
15
  export {TableView} from './TableViewWrapper';
16
16
  import {Column} from '@react-stately/table';
17
+ import React from 'react';
17
18
  import {SpectrumColumnProps} from '@react-types/table';
18
19
 
19
20
  // Override TS for Column to support spectrum specific props.
20
- const SpectrumColumn = Column as <T>(props: SpectrumColumnProps<T>) => JSX.Element;
21
+ const SpectrumColumn = Column as <T>(props: SpectrumColumnProps<T>) => React.JSX.Element;
21
22
  export {SpectrumColumn as Column};
22
23
 
23
24
  export {