@teselagen/react-table 6.10.11 → 6.10.13

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/react-table.js CHANGED
@@ -67,8 +67,7 @@ var classnames = createCommonjsModule(function (module) {
67
67
  }());
68
68
  });
69
69
 
70
- var reactIs_production_min = createCommonjsModule(function (module, exports) {
71
- /** @license React v16.8.6
70
+ /** @license React v16.13.1
72
71
  * react-is.production.min.js
73
72
  *
74
73
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -77,46 +76,46 @@ var reactIs_production_min = createCommonjsModule(function (module, exports) {
77
76
  * LICENSE file in the root directory of this source tree.
78
77
  */
79
78
 
80
- Object.defineProperty(exports,"__esModule",{value:!0});
81
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.memo"):
82
- 60115,r=b?Symbol.for("react.lazy"):60116;function t(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type, a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof, a){case k:case n:case h:return a;default:return u}}case r:case q:case d:return u}}}function v(a){return t(a)===m}exports.typeOf=t;exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;
83
- exports.Fragment=e;exports.Lazy=r;exports.Memo=q;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||"object"===typeof a&&null!==a&&(a.$$typeof===r||a.$$typeof===q||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n)};exports.isAsyncMode=function(a){return v(a)||t(a)===l};exports.isConcurrentMode=v;exports.isContextConsumer=function(a){return t(a)===k};
84
- exports.isContextProvider=function(a){return t(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return t(a)===n};exports.isFragment=function(a){return t(a)===e};exports.isLazy=function(a){return t(a)===r};exports.isMemo=function(a){return t(a)===q};exports.isPortal=function(a){return t(a)===d};exports.isProfiler=function(a){return t(a)===g};exports.isStrictMode=function(a){return t(a)===f};
85
- exports.isSuspense=function(a){return t(a)===p};
86
- });
87
-
88
- unwrapExports(reactIs_production_min);
89
- var reactIs_production_min_1 = reactIs_production_min.typeOf;
90
- var reactIs_production_min_2 = reactIs_production_min.AsyncMode;
91
- var reactIs_production_min_3 = reactIs_production_min.ConcurrentMode;
92
- var reactIs_production_min_4 = reactIs_production_min.ContextConsumer;
93
- var reactIs_production_min_5 = reactIs_production_min.ContextProvider;
94
- var reactIs_production_min_6 = reactIs_production_min.Element;
95
- var reactIs_production_min_7 = reactIs_production_min.ForwardRef;
96
- var reactIs_production_min_8 = reactIs_production_min.Fragment;
97
- var reactIs_production_min_9 = reactIs_production_min.Lazy;
98
- var reactIs_production_min_10 = reactIs_production_min.Memo;
99
- var reactIs_production_min_11 = reactIs_production_min.Portal;
100
- var reactIs_production_min_12 = reactIs_production_min.Profiler;
101
- var reactIs_production_min_13 = reactIs_production_min.StrictMode;
102
- var reactIs_production_min_14 = reactIs_production_min.Suspense;
103
- var reactIs_production_min_15 = reactIs_production_min.isValidElementType;
104
- var reactIs_production_min_16 = reactIs_production_min.isAsyncMode;
105
- var reactIs_production_min_17 = reactIs_production_min.isConcurrentMode;
106
- var reactIs_production_min_18 = reactIs_production_min.isContextConsumer;
107
- var reactIs_production_min_19 = reactIs_production_min.isContextProvider;
108
- var reactIs_production_min_20 = reactIs_production_min.isElement;
109
- var reactIs_production_min_21 = reactIs_production_min.isForwardRef;
110
- var reactIs_production_min_22 = reactIs_production_min.isFragment;
111
- var reactIs_production_min_23 = reactIs_production_min.isLazy;
112
- var reactIs_production_min_24 = reactIs_production_min.isMemo;
113
- var reactIs_production_min_25 = reactIs_production_min.isPortal;
114
- var reactIs_production_min_26 = reactIs_production_min.isProfiler;
115
- var reactIs_production_min_27 = reactIs_production_min.isStrictMode;
116
- var reactIs_production_min_28 = reactIs_production_min.isSuspense;
79
+ var b="function"===typeof Symbol&&Symbol.for; var c=b?Symbol.for("react.element"):60103; var d=b?Symbol.for("react.portal"):60106; var e=b?Symbol.for("react.fragment"):60107; var f=b?Symbol.for("react.strict_mode"):60108; var g=b?Symbol.for("react.profiler"):60114; var h=b?Symbol.for("react.provider"):60109; var k=b?Symbol.for("react.context"):60110; var l=b?Symbol.for("react.async_mode"):60111; var m=b?Symbol.for("react.concurrent_mode"):60111; var n=b?Symbol.for("react.forward_ref"):60112; var p=b?Symbol.for("react.suspense"):60113; var q=b?
80
+ Symbol.for("react.suspense_list"):60120; var r=b?Symbol.for("react.memo"):60115; var t=b?Symbol.for("react.lazy"):60116; var v=b?Symbol.for("react.block"):60121; var w=b?Symbol.for("react.fundamental"):60117; var x=b?Symbol.for("react.responder"):60118; var y=b?Symbol.for("react.scope"):60119;
81
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type, a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof, a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
82
+ var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
83
+ var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
84
+ var isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
85
+
86
+ var reactIs_production_min = {
87
+ AsyncMode: AsyncMode,
88
+ ConcurrentMode: ConcurrentMode,
89
+ ContextConsumer: ContextConsumer,
90
+ ContextProvider: ContextProvider,
91
+ Element: Element,
92
+ ForwardRef: ForwardRef,
93
+ Fragment: Fragment,
94
+ Lazy: Lazy,
95
+ Memo: Memo,
96
+ Portal: Portal,
97
+ Profiler: Profiler,
98
+ StrictMode: StrictMode,
99
+ Suspense: Suspense,
100
+ isAsyncMode: isAsyncMode,
101
+ isConcurrentMode: isConcurrentMode,
102
+ isContextConsumer: isContextConsumer,
103
+ isContextProvider: isContextProvider,
104
+ isElement: isElement,
105
+ isForwardRef: isForwardRef,
106
+ isFragment: isFragment,
107
+ isLazy: isLazy,
108
+ isMemo: isMemo,
109
+ isPortal: isPortal,
110
+ isProfiler: isProfiler,
111
+ isStrictMode: isStrictMode,
112
+ isSuspense: isSuspense,
113
+ isValidElementType: isValidElementType,
114
+ typeOf: typeOf
115
+ };
117
116
 
118
117
  var reactIs_development = createCommonjsModule(function (module, exports) {
119
- /** @license React v16.8.6
118
+ /** @license React v16.13.1
120
119
  * react-is.development.js
121
120
  *
122
121
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -127,88 +126,37 @@ var reactIs_development = createCommonjsModule(function (module, exports) {
127
126
 
128
127
  if (undefined !== "production") {
129
128
  (function() {
130
- Object.defineProperty(exports, '__esModule', { value: true });
131
-
132
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
133
- // nor polyfill, then a plain number is used for performance.
134
129
  var hasSymbol = typeof Symbol === 'function' && Symbol.for;
135
-
136
130
  var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
137
131
  var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
138
132
  var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
139
133
  var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
140
134
  var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
141
135
  var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
142
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
136
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
137
+ // (unstable) APIs that have been removed. Can we remove the symbols?
138
+
143
139
  var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
144
140
  var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
145
141
  var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
146
142
  var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
143
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
147
144
  var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
148
145
  var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
146
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
147
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
148
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
149
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
149
150
 
150
151
  function isValidElementType(type) {
151
- return typeof type === 'string' || typeof type === 'function' ||
152
- // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
153
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
154
- }
155
-
156
- /**
157
- * Forked from fbjs/warning:
158
- * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
159
- *
160
- * Only change is we use console.warn instead of console.error,
161
- * and do nothing when 'console' is not supported.
162
- * This really simplifies the code.
163
- * ---
164
- * Similar to invariant but only logs a warning if the condition is not met.
165
- * This can be used to log issues in development environments in critical
166
- * paths. Removing the logging code for production environments will keep the
167
- * same logic and follow the same code paths.
168
- */
169
-
170
- var lowPriorityWarning = function () {};
171
-
172
- {
173
- var printWarning = function (format) {
174
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
175
- args[_key - 1] = arguments[_key];
176
- }
177
-
178
- var argIndex = 0;
179
- var message = 'Warning: ' + format.replace(/%s/g, function () {
180
- return args[argIndex++];
181
- });
182
- if (typeof console !== 'undefined') {
183
- console.warn(message);
184
- }
185
- try {
186
- // --- Welcome to debugging React ---
187
- // This error was thrown as a convenience so that you can use this stack
188
- // to find the callsite that caused this warning to fire.
189
- throw new Error(message);
190
- } catch (x) {}
191
- };
192
-
193
- lowPriorityWarning = function (condition, format) {
194
- if (format === undefined) {
195
- throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
196
- }
197
- if (!condition) {
198
- for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
199
- args[_key2 - 2] = arguments[_key2];
200
- }
201
-
202
- printWarning.apply(undefined, [format].concat(args));
203
- }
204
- };
152
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
153
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
205
154
  }
206
155
 
207
- var lowPriorityWarning$1 = lowPriorityWarning;
208
-
209
156
  function typeOf(object) {
210
157
  if (typeof object === 'object' && object !== null) {
211
158
  var $$typeof = object.$$typeof;
159
+
212
160
  switch ($$typeof) {
213
161
  case REACT_ELEMENT_TYPE:
214
162
  var type = object.type;
@@ -221,29 +169,32 @@ function typeOf(object) {
221
169
  case REACT_STRICT_MODE_TYPE:
222
170
  case REACT_SUSPENSE_TYPE:
223
171
  return type;
172
+
224
173
  default:
225
174
  var $$typeofType = type && type.$$typeof;
226
175
 
227
176
  switch ($$typeofType) {
228
177
  case REACT_CONTEXT_TYPE:
229
178
  case REACT_FORWARD_REF_TYPE:
179
+ case REACT_LAZY_TYPE:
180
+ case REACT_MEMO_TYPE:
230
181
  case REACT_PROVIDER_TYPE:
231
182
  return $$typeofType;
183
+
232
184
  default:
233
185
  return $$typeof;
234
186
  }
187
+
235
188
  }
236
- case REACT_LAZY_TYPE:
237
- case REACT_MEMO_TYPE:
189
+
238
190
  case REACT_PORTAL_TYPE:
239
191
  return $$typeof;
240
192
  }
241
193
  }
242
194
 
243
195
  return undefined;
244
- }
196
+ } // AsyncMode is deprecated along with isAsyncMode
245
197
 
246
- // AsyncMode is deprecated along with isAsyncMode
247
198
  var AsyncMode = REACT_ASYNC_MODE_TYPE;
248
199
  var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
249
200
  var ContextConsumer = REACT_CONTEXT_TYPE;
@@ -257,17 +208,17 @@ var Portal = REACT_PORTAL_TYPE;
257
208
  var Profiler = REACT_PROFILER_TYPE;
258
209
  var StrictMode = REACT_STRICT_MODE_TYPE;
259
210
  var Suspense = REACT_SUSPENSE_TYPE;
211
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
260
212
 
261
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
262
-
263
- // AsyncMode should be deprecated
264
213
  function isAsyncMode(object) {
265
214
  {
266
215
  if (!hasWarnedAboutDeprecatedIsAsyncMode) {
267
- hasWarnedAboutDeprecatedIsAsyncMode = true;
268
- lowPriorityWarning$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
216
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
217
+
218
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
269
219
  }
270
220
  }
221
+
271
222
  return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
272
223
  }
273
224
  function isConcurrentMode(object) {
@@ -307,7 +258,6 @@ function isSuspense(object) {
307
258
  return typeOf(object) === REACT_SUSPENSE_TYPE;
308
259
  }
309
260
 
310
- exports.typeOf = typeOf;
311
261
  exports.AsyncMode = AsyncMode;
312
262
  exports.ConcurrentMode = ConcurrentMode;
313
263
  exports.ContextConsumer = ContextConsumer;
@@ -321,7 +271,6 @@ exports.Portal = Portal;
321
271
  exports.Profiler = Profiler;
322
272
  exports.StrictMode = StrictMode;
323
273
  exports.Suspense = Suspense;
324
- exports.isValidElementType = isValidElementType;
325
274
  exports.isAsyncMode = isAsyncMode;
326
275
  exports.isConcurrentMode = isConcurrentMode;
327
276
  exports.isContextConsumer = isContextConsumer;
@@ -335,39 +284,40 @@ exports.isPortal = isPortal;
335
284
  exports.isProfiler = isProfiler;
336
285
  exports.isStrictMode = isStrictMode;
337
286
  exports.isSuspense = isSuspense;
287
+ exports.isValidElementType = isValidElementType;
288
+ exports.typeOf = typeOf;
338
289
  })();
339
290
  }
340
291
  });
341
292
 
342
- unwrapExports(reactIs_development);
343
- var reactIs_development_1 = reactIs_development.typeOf;
344
- var reactIs_development_2 = reactIs_development.AsyncMode;
345
- var reactIs_development_3 = reactIs_development.ConcurrentMode;
346
- var reactIs_development_4 = reactIs_development.ContextConsumer;
347
- var reactIs_development_5 = reactIs_development.ContextProvider;
348
- var reactIs_development_6 = reactIs_development.Element;
349
- var reactIs_development_7 = reactIs_development.ForwardRef;
350
- var reactIs_development_8 = reactIs_development.Fragment;
351
- var reactIs_development_9 = reactIs_development.Lazy;
352
- var reactIs_development_10 = reactIs_development.Memo;
353
- var reactIs_development_11 = reactIs_development.Portal;
354
- var reactIs_development_12 = reactIs_development.Profiler;
355
- var reactIs_development_13 = reactIs_development.StrictMode;
356
- var reactIs_development_14 = reactIs_development.Suspense;
357
- var reactIs_development_15 = reactIs_development.isValidElementType;
358
- var reactIs_development_16 = reactIs_development.isAsyncMode;
359
- var reactIs_development_17 = reactIs_development.isConcurrentMode;
360
- var reactIs_development_18 = reactIs_development.isContextConsumer;
361
- var reactIs_development_19 = reactIs_development.isContextProvider;
362
- var reactIs_development_20 = reactIs_development.isElement;
363
- var reactIs_development_21 = reactIs_development.isForwardRef;
364
- var reactIs_development_22 = reactIs_development.isFragment;
365
- var reactIs_development_23 = reactIs_development.isLazy;
366
- var reactIs_development_24 = reactIs_development.isMemo;
367
- var reactIs_development_25 = reactIs_development.isPortal;
368
- var reactIs_development_26 = reactIs_development.isProfiler;
369
- var reactIs_development_27 = reactIs_development.isStrictMode;
370
- var reactIs_development_28 = reactIs_development.isSuspense;
293
+ var reactIs_development_1 = reactIs_development.AsyncMode;
294
+ var reactIs_development_2 = reactIs_development.ConcurrentMode;
295
+ var reactIs_development_3 = reactIs_development.ContextConsumer;
296
+ var reactIs_development_4 = reactIs_development.ContextProvider;
297
+ var reactIs_development_5 = reactIs_development.Element;
298
+ var reactIs_development_6 = reactIs_development.ForwardRef;
299
+ var reactIs_development_7 = reactIs_development.Fragment;
300
+ var reactIs_development_8 = reactIs_development.Lazy;
301
+ var reactIs_development_9 = reactIs_development.Memo;
302
+ var reactIs_development_10 = reactIs_development.Portal;
303
+ var reactIs_development_11 = reactIs_development.Profiler;
304
+ var reactIs_development_12 = reactIs_development.StrictMode;
305
+ var reactIs_development_13 = reactIs_development.Suspense;
306
+ var reactIs_development_14 = reactIs_development.isAsyncMode;
307
+ var reactIs_development_15 = reactIs_development.isConcurrentMode;
308
+ var reactIs_development_16 = reactIs_development.isContextConsumer;
309
+ var reactIs_development_17 = reactIs_development.isContextProvider;
310
+ var reactIs_development_18 = reactIs_development.isElement;
311
+ var reactIs_development_19 = reactIs_development.isForwardRef;
312
+ var reactIs_development_20 = reactIs_development.isFragment;
313
+ var reactIs_development_21 = reactIs_development.isLazy;
314
+ var reactIs_development_22 = reactIs_development.isMemo;
315
+ var reactIs_development_23 = reactIs_development.isPortal;
316
+ var reactIs_development_24 = reactIs_development.isProfiler;
317
+ var reactIs_development_25 = reactIs_development.isStrictMode;
318
+ var reactIs_development_26 = reactIs_development.isSuspense;
319
+ var reactIs_development_27 = reactIs_development.isValidElementType;
320
+ var reactIs_development_28 = reactIs_development.typeOf;
371
321
 
372
322
  var reactIs = createCommonjsModule(function (module) {
373
323
  if (undefined === 'production') {
@@ -478,12 +428,14 @@ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
478
428
 
479
429
  var ReactPropTypesSecret_1 = ReactPropTypesSecret;
480
430
 
431
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
432
+
481
433
  var printWarning = function() {};
482
434
 
483
435
  if (undefined !== 'production') {
484
436
  var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
485
437
  var loggedTypeFailures = {};
486
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
438
+ var has$2 = has;
487
439
 
488
440
  printWarning = function(text) {
489
441
  var message = 'Warning: ' + text;
@@ -495,7 +447,7 @@ if (undefined !== 'production') {
495
447
  // This error was thrown as a convenience so that you can use this stack
496
448
  // to find the callsite that caused this warning to fire.
497
449
  throw new Error(message);
498
- } catch (x) {}
450
+ } catch (x) { /**/ }
499
451
  };
500
452
  }
501
453
 
@@ -513,7 +465,7 @@ if (undefined !== 'production') {
513
465
  function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
514
466
  if (undefined !== 'production') {
515
467
  for (var typeSpecName in typeSpecs) {
516
- if (has(typeSpecs, typeSpecName)) {
468
+ if (has$2(typeSpecs, typeSpecName)) {
517
469
  var error;
518
470
  // Prop type validation may throw. In case they do, we don't want to
519
471
  // fail the render phase where it didn't fail before. So we log it.
@@ -524,7 +476,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
524
476
  if (typeof typeSpecs[typeSpecName] !== 'function') {
525
477
  var err = Error(
526
478
  (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
527
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
479
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
480
+ 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
528
481
  );
529
482
  err.name = 'Invariant Violation';
530
483
  throw err;
@@ -572,7 +525,6 @@ checkPropTypes.resetWarningCache = function() {
572
525
 
573
526
  var checkPropTypes_1 = checkPropTypes;
574
527
 
575
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
576
528
  var printWarning$1 = function() {};
577
529
 
578
530
  if (undefined !== 'production') {
@@ -673,6 +625,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
673
625
  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
674
626
  var ReactPropTypes = {
675
627
  array: createPrimitiveTypeChecker('array'),
628
+ bigint: createPrimitiveTypeChecker('bigint'),
676
629
  bool: createPrimitiveTypeChecker('boolean'),
677
630
  func: createPrimitiveTypeChecker('function'),
678
631
  number: createPrimitiveTypeChecker('number'),
@@ -718,8 +671,9 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
718
671
  * is prohibitively expensive if they are created too often, such as what
719
672
  * happens in oneOfType() for any type before the one that matched.
720
673
  */
721
- function PropTypeError(message) {
674
+ function PropTypeError(message, data) {
722
675
  this.message = message;
676
+ this.data = data && typeof data === 'object' ? data: {};
723
677
  this.stack = '';
724
678
  }
725
679
  // Make `instanceof Error` still work for returned errors.
@@ -754,7 +708,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
754
708
  ) {
755
709
  printWarning$1(
756
710
  'You are manually calling a React.PropTypes validation ' +
757
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
711
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
758
712
  'and will throw in the standalone `prop-types` package. ' +
759
713
  'You may be seeing this warning due to a third-party PropTypes ' +
760
714
  'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
@@ -793,7 +747,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
793
747
  // 'of type `object`'.
794
748
  var preciseType = getPreciseType(propValue);
795
749
 
796
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
750
+ return new PropTypeError(
751
+ 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
752
+ {expectedType: expectedType}
753
+ );
797
754
  }
798
755
  return null;
799
756
  }
@@ -907,7 +864,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
907
864
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
908
865
  }
909
866
  for (var key in propValue) {
910
- if (has$1(propValue, key)) {
867
+ if (has(propValue, key)) {
911
868
  var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
912
869
  if (error instanceof Error) {
913
870
  return error;
@@ -937,14 +894,19 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
937
894
  }
938
895
 
939
896
  function validate(props, propName, componentName, location, propFullName) {
897
+ var expectedTypes = [];
940
898
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
941
899
  var checker = arrayOfTypeCheckers[i];
942
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) {
900
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1);
901
+ if (checkerResult == null) {
943
902
  return null;
944
903
  }
904
+ if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
905
+ expectedTypes.push(checkerResult.data.expectedType);
906
+ }
945
907
  }
946
-
947
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
908
+ var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
909
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
948
910
  }
949
911
  return createChainableTypeChecker(validate);
950
912
  }
@@ -959,6 +921,13 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
959
921
  return createChainableTypeChecker(validate);
960
922
  }
961
923
 
924
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
925
+ return new PropTypeError(
926
+ (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
927
+ 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
928
+ );
929
+ }
930
+
962
931
  function createShapeTypeChecker(shapeTypes) {
963
932
  function validate(props, propName, componentName, location, propFullName) {
964
933
  var propValue = props[propName];
@@ -968,8 +937,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
968
937
  }
969
938
  for (var key in shapeTypes) {
970
939
  var checker = shapeTypes[key];
971
- if (!checker) {
972
- continue;
940
+ if (typeof checker !== 'function') {
941
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
973
942
  }
974
943
  var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
975
944
  if (error) {
@@ -988,16 +957,18 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
988
957
  if (propType !== 'object') {
989
958
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
990
959
  }
991
- // We need to check all keys in case some are required but missing from
992
- // props.
960
+ // We need to check all keys in case some are required but missing from props.
993
961
  var allKeys = objectAssign({}, props[propName], shapeTypes);
994
962
  for (var key in allKeys) {
995
963
  var checker = shapeTypes[key];
964
+ if (has(shapeTypes, key) && typeof checker !== 'function') {
965
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
966
+ }
996
967
  if (!checker) {
997
968
  return new PropTypeError(
998
969
  'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
999
970
  '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1000
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
971
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1001
972
  );
1002
973
  }
1003
974
  var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
@@ -1175,6 +1146,7 @@ var factoryWithThrowingShims = function() {
1175
1146
  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1176
1147
  var ReactPropTypes = {
1177
1148
  array: shim,
1149
+ bigint: shim,
1178
1150
  bool: shim,
1179
1151
  func: shim,
1180
1152
  number: shim,
@@ -3998,6 +3970,32 @@ var ReactTable = function (_Methods) {
3998
3970
  _this.resizeColumnEnd = _this.resizeColumnEnd.bind(_this);
3999
3971
  _this.resizeColumnMoving = _this.resizeColumnMoving.bind(_this);
4000
3972
 
3973
+ setTimeout(function () {
3974
+ // tnw: this is some very hacky code to set the initial column widths
3975
+ try {
3976
+ var newResized = _this.props.defaultResized || [];
3977
+ _this.tableRef.querySelectorAll('.tg-react-table-column-header').forEach(function (th) {
3978
+ var _th$parentNode$parent = th.parentNode.parentNode.getBoundingClientRect(),
3979
+ width = _th$parentNode$parent.width;
3980
+
3981
+ var id = th.getAttribute('data-path');
3982
+ if (!newResized.find(function (x) {
3983
+ return x.id === id;
3984
+ })) {
3985
+ newResized.push({
3986
+ id: id,
3987
+ value: width
3988
+ });
3989
+ }
3990
+ });
3991
+ _this.setState({
3992
+ resized: newResized
3993
+ });
3994
+ } catch (e) {
3995
+ console.warn('TNW: Error setting initial table column widths (please contact @tnrich if you see this error. thanks!):', e);
3996
+ }
3997
+ }, 0);
3998
+
4001
3999
  _this.state = {
4002
4000
  page: props.defaultPage,
4003
4001
  pageSize: props.defaultPageSize,
@@ -4699,7 +4697,15 @@ var ReactTable = function (_Methods) {
4699
4697
  _extends({
4700
4698
  className: classnames('ReactTable', className, rootProps.className),
4701
4699
  style: _extends({}, style, rootProps.style)
4702
- }, rootProps.rest),
4700
+ }, rootProps.rest, {
4701
+ ref: function ref(r) {
4702
+ if (!r) return;
4703
+ if (rootProps.rest.ref) {
4704
+ rootProps.rest.ref(r);
4705
+ }
4706
+ _this2.tableRef = r;
4707
+ }
4708
+ }),
4703
4709
  showPagination && showPaginationTop ? React__default.createElement(
4704
4710
  'div',
4705
4711
  { className: 'pagination-top' },