@redsift/table 8.0.3 → 8.0.4
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/index.js +43 -57
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -115,21 +115,6 @@ function chainPropTypes(propType1, propType2) {
|
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
function _extends() {
|
|
119
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
120
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
121
|
-
var source = arguments[i];
|
|
122
|
-
for (var key in source) {
|
|
123
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
124
|
-
target[key] = source[key];
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return target;
|
|
129
|
-
};
|
|
130
|
-
return _extends.apply(this, arguments);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
118
|
function isPlainObject(item) {
|
|
134
119
|
return item !== null && typeof item === 'object' && item.constructor === Object;
|
|
135
120
|
}
|
|
@@ -146,7 +131,9 @@ function deepClone(source) {
|
|
|
146
131
|
function deepmerge(target, source, options = {
|
|
147
132
|
clone: true
|
|
148
133
|
}) {
|
|
149
|
-
const output = options.clone ?
|
|
134
|
+
const output = options.clone ? {
|
|
135
|
+
...target
|
|
136
|
+
} : target;
|
|
150
137
|
if (isPlainObject(target) && isPlainObject(source)) {
|
|
151
138
|
Object.keys(source).forEach(key => {
|
|
152
139
|
// Avoid prototype pollution
|
|
@@ -1366,7 +1353,8 @@ function exactProp(propTypes) {
|
|
|
1366
1353
|
if (process.env.NODE_ENV === 'production') {
|
|
1367
1354
|
return propTypes;
|
|
1368
1355
|
}
|
|
1369
|
-
return
|
|
1356
|
+
return {
|
|
1357
|
+
...propTypes,
|
|
1370
1358
|
[specialProperty]: props => {
|
|
1371
1359
|
const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));
|
|
1372
1360
|
if (unsupportedProps.length > 0) {
|
|
@@ -1374,7 +1362,7 @@ function exactProp(propTypes) {
|
|
|
1374
1362
|
}
|
|
1375
1363
|
return null;
|
|
1376
1364
|
}
|
|
1377
|
-
}
|
|
1365
|
+
};
|
|
1378
1366
|
}
|
|
1379
1367
|
|
|
1380
1368
|
/**
|
|
@@ -1748,7 +1736,6 @@ function debounce(func, wait = 166) {
|
|
|
1748
1736
|
let timeout;
|
|
1749
1737
|
function debounced(...args) {
|
|
1750
1738
|
const later = () => {
|
|
1751
|
-
// @ts-ignore
|
|
1752
1739
|
func.apply(this, args);
|
|
1753
1740
|
};
|
|
1754
1741
|
clearTimeout(timeout);
|
|
@@ -1967,10 +1954,15 @@ var integerPropType = process.env.NODE_ENV === 'production' ? validatorNoop : va
|
|
|
1967
1954
|
* @returns {object} resolved props
|
|
1968
1955
|
*/
|
|
1969
1956
|
function resolveProps(defaultProps, props) {
|
|
1970
|
-
const output =
|
|
1957
|
+
const output = {
|
|
1958
|
+
...props
|
|
1959
|
+
};
|
|
1971
1960
|
Object.keys(defaultProps).forEach(propName => {
|
|
1972
1961
|
if (propName.toString().match(/^(components|slots)$/)) {
|
|
1973
|
-
output[propName] =
|
|
1962
|
+
output[propName] = {
|
|
1963
|
+
...defaultProps[propName],
|
|
1964
|
+
...output[propName]
|
|
1965
|
+
};
|
|
1974
1966
|
} else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {
|
|
1975
1967
|
const defaultSlotProps = defaultProps[propName] || {};
|
|
1976
1968
|
const slotProps = props[propName];
|
|
@@ -1982,7 +1974,9 @@ function resolveProps(defaultProps, props) {
|
|
|
1982
1974
|
// Reduce the iteration if the default slot props is empty
|
|
1983
1975
|
output[propName] = slotProps;
|
|
1984
1976
|
} else {
|
|
1985
|
-
output[propName] =
|
|
1977
|
+
output[propName] = {
|
|
1978
|
+
...slotProps
|
|
1979
|
+
};
|
|
1986
1980
|
Object.keys(defaultSlotProps).forEach(slotPropName => {
|
|
1987
1981
|
output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);
|
|
1988
1982
|
});
|
|
@@ -3448,6 +3442,21 @@ const internal_processStyles = (tag, processor) => {
|
|
|
3448
3442
|
}
|
|
3449
3443
|
};
|
|
3450
3444
|
|
|
3445
|
+
function _extends() {
|
|
3446
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
3447
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
3448
|
+
var source = arguments[i];
|
|
3449
|
+
for (var key in source) {
|
|
3450
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
3451
|
+
target[key] = source[key];
|
|
3452
|
+
}
|
|
3453
|
+
}
|
|
3454
|
+
}
|
|
3455
|
+
return target;
|
|
3456
|
+
};
|
|
3457
|
+
return _extends.apply(this, arguments);
|
|
3458
|
+
}
|
|
3459
|
+
|
|
3451
3460
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
3452
3461
|
if (source == null) return {};
|
|
3453
3462
|
var target = {};
|
|
@@ -6221,11 +6230,11 @@ function defaultIsEnabled() {
|
|
|
6221
6230
|
*
|
|
6222
6231
|
* Demos:
|
|
6223
6232
|
*
|
|
6224
|
-
* - [Focus Trap](https://mui.com/base
|
|
6233
|
+
* - [Focus Trap](https://mui.com/base/react-focus-trap/)
|
|
6225
6234
|
*
|
|
6226
6235
|
* API:
|
|
6227
6236
|
*
|
|
6228
|
-
* - [FocusTrap API](https://mui.com/base
|
|
6237
|
+
* - [FocusTrap API](https://mui.com/base/react-focus-trap/components-api/#focus-trap)
|
|
6229
6238
|
*/
|
|
6230
6239
|
function FocusTrap(props) {
|
|
6231
6240
|
const {
|
|
@@ -6482,11 +6491,11 @@ function getContainer$1(container) {
|
|
|
6482
6491
|
*
|
|
6483
6492
|
* Demos:
|
|
6484
6493
|
*
|
|
6485
|
-
* - [Portal](https://mui.com/base
|
|
6494
|
+
* - [Portal](https://mui.com/base/react-portal/)
|
|
6486
6495
|
*
|
|
6487
6496
|
* API:
|
|
6488
6497
|
*
|
|
6489
|
-
* - [Portal API](https://mui.com/base
|
|
6498
|
+
* - [Portal API](https://mui.com/base/react-portal/components-api/#portal)
|
|
6490
6499
|
*/
|
|
6491
6500
|
const Portal = /*#__PURE__*/React.forwardRef(function Portal(props, forwardedRef) {
|
|
6492
6501
|
const {
|
|
@@ -6811,11 +6820,11 @@ const defaultManager = new ModalManager();
|
|
|
6811
6820
|
*
|
|
6812
6821
|
* Demos:
|
|
6813
6822
|
*
|
|
6814
|
-
* - [Modal](https://mui.com/base
|
|
6823
|
+
* - [Modal](https://mui.com/base/react-modal/)
|
|
6815
6824
|
*
|
|
6816
6825
|
* API:
|
|
6817
6826
|
*
|
|
6818
|
-
* - [Modal API](https://mui.com/base
|
|
6827
|
+
* - [Modal API](https://mui.com/base/react-modal/components-api/#modal)
|
|
6819
6828
|
*/
|
|
6820
6829
|
const Modal$2 = /*#__PURE__*/React.forwardRef(function Modal(props, forwardedRef) {
|
|
6821
6830
|
var _props$ariaHidden, _slots$root;
|
|
@@ -7108,14 +7117,6 @@ process.env.NODE_ENV !== "production" ? Modal$2.propTypes /* remove-proptypes */
|
|
|
7108
7117
|
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
7109
7118
|
*/
|
|
7110
7119
|
onClose: PropTypes.func,
|
|
7111
|
-
/**
|
|
7112
|
-
* A function called when a transition enters.
|
|
7113
|
-
*/
|
|
7114
|
-
onTransitionEnter: PropTypes.func,
|
|
7115
|
-
/**
|
|
7116
|
-
* A function called when a transition has exited.
|
|
7117
|
-
*/
|
|
7118
|
-
onTransitionExited: PropTypes.func,
|
|
7119
7120
|
/**
|
|
7120
7121
|
* If `true`, the component is shown.
|
|
7121
7122
|
*/
|
|
@@ -7167,12 +7168,12 @@ function isEmpty$1(obj) {
|
|
|
7167
7168
|
*
|
|
7168
7169
|
* Demos:
|
|
7169
7170
|
*
|
|
7170
|
-
* - [Textarea Autosize](https://mui.com/base
|
|
7171
|
+
* - [Textarea Autosize](https://mui.com/base/react-textarea-autosize/)
|
|
7171
7172
|
* - [Textarea Autosize](https://mui.com/material-ui/react-textarea-autosize/)
|
|
7172
7173
|
*
|
|
7173
7174
|
* API:
|
|
7174
7175
|
*
|
|
7175
|
-
* - [TextareaAutosize API](https://mui.com/base
|
|
7176
|
+
* - [TextareaAutosize API](https://mui.com/base/react-textarea-autosize/components-api/#textarea-autosize)
|
|
7176
7177
|
*/
|
|
7177
7178
|
const TextareaAutosize = /*#__PURE__*/React.forwardRef(function TextareaAutosize(props, forwardedRef) {
|
|
7178
7179
|
const {
|
|
@@ -12149,14 +12150,6 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes /* remove-proptypes */ =
|
|
|
12149
12150
|
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
12150
12151
|
*/
|
|
12151
12152
|
onClose: PropTypes.func,
|
|
12152
|
-
/**
|
|
12153
|
-
* A function called when a transition enters.
|
|
12154
|
-
*/
|
|
12155
|
-
onTransitionEnter: PropTypes.func,
|
|
12156
|
-
/**
|
|
12157
|
-
* A function called when a transition has exited.
|
|
12158
|
-
*/
|
|
12159
|
-
onTransitionExited: PropTypes.func,
|
|
12160
12153
|
/**
|
|
12161
12154
|
* If `true`, the component is shown.
|
|
12162
12155
|
*/
|
|
@@ -13964,9 +13957,7 @@ const SvgIconRoot = styled$1('svg', {
|
|
|
13964
13957
|
width: '1em',
|
|
13965
13958
|
height: '1em',
|
|
13966
13959
|
display: 'inline-block',
|
|
13967
|
-
|
|
13968
|
-
// e.g. heroicons uses fill="none" and stroke="currentColor"
|
|
13969
|
-
fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
|
|
13960
|
+
fill: 'currentColor',
|
|
13970
13961
|
flexShrink: 0,
|
|
13971
13962
|
transition: (_theme$transitions = theme.transitions) == null ? void 0 : (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
|
|
13972
13963
|
duration: (_theme$transitions2 = theme.transitions) == null ? void 0 : (_theme$transitions2$d = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2$d.shorter
|
|
@@ -14002,15 +13993,13 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
|
14002
13993
|
viewBox = '0 0 24 24'
|
|
14003
13994
|
} = props,
|
|
14004
13995
|
other = _objectWithoutPropertiesLoose(props, _excluded$7);
|
|
14005
|
-
const hasSvgAsChild = /*#__PURE__*/React.isValidElement(children) && children.type === 'svg';
|
|
14006
13996
|
const ownerState = _extends({}, props, {
|
|
14007
13997
|
color,
|
|
14008
13998
|
component,
|
|
14009
13999
|
fontSize,
|
|
14010
14000
|
instanceFontSize: inProps.fontSize,
|
|
14011
14001
|
inheritViewBox,
|
|
14012
|
-
viewBox
|
|
14013
|
-
hasSvgAsChild
|
|
14002
|
+
viewBox
|
|
14014
14003
|
});
|
|
14015
14004
|
const more = {};
|
|
14016
14005
|
if (!inheritViewBox) {
|
|
@@ -14025,9 +14014,9 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
|
14025
14014
|
"aria-hidden": titleAccess ? undefined : true,
|
|
14026
14015
|
role: titleAccess ? 'img' : undefined,
|
|
14027
14016
|
ref: ref
|
|
14028
|
-
}, more, other,
|
|
14017
|
+
}, more, other, {
|
|
14029
14018
|
ownerState: ownerState,
|
|
14030
|
-
children: [
|
|
14019
|
+
children: [children, titleAccess ? /*#__PURE__*/jsxRuntimeExports.jsx("title", {
|
|
14031
14020
|
children: titleAccess
|
|
14032
14021
|
}) : null]
|
|
14033
14022
|
}));
|
|
@@ -15003,16 +14992,13 @@ class LicenseInfo {
|
|
|
15003
14992
|
// eslint-disable-next-line no-underscore-dangle
|
|
15004
14993
|
return ponyfillGlobal.__MUI_LICENSE_INFO__;
|
|
15005
14994
|
}
|
|
15006
|
-
|
|
15007
14995
|
static getLicenseKey() {
|
|
15008
14996
|
return LicenseInfo.getLicenseInfo().key;
|
|
15009
14997
|
}
|
|
15010
|
-
|
|
15011
14998
|
static setLicenseKey(key) {
|
|
15012
14999
|
const licenseInfo = LicenseInfo.getLicenseInfo();
|
|
15013
15000
|
licenseInfo.key = key;
|
|
15014
15001
|
}
|
|
15015
|
-
|
|
15016
15002
|
}
|
|
15017
15003
|
|
|
15018
15004
|
/**
|