material-react-table 2.13.2 → 3.0.0-alpha.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/README.md +3 -3
- package/dist/index.d.ts +3 -11
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
- package/src/types.ts +2 -13
- package/src/utils/utils.ts +1 -1
package/dist/index.js
CHANGED
@@ -327,7 +327,7 @@ const createRow = (table, originalRow, rowIndex = -1, depth = 0, subRows, parent
|
|
327
327
|
|
328
328
|
const parseFromValuesOrFunc = (fn, arg) => (fn instanceof Function ? fn(arg) : fn);
|
329
329
|
const getValueAndLabel = (option) => {
|
330
|
-
var _a, _b
|
330
|
+
var _a, _b;
|
331
331
|
let label = '';
|
332
332
|
let value = '';
|
333
333
|
if (option) {
|
@@ -336,8 +336,8 @@ const getValueAndLabel = (option) => {
|
|
336
336
|
value = option;
|
337
337
|
}
|
338
338
|
else {
|
339
|
-
label = (
|
340
|
-
value = (
|
339
|
+
label = (_a = option.label) !== null && _a !== void 0 ? _a : option.value;
|
340
|
+
value = (_b = option.value) !== null && _b !== void 0 ? _b : label;
|
341
341
|
}
|
342
342
|
}
|
343
343
|
return { label, value };
|