@react-types/table 3.6.2-nightly.3940 → 3.6.2-nightly.3960

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/index.d.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/table",
3
- "version": "3.6.2-nightly.3940+b1545c0d2",
3
+ "version": "3.6.2-nightly.3960+16f72e9fb",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,8 +9,8 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/grid": "3.1.9-nightly.3940+b1545c0d2",
13
- "@react-types/shared": "3.0.0-nightly.2238+b1545c0d2"
12
+ "@react-types/grid": "3.1.9-nightly.3960+16f72e9fb",
13
+ "@react-types/shared": "3.0.0-nightly.2258+16f72e9fb"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
@@ -18,5 +18,5 @@
18
18
  "publishConfig": {
19
19
  "access": "public"
20
20
  },
21
- "gitHead": "b1545c0d225b12672fb6a4e7b787268591d66b90"
21
+ "gitHead": "16f72e9fbfc28adf104c3cb7557f1d3cab617960"
22
22
  }
package/src/index.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {AriaLabelingProps, AsyncLoadable, CollectionChildren, DOMProps, LoadingState, MultipleSelection, Sortable, SpectrumSelectionProps, StyleProps} from '@react-types/shared';
13
+ import {AriaLabelingProps, AsyncLoadable, DOMProps, LoadingState, MultipleSelection, Sortable, SpectrumSelectionProps, StyleProps} from '@react-types/shared';
14
14
  import {GridCollection, GridNode} from '@react-types/grid';
15
15
  import {Key, ReactElement, ReactNode} from 'react';
16
16
 
@@ -122,9 +122,10 @@ export interface SpectrumColumnProps<T> extends ColumnProps<T> {
122
122
  hideHeader?: boolean
123
123
  }
124
124
 
125
+ export type RowElement = ReactElement<RowProps>;
125
126
  export interface TableBodyProps<T> extends Omit<AsyncLoadable, 'isLoading'> {
126
127
  /** The contents of the table body. Supports static items or a function for dynamic rendering. */
127
- children: CollectionChildren<T>,
128
+ children: RowElement | RowElement[] | ((item: T) => RowElement),
128
129
  /** A list of row objects in the table body used when dynamically rendering rows. */
129
130
  items?: Iterable<T>,
130
131
  /** The current loading state of the table. */