@react-stately/table 3.1.1-nightly.3085 → 3.1.1-nightly.3100

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/main.js CHANGED
@@ -1,6 +1,6 @@
1
- var $HVUTY$reactstatelycollections = require("@react-stately/collections");
2
- var $HVUTY$reactstatelygrid = require("@react-stately/grid");
3
- var $HVUTY$react = require("react");
1
+ var $eV1sI$reactstatelycollections = require("@react-stately/collections");
2
+ var $eV1sI$reactstatelygrid = require("@react-stately/grid");
3
+ var $eV1sI$react = require("react");
4
4
 
5
5
  function $parcel$export(e, n, v, s) {
6
6
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
@@ -25,15 +25,15 @@ function $parcel$interopDefault(a) {
25
25
  return a && a.__esModule ? a.default : a;
26
26
  }
27
27
 
28
- $parcel$export(module.exports, "Section", () => $4db268e268b31c9f$re_export$Section);
29
- var $49a01ba6721ce1f5$exports = {};
28
+ $parcel$export(module.exports, "Section", () => $5e0ce3c15067913f$re_export$Section);
29
+ var $6f4606b208f83e59$exports = {};
30
30
 
31
- $parcel$export($49a01ba6721ce1f5$exports, "useTableState", () => $49a01ba6721ce1f5$export$907bcc6c48325fd6);
31
+ $parcel$export($6f4606b208f83e59$exports, "useTableState", () => $6f4606b208f83e59$export$907bcc6c48325fd6);
32
32
 
33
33
 
34
34
 
35
- const $536c70b445c24d6d$var$ROW_HEADER_COLUMN_KEY = 'row-header-column-' + Math.random().toString(36).slice(2);
36
- function $536c70b445c24d6d$var$buildHeaderRows(keyMap, columnNodes) {
35
+ const $639771746563c202$var$ROW_HEADER_COLUMN_KEY = 'row-header-column-' + Math.random().toString(36).slice(2);
36
+ function $639771746563c202$var$buildHeaderRows(keyMap, columnNodes) {
37
37
  let columns = [];
38
38
  let seen = new Map();
39
39
  for (let column of columnNodes){
@@ -150,7 +150,7 @@ function $536c70b445c24d6d$var$buildHeaderRows(keyMap, columnNodes) {
150
150
  return row;
151
151
  });
152
152
  }
153
- class $536c70b445c24d6d$export$596e1b2e2cf93690 extends $HVUTY$reactstatelygrid.GridCollection {
153
+ class $639771746563c202$export$596e1b2e2cf93690 extends $eV1sI$reactstatelygrid.GridCollection {
154
154
  constructor(nodes, prev, opts){
155
155
  let rowHeaderColumnKeys = new Set();
156
156
  let body;
@@ -159,7 +159,7 @@ class $536c70b445c24d6d$export$596e1b2e2cf93690 extends $HVUTY$reactstatelygrid.
159
159
  if (opts?.showSelectionCheckboxes) {
160
160
  let rowHeaderColumn = {
161
161
  type: 'column',
162
- key: $536c70b445c24d6d$var$ROW_HEADER_COLUMN_KEY,
162
+ key: $639771746563c202$var$ROW_HEADER_COLUMN_KEY,
163
163
  value: null,
164
164
  textValue: '',
165
165
  level: 0,
@@ -194,7 +194,7 @@ class $536c70b445c24d6d$export$596e1b2e2cf93690 extends $HVUTY$reactstatelygrid.
194
194
  for (let child of node.childNodes)visit(child);
195
195
  };
196
196
  for (let node1 of nodes)visit(node1);
197
- let headerRows = $536c70b445c24d6d$var$buildHeaderRows(columnKeyMap, columns);
197
+ let headerRows = $639771746563c202$var$buildHeaderRows(columnKeyMap, columns);
198
198
  headerRows.forEach((row, i)=>rows.splice(i, 0, row)
199
199
  );
200
200
  super({
@@ -255,13 +255,13 @@ class $536c70b445c24d6d$export$596e1b2e2cf93690 extends $HVUTY$reactstatelygrid.
255
255
 
256
256
 
257
257
 
258
- const $49a01ba6721ce1f5$var$OPPOSITE_SORT_DIRECTION = {
258
+ const $6f4606b208f83e59$var$OPPOSITE_SORT_DIRECTION = {
259
259
  ascending: 'descending',
260
260
  descending: 'ascending'
261
261
  };
262
- function $49a01ba6721ce1f5$export$907bcc6c48325fd6(props) {
262
+ function $6f4606b208f83e59$export$907bcc6c48325fd6(props) {
263
263
  let { selectionMode: selectionMode = 'none' } = props;
264
- let context = $HVUTY$react.useMemo(()=>({
264
+ let context = $eV1sI$react.useMemo(()=>({
265
265
  showSelectionCheckboxes: props.showSelectionCheckboxes && selectionMode !== 'none',
266
266
  selectionMode: selectionMode,
267
267
  columns: []
@@ -271,9 +271,9 @@ function $49a01ba6721ce1f5$export$907bcc6c48325fd6(props) {
271
271
  props.showSelectionCheckboxes,
272
272
  selectionMode
273
273
  ]);
274
- let collection = $HVUTY$reactstatelycollections.useCollection(props, (nodes, prev)=>new $536c70b445c24d6d$export$596e1b2e2cf93690(nodes, prev, context)
274
+ let collection = $eV1sI$reactstatelycollections.useCollection(props, (nodes, prev)=>new $639771746563c202$export$596e1b2e2cf93690(nodes, prev, context)
275
275
  , context);
276
- let { disabledKeys: disabledKeys , selectionManager: selectionManager } = $HVUTY$reactstatelygrid.useGridState({
276
+ let { disabledKeys: disabledKeys , selectionManager: selectionManager } = $eV1sI$reactstatelygrid.useGridState({
277
277
  ...props,
278
278
  collection: collection
279
279
  });
@@ -286,21 +286,21 @@ function $49a01ba6721ce1f5$export$907bcc6c48325fd6(props) {
286
286
  sort (columnKey) {
287
287
  props.onSortChange({
288
288
  column: columnKey,
289
- direction: props.sortDescriptor?.column === columnKey ? $49a01ba6721ce1f5$var$OPPOSITE_SORT_DIRECTION[props.sortDescriptor.direction] : 'ascending'
289
+ direction: props.sortDescriptor?.column === columnKey ? $6f4606b208f83e59$var$OPPOSITE_SORT_DIRECTION[props.sortDescriptor.direction] : 'ascending'
290
290
  });
291
291
  }
292
292
  };
293
293
  }
294
294
 
295
295
 
296
- var $66fe507c09a20c47$exports = {};
296
+ var $38b416f8214f8fe1$exports = {};
297
297
 
298
- $parcel$export($66fe507c09a20c47$exports, "TableHeader", () => $66fe507c09a20c47$export$f850895b287ef28e);
298
+ $parcel$export($38b416f8214f8fe1$exports, "TableHeader", () => $38b416f8214f8fe1$export$f850895b287ef28e);
299
299
 
300
- function $66fe507c09a20c47$var$TableHeader(props) {
300
+ function $38b416f8214f8fe1$var$TableHeader(props) {
301
301
  return null;
302
302
  }
303
- $66fe507c09a20c47$var$TableHeader.getCollectionNode = function* getCollectionNode(props) {
303
+ $38b416f8214f8fe1$var$TableHeader.getCollectionNode = function* getCollectionNode(props) {
304
304
  let { children: children , columns: columns } = props;
305
305
  if (typeof children === 'function') {
306
306
  if (!columns) throw new Error('props.children was a function but props.columns is missing');
@@ -311,7 +311,7 @@ $66fe507c09a20c47$var$TableHeader.getCollectionNode = function* getCollectionNod
311
311
  };
312
312
  } else {
313
313
  let columns = [];
314
- ($parcel$interopDefault($HVUTY$react)).Children.forEach(children, (column)=>{
314
+ ($parcel$interopDefault($eV1sI$react)).Children.forEach(children, (column)=>{
315
315
  columns.push({
316
316
  type: 'column',
317
317
  element: column
@@ -324,17 +324,17 @@ $66fe507c09a20c47$var$TableHeader.getCollectionNode = function* getCollectionNod
324
324
  * A TableHeader is a container for the Column elements in a Table. Columns can be statically defined
325
325
  * as children, or generated dynamically using a function based on the data passed to the `columns` prop.
326
326
  */ // We don't want getCollectionNode to show up in the type definition
327
- let $66fe507c09a20c47$export$f850895b287ef28e = $66fe507c09a20c47$var$TableHeader;
327
+ let $38b416f8214f8fe1$export$f850895b287ef28e = $38b416f8214f8fe1$var$TableHeader;
328
328
 
329
329
 
330
- var $c7036301f09107be$exports = {};
330
+ var $346e4da968fff62e$exports = {};
331
331
 
332
- $parcel$export($c7036301f09107be$exports, "TableBody", () => $c7036301f09107be$export$76ccd210b9029917);
332
+ $parcel$export($346e4da968fff62e$exports, "TableBody", () => $346e4da968fff62e$export$76ccd210b9029917);
333
333
 
334
- function $c7036301f09107be$var$TableBody(props) {
334
+ function $346e4da968fff62e$var$TableBody(props) {
335
335
  return null;
336
336
  }
337
- $c7036301f09107be$var$TableBody.getCollectionNode = function* getCollectionNode(props) {
337
+ $346e4da968fff62e$var$TableBody.getCollectionNode = function* getCollectionNode(props) {
338
338
  let { children: children , items: items1 } = props;
339
339
  yield {
340
340
  type: 'body',
@@ -350,7 +350,7 @@ $c7036301f09107be$var$TableBody.getCollectionNode = function* getCollectionNode(
350
350
  };
351
351
  } else {
352
352
  let items = [];
353
- ($parcel$interopDefault($HVUTY$react)).Children.forEach(children, (item)=>{
353
+ ($parcel$interopDefault($eV1sI$react)).Children.forEach(children, (item)=>{
354
354
  items.push({
355
355
  type: 'item',
356
356
  element: item
@@ -365,23 +365,23 @@ $c7036301f09107be$var$TableBody.getCollectionNode = function* getCollectionNode(
365
365
  * A TableBody is a container for the Row elements of a Table. Rows can be statically defined
366
366
  * as children, or generated dynamically using a function based on the data passed to the `items` prop.
367
367
  */ // We don't want getCollectionNode to show up in the type definition
368
- let $c7036301f09107be$export$76ccd210b9029917 = $c7036301f09107be$var$TableBody;
368
+ let $346e4da968fff62e$export$76ccd210b9029917 = $346e4da968fff62e$var$TableBody;
369
369
 
370
370
 
371
- var $4d3fb3e9f44cccbb$exports = {};
371
+ var $f62ff72fddbd5ba7$exports = {};
372
372
 
373
- $parcel$export($4d3fb3e9f44cccbb$exports, "Column", () => $4d3fb3e9f44cccbb$export$816b5d811295e6bc);
373
+ $parcel$export($f62ff72fddbd5ba7$exports, "Column", () => $f62ff72fddbd5ba7$export$816b5d811295e6bc);
374
374
 
375
- function $4d3fb3e9f44cccbb$var$Column(props) {
375
+ function $f62ff72fddbd5ba7$var$Column(props) {
376
376
  return null;
377
377
  }
378
- $4d3fb3e9f44cccbb$var$Column.getCollectionNode = function* getCollectionNode(props, context1) {
378
+ $f62ff72fddbd5ba7$var$Column.getCollectionNode = function* getCollectionNode(props, context1) {
379
379
  let { title: title , children: children , childColumns: childColumns1 } = props;
380
380
  let rendered = title || children;
381
381
  let textValue = props.textValue || (typeof rendered === 'string' ? rendered : '') || props['aria-label'];
382
382
  let fullNodes = yield {
383
383
  type: 'column',
384
- hasChildNodes: !!childColumns1 || title && ($parcel$interopDefault($HVUTY$react)).Children.count(children) > 0,
384
+ hasChildNodes: !!childColumns1 || title && ($parcel$interopDefault($eV1sI$react)).Children.count(children) > 0,
385
385
  rendered: rendered,
386
386
  textValue: textValue,
387
387
  props: props,
@@ -392,7 +392,7 @@ $4d3fb3e9f44cccbb$var$Column.getCollectionNode = function* getCollectionNode(pro
392
392
  };
393
393
  else if (title) {
394
394
  let childColumns = [];
395
- ($parcel$interopDefault($HVUTY$react)).Children.forEach(children, (child)=>{
395
+ ($parcel$interopDefault($eV1sI$react)).Children.forEach(children, (child)=>{
396
396
  childColumns.push({
397
397
  type: 'column',
398
398
  element: child
@@ -420,17 +420,17 @@ $4d3fb3e9f44cccbb$var$Column.getCollectionNode = function* getCollectionNode(pro
420
420
  * Column elements to represent column groups. Nested columns can be statically defined as
421
421
  * children, or dynamically generated using a function based on the `childColumns` prop.
422
422
  */ // We don't want getCollectionNode to show up in the type definition
423
- let $4d3fb3e9f44cccbb$export$816b5d811295e6bc = $4d3fb3e9f44cccbb$var$Column;
423
+ let $f62ff72fddbd5ba7$export$816b5d811295e6bc = $f62ff72fddbd5ba7$var$Column;
424
424
 
425
425
 
426
- var $2994032f6e00dbd9$exports = {};
426
+ var $72a40b771d6aae35$exports = {};
427
427
 
428
- $parcel$export($2994032f6e00dbd9$exports, "Row", () => $2994032f6e00dbd9$export$b59bdbef9ce70de2);
428
+ $parcel$export($72a40b771d6aae35$exports, "Row", () => $72a40b771d6aae35$export$b59bdbef9ce70de2);
429
429
 
430
- function $2994032f6e00dbd9$var$Row(props) {
430
+ function $72a40b771d6aae35$var$Row(props) {
431
431
  return null;
432
432
  }
433
- $2994032f6e00dbd9$var$Row.getCollectionNode = function* getCollectionNode(props, context) {
433
+ $72a40b771d6aae35$var$Row.getCollectionNode = function* getCollectionNode(props, context) {
434
434
  let { children: children , textValue: textValue } = props;
435
435
  yield {
436
436
  type: 'item',
@@ -454,7 +454,7 @@ $2994032f6e00dbd9$var$Row.getCollectionNode = function* getCollectionNode(props,
454
454
  };
455
455
  else {
456
456
  let cells = [];
457
- ($parcel$interopDefault($HVUTY$react)).Children.forEach(children, (cell)=>{
457
+ ($parcel$interopDefault($eV1sI$react)).Children.forEach(children, (cell)=>{
458
458
  cells.push({
459
459
  type: 'cell',
460
460
  element: cell
@@ -476,16 +476,16 @@ $2994032f6e00dbd9$var$Row.getCollectionNode = function* getCollectionNode(props,
476
476
  * Cells can be statically defined as children, or generated dynamically using a function
477
477
  * based on the columns defined in the TableHeader.
478
478
  */ // We don't want getCollectionNode to show up in the type definition
479
- let $2994032f6e00dbd9$export$b59bdbef9ce70de2 = $2994032f6e00dbd9$var$Row;
479
+ let $72a40b771d6aae35$export$b59bdbef9ce70de2 = $72a40b771d6aae35$var$Row;
480
480
 
481
481
 
482
- var $8ac1e7c004413186$exports = {};
482
+ var $c1db2632f7f804b2$exports = {};
483
483
 
484
- $parcel$export($8ac1e7c004413186$exports, "Cell", () => $8ac1e7c004413186$export$f6f0c3fe4ec306ea);
485
- function $8ac1e7c004413186$var$Cell(props) {
484
+ $parcel$export($c1db2632f7f804b2$exports, "Cell", () => $c1db2632f7f804b2$export$f6f0c3fe4ec306ea);
485
+ function $c1db2632f7f804b2$var$Cell(props) {
486
486
  return null;
487
487
  }
488
- $8ac1e7c004413186$var$Cell.getCollectionNode = function* getCollectionNode(props) {
488
+ $c1db2632f7f804b2$var$Cell.getCollectionNode = function* getCollectionNode(props) {
489
489
  let { children: children } = props;
490
490
  let textValue = props.textValue || (typeof children === 'string' ? children : '') || props['aria-label'] || '';
491
491
  yield {
@@ -500,16 +500,16 @@ $8ac1e7c004413186$var$Cell.getCollectionNode = function* getCollectionNode(props
500
500
  /**
501
501
  * A Cell represents the value of a single Column within a Table Row.
502
502
  */ // We don't want getCollectionNode to show up in the type definition
503
- let $8ac1e7c004413186$export$f6f0c3fe4ec306ea = $8ac1e7c004413186$var$Cell;
503
+ let $c1db2632f7f804b2$export$f6f0c3fe4ec306ea = $c1db2632f7f804b2$var$Cell;
504
504
 
505
505
 
506
506
 
507
- $parcel$exportWildcard(module.exports, $49a01ba6721ce1f5$exports);
508
- $parcel$exportWildcard(module.exports, $66fe507c09a20c47$exports);
509
- $parcel$exportWildcard(module.exports, $c7036301f09107be$exports);
510
- $parcel$exportWildcard(module.exports, $4d3fb3e9f44cccbb$exports);
511
- $parcel$exportWildcard(module.exports, $2994032f6e00dbd9$exports);
512
- $parcel$exportWildcard(module.exports, $8ac1e7c004413186$exports);
507
+ $parcel$exportWildcard(module.exports, $6f4606b208f83e59$exports);
508
+ $parcel$exportWildcard(module.exports, $38b416f8214f8fe1$exports);
509
+ $parcel$exportWildcard(module.exports, $346e4da968fff62e$exports);
510
+ $parcel$exportWildcard(module.exports, $f62ff72fddbd5ba7$exports);
511
+ $parcel$exportWildcard(module.exports, $72a40b771d6aae35$exports);
512
+ $parcel$exportWildcard(module.exports, $c1db2632f7f804b2$exports);
513
513
 
514
514
 
515
515
  //# sourceMappingURL=main.js.map
package/dist/module.js CHANGED
@@ -1,18 +1,18 @@
1
- import {Section as $85d1946e7f6d42c5$re_export$Section, useCollection as $bnqkB$useCollection} from "@react-stately/collections";
2
- import {useGridState as $bnqkB$useGridState, GridCollection as $bnqkB$GridCollection} from "@react-stately/grid";
3
- import $bnqkB$react, {useMemo as $bnqkB$useMemo} from "react";
1
+ import {Section as $cd96ac1a79e6f1d2$re_export$Section, useCollection as $85LnJ$useCollection} from "@react-stately/collections";
2
+ import {useGridState as $85LnJ$useGridState, GridCollection as $85LnJ$GridCollection} from "@react-stately/grid";
3
+ import $85LnJ$react, {useMemo as $85LnJ$useMemo} from "react";
4
4
 
5
5
  function $parcel$export(e, n, v, s) {
6
6
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
7
7
  }
8
- var $5988e1c94b1ddb4c$exports = {};
8
+ var $494692f36da31136$exports = {};
9
9
 
10
- $parcel$export($5988e1c94b1ddb4c$exports, "useTableState", () => $5988e1c94b1ddb4c$export$907bcc6c48325fd6);
10
+ $parcel$export($494692f36da31136$exports, "useTableState", () => $494692f36da31136$export$907bcc6c48325fd6);
11
11
 
12
12
 
13
13
 
14
- const $45e77d1d71e8160d$var$ROW_HEADER_COLUMN_KEY = 'row-header-column-' + Math.random().toString(36).slice(2);
15
- function $45e77d1d71e8160d$var$buildHeaderRows(keyMap, columnNodes) {
14
+ const $1ca231328db2f66a$var$ROW_HEADER_COLUMN_KEY = 'row-header-column-' + Math.random().toString(36).slice(2);
15
+ function $1ca231328db2f66a$var$buildHeaderRows(keyMap, columnNodes) {
16
16
  let columns = [];
17
17
  let seen = new Map();
18
18
  for (let column of columnNodes){
@@ -129,7 +129,7 @@ function $45e77d1d71e8160d$var$buildHeaderRows(keyMap, columnNodes) {
129
129
  return row;
130
130
  });
131
131
  }
132
- class $45e77d1d71e8160d$export$596e1b2e2cf93690 extends $bnqkB$GridCollection {
132
+ class $1ca231328db2f66a$export$596e1b2e2cf93690 extends $85LnJ$GridCollection {
133
133
  constructor(nodes, prev, opts){
134
134
  let rowHeaderColumnKeys = new Set();
135
135
  let body;
@@ -138,7 +138,7 @@ class $45e77d1d71e8160d$export$596e1b2e2cf93690 extends $bnqkB$GridCollection {
138
138
  if (opts?.showSelectionCheckboxes) {
139
139
  let rowHeaderColumn = {
140
140
  type: 'column',
141
- key: $45e77d1d71e8160d$var$ROW_HEADER_COLUMN_KEY,
141
+ key: $1ca231328db2f66a$var$ROW_HEADER_COLUMN_KEY,
142
142
  value: null,
143
143
  textValue: '',
144
144
  level: 0,
@@ -173,7 +173,7 @@ class $45e77d1d71e8160d$export$596e1b2e2cf93690 extends $bnqkB$GridCollection {
173
173
  for (let child of node.childNodes)visit(child);
174
174
  };
175
175
  for (let node1 of nodes)visit(node1);
176
- let headerRows = $45e77d1d71e8160d$var$buildHeaderRows(columnKeyMap, columns);
176
+ let headerRows = $1ca231328db2f66a$var$buildHeaderRows(columnKeyMap, columns);
177
177
  headerRows.forEach((row, i)=>rows.splice(i, 0, row)
178
178
  );
179
179
  super({
@@ -234,13 +234,13 @@ class $45e77d1d71e8160d$export$596e1b2e2cf93690 extends $bnqkB$GridCollection {
234
234
 
235
235
 
236
236
 
237
- const $5988e1c94b1ddb4c$var$OPPOSITE_SORT_DIRECTION = {
237
+ const $494692f36da31136$var$OPPOSITE_SORT_DIRECTION = {
238
238
  ascending: 'descending',
239
239
  descending: 'ascending'
240
240
  };
241
- function $5988e1c94b1ddb4c$export$907bcc6c48325fd6(props) {
241
+ function $494692f36da31136$export$907bcc6c48325fd6(props) {
242
242
  let { selectionMode: selectionMode = 'none' } = props;
243
- let context = $bnqkB$useMemo(()=>({
243
+ let context = $85LnJ$useMemo(()=>({
244
244
  showSelectionCheckboxes: props.showSelectionCheckboxes && selectionMode !== 'none',
245
245
  selectionMode: selectionMode,
246
246
  columns: []
@@ -250,9 +250,9 @@ function $5988e1c94b1ddb4c$export$907bcc6c48325fd6(props) {
250
250
  props.showSelectionCheckboxes,
251
251
  selectionMode
252
252
  ]);
253
- let collection = $bnqkB$useCollection(props, (nodes, prev)=>new $45e77d1d71e8160d$export$596e1b2e2cf93690(nodes, prev, context)
253
+ let collection = $85LnJ$useCollection(props, (nodes, prev)=>new $1ca231328db2f66a$export$596e1b2e2cf93690(nodes, prev, context)
254
254
  , context);
255
- let { disabledKeys: disabledKeys , selectionManager: selectionManager } = $bnqkB$useGridState({
255
+ let { disabledKeys: disabledKeys , selectionManager: selectionManager } = $85LnJ$useGridState({
256
256
  ...props,
257
257
  collection: collection
258
258
  });
@@ -265,21 +265,21 @@ function $5988e1c94b1ddb4c$export$907bcc6c48325fd6(props) {
265
265
  sort (columnKey) {
266
266
  props.onSortChange({
267
267
  column: columnKey,
268
- direction: props.sortDescriptor?.column === columnKey ? $5988e1c94b1ddb4c$var$OPPOSITE_SORT_DIRECTION[props.sortDescriptor.direction] : 'ascending'
268
+ direction: props.sortDescriptor?.column === columnKey ? $494692f36da31136$var$OPPOSITE_SORT_DIRECTION[props.sortDescriptor.direction] : 'ascending'
269
269
  });
270
270
  }
271
271
  };
272
272
  }
273
273
 
274
274
 
275
- var $b286aed832ce8fd8$exports = {};
275
+ var $3657764c2db588d6$exports = {};
276
276
 
277
- $parcel$export($b286aed832ce8fd8$exports, "TableHeader", () => $b286aed832ce8fd8$export$f850895b287ef28e);
277
+ $parcel$export($3657764c2db588d6$exports, "TableHeader", () => $3657764c2db588d6$export$f850895b287ef28e);
278
278
 
279
- function $b286aed832ce8fd8$var$TableHeader(props) {
279
+ function $3657764c2db588d6$var$TableHeader(props) {
280
280
  return null;
281
281
  }
282
- $b286aed832ce8fd8$var$TableHeader.getCollectionNode = function* getCollectionNode(props) {
282
+ $3657764c2db588d6$var$TableHeader.getCollectionNode = function* getCollectionNode(props) {
283
283
  let { children: children , columns: columns } = props;
284
284
  if (typeof children === 'function') {
285
285
  if (!columns) throw new Error('props.children was a function but props.columns is missing');
@@ -290,7 +290,7 @@ $b286aed832ce8fd8$var$TableHeader.getCollectionNode = function* getCollectionNod
290
290
  };
291
291
  } else {
292
292
  let columns = [];
293
- $bnqkB$react.Children.forEach(children, (column)=>{
293
+ $85LnJ$react.Children.forEach(children, (column)=>{
294
294
  columns.push({
295
295
  type: 'column',
296
296
  element: column
@@ -303,17 +303,17 @@ $b286aed832ce8fd8$var$TableHeader.getCollectionNode = function* getCollectionNod
303
303
  * A TableHeader is a container for the Column elements in a Table. Columns can be statically defined
304
304
  * as children, or generated dynamically using a function based on the data passed to the `columns` prop.
305
305
  */ // We don't want getCollectionNode to show up in the type definition
306
- let $b286aed832ce8fd8$export$f850895b287ef28e = $b286aed832ce8fd8$var$TableHeader;
306
+ let $3657764c2db588d6$export$f850895b287ef28e = $3657764c2db588d6$var$TableHeader;
307
307
 
308
308
 
309
- var $5c39000d73a44af7$exports = {};
309
+ var $99858a7515d0e6da$exports = {};
310
310
 
311
- $parcel$export($5c39000d73a44af7$exports, "TableBody", () => $5c39000d73a44af7$export$76ccd210b9029917);
311
+ $parcel$export($99858a7515d0e6da$exports, "TableBody", () => $99858a7515d0e6da$export$76ccd210b9029917);
312
312
 
313
- function $5c39000d73a44af7$var$TableBody(props) {
313
+ function $99858a7515d0e6da$var$TableBody(props) {
314
314
  return null;
315
315
  }
316
- $5c39000d73a44af7$var$TableBody.getCollectionNode = function* getCollectionNode(props) {
316
+ $99858a7515d0e6da$var$TableBody.getCollectionNode = function* getCollectionNode(props) {
317
317
  let { children: children , items: items1 } = props;
318
318
  yield {
319
319
  type: 'body',
@@ -329,7 +329,7 @@ $5c39000d73a44af7$var$TableBody.getCollectionNode = function* getCollectionNode(
329
329
  };
330
330
  } else {
331
331
  let items = [];
332
- $bnqkB$react.Children.forEach(children, (item)=>{
332
+ $85LnJ$react.Children.forEach(children, (item)=>{
333
333
  items.push({
334
334
  type: 'item',
335
335
  element: item
@@ -344,23 +344,23 @@ $5c39000d73a44af7$var$TableBody.getCollectionNode = function* getCollectionNode(
344
344
  * A TableBody is a container for the Row elements of a Table. Rows can be statically defined
345
345
  * as children, or generated dynamically using a function based on the data passed to the `items` prop.
346
346
  */ // We don't want getCollectionNode to show up in the type definition
347
- let $5c39000d73a44af7$export$76ccd210b9029917 = $5c39000d73a44af7$var$TableBody;
347
+ let $99858a7515d0e6da$export$76ccd210b9029917 = $99858a7515d0e6da$var$TableBody;
348
348
 
349
349
 
350
- var $601a0eca3e620c51$exports = {};
350
+ var $687413af9bbb06c5$exports = {};
351
351
 
352
- $parcel$export($601a0eca3e620c51$exports, "Column", () => $601a0eca3e620c51$export$816b5d811295e6bc);
352
+ $parcel$export($687413af9bbb06c5$exports, "Column", () => $687413af9bbb06c5$export$816b5d811295e6bc);
353
353
 
354
- function $601a0eca3e620c51$var$Column(props) {
354
+ function $687413af9bbb06c5$var$Column(props) {
355
355
  return null;
356
356
  }
357
- $601a0eca3e620c51$var$Column.getCollectionNode = function* getCollectionNode(props, context1) {
357
+ $687413af9bbb06c5$var$Column.getCollectionNode = function* getCollectionNode(props, context1) {
358
358
  let { title: title , children: children , childColumns: childColumns1 } = props;
359
359
  let rendered = title || children;
360
360
  let textValue = props.textValue || (typeof rendered === 'string' ? rendered : '') || props['aria-label'];
361
361
  let fullNodes = yield {
362
362
  type: 'column',
363
- hasChildNodes: !!childColumns1 || title && $bnqkB$react.Children.count(children) > 0,
363
+ hasChildNodes: !!childColumns1 || title && $85LnJ$react.Children.count(children) > 0,
364
364
  rendered: rendered,
365
365
  textValue: textValue,
366
366
  props: props,
@@ -371,7 +371,7 @@ $601a0eca3e620c51$var$Column.getCollectionNode = function* getCollectionNode(pro
371
371
  };
372
372
  else if (title) {
373
373
  let childColumns = [];
374
- $bnqkB$react.Children.forEach(children, (child)=>{
374
+ $85LnJ$react.Children.forEach(children, (child)=>{
375
375
  childColumns.push({
376
376
  type: 'column',
377
377
  element: child
@@ -399,17 +399,17 @@ $601a0eca3e620c51$var$Column.getCollectionNode = function* getCollectionNode(pro
399
399
  * Column elements to represent column groups. Nested columns can be statically defined as
400
400
  * children, or dynamically generated using a function based on the `childColumns` prop.
401
401
  */ // We don't want getCollectionNode to show up in the type definition
402
- let $601a0eca3e620c51$export$816b5d811295e6bc = $601a0eca3e620c51$var$Column;
402
+ let $687413af9bbb06c5$export$816b5d811295e6bc = $687413af9bbb06c5$var$Column;
403
403
 
404
404
 
405
- var $18fe3bbcee2d7365$exports = {};
405
+ var $f711e0e1fe2dac16$exports = {};
406
406
 
407
- $parcel$export($18fe3bbcee2d7365$exports, "Row", () => $18fe3bbcee2d7365$export$b59bdbef9ce70de2);
407
+ $parcel$export($f711e0e1fe2dac16$exports, "Row", () => $f711e0e1fe2dac16$export$b59bdbef9ce70de2);
408
408
 
409
- function $18fe3bbcee2d7365$var$Row(props) {
409
+ function $f711e0e1fe2dac16$var$Row(props) {
410
410
  return null;
411
411
  }
412
- $18fe3bbcee2d7365$var$Row.getCollectionNode = function* getCollectionNode(props, context) {
412
+ $f711e0e1fe2dac16$var$Row.getCollectionNode = function* getCollectionNode(props, context) {
413
413
  let { children: children , textValue: textValue } = props;
414
414
  yield {
415
415
  type: 'item',
@@ -433,7 +433,7 @@ $18fe3bbcee2d7365$var$Row.getCollectionNode = function* getCollectionNode(props,
433
433
  };
434
434
  else {
435
435
  let cells = [];
436
- $bnqkB$react.Children.forEach(children, (cell)=>{
436
+ $85LnJ$react.Children.forEach(children, (cell)=>{
437
437
  cells.push({
438
438
  type: 'cell',
439
439
  element: cell
@@ -455,16 +455,16 @@ $18fe3bbcee2d7365$var$Row.getCollectionNode = function* getCollectionNode(props,
455
455
  * Cells can be statically defined as children, or generated dynamically using a function
456
456
  * based on the columns defined in the TableHeader.
457
457
  */ // We don't want getCollectionNode to show up in the type definition
458
- let $18fe3bbcee2d7365$export$b59bdbef9ce70de2 = $18fe3bbcee2d7365$var$Row;
458
+ let $f711e0e1fe2dac16$export$b59bdbef9ce70de2 = $f711e0e1fe2dac16$var$Row;
459
459
 
460
460
 
461
- var $979115644a7d18aa$exports = {};
461
+ var $7926cbd9620c5dcc$exports = {};
462
462
 
463
- $parcel$export($979115644a7d18aa$exports, "Cell", () => $979115644a7d18aa$export$f6f0c3fe4ec306ea);
464
- function $979115644a7d18aa$var$Cell(props) {
463
+ $parcel$export($7926cbd9620c5dcc$exports, "Cell", () => $7926cbd9620c5dcc$export$f6f0c3fe4ec306ea);
464
+ function $7926cbd9620c5dcc$var$Cell(props) {
465
465
  return null;
466
466
  }
467
- $979115644a7d18aa$var$Cell.getCollectionNode = function* getCollectionNode(props) {
467
+ $7926cbd9620c5dcc$var$Cell.getCollectionNode = function* getCollectionNode(props) {
468
468
  let { children: children } = props;
469
469
  let textValue = props.textValue || (typeof children === 'string' ? children : '') || props['aria-label'] || '';
470
470
  yield {
@@ -479,11 +479,11 @@ $979115644a7d18aa$var$Cell.getCollectionNode = function* getCollectionNode(props
479
479
  /**
480
480
  * A Cell represents the value of a single Column within a Table Row.
481
481
  */ // We don't want getCollectionNode to show up in the type definition
482
- let $979115644a7d18aa$export$f6f0c3fe4ec306ea = $979115644a7d18aa$var$Cell;
482
+ let $7926cbd9620c5dcc$export$f6f0c3fe4ec306ea = $7926cbd9620c5dcc$var$Cell;
483
483
 
484
484
 
485
485
 
486
486
 
487
487
 
488
- export {$85d1946e7f6d42c5$re_export$Section as Section, $5988e1c94b1ddb4c$export$907bcc6c48325fd6 as useTableState, $b286aed832ce8fd8$export$f850895b287ef28e as TableHeader, $5c39000d73a44af7$export$76ccd210b9029917 as TableBody, $601a0eca3e620c51$export$816b5d811295e6bc as Column, $18fe3bbcee2d7365$export$b59bdbef9ce70de2 as Row, $979115644a7d18aa$export$f6f0c3fe4ec306ea as Cell};
488
+ export {$cd96ac1a79e6f1d2$re_export$Section as Section, $494692f36da31136$export$907bcc6c48325fd6 as useTableState, $3657764c2db588d6$export$f850895b287ef28e as TableHeader, $99858a7515d0e6da$export$76ccd210b9029917 as TableBody, $687413af9bbb06c5$export$816b5d811295e6bc as Column, $f711e0e1fe2dac16$export$b59bdbef9ce70de2 as Row, $7926cbd9620c5dcc$export$f6f0c3fe4ec306ea as Cell};
489
489
  //# sourceMappingURL=module.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-stately/table",
3
- "version": "3.1.1-nightly.3085+dfe72ee07",
3
+ "version": "3.1.1-nightly.3100+da2aa7467",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -18,12 +18,12 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@babel/runtime": "^7.6.2",
21
- "@react-stately/collections": "3.0.0-nightly.1394+dfe72ee07",
22
- "@react-stately/grid": "3.1.1-nightly.3085+dfe72ee07",
23
- "@react-stately/selection": "3.0.0-nightly.1394+dfe72ee07",
24
- "@react-types/grid": "3.0.1-nightly.3085+dfe72ee07",
25
- "@react-types/shared": "3.0.0-nightly.1394+dfe72ee07",
26
- "@react-types/table": "3.1.1-nightly.3085+dfe72ee07"
21
+ "@react-stately/collections": "3.0.0-nightly.1409+da2aa7467",
22
+ "@react-stately/grid": "3.1.1-nightly.3100+da2aa7467",
23
+ "@react-stately/selection": "3.0.0-nightly.1409+da2aa7467",
24
+ "@react-types/grid": "3.0.1-nightly.3100+da2aa7467",
25
+ "@react-types/shared": "3.0.0-nightly.1409+da2aa7467",
26
+ "@react-types/table": "3.1.1-nightly.3100+da2aa7467"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": "^16.8.0 || ^17.0.0-rc.1"
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "dfe72ee076f7ca27728d0b6b4c1ef86e11191ece"
34
+ "gitHead": "da2aa74670fbd93335ff01401ca53826b3602777"
35
35
  }