@galaxy-ds/core 1.1.68 → 1.1.69

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/index.esm.js CHANGED
@@ -3,7 +3,7 @@ import React__default, { Children, isValidElement, cloneElement, useState, useRe
3
3
  import * as ReactDOM from 'react-dom';
4
4
  import ReactDOM__default from 'react-dom';
5
5
 
6
- /*! *****************************************************************************
6
+ /******************************************************************************
7
7
  Copyright (c) Microsoft Corporation.
8
8
 
9
9
  Permission to use, copy, modify, and/or distribute this software for any
@@ -206,17 +206,11 @@ function _extends$1() {
206
206
  function _typeof$1(obj) {
207
207
  "@babel/helpers - typeof";
208
208
 
209
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
210
- _typeof$1 = function _typeof(obj) {
211
- return typeof obj;
212
- };
213
- } else {
214
- _typeof$1 = function _typeof(obj) {
215
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
216
- };
217
- }
218
-
219
- return _typeof$1(obj);
209
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
210
+ return typeof obj;
211
+ } : function (obj) {
212
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
213
+ }, _typeof$1(obj);
220
214
  }
221
215
 
222
216
  function isPlainObject(item) {
@@ -605,9 +599,15 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
605
599
  * LICENSE file in the root directory of this source tree.
606
600
  */
607
601
 
608
- var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
602
+ var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
603
+
604
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
609
605
 
610
- var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
606
+ var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
607
+
608
+ var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
609
+
610
+ var has$1 = has$2;
611
611
 
612
612
  /**
613
613
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -619,9 +619,9 @@ var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
619
619
  var printWarning$1 = function() {};
620
620
 
621
621
  if (process.env.NODE_ENV !== 'production') {
622
- var ReactPropTypesSecret = ReactPropTypesSecret_1;
622
+ var ReactPropTypesSecret = ReactPropTypesSecret$1;
623
623
  var loggedTypeFailures = {};
624
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
624
+ var has = has$1;
625
625
 
626
626
  printWarning$1 = function(text) {
627
627
  var message = 'Warning: ' + text;
@@ -633,7 +633,7 @@ if (process.env.NODE_ENV !== 'production') {
633
633
  // This error was thrown as a convenience so that you can use this stack
634
634
  // to find the callsite that caused this warning to fire.
635
635
  throw new Error(message);
636
- } catch (x) {}
636
+ } catch (x) { /**/ }
637
637
  };
638
638
  }
639
639
 
@@ -648,10 +648,10 @@ if (process.env.NODE_ENV !== 'production') {
648
648
  * @param {?Function} getStack Returns the component stack.
649
649
  * @private
650
650
  */
651
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
651
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
652
652
  if (process.env.NODE_ENV !== 'production') {
653
653
  for (var typeSpecName in typeSpecs) {
654
- if (has$1(typeSpecs, typeSpecName)) {
654
+ if (has(typeSpecs, typeSpecName)) {
655
655
  var error;
656
656
  // Prop type validation may throw. In case they do, we don't want to
657
657
  // fail the render phase where it didn't fail before. So we log it.
@@ -662,7 +662,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
662
662
  if (typeof typeSpecs[typeSpecName] !== 'function') {
663
663
  var err = Error(
664
664
  (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
665
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
665
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
666
+ 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
666
667
  );
667
668
  err.name = 'Invariant Violation';
668
669
  throw err;
@@ -702,13 +703,15 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
702
703
  *
703
704
  * @private
704
705
  */
705
- checkPropTypes.resetWarningCache = function() {
706
+ checkPropTypes$1.resetWarningCache = function() {
706
707
  if (process.env.NODE_ENV !== 'production') {
707
708
  loggedTypeFailures = {};
708
709
  }
709
710
  };
710
711
 
711
- var checkPropTypes_1 = checkPropTypes;
712
+ var checkPropTypes_1 = checkPropTypes$1;
713
+
714
+ var checkPropTypes = checkPropTypes_1;
712
715
 
713
716
  /**
714
717
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -723,7 +726,7 @@ var checkPropTypes_1 = checkPropTypes;
723
726
 
724
727
 
725
728
 
726
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
729
+
727
730
  var printWarning = function() {};
728
731
 
729
732
  if (process.env.NODE_ENV !== 'production') {
@@ -824,6 +827,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
824
827
  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
825
828
  var ReactPropTypes = {
826
829
  array: createPrimitiveTypeChecker('array'),
830
+ bigint: createPrimitiveTypeChecker('bigint'),
827
831
  bool: createPrimitiveTypeChecker('boolean'),
828
832
  func: createPrimitiveTypeChecker('function'),
829
833
  number: createPrimitiveTypeChecker('number'),
@@ -869,8 +873,9 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
869
873
  * is prohibitively expensive if they are created too often, such as what
870
874
  * happens in oneOfType() for any type before the one that matched.
871
875
  */
872
- function PropTypeError(message) {
876
+ function PropTypeError(message, data) {
873
877
  this.message = message;
878
+ this.data = data && typeof data === 'object' ? data: {};
874
879
  this.stack = '';
875
880
  }
876
881
  // Make `instanceof Error` still work for returned errors.
@@ -885,7 +890,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
885
890
  componentName = componentName || ANONYMOUS;
886
891
  propFullName = propFullName || propName;
887
892
 
888
- if (secret !== ReactPropTypesSecret_1) {
893
+ if (secret !== ReactPropTypesSecret$1) {
889
894
  if (throwOnDirectAccess) {
890
895
  // New behavior only for users of `prop-types` package
891
896
  var err = new Error(
@@ -905,7 +910,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
905
910
  ) {
906
911
  printWarning(
907
912
  'You are manually calling a React.PropTypes validation ' +
908
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
913
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
909
914
  'and will throw in the standalone `prop-types` package. ' +
910
915
  'You may be seeing this warning due to a third-party PropTypes ' +
911
916
  'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
@@ -944,7 +949,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
944
949
  // 'of type `object`'.
945
950
  var preciseType = getPreciseType(propValue);
946
951
 
947
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
952
+ return new PropTypeError(
953
+ 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
954
+ {expectedType: expectedType}
955
+ );
948
956
  }
949
957
  return null;
950
958
  }
@@ -966,7 +974,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
966
974
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
967
975
  }
968
976
  for (var i = 0; i < propValue.length; i++) {
969
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
977
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$1);
970
978
  if (error instanceof Error) {
971
979
  return error;
972
980
  }
@@ -1058,8 +1066,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1058
1066
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1059
1067
  }
1060
1068
  for (var key in propValue) {
1061
- if (has(propValue, key)) {
1062
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1069
+ if (has$1(propValue, key)) {
1070
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1063
1071
  if (error instanceof Error) {
1064
1072
  return error;
1065
1073
  }
@@ -1088,14 +1096,19 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1088
1096
  }
1089
1097
 
1090
1098
  function validate(props, propName, componentName, location, propFullName) {
1099
+ var expectedTypes = [];
1091
1100
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1092
1101
  var checker = arrayOfTypeCheckers[i];
1093
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) {
1102
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1);
1103
+ if (checkerResult == null) {
1094
1104
  return null;
1095
1105
  }
1106
+ if (checkerResult.data && has$1(checkerResult.data, 'expectedType')) {
1107
+ expectedTypes.push(checkerResult.data.expectedType);
1108
+ }
1096
1109
  }
1097
-
1098
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
1110
+ var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1111
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1099
1112
  }
1100
1113
  return createChainableTypeChecker(validate);
1101
1114
  }
@@ -1110,6 +1123,13 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1110
1123
  return createChainableTypeChecker(validate);
1111
1124
  }
1112
1125
 
1126
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
1127
+ return new PropTypeError(
1128
+ (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1129
+ 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1130
+ );
1131
+ }
1132
+
1113
1133
  function createShapeTypeChecker(shapeTypes) {
1114
1134
  function validate(props, propName, componentName, location, propFullName) {
1115
1135
  var propValue = props[propName];
@@ -1119,10 +1139,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1119
1139
  }
1120
1140
  for (var key in shapeTypes) {
1121
1141
  var checker = shapeTypes[key];
1122
- if (!checker) {
1123
- continue;
1142
+ if (typeof checker !== 'function') {
1143
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1124
1144
  }
1125
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1145
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1126
1146
  if (error) {
1127
1147
  return error;
1128
1148
  }
@@ -1139,19 +1159,21 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1139
1159
  if (propType !== 'object') {
1140
1160
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1141
1161
  }
1142
- // We need to check all keys in case some are required but missing from
1143
- // props.
1162
+ // We need to check all keys in case some are required but missing from props.
1144
1163
  var allKeys = objectAssign({}, props[propName], shapeTypes);
1145
1164
  for (var key in allKeys) {
1146
1165
  var checker = shapeTypes[key];
1166
+ if (has$1(shapeTypes, key) && typeof checker !== 'function') {
1167
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1168
+ }
1147
1169
  if (!checker) {
1148
1170
  return new PropTypeError(
1149
1171
  'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1150
1172
  '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1151
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1173
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1152
1174
  );
1153
1175
  }
1154
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1176
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1155
1177
  if (error) {
1156
1178
  return error;
1157
1179
  }
@@ -1293,8 +1315,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1293
1315
  return propValue.constructor.name;
1294
1316
  }
1295
1317
 
1296
- ReactPropTypes.checkPropTypes = checkPropTypes_1;
1297
- ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
1318
+ ReactPropTypes.checkPropTypes = checkPropTypes;
1319
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1298
1320
  ReactPropTypes.PropTypes = ReactPropTypes;
1299
1321
 
1300
1322
  return ReactPropTypes;
@@ -1315,7 +1337,7 @@ emptyFunctionWithReset.resetWarningCache = emptyFunction;
1315
1337
 
1316
1338
  var factoryWithThrowingShims = function() {
1317
1339
  function shim(props, propName, componentName, location, propFullName, secret) {
1318
- if (secret === ReactPropTypesSecret_1) {
1340
+ if (secret === ReactPropTypesSecret$1) {
1319
1341
  // It is still safe when called from React.
1320
1342
  return;
1321
1343
  }
@@ -1333,6 +1355,7 @@ var factoryWithThrowingShims = function() {
1333
1355
  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1334
1356
  var ReactPropTypes = {
1335
1357
  array: shim,
1358
+ bigint: shim,
1336
1359
  bool: shim,
1337
1360
  func: shim,
1338
1361
  number: shim,
@@ -1361,6 +1384,10 @@ var factoryWithThrowingShims = function() {
1361
1384
  return ReactPropTypes;
1362
1385
  };
1363
1386
 
1387
+ var require$$1$3 = factoryWithTypeCheckers;
1388
+
1389
+ var require$$2$1 = factoryWithThrowingShims;
1390
+
1364
1391
  /**
1365
1392
  * Copyright (c) 2013-present, Facebook, Inc.
1366
1393
  *
@@ -1375,11 +1402,11 @@ if (process.env.NODE_ENV !== 'production') {
1375
1402
  // By explicitly using `prop-types` you are opting into new development behavior.
1376
1403
  // http://fb.me/prop-types-in-prod
1377
1404
  var throwOnDirectAccess = true;
1378
- module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1405
+ module.exports = require$$1$3(ReactIs.isElement, throwOnDirectAccess);
1379
1406
  } else {
1380
1407
  // By explicitly using `prop-types` you are opting into new production behavior.
1381
1408
  // http://fb.me/prop-types-in-prod
1382
- module.exports = factoryWithThrowingShims();
1409
+ module.exports = require$$2$1();
1383
1410
  }
1384
1411
  });
1385
1412
 
@@ -1415,7 +1442,7 @@ function acceptingRef(props, propName, componentName, location, propFullName) {
1415
1442
  }
1416
1443
 
1417
1444
  if (warningHint !== undefined) {
1418
- return new Error("Invalid ".concat(location, " `").concat(safePropName, "` supplied to `").concat(componentName, "`. ") + "Expected an element that can hold a ref. ".concat(warningHint, " ") + 'For more information see https://material-ui.com/r/caveat-with-refs-guide');
1445
+ return new Error("Invalid ".concat(location, " `").concat(safePropName, "` supplied to `").concat(componentName, "`. ") + "Expected an element that can hold a ref. ".concat(warningHint, " ") + 'For more information see https://mui.com/r/caveat-with-refs-guide');
1419
1446
  }
1420
1447
 
1421
1448
  return null;
@@ -1456,7 +1483,7 @@ function elementTypeAcceptingRef(props, propName, componentName, location, propF
1456
1483
  }
1457
1484
 
1458
1485
  if (warningHint !== undefined) {
1459
- return new Error("Invalid ".concat(location, " `").concat(safePropName, "` supplied to `").concat(componentName, "`. ") + "Expected an element type that can hold a ref. ".concat(warningHint, " ") + 'For more information see https://material-ui.com/r/caveat-with-refs-guide');
1486
+ return new Error("Invalid ".concat(location, " `").concat(safePropName, "` supplied to `").concat(componentName, "`. ") + "Expected an element type that can hold a ref. ".concat(warningHint, " ") + 'For more information see https://mui.com/r/caveat-with-refs-guide');
1460
1487
  }
1461
1488
 
1462
1489
  return null;
@@ -1515,7 +1542,7 @@ function formatMuiErrorMessage(code) {
1515
1542
  // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose
1516
1543
 
1517
1544
  /* eslint-disable prefer-template */
1518
- var url = 'https://material-ui.com/production-error/?code=' + code;
1545
+ var url = 'https://mui.com/production-error/?code=' + code;
1519
1546
 
1520
1547
  for (var i = 1; i < arguments.length; i += 1) {
1521
1548
  // rest params over-transpile for this case
@@ -2502,7 +2529,7 @@ var warnedOnce$1 = false;
2502
2529
  function roundWithDeprecationWarning(value) {
2503
2530
  if (process.env.NODE_ENV !== 'production') {
2504
2531
  if (!warnedOnce$1) {
2505
- console.warn(['Material-UI: The `theme.typography.round` helper is deprecated.', 'Head to https://material-ui.com/r/migration-v4/#theme for a migration path.'].join('\n'));
2532
+ console.warn(['Material-UI: The `theme.typography.round` helper is deprecated.', 'Head to https://mui.com/r/migration-v4/#theme for a migration path.'].join('\n'));
2506
2533
  warnedOnce$1 = true;
2507
2534
  }
2508
2535
  }
@@ -3542,7 +3569,7 @@ function createTheme() {
3542
3569
  if (process.env.NODE_ENV !== 'production') {
3543
3570
  console.error(["Material-UI: The `".concat(parentKey, "` component increases ") + "the CSS specificity of the `".concat(key, "` internal state."), 'You can not override it like this: ', JSON.stringify(node, null, 2), '', 'Instead, you need to use the $ruleName syntax:', JSON.stringify({
3544
3571
  root: _defineProperty({}, "&$".concat(key), child)
3545
- }, null, 2), '', 'https://material-ui.com/r/pseudo-classes-guide'].join('\n'));
3572
+ }, null, 2), '', 'https://mui.com/r/pseudo-classes-guide'].join('\n'));
3546
3573
  } // Remove the style to prevent global conflicts.
3547
3574
 
3548
3575
 
@@ -3696,6 +3723,9 @@ function _defineProperties(target, props) {
3696
3723
  function _createClass(Constructor, protoProps, staticProps) {
3697
3724
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
3698
3725
  if (staticProps) _defineProperties(Constructor, staticProps);
3726
+ Object.defineProperty(Constructor, "prototype", {
3727
+ writable: false
3728
+ });
3699
3729
  return Constructor;
3700
3730
  }
3701
3731
 
@@ -4140,6 +4170,16 @@ function () {
4140
4170
  this.options.jss.plugins.onProcessRule(rule);
4141
4171
  return rule;
4142
4172
  }
4173
+ /**
4174
+ * Replace rule, run plugins.
4175
+ */
4176
+ ;
4177
+
4178
+ _proto.replaceRule = function replaceRule(name, style, options) {
4179
+ var newRule = this.rules.replace(name, style, options);
4180
+ if (newRule) this.options.jss.plugins.onProcessRule(newRule);
4181
+ return newRule;
4182
+ }
4143
4183
  /**
4144
4184
  * Generates a CSS string.
4145
4185
  */
@@ -4551,12 +4591,33 @@ function () {
4551
4591
  return rule;
4552
4592
  }
4553
4593
  /**
4554
- * Get a rule.
4594
+ * Replace rule.
4595
+ * Create a new rule and remove old one instead of overwriting
4596
+ * because we want to invoke onCreateRule hook to make plugins work.
4555
4597
  */
4556
4598
  ;
4557
4599
 
4558
- _proto.get = function get(name) {
4559
- return this.map[name];
4600
+ _proto.replace = function replace(name, decl, ruleOptions) {
4601
+ var oldRule = this.get(name);
4602
+ var oldIndex = this.index.indexOf(oldRule);
4603
+
4604
+ if (oldRule) {
4605
+ this.remove(oldRule);
4606
+ }
4607
+
4608
+ var options = ruleOptions;
4609
+ if (oldIndex !== -1) options = _extends$1({}, ruleOptions, {
4610
+ index: oldIndex
4611
+ });
4612
+ return this.add(name, decl, options);
4613
+ }
4614
+ /**
4615
+ * Get a rule by name or selector.
4616
+ */
4617
+ ;
4618
+
4619
+ _proto.get = function get(nameOrSelector) {
4620
+ return this.map[nameOrSelector];
4560
4621
  }
4561
4622
  /**
4562
4623
  * Delete a rule.
@@ -4638,7 +4699,7 @@ function () {
4638
4699
  }
4639
4700
 
4640
4701
  if (name) {
4641
- this.updateOne(this.map[name], data, options);
4702
+ this.updateOne(this.get(name), data, options);
4642
4703
  } else {
4643
4704
  for (var index = 0; index < this.index.length; index++) {
4644
4705
  this.updateOne(this.index[index], data, options);
@@ -4810,6 +4871,40 @@ function () {
4810
4871
  this.deployed = false;
4811
4872
  return rule;
4812
4873
  }
4874
+ /**
4875
+ * Replace a rule in the current stylesheet.
4876
+ */
4877
+ ;
4878
+
4879
+ _proto.replaceRule = function replaceRule(nameOrSelector, decl, options) {
4880
+ var oldRule = this.rules.get(nameOrSelector);
4881
+ if (!oldRule) return this.addRule(nameOrSelector, decl, options);
4882
+ var newRule = this.rules.replace(nameOrSelector, decl, options);
4883
+
4884
+ if (newRule) {
4885
+ this.options.jss.plugins.onProcessRule(newRule);
4886
+ }
4887
+
4888
+ if (this.attached) {
4889
+ if (!this.deployed) return newRule; // Don't replace / delete rule directly if there is no stringified version yet.
4890
+ // It will be inserted all together when .attach is called.
4891
+
4892
+ if (this.renderer) {
4893
+ if (!newRule) {
4894
+ this.renderer.deleteRule(oldRule);
4895
+ } else if (oldRule.renderable) {
4896
+ this.renderer.replaceRule(oldRule.renderable, newRule);
4897
+ }
4898
+ }
4899
+
4900
+ return newRule;
4901
+ } // We can't replace rules to a detached style node.
4902
+ // We will redeploy the sheet once user will attach it.
4903
+
4904
+
4905
+ this.deployed = false;
4906
+ return newRule;
4907
+ }
4813
4908
  /**
4814
4909
  * Insert rule into the StyleSheet
4815
4910
  */
@@ -4837,12 +4932,12 @@ function () {
4837
4932
  return added;
4838
4933
  }
4839
4934
  /**
4840
- * Get a rule by name.
4935
+ * Get a rule by name or selector.
4841
4936
  */
4842
4937
  ;
4843
4938
 
4844
- _proto.getRule = function getRule(name) {
4845
- return this.rules.get(name);
4939
+ _proto.getRule = function getRule(nameOrSelector) {
4940
+ return this.rules.get(nameOrSelector);
4846
4941
  }
4847
4942
  /**
4848
4943
  * Delete a rule by name.
@@ -5623,7 +5718,7 @@ function () {
5623
5718
  // like rules inside media queries or keyframes
5624
5719
 
5625
5720
  if (rule.options.parent instanceof StyleSheet) {
5626
- this.cssRules[index] = cssRule;
5721
+ this.cssRules.splice(index, 0, cssRule);
5627
5722
  }
5628
5723
  }
5629
5724
  /**
@@ -5649,8 +5744,6 @@ function () {
5649
5744
  }
5650
5745
  /**
5651
5746
  * Generate a new CSS rule and replace the existing one.
5652
- *
5653
- * Only used for some old browsers because they can't set a selector.
5654
5747
  */
5655
5748
  ;
5656
5749
 
@@ -5680,7 +5773,7 @@ var Jss =
5680
5773
  function () {
5681
5774
  function Jss(options) {
5682
5775
  this.id = instanceCounter++;
5683
- this.version = "10.8.2";
5776
+ this.version = "10.9.0";
5684
5777
  this.plugins = new PluginsRegistry();
5685
5778
  this.options = {
5686
5779
  id: {
@@ -5981,6 +6074,16 @@ function () {
5981
6074
  if (rule) this.options.jss.plugins.onProcessRule(rule);
5982
6075
  return rule;
5983
6076
  }
6077
+ /**
6078
+ * Replace rule, run plugins.
6079
+ */
6080
+ ;
6081
+
6082
+ _proto.replaceRule = function replaceRule(name, style, options) {
6083
+ var newRule = this.rules.replace(name, style, options);
6084
+ if (newRule) this.options.jss.plugins.onProcessRule(newRule);
6085
+ return newRule;
6086
+ }
5984
6087
  /**
5985
6088
  * Get index of a rule.
5986
6089
  */
@@ -5994,8 +6097,8 @@ function () {
5994
6097
  */
5995
6098
  ;
5996
6099
 
5997
- _proto.toString = function toString() {
5998
- return this.rules.toString();
6100
+ _proto.toString = function toString(options) {
6101
+ return this.rules.toString(options);
5999
6102
  };
6000
6103
 
6001
6104
  return GlobalContainerRule;
@@ -6092,7 +6195,7 @@ function jssGlobal() {
6092
6195
  }
6093
6196
  }
6094
6197
 
6095
- if (options.scoped === false) {
6198
+ if (!options.selector && options.scoped === false) {
6096
6199
  options.selector = name;
6097
6200
  }
6098
6201
 
@@ -6190,9 +6293,18 @@ function jssNested() {
6190
6293
  if (!replaceRef) replaceRef = getReplaceRef(container, sheet); // Replace all $refs.
6191
6294
 
6192
6295
  selector = selector.replace(refRegExp, replaceRef);
6193
- container.addRule(selector, style[prop], _extends$1({}, options, {
6194
- selector: selector
6195
- }));
6296
+ var name = styleRule.key + "-" + prop;
6297
+
6298
+ if ('replaceRule' in container) {
6299
+ // for backward compatibility
6300
+ container.replaceRule(name, style[prop], _extends$1({}, options, {
6301
+ selector: selector
6302
+ }));
6303
+ } else {
6304
+ container.addRule(name, style[prop], _extends$1({}, options, {
6305
+ selector: selector
6306
+ }));
6307
+ }
6196
6308
  } else if (isNestedConditional) {
6197
6309
  // Place conditional right after the parent rule to ensure right ordering.
6198
6310
  container.addRule(prop, {}, options).addRule(styleRule.key, style[prop], {
@@ -17582,7 +17694,7 @@ var InputBase = /*#__PURE__*/React.forwardRef(function InputBase(props, ref) {
17582
17694
  var element = event.target || inputRef.current;
17583
17695
 
17584
17696
  if (element == null) {
17585
- throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://material-ui.com/r/input-component-ref-interface for more info." : formatMuiErrorMessage(1));
17697
+ throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : formatMuiErrorMessage(1));
17586
17698
  }
17587
17699
 
17588
17700
  checkDirty({
@@ -30204,13 +30316,13 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes = {
30204
30316
  * Number of rows to display when multiline option is set to true.
30205
30317
  * @deprecated Use `minRows` instead.
30206
30318
  */
30207
- rows: propTypes.oneOfType([propTypes.number, propTypes.string]),
30319
+ rows: deprecatedPropType(propTypes.oneOfType([propTypes.number, propTypes.string]), 'Use `minRows` instead'),
30208
30320
 
30209
30321
  /**
30210
30322
  * Maximum number of rows to display.
30211
30323
  * @deprecated Use `maxRows` instead.
30212
30324
  */
30213
- rowsMax: propTypes.oneOfType([propTypes.number, propTypes.string]),
30325
+ rowsMax: deprecatedPropType(propTypes.oneOfType([propTypes.number, propTypes.string]), 'Use `maxRows` instead'),
30214
30326
 
30215
30327
  /**
30216
30328
  * Render a [`Select`](/api/select/) element while passing the Input element to `Select` as `input` parameter.
@@ -30907,16 +31019,16 @@ var AccordionSummary = function (props) {
30907
31019
  return (React__default.createElement(MuiAccordionSummary, __assign$1({ className: classes.root }, props, { expandIcon: React__default.createElement(ChevronDownIcon, { fontSize: 'small' }) })));
30908
31020
  };
30909
31021
 
30910
- /**
30911
- * @ignore - internal component.
31022
+ /**
31023
+ * @ignore - internal component.
30912
31024
  */
30913
31025
 
30914
31026
  var CloseIcon = createSvgIcon$1( /*#__PURE__*/React.createElement("path", {
30915
31027
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
30916
31028
  }), 'Close');
30917
31029
 
30918
- /**
30919
- * @ignore - internal component.
31030
+ /**
31031
+ * @ignore - internal component.
30920
31032
  */
30921
31033
 
30922
31034
  var ArrowDropDownIcon = createSvgIcon$1( /*#__PURE__*/React.createElement("path", {
@@ -32498,398 +32610,398 @@ process.env.NODE_ENV !== "production" ? Autocomplete$1.propTypes = {
32498
32610
  // | To update them edit the d.ts file and run "yarn proptypes" |
32499
32611
  // ----------------------------------------------------------------------
32500
32612
 
32501
- /**
32502
- * If `true`, the portion of the selected suggestion that has not been typed by the user,
32503
- * known as the completion string, appears inline after the input cursor in the textbox.
32504
- * The inline completion string is visually highlighted and has a selected state.
32613
+ /**
32614
+ * If `true`, the portion of the selected suggestion that has not been typed by the user,
32615
+ * known as the completion string, appears inline after the input cursor in the textbox.
32616
+ * The inline completion string is visually highlighted and has a selected state.
32505
32617
  */
32506
32618
  autoComplete: propTypes.bool,
32507
32619
 
32508
- /**
32509
- * If `true`, the first option is automatically highlighted.
32620
+ /**
32621
+ * If `true`, the first option is automatically highlighted.
32510
32622
  */
32511
32623
  autoHighlight: propTypes.bool,
32512
32624
 
32513
- /**
32514
- * If `true`, the selected option becomes the value of the input
32515
- * when the Autocomplete loses focus unless the user chooses
32516
- * a different option or changes the character string in the input.
32625
+ /**
32626
+ * If `true`, the selected option becomes the value of the input
32627
+ * when the Autocomplete loses focus unless the user chooses
32628
+ * a different option or changes the character string in the input.
32517
32629
  */
32518
32630
  autoSelect: propTypes.bool,
32519
32631
 
32520
- /**
32521
- * Control if the input should be blurred when an option is selected:
32522
- *
32523
- * - `false` the input is not blurred.
32524
- * - `true` the input is always blurred.
32525
- * - `touch` the input is blurred after a touch event.
32526
- * - `mouse` the input is blurred after a mouse event.
32632
+ /**
32633
+ * Control if the input should be blurred when an option is selected:
32634
+ *
32635
+ * - `false` the input is not blurred.
32636
+ * - `true` the input is always blurred.
32637
+ * - `touch` the input is blurred after a touch event.
32638
+ * - `mouse` the input is blurred after a mouse event.
32527
32639
  */
32528
32640
  blurOnSelect: propTypes.oneOfType([propTypes.oneOf(['mouse', 'touch']), propTypes.bool]),
32529
32641
 
32530
- /**
32531
- * Props applied to the [`Chip`](/api/chip/) element.
32642
+ /**
32643
+ * Props applied to the [`Chip`](/api/chip/) element.
32532
32644
  */
32533
32645
  ChipProps: propTypes.object,
32534
32646
 
32535
- /**
32536
- * Override or extend the styles applied to the component.
32537
- * See [CSS API](#css) below for more details.
32647
+ /**
32648
+ * Override or extend the styles applied to the component.
32649
+ * See [CSS API](#css) below for more details.
32538
32650
  */
32539
32651
  classes: propTypes.object,
32540
32652
 
32541
- /**
32542
- * @ignore
32653
+ /**
32654
+ * @ignore
32543
32655
  */
32544
32656
  className: propTypes.string,
32545
32657
 
32546
- /**
32547
- * If `true`, the input's text will be cleared on blur if no value is selected.
32548
- *
32549
- * Set to `true` if you want to help the user enter a new value.
32550
- * Set to `false` if you want to help the user resume his search.
32658
+ /**
32659
+ * If `true`, the input's text will be cleared on blur if no value is selected.
32660
+ *
32661
+ * Set to `true` if you want to help the user enter a new value.
32662
+ * Set to `false` if you want to help the user resume his search.
32551
32663
  */
32552
32664
  clearOnBlur: propTypes.bool,
32553
32665
 
32554
- /**
32555
- * If `true`, clear all values when the user presses escape and the popup is closed.
32666
+ /**
32667
+ * If `true`, clear all values when the user presses escape and the popup is closed.
32556
32668
  */
32557
32669
  clearOnEscape: propTypes.bool,
32558
32670
 
32559
- /**
32560
- * Override the default text for the *clear* icon button.
32561
- *
32562
- * For localization purposes, you can use the provided [translations](/guides/localization/).
32671
+ /**
32672
+ * Override the default text for the *clear* icon button.
32673
+ *
32674
+ * For localization purposes, you can use the provided [translations](/guides/localization/).
32563
32675
  */
32564
32676
  clearText: propTypes.string,
32565
32677
 
32566
- /**
32567
- * The icon to display in place of the default close icon.
32678
+ /**
32679
+ * The icon to display in place of the default close icon.
32568
32680
  */
32569
32681
  closeIcon: propTypes.node,
32570
32682
 
32571
- /**
32572
- * Override the default text for the *close popup* icon button.
32573
- *
32574
- * For localization purposes, you can use the provided [translations](/guides/localization/).
32683
+ /**
32684
+ * Override the default text for the *close popup* icon button.
32685
+ *
32686
+ * For localization purposes, you can use the provided [translations](/guides/localization/).
32575
32687
  */
32576
32688
  closeText: propTypes.string,
32577
32689
 
32578
- /**
32579
- * If `true`, the popup will ignore the blur event if the input is filled.
32580
- * You can inspect the popup markup with your browser tools.
32581
- * Consider this option when you need to customize the component.
32690
+ /**
32691
+ * If `true`, the popup will ignore the blur event if the input is filled.
32692
+ * You can inspect the popup markup with your browser tools.
32693
+ * Consider this option when you need to customize the component.
32582
32694
  */
32583
32695
  debug: propTypes.bool,
32584
32696
 
32585
- /**
32586
- * The default input value. Use when the component is not controlled.
32697
+ /**
32698
+ * The default input value. Use when the component is not controlled.
32587
32699
  */
32588
32700
  defaultValue: propTypes.any,
32589
32701
 
32590
- /**
32591
- * If `true`, the input can't be cleared.
32702
+ /**
32703
+ * If `true`, the input can't be cleared.
32592
32704
  */
32593
32705
  disableClearable: propTypes
32594
32706
  /* @typescript-to-proptypes-ignore */
32595
32707
  .bool,
32596
32708
 
32597
- /**
32598
- * If `true`, the popup won't close when a value is selected.
32709
+ /**
32710
+ * If `true`, the popup won't close when a value is selected.
32599
32711
  */
32600
32712
  disableCloseOnSelect: propTypes.bool,
32601
32713
 
32602
- /**
32603
- * If `true`, the input will be disabled.
32714
+ /**
32715
+ * If `true`, the input will be disabled.
32604
32716
  */
32605
32717
  disabled: propTypes.bool,
32606
32718
 
32607
- /**
32608
- * If `true`, will allow focus on disabled items.
32719
+ /**
32720
+ * If `true`, will allow focus on disabled items.
32609
32721
  */
32610
32722
  disabledItemsFocusable: propTypes.bool,
32611
32723
 
32612
- /**
32613
- * If `true`, the list box in the popup will not wrap focus.
32724
+ /**
32725
+ * If `true`, the list box in the popup will not wrap focus.
32614
32726
  */
32615
32727
  disableListWrap: propTypes.bool,
32616
32728
 
32617
- /**
32618
- * Disable the portal behavior.
32619
- * The children stay within it's parent DOM hierarchy.
32729
+ /**
32730
+ * Disable the portal behavior.
32731
+ * The children stay within it's parent DOM hierarchy.
32620
32732
  */
32621
32733
  disablePortal: propTypes.bool,
32622
32734
 
32623
- /**
32624
- * A filter function that determines the options that are eligible.
32625
- *
32626
- * @param {T[]} options The options to render.
32627
- * @param {object} state The state of the component.
32628
- * @returns {T[]}
32735
+ /**
32736
+ * A filter function that determines the options that are eligible.
32737
+ *
32738
+ * @param {T[]} options The options to render.
32739
+ * @param {object} state The state of the component.
32740
+ * @returns {T[]}
32629
32741
  */
32630
32742
  filterOptions: propTypes.func,
32631
32743
 
32632
- /**
32633
- * If `true`, hide the selected options from the list box.
32744
+ /**
32745
+ * If `true`, hide the selected options from the list box.
32634
32746
  */
32635
32747
  filterSelectedOptions: propTypes.bool,
32636
32748
 
32637
- /**
32638
- * Force the visibility display of the popup icon.
32749
+ /**
32750
+ * Force the visibility display of the popup icon.
32639
32751
  */
32640
32752
  forcePopupIcon: propTypes.oneOfType([propTypes.oneOf(['auto']), propTypes.bool]),
32641
32753
 
32642
- /**
32643
- * If `true`, the Autocomplete is free solo, meaning that the user input is not bound to provided options.
32754
+ /**
32755
+ * If `true`, the Autocomplete is free solo, meaning that the user input is not bound to provided options.
32644
32756
  */
32645
32757
  freeSolo: propTypes
32646
32758
  /* @typescript-to-proptypes-ignore */
32647
32759
  .bool,
32648
32760
 
32649
- /**
32650
- * If `true`, the input will take up the full width of its container.
32761
+ /**
32762
+ * If `true`, the input will take up the full width of its container.
32651
32763
  */
32652
32764
  fullWidth: propTypes.bool,
32653
32765
 
32654
- /**
32655
- * The label to display when the tags are truncated (`limitTags`).
32656
- *
32657
- * @param {number} more The number of truncated tags.
32658
- * @returns {ReactNode}
32766
+ /**
32767
+ * The label to display when the tags are truncated (`limitTags`).
32768
+ *
32769
+ * @param {number} more The number of truncated tags.
32770
+ * @returns {ReactNode}
32659
32771
  */
32660
32772
  getLimitTagsText: propTypes.func,
32661
32773
 
32662
- /**
32663
- * Used to determine the disabled state for a given option.
32664
- *
32665
- * @param {T} option The option to test.
32666
- * @returns {boolean}
32774
+ /**
32775
+ * Used to determine the disabled state for a given option.
32776
+ *
32777
+ * @param {T} option The option to test.
32778
+ * @returns {boolean}
32667
32779
  */
32668
32780
  getOptionDisabled: propTypes.func,
32669
32781
 
32670
- /**
32671
- * Used to determine the string value for a given option.
32672
- * It's used to fill the input (and the list box options if `renderOption` is not provided).
32673
- *
32674
- * @param {T} option
32675
- * @returns {string}
32782
+ /**
32783
+ * Used to determine the string value for a given option.
32784
+ * It's used to fill the input (and the list box options if `renderOption` is not provided).
32785
+ *
32786
+ * @param {T} option
32787
+ * @returns {string}
32676
32788
  */
32677
32789
  getOptionLabel: propTypes.func,
32678
32790
 
32679
- /**
32680
- * Used to determine if an option is selected, considering the current value.
32681
- * Uses strict equality by default.
32682
- *
32683
- * @param {T} option The option to test.
32684
- * @param {T} value The value to test against.
32685
- * @returns {boolean}
32791
+ /**
32792
+ * Used to determine if an option is selected, considering the current value.
32793
+ * Uses strict equality by default.
32794
+ *
32795
+ * @param {T} option The option to test.
32796
+ * @param {T} value The value to test against.
32797
+ * @returns {boolean}
32686
32798
  */
32687
32799
  getOptionSelected: propTypes.func,
32688
32800
 
32689
- /**
32690
- * If provided, the options will be grouped under the returned string.
32691
- * The groupBy value is also used as the text for group headings when `renderGroup` is not provided.
32692
- *
32693
- * @param {T} options The options to group.
32694
- * @returns {string}
32801
+ /**
32802
+ * If provided, the options will be grouped under the returned string.
32803
+ * The groupBy value is also used as the text for group headings when `renderGroup` is not provided.
32804
+ *
32805
+ * @param {T} options The options to group.
32806
+ * @returns {string}
32695
32807
  */
32696
32808
  groupBy: propTypes.func,
32697
32809
 
32698
- /**
32699
- * If `true`, the component handles the "Home" and "End" keys when the popup is open.
32700
- * It should move focus to the first option and last option, respectively.
32810
+ /**
32811
+ * If `true`, the component handles the "Home" and "End" keys when the popup is open.
32812
+ * It should move focus to the first option and last option, respectively.
32701
32813
  */
32702
32814
  handleHomeEndKeys: propTypes.bool,
32703
32815
 
32704
- /**
32705
- * This prop is used to help implement the accessibility logic.
32706
- * If you don't provide this prop. It falls back to a randomly generated id.
32816
+ /**
32817
+ * This prop is used to help implement the accessibility logic.
32818
+ * If you don't provide this prop. It falls back to a randomly generated id.
32707
32819
  */
32708
32820
  id: propTypes.string,
32709
32821
 
32710
- /**
32711
- * If `true`, the highlight can move to the input.
32822
+ /**
32823
+ * If `true`, the highlight can move to the input.
32712
32824
  */
32713
32825
  includeInputInList: propTypes.bool,
32714
32826
 
32715
- /**
32716
- * The input value.
32827
+ /**
32828
+ * The input value.
32717
32829
  */
32718
32830
  inputValue: propTypes.string,
32719
32831
 
32720
- /**
32721
- * The maximum number of tags that will be visible when not focused.
32722
- * Set `-1` to disable the limit.
32832
+ /**
32833
+ * The maximum number of tags that will be visible when not focused.
32834
+ * Set `-1` to disable the limit.
32723
32835
  */
32724
32836
  limitTags: propTypes.number,
32725
32837
 
32726
- /**
32727
- * The component used to render the listbox.
32838
+ /**
32839
+ * The component used to render the listbox.
32728
32840
  */
32729
32841
  ListboxComponent: propTypes.elementType,
32730
32842
 
32731
- /**
32732
- * Props applied to the Listbox element.
32843
+ /**
32844
+ * Props applied to the Listbox element.
32733
32845
  */
32734
32846
  ListboxProps: propTypes.object,
32735
32847
 
32736
- /**
32737
- * If `true`, the component is in a loading state.
32848
+ /**
32849
+ * If `true`, the component is in a loading state.
32738
32850
  */
32739
32851
  loading: propTypes.bool,
32740
32852
 
32741
- /**
32742
- * Text to display when in a loading state.
32743
- *
32744
- * For localization purposes, you can use the provided [translations](/guides/localization/).
32853
+ /**
32854
+ * Text to display when in a loading state.
32855
+ *
32856
+ * For localization purposes, you can use the provided [translations](/guides/localization/).
32745
32857
  */
32746
32858
  loadingText: propTypes.node,
32747
32859
 
32748
- /**
32749
- * If `true`, `value` must be an array and the menu will support multiple selections.
32860
+ /**
32861
+ * If `true`, `value` must be an array and the menu will support multiple selections.
32750
32862
  */
32751
32863
  multiple: propTypes
32752
32864
  /* @typescript-to-proptypes-ignore */
32753
32865
  .bool,
32754
32866
 
32755
- /**
32756
- * Text to display when there are no options.
32757
- *
32758
- * For localization purposes, you can use the provided [translations](/guides/localization/).
32867
+ /**
32868
+ * Text to display when there are no options.
32869
+ *
32870
+ * For localization purposes, you can use the provided [translations](/guides/localization/).
32759
32871
  */
32760
32872
  noOptionsText: propTypes.node,
32761
32873
 
32762
- /**
32763
- * Callback fired when the value changes.
32764
- *
32765
- * @param {object} event The event source of the callback.
32766
- * @param {T|T[]} value The new value of the component.
32767
- * @param {string} reason One of "create-option", "select-option", "remove-option", "blur" or "clear".
32874
+ /**
32875
+ * Callback fired when the value changes.
32876
+ *
32877
+ * @param {object} event The event source of the callback.
32878
+ * @param {T|T[]} value The new value of the component.
32879
+ * @param {string} reason One of "create-option", "select-option", "remove-option", "blur" or "clear".
32768
32880
  */
32769
32881
  onChange: propTypes.func,
32770
32882
 
32771
- /**
32772
- * Callback fired when the popup requests to be closed.
32773
- * Use in controlled mode (see open).
32774
- *
32775
- * @param {object} event The event source of the callback.
32776
- * @param {string} reason Can be: `"toggleInput"`, `"escape"`, `"select-option"`, `"blur"`.
32883
+ /**
32884
+ * Callback fired when the popup requests to be closed.
32885
+ * Use in controlled mode (see open).
32886
+ *
32887
+ * @param {object} event The event source of the callback.
32888
+ * @param {string} reason Can be: `"toggleInput"`, `"escape"`, `"select-option"`, `"blur"`.
32777
32889
  */
32778
32890
  onClose: propTypes.func,
32779
32891
 
32780
- /**
32781
- * Callback fired when the highlight option changes.
32782
- *
32783
- * @param {object} event The event source of the callback.
32784
- * @param {T} option The highlighted option.
32785
- * @param {string} reason Can be: `"keyboard"`, `"auto"`, `"mouse"`.
32892
+ /**
32893
+ * Callback fired when the highlight option changes.
32894
+ *
32895
+ * @param {object} event The event source of the callback.
32896
+ * @param {T} option The highlighted option.
32897
+ * @param {string} reason Can be: `"keyboard"`, `"auto"`, `"mouse"`.
32786
32898
  */
32787
32899
  onHighlightChange: propTypes.func,
32788
32900
 
32789
- /**
32790
- * Callback fired when the input value changes.
32791
- *
32792
- * @param {object} event The event source of the callback.
32793
- * @param {string} value The new value of the text input.
32794
- * @param {string} reason Can be: `"input"` (user input), `"reset"` (programmatic change), `"clear"`.
32901
+ /**
32902
+ * Callback fired when the input value changes.
32903
+ *
32904
+ * @param {object} event The event source of the callback.
32905
+ * @param {string} value The new value of the text input.
32906
+ * @param {string} reason Can be: `"input"` (user input), `"reset"` (programmatic change), `"clear"`.
32795
32907
  */
32796
32908
  onInputChange: propTypes.func,
32797
32909
 
32798
- /**
32799
- * Callback fired when the popup requests to be opened.
32800
- * Use in controlled mode (see open).
32801
- *
32802
- * @param {object} event The event source of the callback.
32910
+ /**
32911
+ * Callback fired when the popup requests to be opened.
32912
+ * Use in controlled mode (see open).
32913
+ *
32914
+ * @param {object} event The event source of the callback.
32803
32915
  */
32804
32916
  onOpen: propTypes.func,
32805
32917
 
32806
- /**
32807
- * Control the popup` open state.
32918
+ /**
32919
+ * Control the popup` open state.
32808
32920
  */
32809
32921
  open: propTypes.bool,
32810
32922
 
32811
- /**
32812
- * If `true`, the popup will open on input focus.
32923
+ /**
32924
+ * If `true`, the popup will open on input focus.
32813
32925
  */
32814
32926
  openOnFocus: propTypes.bool,
32815
32927
 
32816
- /**
32817
- * Override the default text for the *open popup* icon button.
32818
- *
32819
- * For localization purposes, you can use the provided [translations](/guides/localization/).
32928
+ /**
32929
+ * Override the default text for the *open popup* icon button.
32930
+ *
32931
+ * For localization purposes, you can use the provided [translations](/guides/localization/).
32820
32932
  */
32821
32933
  openText: propTypes.string,
32822
32934
 
32823
- /**
32824
- * Array of options.
32935
+ /**
32936
+ * Array of options.
32825
32937
  */
32826
32938
  options: propTypes.array.isRequired,
32827
32939
 
32828
- /**
32829
- * The component used to render the body of the popup.
32940
+ /**
32941
+ * The component used to render the body of the popup.
32830
32942
  */
32831
32943
  PaperComponent: propTypes.elementType,
32832
32944
 
32833
- /**
32834
- * The component used to position the popup.
32945
+ /**
32946
+ * The component used to position the popup.
32835
32947
  */
32836
32948
  PopperComponent: propTypes.elementType,
32837
32949
 
32838
- /**
32839
- * The icon to display in place of the default popup icon.
32950
+ /**
32951
+ * The icon to display in place of the default popup icon.
32840
32952
  */
32841
32953
  popupIcon: propTypes.node,
32842
32954
 
32843
- /**
32844
- * Render the group.
32845
- *
32846
- * @param {any} option The group to render.
32847
- * @returns {ReactNode}
32955
+ /**
32956
+ * Render the group.
32957
+ *
32958
+ * @param {any} option The group to render.
32959
+ * @returns {ReactNode}
32848
32960
  */
32849
32961
  renderGroup: propTypes.func,
32850
32962
 
32851
- /**
32852
- * Render the input.
32853
- *
32854
- * @param {object} params
32855
- * @returns {ReactNode}
32963
+ /**
32964
+ * Render the input.
32965
+ *
32966
+ * @param {object} params
32967
+ * @returns {ReactNode}
32856
32968
  */
32857
32969
  renderInput: propTypes.func.isRequired,
32858
32970
 
32859
- /**
32860
- * Render the option, use `getOptionLabel` by default.
32861
- *
32862
- * @param {T} option The option to render.
32863
- * @param {object} state The state of the component.
32864
- * @returns {ReactNode}
32971
+ /**
32972
+ * Render the option, use `getOptionLabel` by default.
32973
+ *
32974
+ * @param {T} option The option to render.
32975
+ * @param {object} state The state of the component.
32976
+ * @returns {ReactNode}
32865
32977
  */
32866
32978
  renderOption: propTypes.func,
32867
32979
 
32868
- /**
32869
- * Render the selected value.
32870
- *
32871
- * @param {T[]} value The `value` provided to the component.
32872
- * @param {function} getTagProps A tag props getter.
32873
- * @returns {ReactNode}
32980
+ /**
32981
+ * Render the selected value.
32982
+ *
32983
+ * @param {T[]} value The `value` provided to the component.
32984
+ * @param {function} getTagProps A tag props getter.
32985
+ * @returns {ReactNode}
32874
32986
  */
32875
32987
  renderTags: propTypes.func,
32876
32988
 
32877
- /**
32878
- * If `true`, the input's text will be selected on focus.
32879
- * It helps the user clear the selected value.
32989
+ /**
32990
+ * If `true`, the input's text will be selected on focus.
32991
+ * It helps the user clear the selected value.
32880
32992
  */
32881
32993
  selectOnFocus: propTypes.bool,
32882
32994
 
32883
- /**
32884
- * The size of the autocomplete.
32995
+ /**
32996
+ * The size of the autocomplete.
32885
32997
  */
32886
32998
  size: propTypes.oneOf(['medium', 'small']),
32887
32999
 
32888
- /**
32889
- * The value of the autocomplete.
32890
- *
32891
- * The value must have reference equality with the option in order to be selected.
32892
- * You can customize the equality behavior with the `getOptionSelected` prop.
33000
+ /**
33001
+ * The value of the autocomplete.
33002
+ *
33003
+ * The value must have reference equality with the option in order to be selected.
33004
+ * You can customize the equality behavior with the `getOptionSelected` prop.
32893
33005
  */
32894
33006
  value: propTypes.any
32895
33007
  } : void 0;
@@ -32965,24 +33077,24 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes = {
32965
33077
  // | To update them edit the d.ts file and run "yarn proptypes" |
32966
33078
  // ----------------------------------------------------------------------
32967
33079
 
32968
- /**
32969
- * The avatars to stack.
33080
+ /**
33081
+ * The avatars to stack.
32970
33082
  */
32971
33083
  children: propTypes.node,
32972
33084
 
32973
- /**
32974
- * Override or extend the styles applied to the component.
32975
- * See [CSS API](#css) below for more details.
33085
+ /**
33086
+ * Override or extend the styles applied to the component.
33087
+ * See [CSS API](#css) below for more details.
32976
33088
  */
32977
33089
  classes: propTypes.object,
32978
33090
 
32979
- /**
32980
- * @ignore
33091
+ /**
33092
+ * @ignore
32981
33093
  */
32982
33094
  className: propTypes.string,
32983
33095
 
32984
- /**
32985
- * Max avatars to show before +x.
33096
+ /**
33097
+ * Max avatars to show before +x.
32986
33098
  */
32987
33099
  max: chainPropTypes(propTypes.number, function (props) {
32988
33100
  if (props.max < 2) {
@@ -32990,8 +33102,8 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes = {
32990
33102
  }
32991
33103
  }),
32992
33104
 
32993
- /**
32994
- * Spacing between avatars.
33105
+ /**
33106
+ * Spacing between avatars.
32995
33107
  */
32996
33108
  spacing: propTypes.oneOfType([propTypes.oneOf(['medium', 'small']), propTypes.number])
32997
33109
  } : void 0;
@@ -33447,33 +33559,21 @@ function _interopRequireDefault(obj) {
33447
33559
  };
33448
33560
  }
33449
33561
 
33450
- module.exports = _interopRequireDefault;
33451
- module.exports["default"] = module.exports, module.exports.__esModule = true;
33562
+ module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
33452
33563
  });
33453
33564
 
33454
33565
  var _typeof_1 = createCommonjsModule(function (module) {
33455
33566
  function _typeof(obj) {
33456
33567
  "@babel/helpers - typeof";
33457
33568
 
33458
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
33459
- module.exports = _typeof = function _typeof(obj) {
33460
- return typeof obj;
33461
- };
33462
-
33463
- module.exports["default"] = module.exports, module.exports.__esModule = true;
33464
- } else {
33465
- module.exports = _typeof = function _typeof(obj) {
33466
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
33467
- };
33468
-
33469
- module.exports["default"] = module.exports, module.exports.__esModule = true;
33470
- }
33471
-
33472
- return _typeof(obj);
33569
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
33570
+ return typeof obj;
33571
+ } : function (obj) {
33572
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
33573
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
33473
33574
  }
33474
33575
 
33475
- module.exports = _typeof;
33476
- module.exports["default"] = module.exports, module.exports.__esModule = true;
33576
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
33477
33577
  });
33478
33578
 
33479
33579
  var interopRequireWildcard = createCommonjsModule(function (module) {
@@ -33529,8 +33629,7 @@ function _interopRequireWildcard(obj, nodeInterop) {
33529
33629
  return newObj;
33530
33630
  }
33531
33631
 
33532
- module.exports = _interopRequireWildcard;
33533
- module.exports["default"] = module.exports, module.exports.__esModule = true;
33632
+ module.exports = _interopRequireWildcard, module.exports.__esModule = true, module.exports["default"] = module.exports;
33534
33633
  });
33535
33634
 
33536
33635
  var _utils = /*@__PURE__*/getAugmentedNamespace(utils$1);
@@ -33548,7 +33647,7 @@ Object.defineProperty(exports, "default", {
33548
33647
  });
33549
33648
  });
33550
33649
 
33551
- var require$$1$1 = createSvgIcon;
33650
+ var require$$1$2 = createSvgIcon;
33552
33651
 
33553
33652
  var ExpandLess = createCommonjsModule(function (module, exports) {
33554
33653
 
@@ -33563,7 +33662,7 @@ exports.default = void 0;
33563
33662
 
33564
33663
  var React = interopRequireWildcard(React__default);
33565
33664
 
33566
- var _createSvgIcon = interopRequireDefault(require$$1$1);
33665
+ var _createSvgIcon = interopRequireDefault(require$$1$2);
33567
33666
 
33568
33667
  var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", {
33569
33668
  d: "M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"
@@ -33587,7 +33686,7 @@ exports.default = void 0;
33587
33686
 
33588
33687
  var React = interopRequireWildcard(React__default);
33589
33688
 
33590
- var _createSvgIcon = interopRequireDefault(require$$1$1);
33689
+ var _createSvgIcon = interopRequireDefault(require$$1$2);
33591
33690
 
33592
33691
  var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", {
33593
33692
  d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"
@@ -35499,6 +35598,7 @@ var AttachmentIcon = function (props) {
35499
35598
  case 'png':
35500
35599
  case 'gif':
35501
35600
  case 'tiff':
35601
+ case 'tif':
35502
35602
  icon = size === 'small' ? React__default.createElement(DocTypeImage16, { fontSize: size }) : React__default.createElement(DocTypeImage, { fontSize: size });
35503
35603
  break;
35504
35604
  case 'comment':
@@ -38930,6 +39030,8 @@ var format$1 = /*#__PURE__*/Object.freeze({
38930
39030
  'default': format
38931
39031
  });
38932
39032
 
39033
+ var require$$1$1 = propTypes;
39034
+
38933
39035
  var require$$8$2 = /*@__PURE__*/getAugmentedNamespace(endOfDay$1);
38934
39036
 
38935
39037
  var require$$8$1 = /*@__PURE__*/getAugmentedNamespace(isBefore$1);
@@ -38953,7 +39055,7 @@ exports.default = exports.rangeShape = void 0;
38953
39055
 
38954
39056
  var _react = _interopRequireWildcard(React__default);
38955
39057
 
38956
- var _propTypes = _interopRequireDefault(propTypes);
39058
+ var _propTypes = _interopRequireDefault(require$$1$1);
38957
39059
 
38958
39060
  var _classnames4 = _interopRequireDefault(classnames);
38959
39061
 
@@ -39949,7 +40051,7 @@ exports.default = void 0;
39949
40051
 
39950
40052
  var _react = _interopRequireWildcard(React__default);
39951
40053
 
39952
- var _propTypes = _interopRequireDefault(propTypes);
40054
+ var _propTypes = _interopRequireDefault(require$$1$1);
39953
40055
 
39954
40056
  var _DayCell = _interopRequireWildcard(DayCell_1);
39955
40057
 
@@ -42333,7 +42435,7 @@ exports.default = void 0;
42333
42435
 
42334
42436
  var _react = _interopRequireWildcard(React__default);
42335
42437
 
42336
- var _propTypes = _interopRequireDefault(propTypes);
42438
+ var _propTypes = _interopRequireDefault(require$$1$1);
42337
42439
 
42338
42440
  var _classnames = _interopRequireDefault(classnames);
42339
42441
 
@@ -42526,7 +42628,7 @@ exports.default = _default;
42526
42628
  var reactList = createCommonjsModule(function (module, exports) {
42527
42629
  (function (global, factory) {
42528
42630
  {
42529
- factory(propTypes, React__default);
42631
+ factory(require$$1$1, React__default);
42530
42632
  }
42531
42633
  })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : commonjsGlobal, function (_propTypes, _react) {
42532
42634
 
@@ -43912,7 +44014,7 @@ Object.defineProperty(exports, "__esModule", {
43912
44014
  });
43913
44015
  exports.ariaLabelsShape = void 0;
43914
44016
 
43915
- var _propTypes = _interopRequireDefault(propTypes);
44017
+ var _propTypes = _interopRequireDefault(require$$1$1);
43916
44018
 
43917
44019
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
43918
44020
 
@@ -43963,7 +44065,7 @@ exports.default = void 0;
43963
44065
 
43964
44066
  var _react = _interopRequireWildcard(React__default);
43965
44067
 
43966
- var _propTypes = _interopRequireDefault(propTypes);
44068
+ var _propTypes = _interopRequireDefault(require$$1$1);
43967
44069
 
43968
44070
 
43969
44071
 
@@ -44794,7 +44896,7 @@ exports.default = void 0;
44794
44896
 
44795
44897
  var _react = _interopRequireWildcard(React__default);
44796
44898
 
44797
- var _propTypes = _interopRequireDefault(propTypes);
44899
+ var _propTypes = _interopRequireDefault(require$$1$1);
44798
44900
 
44799
44901
  var _Calendar = _interopRequireDefault(Calendar_1);
44800
44902
 
@@ -45220,7 +45322,7 @@ exports.default = void 0;
45220
45322
 
45221
45323
  var _react = _interopRequireWildcard(React__default);
45222
45324
 
45223
- var _propTypes = _interopRequireDefault(propTypes);
45325
+ var _propTypes = _interopRequireDefault(require$$1$1);
45224
45326
 
45225
45327
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
45226
45328
 
@@ -45346,7 +45448,7 @@ exports.default = void 0;
45346
45448
 
45347
45449
  var _react = _interopRequireWildcard(React__default);
45348
45450
 
45349
- var _propTypes = _interopRequireDefault(propTypes);
45451
+ var _propTypes = _interopRequireDefault(require$$1$1);
45350
45452
 
45351
45453
  var _styles = _interopRequireDefault(styles);
45352
45454
 
@@ -45568,7 +45670,7 @@ exports.default = void 0;
45568
45670
 
45569
45671
  var _react = _interopRequireWildcard(React__default);
45570
45672
 
45571
- var _propTypes = _interopRequireDefault(propTypes);
45673
+ var _propTypes = _interopRequireDefault(require$$1$1);
45572
45674
 
45573
45675
  var _DateRange = _interopRequireDefault(DateRange_1);
45574
45676