@galaxy-ds/core 1.1.41 → 1.1.45

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.
Files changed (154) hide show
  1. package/dist/ActivityLog/ActivityLog.types.d.ts +1 -0
  2. package/dist/Autocomplete/Autocomplete.types.d.ts +1 -0
  3. package/dist/Box/Box.types.d.ts +1 -0
  4. package/dist/Button/Button.types.d.ts +1 -0
  5. package/dist/DrawerMenu/DrawerMenu.types.d.ts +1 -0
  6. package/dist/HeaderToolbar/HeaderToolbarProps.types.d.ts +1 -0
  7. package/dist/Icon/Icon.d.ts +4 -0
  8. package/dist/Icon/IconProps.types.d.ts +4 -0
  9. package/dist/Icons/Access.d.ts +1 -0
  10. package/dist/Icons/AccountingIcon.d.ts +1 -0
  11. package/dist/Icons/AssignCurvedIcon.d.ts +1 -0
  12. package/dist/Icons/AvatarBusiness.d.ts +1 -0
  13. package/dist/Icons/AvatarCompany.d.ts +1 -0
  14. package/dist/Icons/AvatarGovernment.d.ts +1 -0
  15. package/dist/Icons/AvatarPeople.d.ts +1 -0
  16. package/dist/Icons/AvatarPerson.d.ts +1 -0
  17. package/dist/Icons/AvatarTrust.d.ts +1 -0
  18. package/dist/Icons/ButtonCaret.d.ts +1 -0
  19. package/dist/Icons/ButtonFilter.d.ts +1 -0
  20. package/dist/Icons/Calendar.d.ts +1 -0
  21. package/dist/Icons/ChevronDown.d.ts +1 -0
  22. package/dist/Icons/Cross.d.ts +1 -0
  23. package/dist/Icons/CrossIcon16.d.ts +1 -0
  24. package/dist/Icons/Dialog/Alert.d.ts +1 -0
  25. package/dist/Icons/Dialog/Info.d.ts +1 -0
  26. package/dist/Icons/Dialog/InfoCircle.d.ts +1 -0
  27. package/dist/Icons/Dialog/LeapLogo.d.ts +1 -0
  28. package/dist/Icons/Dialog/Warning.d.ts +1 -0
  29. package/dist/Icons/Doctype/ActivityTypeDefault.d.ts +3 -0
  30. package/dist/Icons/Doctype/DocTypeAppointment.d.ts +1 -0
  31. package/dist/Icons/Doctype/DocTypeAppointmentCriticalDate.d.ts +1 -0
  32. package/dist/Icons/Doctype/DocTypeAudio.d.ts +1 -0
  33. package/dist/Icons/Doctype/DocTypeClausePrecedent.d.ts +1 -0
  34. package/dist/Icons/Doctype/DocTypeComment.d.ts +1 -0
  35. package/dist/Icons/Doctype/DocTypeCriticalDate.d.ts +1 -0
  36. package/dist/Icons/Doctype/DocTypeDeadline.d.ts +1 -0
  37. package/dist/Icons/Doctype/DocTypeDefault.d.ts +1 -0
  38. package/dist/Icons/Doctype/DocTypeEmail.d.ts +1 -0
  39. package/dist/Icons/Doctype/DocTypeEmailDraft.d.ts +1 -0
  40. package/dist/Icons/Doctype/DocTypeEmailReceived.d.ts +1 -0
  41. package/dist/Icons/Doctype/DocTypeEmailRecieved.d.ts +1 -0
  42. package/dist/Icons/Doctype/DocTypeEmailSent.d.ts +1 -0
  43. package/dist/Icons/Doctype/DocTypeExcel.d.ts +1 -0
  44. package/dist/Icons/Doctype/DocTypeFax.d.ts +1 -0
  45. package/dist/Icons/Doctype/DocTypeFileNote.d.ts +1 -0
  46. package/dist/Icons/Doctype/DocTypeFolder.d.ts +1 -0
  47. package/dist/Icons/Doctype/DocTypeImage.d.ts +1 -0
  48. package/dist/Icons/Doctype/DocTypeInfotrack.d.ts +1 -0
  49. package/dist/Icons/Doctype/DocTypeInvoiceRequest.d.ts +1 -0
  50. package/dist/Icons/Doctype/DocTypeInvoiceRequests.d.ts +1 -0
  51. package/dist/Icons/Doctype/DocTypeLetter.d.ts +1 -0
  52. package/dist/Icons/Doctype/DocTypeMemo.d.ts +1 -0
  53. package/dist/Icons/Doctype/DocTypePdf.d.ts +1 -0
  54. package/dist/Icons/Doctype/DocTypePowerpoint.d.ts +1 -0
  55. package/dist/Icons/Doctype/DocTypeSMS.d.ts +1 -0
  56. package/dist/Icons/Doctype/DocTypeSignatureDeclined.d.ts +1 -0
  57. package/dist/Icons/Doctype/DocTypeSignaturePending.d.ts +1 -0
  58. package/dist/Icons/Doctype/DocTypeSignatureRequest.d.ts +1 -0
  59. package/dist/Icons/Doctype/DocTypeSignatureSigned.d.ts +1 -0
  60. package/dist/Icons/Doctype/DocTypeTasks.d.ts +1 -0
  61. package/dist/Icons/Doctype/DocTypeTrust.d.ts +1 -0
  62. package/dist/Icons/Doctype/DocTypeVideo.d.ts +1 -0
  63. package/dist/Icons/Doctype/DocTypeWord.d.ts +1 -0
  64. package/dist/Icons/Doctype/DocTypeZip.d.ts +1 -0
  65. package/dist/Icons/Doctype/index.d.ts +1 -0
  66. package/dist/Icons/{ActivityType/ActivityTypeVideoCall.d.ts → Doctype16/ActivityTypeDefault16.d.ts} +1 -1
  67. package/dist/Icons/Doctype16/DocTypeAppointment16.d.ts +1 -0
  68. package/dist/Icons/Doctype16/DocTypeAppointmentCriticalDate16.d.ts +1 -0
  69. package/dist/Icons/Doctype16/DocTypeAudio16.d.ts +1 -0
  70. package/dist/Icons/Doctype16/DocTypeClausePrecedent16.d.ts +1 -0
  71. package/dist/Icons/Doctype16/DocTypeComment16.d.ts +1 -0
  72. package/dist/Icons/Doctype16/DocTypeCriticalDate16.d.ts +1 -0
  73. package/dist/Icons/Doctype16/DocTypeDeadline16.d.ts +1 -0
  74. package/dist/Icons/Doctype16/DocTypeDefault16.d.ts +1 -0
  75. package/dist/Icons/Doctype16/DocTypeEmail16.d.ts +1 -0
  76. package/dist/Icons/Doctype16/DocTypeEmailDraft16.d.ts +1 -0
  77. package/dist/Icons/Doctype16/DocTypeEmailReceived16.d.ts +1 -0
  78. package/dist/Icons/Doctype16/DocTypeEmailSent16.d.ts +1 -0
  79. package/dist/Icons/Doctype16/DocTypeExcel16.d.ts +1 -0
  80. package/dist/Icons/Doctype16/DocTypeFax16.d.ts +1 -0
  81. package/dist/Icons/Doctype16/DocTypeFileNote16.d.ts +1 -0
  82. package/dist/Icons/Doctype16/DocTypeFolder16.d.ts +1 -0
  83. package/dist/Icons/Doctype16/DocTypeImage16.d.ts +1 -0
  84. package/dist/Icons/Doctype16/DocTypeInfotrack16.d.ts +1 -0
  85. package/dist/Icons/Doctype16/DocTypeInvoiceRequest16.d.ts +1 -0
  86. package/dist/Icons/Doctype16/DocTypeInvoiceRequests16.d.ts +1 -0
  87. package/dist/Icons/Doctype16/DocTypeLetter16.d.ts +1 -0
  88. package/dist/Icons/Doctype16/DocTypeMemo16.d.ts +1 -0
  89. package/dist/Icons/Doctype16/DocTypePdf16.d.ts +1 -0
  90. package/dist/Icons/Doctype16/DocTypePowerpoint16.d.ts +1 -0
  91. package/dist/Icons/Doctype16/DocTypeSMS16.d.ts +1 -0
  92. package/dist/Icons/Doctype16/DocTypeSignatureDeclined16.d.ts +1 -0
  93. package/dist/Icons/Doctype16/DocTypeSignaturePending16.d.ts +1 -0
  94. package/dist/Icons/Doctype16/DocTypeSignatureRequest16.d.ts +1 -0
  95. package/dist/Icons/Doctype16/DocTypeSignatureSigned16.d.ts +1 -0
  96. package/dist/Icons/Doctype16/DocTypeTasks16.d.ts +1 -0
  97. package/dist/Icons/Doctype16/DocTypeTrust16.d.ts +1 -0
  98. package/dist/Icons/Doctype16/DocTypeVideo16.d.ts +1 -0
  99. package/dist/Icons/Doctype16/DocTypeWord16.d.ts +1 -0
  100. package/dist/Icons/Doctype16/DocTypeZip16.d.ts +1 -0
  101. package/dist/Icons/Doctype16/index.d.ts +1 -0
  102. package/dist/Icons/EmailSentIcon.d.ts +1 -0
  103. package/dist/Icons/HomeIcon.d.ts +1 -0
  104. package/dist/Icons/InsertLink.d.ts +1 -0
  105. package/dist/Icons/Loader.d.ts +1 -0
  106. package/dist/Icons/Logos/LawconnectIcon.d.ts +1 -0
  107. package/dist/Icons/Logos/LeapLogo.d.ts +1 -0
  108. package/dist/Icons/Logos/poweredByLawconnect.d.ts +1 -0
  109. package/dist/Icons/MenuIcon.d.ts +1 -0
  110. package/dist/Icons/MoreVerticalIcon.d.ts +1 -0
  111. package/dist/Icons/NewAppointment.d.ts +1 -0
  112. package/dist/Icons/Power.d.ts +1 -0
  113. package/dist/Icons/Preview.d.ts +1 -0
  114. package/dist/Icons/ReportingIcon.d.ts +1 -0
  115. package/dist/Icons/ResponseIcon.d.ts +1 -0
  116. package/dist/Icons/RevokeAccess.d.ts +1 -0
  117. package/dist/Icons/Search.d.ts +1 -0
  118. package/dist/Icons/SelectFilterEmpty.d.ts +1 -0
  119. package/dist/Icons/SelectFilterFilled.d.ts +1 -0
  120. package/dist/Icons/Tick.d.ts +1 -0
  121. package/dist/Icons/UserLink.d.ts +1 -0
  122. package/dist/Icons/UserLock.d.ts +1 -0
  123. package/dist/Icons/Users.d.ts +1 -0
  124. package/dist/List/List.types.d.ts +1 -0
  125. package/dist/ListItemHoverContent/ListItemHoverContent.types.d.ts +1 -0
  126. package/dist/ListSubheader/ListSubheader.types.d.ts +1 -0
  127. package/dist/MenuItem/MenuItem.types.d.ts +1 -0
  128. package/dist/MenuItemSystem/MenuItemSystem.types.d.ts +1 -0
  129. package/dist/TabListItem/TabListItem.types.d.ts +1 -0
  130. package/dist/Table/Table.types.d.ts +1 -0
  131. package/dist/TableBody/TableBody.types.d.ts +1 -0
  132. package/dist/TableCell/TableCell.types.d.ts +1 -0
  133. package/dist/TableCellIcon/TableCellIcon.types.d.ts +1 -0
  134. package/dist/TableFooter/TableFooter.types.d.ts +1 -0
  135. package/dist/TableHead/TableHead.types.d.ts +1 -0
  136. package/dist/TableRow/TableRow.types.d.ts +1 -0
  137. package/dist/ToolbarButton/ToolbarButtonProps.types.d.ts +2 -0
  138. package/dist/Tooltip/Tooltip.types.d.ts +1 -0
  139. package/dist/Typography/Typography.types.d.ts +1 -0
  140. package/dist/index.d.ts +3 -1
  141. package/dist/index.esm.js +323 -249
  142. package/dist/index.esm.js.map +1 -1
  143. package/dist/index.js +1279 -1206
  144. package/dist/index.js.map +1 -1
  145. package/dist/package.json +2 -1
  146. package/package.json +2 -1
  147. package/dist/AccordionBody/AccordionBody.d.ts +0 -4
  148. package/dist/AccordionBody/AccordionBodyProps.types.d.ts +0 -5
  149. package/dist/Icons/ActivityType/index.d.ts +0 -1
  150. package/dist/Themes/LawConnect/common.d.ts +0 -277
  151. package/dist/Themes/LawConnect/index.d.ts +0 -1
  152. package/dist/Themes/LawConnect/pallette.d.ts +0 -228
  153. package/dist/Themes/LawConnect/theme.d.ts +0 -1
  154. package/dist/Themes/LawConnect/typography.d.ts +0 -93
package/dist/index.esm.js CHANGED
@@ -3769,15 +3769,16 @@ var join = function join(value, by) {
3769
3769
 
3770
3770
  return result;
3771
3771
  };
3772
-
3773
3772
  /**
3774
- * Converts array values to string.
3773
+ * Converts JSS array value to a CSS string.
3775
3774
  *
3776
3775
  * `margin: [['5px', '10px']]` > `margin: 5px 10px;`
3777
3776
  * `border: ['1px', '2px']` > `border: 1px, 2px;`
3778
3777
  * `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;`
3779
3778
  * `color: ['red', !important]` > `color: red !important;`
3780
3779
  */
3780
+
3781
+
3781
3782
  var toCssValue = function toCssValue(value, ignoreImportant) {
3782
3783
  if (ignoreImportant === void 0) {
3783
3784
  ignoreImportant = false;
@@ -3802,10 +3803,25 @@ var toCssValue = function toCssValue(value, ignoreImportant) {
3802
3803
  return cssValue;
3803
3804
  };
3804
3805
 
3806
+ function getWhitespaceSymbols(options) {
3807
+ if (options && options.format === false) {
3808
+ return {
3809
+ linebreak: '',
3810
+ space: ''
3811
+ };
3812
+ }
3813
+
3814
+ return {
3815
+ linebreak: '\n',
3816
+ space: ' '
3817
+ };
3818
+ }
3819
+
3805
3820
  /**
3806
3821
  * Indent a string.
3807
3822
  * http://jsperf.com/array-join-vs-for
3808
3823
  */
3824
+
3809
3825
  function indentStr(str, indent) {
3810
3826
  var result = '';
3811
3827
 
@@ -3831,6 +3847,15 @@ function toCss(selector, style, options) {
3831
3847
  _options$indent = _options.indent,
3832
3848
  indent = _options$indent === void 0 ? 0 : _options$indent;
3833
3849
  var fallbacks = style.fallbacks;
3850
+
3851
+ if (options.format === false) {
3852
+ indent = -Infinity;
3853
+ }
3854
+
3855
+ var _getWhitespaceSymbols = getWhitespaceSymbols(options),
3856
+ linebreak = _getWhitespaceSymbols.linebreak,
3857
+ space = _getWhitespaceSymbols.space;
3858
+
3834
3859
  if (selector) indent++; // Apply fallbacks first.
3835
3860
 
3836
3861
  if (fallbacks) {
@@ -3843,8 +3868,8 @@ function toCss(selector, style, options) {
3843
3868
  var value = fallback[prop];
3844
3869
 
3845
3870
  if (value != null) {
3846
- if (result) result += '\n';
3847
- result += indentStr(prop + ": " + toCssValue(value) + ";", indent);
3871
+ if (result) result += linebreak;
3872
+ result += indentStr(prop + ":" + space + toCssValue(value) + ";", indent);
3848
3873
  }
3849
3874
  }
3850
3875
  }
@@ -3854,8 +3879,8 @@ function toCss(selector, style, options) {
3854
3879
  var _value = fallbacks[_prop];
3855
3880
 
3856
3881
  if (_value != null) {
3857
- if (result) result += '\n';
3858
- result += indentStr(_prop + ": " + toCssValue(_value) + ";", indent);
3882
+ if (result) result += linebreak;
3883
+ result += indentStr(_prop + ":" + space + toCssValue(_value) + ";", indent);
3859
3884
  }
3860
3885
  }
3861
3886
  }
@@ -3865,8 +3890,8 @@ function toCss(selector, style, options) {
3865
3890
  var _value2 = style[_prop2];
3866
3891
 
3867
3892
  if (_value2 != null && _prop2 !== 'fallbacks') {
3868
- if (result) result += '\n';
3869
- result += indentStr(_prop2 + ": " + toCssValue(_value2) + ";", indent);
3893
+ if (result) result += linebreak;
3894
+ result += indentStr(_prop2 + ":" + space + toCssValue(_value2) + ";", indent);
3870
3895
  }
3871
3896
  } // Allow empty style in this case, because properties will be added dynamically.
3872
3897
 
@@ -3875,8 +3900,8 @@ function toCss(selector, style, options) {
3875
3900
 
3876
3901
  if (!selector) return result;
3877
3902
  indent--;
3878
- if (result) result = "\n" + result + "\n";
3879
- return indentStr(selector + " {" + result, indent) + indentStr('}', indent);
3903
+ if (result) result = "" + linebreak + result + linebreak;
3904
+ return indentStr("" + selector + space + "{" + result, indent) + indentStr('}', indent);
3880
3905
  }
3881
3906
 
3882
3907
  var escapeRegex = /([[\].#*$><+~=|^:(),"'`\s])/g;
@@ -3890,12 +3915,7 @@ var BaseStyleRule =
3890
3915
  function () {
3891
3916
  function BaseStyleRule(key, style, options) {
3892
3917
  this.type = 'style';
3893
- this.key = void 0;
3894
3918
  this.isProcessed = false;
3895
- this.style = void 0;
3896
- this.renderer = void 0;
3897
- this.renderable = void 0;
3898
- this.options = void 0;
3899
3919
  var sheet = options.sheet,
3900
3920
  Renderer = options.Renderer;
3901
3921
  this.key = key;
@@ -3955,9 +3975,6 @@ function (_BaseStyleRule) {
3955
3975
  var _this;
3956
3976
 
3957
3977
  _this = _BaseStyleRule.call(this, key, style, options) || this;
3958
- _this.selectorText = void 0;
3959
- _this.id = void 0;
3960
- _this.renderable = void 0;
3961
3978
  var selector = options.selector,
3962
3979
  scoped = options.scoped,
3963
3980
  sheet = options.sheet,
@@ -4054,12 +4071,12 @@ function (_BaseStyleRule) {
4054
4071
  return StyleRule;
4055
4072
  }(BaseStyleRule);
4056
4073
  var pluginStyleRule = {
4057
- onCreateRule: function onCreateRule(name, style, options) {
4058
- if (name[0] === '@' || options.parent && options.parent.type === 'keyframes') {
4074
+ onCreateRule: function onCreateRule(key, style, options) {
4075
+ if (key[0] === '@' || options.parent && options.parent.type === 'keyframes') {
4059
4076
  return null;
4060
4077
  }
4061
4078
 
4062
- return new StyleRule(name, style, options);
4079
+ return new StyleRule(key, style, options);
4063
4080
  }
4064
4081
  };
4065
4082
 
@@ -4077,13 +4094,7 @@ var ConditionalRule =
4077
4094
  function () {
4078
4095
  function ConditionalRule(key, styles, options) {
4079
4096
  this.type = 'conditional';
4080
- this.at = void 0;
4081
- this.key = void 0;
4082
- this.query = void 0;
4083
- this.rules = void 0;
4084
- this.options = void 0;
4085
4097
  this.isProcessed = false;
4086
- this.renderable = void 0;
4087
4098
  this.key = key;
4088
4099
  var atMatch = key.match(atRegExp);
4089
4100
  this.at = atMatch ? atMatch[1] : 'unknown'; // Key might contain a unique suffix in case the `name` passed by user was duplicate.
@@ -4139,6 +4150,9 @@ function () {
4139
4150
  options = defaultToStringOptions;
4140
4151
  }
4141
4152
 
4153
+ var _getWhitespaceSymbols = getWhitespaceSymbols(options),
4154
+ linebreak = _getWhitespaceSymbols.linebreak;
4155
+
4142
4156
  if (options.indent == null) options.indent = defaultToStringOptions.indent;
4143
4157
  if (options.children == null) options.children = defaultToStringOptions.children;
4144
4158
 
@@ -4147,7 +4161,7 @@ function () {
4147
4161
  }
4148
4162
 
4149
4163
  var children = this.rules.toString(options);
4150
- return children ? this.query + " {\n" + children + "\n}" : '';
4164
+ return children ? this.query + " {" + linebreak + children + linebreak + "}" : '';
4151
4165
  };
4152
4166
 
4153
4167
  return ConditionalRule;
@@ -4174,13 +4188,7 @@ function () {
4174
4188
  function KeyframesRule(key, frames, options) {
4175
4189
  this.type = 'keyframes';
4176
4190
  this.at = '@keyframes';
4177
- this.key = void 0;
4178
- this.name = void 0;
4179
- this.id = void 0;
4180
- this.rules = void 0;
4181
- this.options = void 0;
4182
4191
  this.isProcessed = false;
4183
- this.renderable = void 0;
4184
4192
  var nameMatch = key.match(nameRegExp);
4185
4193
 
4186
4194
  if (nameMatch && nameMatch[1]) {
@@ -4220,6 +4228,9 @@ function () {
4220
4228
  options = defaultToStringOptions$1;
4221
4229
  }
4222
4230
 
4231
+ var _getWhitespaceSymbols = getWhitespaceSymbols(options),
4232
+ linebreak = _getWhitespaceSymbols.linebreak;
4233
+
4223
4234
  if (options.indent == null) options.indent = defaultToStringOptions$1.indent;
4224
4235
  if (options.children == null) options.children = defaultToStringOptions$1.children;
4225
4236
 
@@ -4228,7 +4239,7 @@ function () {
4228
4239
  }
4229
4240
 
4230
4241
  var children = this.rules.toString(options);
4231
- if (children) children = "\n" + children + "\n";
4242
+ if (children) children = "" + linebreak + children + linebreak;
4232
4243
  return this.at + " " + this.id + " {" + children + "}";
4233
4244
  };
4234
4245
 
@@ -4265,7 +4276,7 @@ var replaceRef = function replaceRef(style, prop, keyframes) {
4265
4276
  }
4266
4277
  };
4267
4278
 
4268
- var plugin = {
4279
+ var pluginKeyframesRule = {
4269
4280
  onCreateRule: function onCreateRule(key, frames, options) {
4270
4281
  return typeof key === 'string' && keyRegExp$1.test(key) ? new KeyframesRule(key, frames, options) : null;
4271
4282
  },
@@ -4302,15 +4313,7 @@ function (_BaseStyleRule) {
4302
4313
  _inheritsLoose(KeyframeRule, _BaseStyleRule);
4303
4314
 
4304
4315
  function KeyframeRule() {
4305
- var _this;
4306
-
4307
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4308
- args[_key] = arguments[_key];
4309
- }
4310
-
4311
- _this = _BaseStyleRule.call.apply(_BaseStyleRule, [this].concat(args)) || this;
4312
- _this.renderable = void 0;
4313
- return _this;
4316
+ return _BaseStyleRule.apply(this, arguments) || this;
4314
4317
  }
4315
4318
 
4316
4319
  var _proto = KeyframeRule.prototype;
@@ -4345,11 +4348,7 @@ function () {
4345
4348
  function FontFaceRule(key, style, options) {
4346
4349
  this.type = 'font-face';
4347
4350
  this.at = '@font-face';
4348
- this.key = void 0;
4349
- this.style = void 0;
4350
- this.options = void 0;
4351
4351
  this.isProcessed = false;
4352
- this.renderable = void 0;
4353
4352
  this.key = key;
4354
4353
  this.style = style;
4355
4354
  this.options = options;
@@ -4362,12 +4361,15 @@ function () {
4362
4361
  var _proto = FontFaceRule.prototype;
4363
4362
 
4364
4363
  _proto.toString = function toString(options) {
4364
+ var _getWhitespaceSymbols = getWhitespaceSymbols(options),
4365
+ linebreak = _getWhitespaceSymbols.linebreak;
4366
+
4365
4367
  if (Array.isArray(this.style)) {
4366
4368
  var str = '';
4367
4369
 
4368
4370
  for (var index = 0; index < this.style.length; index++) {
4369
4371
  str += toCss(this.at, this.style[index]);
4370
- if (this.style[index + 1]) str += '\n';
4372
+ if (this.style[index + 1]) str += linebreak;
4371
4373
  }
4372
4374
 
4373
4375
  return str;
@@ -4391,11 +4393,7 @@ function () {
4391
4393
  function ViewportRule(key, style, options) {
4392
4394
  this.type = 'viewport';
4393
4395
  this.at = '@viewport';
4394
- this.key = void 0;
4395
- this.style = void 0;
4396
- this.options = void 0;
4397
4396
  this.isProcessed = false;
4398
- this.renderable = void 0;
4399
4397
  this.key = key;
4400
4398
  this.style = style;
4401
4399
  this.options = options;
@@ -4424,11 +4422,7 @@ var SimpleRule =
4424
4422
  function () {
4425
4423
  function SimpleRule(key, value, options) {
4426
4424
  this.type = 'simple';
4427
- this.key = void 0;
4428
- this.value = void 0;
4429
- this.options = void 0;
4430
4425
  this.isProcessed = false;
4431
- this.renderable = void 0;
4432
4426
  this.key = key;
4433
4427
  this.value = value;
4434
4428
  this.options = options;
@@ -4469,7 +4463,7 @@ var pluginSimpleRule = {
4469
4463
  }
4470
4464
  };
4471
4465
 
4472
- var plugins$1 = [pluginStyleRule, pluginConditionalRule, plugin, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
4466
+ var plugins$1 = [pluginStyleRule, pluginConditionalRule, pluginKeyframesRule, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
4473
4467
 
4474
4468
  var defaultUpdateOptions = {
4475
4469
  process: true
@@ -4496,9 +4490,6 @@ function () {
4496
4490
  this.raw = {};
4497
4491
  this.index = [];
4498
4492
  this.counter = 0;
4499
- this.options = void 0;
4500
- this.classes = void 0;
4501
- this.keyframes = void 0;
4502
4493
  this.options = options;
4503
4494
  this.classes = options.classes;
4504
4495
  this.keyframes = options.keyframes;
@@ -4637,14 +4628,11 @@ function () {
4637
4628
  var options;
4638
4629
 
4639
4630
  if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'string') {
4640
- name = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]
4641
-
4642
- data = arguments.length <= 1 ? undefined : arguments[1]; // $FlowFixMe[invalid-tuple-index]
4643
-
4631
+ name = arguments.length <= 0 ? undefined : arguments[0];
4632
+ data = arguments.length <= 1 ? undefined : arguments[1];
4644
4633
  options = arguments.length <= 2 ? undefined : arguments[2];
4645
4634
  } else {
4646
- data = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]
4647
-
4635
+ data = arguments.length <= 0 ? undefined : arguments[0];
4648
4636
  options = arguments.length <= 1 ? undefined : arguments[1];
4649
4637
  name = null;
4650
4638
  }
@@ -4676,32 +4664,31 @@ function () {
4676
4664
  return;
4677
4665
  }
4678
4666
 
4679
- var styleRule = rule;
4680
- var style = styleRule.style;
4667
+ var style = rule.style;
4681
4668
  plugins.onUpdate(data, rule, sheet, options); // We rely on a new `style` ref in case it was mutated during onUpdate hook.
4682
4669
 
4683
- if (options.process && style && style !== styleRule.style) {
4670
+ if (options.process && style && style !== rule.style) {
4684
4671
  // We need to run the plugins in case new `style` relies on syntax plugins.
4685
- plugins.onProcessStyle(styleRule.style, styleRule, sheet); // Update and add props.
4672
+ plugins.onProcessStyle(rule.style, rule, sheet); // Update and add props.
4686
4673
 
4687
- for (var prop in styleRule.style) {
4688
- var nextValue = styleRule.style[prop];
4674
+ for (var prop in rule.style) {
4675
+ var nextValue = rule.style[prop];
4689
4676
  var prevValue = style[prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.
4690
4677
  // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
4691
4678
 
4692
4679
  if (nextValue !== prevValue) {
4693
- styleRule.prop(prop, nextValue, forceUpdateOptions);
4680
+ rule.prop(prop, nextValue, forceUpdateOptions);
4694
4681
  }
4695
4682
  } // Remove props.
4696
4683
 
4697
4684
 
4698
4685
  for (var _prop in style) {
4699
- var _nextValue = styleRule.style[_prop];
4686
+ var _nextValue = rule.style[_prop];
4700
4687
  var _prevValue = style[_prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.
4701
4688
  // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
4702
4689
 
4703
4690
  if (_nextValue == null && _nextValue !== _prevValue) {
4704
- styleRule.prop(_prop, null, forceUpdateOptions);
4691
+ rule.prop(_prop, null, forceUpdateOptions);
4705
4692
  }
4706
4693
  }
4707
4694
  }
@@ -4716,12 +4703,15 @@ function () {
4716
4703
  var sheet = this.options.sheet;
4717
4704
  var link = sheet ? sheet.options.link : false;
4718
4705
 
4706
+ var _getWhitespaceSymbols = getWhitespaceSymbols(options),
4707
+ linebreak = _getWhitespaceSymbols.linebreak;
4708
+
4719
4709
  for (var index = 0; index < this.index.length; index++) {
4720
4710
  var rule = this.index[index];
4721
4711
  var css = rule.toString(options); // No need to render an empty rule.
4722
4712
 
4723
4713
  if (!css && !link) continue;
4724
- if (str) str += '\n';
4714
+ if (str) str += linebreak;
4725
4715
  str += css;
4726
4716
  }
4727
4717
 
@@ -4735,14 +4725,6 @@ var StyleSheet =
4735
4725
  /*#__PURE__*/
4736
4726
  function () {
4737
4727
  function StyleSheet(styles, options) {
4738
- this.options = void 0;
4739
- this.deployed = void 0;
4740
- this.attached = void 0;
4741
- this.rules = void 0;
4742
- this.renderer = void 0;
4743
- this.classes = void 0;
4744
- this.keyframes = void 0;
4745
- this.queue = void 0;
4746
4728
  this.attached = false;
4747
4729
  this.deployed = false;
4748
4730
  this.classes = {};
@@ -4944,7 +4926,7 @@ function () {
4944
4926
  internal: [],
4945
4927
  external: []
4946
4928
  };
4947
- this.registry = void 0;
4929
+ this.registry = {};
4948
4930
  }
4949
4931
 
4950
4932
  var _proto = PluginsRegistry.prototype;
@@ -4983,7 +4965,6 @@ function () {
4983
4965
 
4984
4966
  _proto.onProcessStyle = function onProcessStyle(style, rule, sheet) {
4985
4967
  for (var i = 0; i < this.registry.onProcessStyle.length; i++) {
4986
- // $FlowFixMe[prop-missing]
4987
4968
  rule.style = this.registry.onProcessStyle[i](rule.style, rule, sheet);
4988
4969
  }
4989
4970
  }
@@ -5064,8 +5045,9 @@ function () {
5064
5045
  }();
5065
5046
 
5066
5047
  /**
5067
- * Sheets registry to access them all at one place.
5048
+ * Sheets registry to access all instances in one place.
5068
5049
  */
5050
+
5069
5051
  var SheetsRegistry =
5070
5052
  /*#__PURE__*/
5071
5053
  function () {
@@ -5123,6 +5105,9 @@ function () {
5123
5105
  attached = _ref.attached,
5124
5106
  options = _objectWithoutPropertiesLoose(_ref, ["attached"]);
5125
5107
 
5108
+ var _getWhitespaceSymbols = getWhitespaceSymbols(options),
5109
+ linebreak = _getWhitespaceSymbols.linebreak;
5110
+
5126
5111
  var css = '';
5127
5112
 
5128
5113
  for (var i = 0; i < this.registry.length; i++) {
@@ -5132,7 +5117,7 @@ function () {
5132
5117
  continue;
5133
5118
  }
5134
5119
 
5135
- if (css) css += '\n';
5120
+ if (css) css += linebreak;
5136
5121
  css += sheet.toString(options);
5137
5122
  }
5138
5123
 
@@ -5160,7 +5145,7 @@ function () {
5160
5145
  * each request in order to not leak sheets across requests.
5161
5146
  */
5162
5147
 
5163
- var registry = new SheetsRegistry();
5148
+ var sheets = new SheetsRegistry();
5164
5149
 
5165
5150
  /* eslint-disable */
5166
5151
 
@@ -5185,12 +5170,12 @@ if (globalThis$1[ns] == null) globalThis$1[ns] = 0; // Bundle may contain multip
5185
5170
  var moduleId = globalThis$1[ns]++;
5186
5171
 
5187
5172
  var maxRules = 1e10;
5188
-
5189
5173
  /**
5190
5174
  * Returns a function which generates unique class names based on counters.
5191
5175
  * When new generator function is created, rule counter is reseted.
5192
5176
  * We need to reset the rule counter for SSR for each request.
5193
5177
  */
5178
+
5194
5179
  var createGenerateId = function createGenerateId(options) {
5195
5180
  if (options === void 0) {
5196
5181
  options = {};
@@ -5232,6 +5217,7 @@ var createGenerateId = function createGenerateId(options) {
5232
5217
  /**
5233
5218
  * Cache the value from the first time a function is called.
5234
5219
  */
5220
+
5235
5221
  var memoize = function memoize(fn) {
5236
5222
  var value;
5237
5223
  return function () {
@@ -5239,10 +5225,11 @@ var memoize = function memoize(fn) {
5239
5225
  return value;
5240
5226
  };
5241
5227
  };
5242
-
5243
5228
  /**
5244
5229
  * Get a style property value.
5245
5230
  */
5231
+
5232
+
5246
5233
  var getPropertyValue = function getPropertyValue(cssRule, prop) {
5247
5234
  try {
5248
5235
  // Support CSSTOM.
@@ -5256,10 +5243,11 @@ var getPropertyValue = function getPropertyValue(cssRule, prop) {
5256
5243
  return '';
5257
5244
  }
5258
5245
  };
5259
-
5260
5246
  /**
5261
5247
  * Set a style property.
5262
5248
  */
5249
+
5250
+
5263
5251
  var setProperty = function setProperty(cssRule, prop, value) {
5264
5252
  try {
5265
5253
  var cssValue = value;
@@ -5286,10 +5274,11 @@ var setProperty = function setProperty(cssRule, prop, value) {
5286
5274
 
5287
5275
  return true;
5288
5276
  };
5289
-
5290
5277
  /**
5291
5278
  * Remove a style property.
5292
5279
  */
5280
+
5281
+
5293
5282
  var removeProperty = function removeProperty(cssRule, prop) {
5294
5283
  try {
5295
5284
  // Support CSSTOM.
@@ -5302,10 +5291,11 @@ var removeProperty = function removeProperty(cssRule, prop) {
5302
5291
  process.env.NODE_ENV !== "production" ? warning(false, "[JSS] DOMException \"" + err.message + "\" was thrown. Tried to remove property \"" + prop + "\".") : void 0;
5303
5292
  }
5304
5293
  };
5305
-
5306
5294
  /**
5307
5295
  * Set the selector.
5308
5296
  */
5297
+
5298
+
5309
5299
  var setSelector = function setSelector(cssRule, selectorText) {
5310
5300
  cssRule.selectorText = selectorText; // Return false if setter was not successful.
5311
5301
  // Currently works in chrome only.
@@ -5370,16 +5360,17 @@ function findCommentNode(text) {
5370
5360
 
5371
5361
  return null;
5372
5362
  }
5373
-
5374
5363
  /**
5375
5364
  * Find a node before which we can insert the sheet.
5376
5365
  */
5366
+
5367
+
5377
5368
  function findPrevNode(options) {
5378
- var registry$1 = registry.registry;
5369
+ var registry = sheets.registry;
5379
5370
 
5380
- if (registry$1.length > 0) {
5371
+ if (registry.length > 0) {
5381
5372
  // Try to insert before the next higher sheet.
5382
- var sheet = findHigherSheet(registry$1, options);
5373
+ var sheet = findHigherSheet(registry, options);
5383
5374
 
5384
5375
  if (sheet && sheet.renderer) {
5385
5376
  return {
@@ -5389,7 +5380,7 @@ function findPrevNode(options) {
5389
5380
  } // Otherwise insert after the last attached.
5390
5381
 
5391
5382
 
5392
- sheet = findHighestSheet(registry$1, options);
5383
+ sheet = findHighestSheet(registry, options);
5393
5384
 
5394
5385
  if (sheet && sheet.renderer) {
5395
5386
  return {
@@ -5435,7 +5426,6 @@ function insertStyle(style, options) {
5435
5426
 
5436
5427
 
5437
5428
  if (insertionPoint && typeof insertionPoint.nodeType === 'number') {
5438
- // https://stackoverflow.com/questions/41328728/force-casting-in-flow
5439
5429
  var insertionPointElement = insertionPoint;
5440
5430
  var parentNode = insertionPointElement.parentNode;
5441
5431
  if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);else process.env.NODE_ENV !== "production" ? warning(false, '[JSS] Insertion point is not in the DOM.') : void 0;
@@ -5457,13 +5447,10 @@ var getNonce = memoize(function () {
5457
5447
  var _insertRule = function insertRule(container, rule, index) {
5458
5448
  try {
5459
5449
  if ('insertRule' in container) {
5460
- var c = container;
5461
- c.insertRule(rule, index);
5450
+ container.insertRule(rule, index);
5462
5451
  } // Keyframes rule.
5463
5452
  else if ('appendRule' in container) {
5464
- var _c = container;
5465
-
5466
- _c.appendRule(rule);
5453
+ container.appendRule(rule);
5467
5454
  }
5468
5455
  } catch (err) {
5469
5456
  process.env.NODE_ENV !== "production" ? warning(false, "[JSS] " + err.message) : void 0;
@@ -5496,7 +5483,6 @@ var createStyle = function createStyle() {
5496
5483
  var DomRenderer =
5497
5484
  /*#__PURE__*/
5498
5485
  function () {
5499
- // HTMLStyleElement needs fixing https://github.com/facebook/flow/issues/2696
5500
5486
  // Will be empty if link: true option is not set, because
5501
5487
  // it is only for use together with insertRule API.
5502
5488
  function DomRenderer(sheet) {
@@ -5504,12 +5490,10 @@ function () {
5504
5490
  this.setProperty = setProperty;
5505
5491
  this.removeProperty = removeProperty;
5506
5492
  this.setSelector = setSelector;
5507
- this.element = void 0;
5508
- this.sheet = void 0;
5509
5493
  this.hasInsertedRules = false;
5510
5494
  this.cssRules = [];
5511
5495
  // There is no sheet when the renderer is used from a standalone StyleRule.
5512
- if (sheet) registry.add(sheet);
5496
+ if (sheet) sheets.add(sheet);
5513
5497
  this.sheet = sheet;
5514
5498
 
5515
5499
  var _ref = this.sheet ? this.sheet.options : {},
@@ -5696,7 +5680,7 @@ var Jss =
5696
5680
  function () {
5697
5681
  function Jss(options) {
5698
5682
  this.id = instanceCounter++;
5699
- this.version = "10.7.1";
5683
+ this.version = "10.8.2";
5700
5684
  this.plugins = new PluginsRegistry();
5701
5685
  this.options = {
5702
5686
  id: {
@@ -5768,7 +5752,7 @@ function () {
5768
5752
  index = _options.index;
5769
5753
 
5770
5754
  if (typeof index !== 'number') {
5771
- index = registry.index === 0 ? 0 : registry.index + 1;
5755
+ index = sheets.index === 0 ? 0 : sheets.index + 1;
5772
5756
  }
5773
5757
 
5774
5758
  var sheet = new StyleSheet(styles, _extends$1({}, options, {
@@ -5788,7 +5772,7 @@ function () {
5788
5772
 
5789
5773
  _proto.removeStyleSheet = function removeStyleSheet(sheet) {
5790
5774
  sheet.detach();
5791
- registry.remove(sheet);
5775
+ sheets.remove(sheet);
5792
5776
  return this;
5793
5777
  }
5794
5778
  /**
@@ -5808,10 +5792,8 @@ function () {
5808
5792
 
5809
5793
  // Enable rule without name for inline styles.
5810
5794
  if (typeof name === 'object') {
5811
- // $FlowFixMe[incompatible-call]
5812
5795
  return this.createRule(undefined, name, style);
5813
- } // $FlowFixMe[incompatible-type]
5814
-
5796
+ }
5815
5797
 
5816
5798
  var ruleOptions = _extends$1({}, options, {
5817
5799
  name: name,
@@ -5849,6 +5831,16 @@ function () {
5849
5831
  return Jss;
5850
5832
  }();
5851
5833
 
5834
+ var createJss = function createJss(options) {
5835
+ return new Jss(options);
5836
+ };
5837
+
5838
+ /**
5839
+ * Export a constant indicating if this browser has CSSTOM support.
5840
+ * https://developers.google.com/web/updates/2018/03/cssom
5841
+ */
5842
+ var hasCSSTOMSupport = typeof CSS === 'object' && CSS != null && 'number' in CSS;
5843
+
5852
5844
  /**
5853
5845
  * Extracts a styles object with only props that contain function values.
5854
5846
  */
@@ -5882,24 +5874,7 @@ function getDynamicStyles(styles) {
5882
5874
  * @website https://github.com/cssinjs/jss
5883
5875
  * @license MIT
5884
5876
  */
5885
-
5886
- /**
5887
- * Export a constant indicating if this browser has CSSTOM support.
5888
- * https://developers.google.com/web/updates/2018/03/cssom
5889
- */
5890
- var hasCSSTOMSupport = typeof CSS === 'object' && CSS != null && 'number' in CSS;
5891
- /**
5892
- * Creates a new instance of Jss.
5893
- */
5894
-
5895
- var create = function create(options) {
5896
- return new Jss(options);
5897
- };
5898
- /**
5899
- * A global Jss instance.
5900
- */
5901
-
5902
- create();
5877
+ createJss();
5903
5878
 
5904
5879
  var now = Date.now();
5905
5880
  var fnValuesNs = "fnValues" + now;
@@ -5926,15 +5901,13 @@ var functionPlugin = function functionPlugin() {
5926
5901
  if (typeof value !== 'function') continue;
5927
5902
  delete style[prop];
5928
5903
  fnValues[prop] = value;
5929
- } // $FlowFixMe[prop-missing]
5930
-
5904
+ }
5931
5905
 
5932
5906
  rule[fnValuesNs] = fnValues;
5933
5907
  return style;
5934
5908
  },
5935
5909
  onUpdate: function onUpdate(data, rule, sheet, options) {
5936
- var styleRule = rule; // $FlowFixMe[prop-missing]
5937
-
5910
+ var styleRule = rule;
5938
5911
  var fnRule = styleRule[fnRuleNs]; // If we have a style function, the entire rule is dynamic and style object
5939
5912
  // will be returned from that function.
5940
5913
 
@@ -5951,8 +5924,7 @@ var functionPlugin = function functionPlugin() {
5951
5924
  }
5952
5925
  }
5953
5926
  }
5954
- } // $FlowFixMe[prop-missing]
5955
-
5927
+ }
5956
5928
 
5957
5929
  var fnValues = styleRule[fnValuesNs]; // If we have a fn values map, it is a rule with function values.
5958
5930
 
@@ -5976,9 +5948,6 @@ function () {
5976
5948
  function GlobalContainerRule(key, styles, options) {
5977
5949
  this.type = 'global';
5978
5950
  this.at = at;
5979
- this.rules = void 0;
5980
- this.options = void 0;
5981
- this.key = void 0;
5982
5951
  this.isProcessed = false;
5983
5952
  this.key = key;
5984
5953
  this.options = options;
@@ -6038,10 +6007,7 @@ function () {
6038
6007
  function GlobalPrefixedRule(key, style, options) {
6039
6008
  this.type = 'global';
6040
6009
  this.at = at;
6041
- this.options = void 0;
6042
- this.rule = void 0;
6043
6010
  this.isProcessed = false;
6044
- this.key = void 0;
6045
6011
  this.key = key;
6046
6012
  this.options = options;
6047
6013
  var selector = key.substr(atPrefix.length);
@@ -6103,9 +6069,6 @@ function handlePrefixedGlobalRule(rule, sheet) {
6103
6069
  }
6104
6070
  /**
6105
6071
  * Convert nested rules to separate, remove them from original styles.
6106
- *
6107
- * @param {Rule} rule
6108
- * @api public
6109
6072
  */
6110
6073
 
6111
6074
 
@@ -6153,9 +6116,6 @@ var parentRegExp = /&/g;
6153
6116
  var refRegExp = /\$([\w-]+)/g;
6154
6117
  /**
6155
6118
  * Convert nested rules to separate, remove them from original styles.
6156
- *
6157
- * @param {Rule} rule
6158
- * @api public
6159
6119
  */
6160
6120
 
6161
6121
  function jssNested() {
@@ -6165,7 +6125,6 @@ function jssNested() {
6165
6125
  var rule = container.getRule(key) || sheet && sheet.getRule(key);
6166
6126
 
6167
6127
  if (rule) {
6168
- rule = rule;
6169
6128
  return rule.selector;
6170
6129
  }
6171
6130
 
@@ -6196,8 +6155,7 @@ function jssNested() {
6196
6155
  function getOptions(rule, container, prevOptions) {
6197
6156
  // Options has been already created, now we only increase index.
6198
6157
  if (prevOptions) return _extends$1({}, prevOptions, {
6199
- index: prevOptions.index + 1 // $FlowFixMe[prop-missing]
6200
-
6158
+ index: prevOptions.index + 1
6201
6159
  });
6202
6160
  var nestingLevel = rule.options.nestingLevel;
6203
6161
  nestingLevel = nestingLevel === undefined ? 1 : nestingLevel + 1;
@@ -6237,11 +6195,7 @@ function jssNested() {
6237
6195
  }));
6238
6196
  } else if (isNestedConditional) {
6239
6197
  // Place conditional right after the parent rule to ensure right ordering.
6240
- container.addRule(prop, {}, options) // Flow expects more options but they aren't required
6241
- // And flow doesn't know this will always be a StyleRule which has the addRule method
6242
- // $FlowFixMe[incompatible-use]
6243
- // $FlowFixMe[prop-missing]
6244
- .addRule(styleRule.key, style[prop], {
6198
+ container.addRule(prop, {}, options).addRule(styleRule.key, style[prop], {
6245
6199
  selector: styleRule.selector
6246
6200
  });
6247
6201
  }
@@ -6277,9 +6231,6 @@ function hyphenateStyleName(name) {
6277
6231
 
6278
6232
  /**
6279
6233
  * Convert camel cased property names to dash separated.
6280
- *
6281
- * @param {Object} style
6282
- * @return {Object}
6283
6234
  */
6284
6235
 
6285
6236
  function convertCase(style) {
@@ -6298,8 +6249,6 @@ function convertCase(style) {
6298
6249
  }
6299
6250
  /**
6300
6251
  * Allow camel cased property names by converting them back to dasherized.
6301
- *
6302
- * @param {Rule} rule
6303
6252
  */
6304
6253
 
6305
6254
 
@@ -6341,8 +6290,6 @@ var ms = hasCSSTOMSupport && CSS ? CSS.ms : 'ms';
6341
6290
  var percent = hasCSSTOMSupport && CSS ? CSS.percent : '%';
6342
6291
  /**
6343
6292
  * Generated jss-plugin-default-unit CSS property units
6344
- *
6345
- * @type object
6346
6293
  */
6347
6294
 
6348
6295
  var defaultUnits = {
@@ -6501,6 +6448,7 @@ var defaultUnits = {
6501
6448
  /**
6502
6449
  * Clones the object and adds a camel cased property version.
6503
6450
  */
6451
+
6504
6452
  function addCamelCasedVersion(obj) {
6505
6453
  var regExp = /(-[a-z])/g;
6506
6454
 
@@ -6510,9 +6458,9 @@ function addCamelCasedVersion(obj) {
6510
6458
 
6511
6459
  var newObj = {};
6512
6460
 
6513
- for (var _key in obj) {
6514
- newObj[_key] = obj[_key];
6515
- newObj[_key.replace(regExp, replace)] = obj[_key];
6461
+ for (var key in obj) {
6462
+ newObj[key] = obj[key];
6463
+ newObj[key.replace(regExp, replace)] = obj[key];
6516
6464
  }
6517
6465
 
6518
6466
  return newObj;
@@ -7156,8 +7104,6 @@ function supportedValue(property, value) {
7156
7104
 
7157
7105
  /**
7158
7106
  * Add vendor prefix to a property name when needed.
7159
- *
7160
- * @api public
7161
7107
  */
7162
7108
 
7163
7109
  function jssVendorPrefixer() {
@@ -7324,7 +7270,7 @@ function useTheme$1() {
7324
7270
  return theme;
7325
7271
  }
7326
7272
 
7327
- var jss = create(jssPreset()); // Use a singleton or the provided one by the context.
7273
+ var jss = createJss(jssPreset()); // Use a singleton or the provided one by the context.
7328
7274
  //
7329
7275
  // The counter-based approach doesn't tolerate any mistake.
7330
7276
  // It's much safer to use the same counter everywhere.
@@ -7386,7 +7332,7 @@ function StylesProvider(props) {
7386
7332
  head.insertBefore(injectFirstNode, head.firstChild);
7387
7333
  }
7388
7334
 
7389
- context.jss = create({
7335
+ context.jss = createJss({
7390
7336
  plugins: jssPreset().plugins,
7391
7337
  insertionPoint: injectFirstNode
7392
7338
  });
@@ -34221,6 +34167,10 @@ var IconButton = React__default.forwardRef(function (props, ref) {
34221
34167
  return (React__default.createElement(MuiIconButton, __assign$1({}, defaultProps, { ref: ref }), children));
34222
34168
  });
34223
34169
 
34170
+ var Icon = function (props) {
34171
+ return (React__default.createElement(SvgIcon$1, __assign$1({}, props)));
34172
+ };
34173
+
34224
34174
  function LawconnectIcon(props) {
34225
34175
  return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", width: props.size + "px", viewBox: "0 0 141 140" },
34226
34176
  React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.163 119.104a69.739 69.739 0 0049.313 20.426h.133a69.68 69.68 0 0064.35-43.067 69.663 69.663 0 005.281-26.673h-33.528v.042a36.23 36.23 0 01-22.382 33.464 36.236 36.236 0 11-13.853-69.718V.05a69.74 69.74 0 00-49.314 119.054zm119.049-95.585c0 12.962-10.507 23.47-23.469 23.47-12.962 0-23.47-10.508-23.47-23.47S103.782.049 116.744.049s23.469 10.508 23.469 23.47z", fill: "#ecedef" })));
@@ -34298,7 +34248,7 @@ var FormHeader = React__default.forwardRef(function (props, ref) {
34298
34248
  React__default.createElement(Box$2, { className: clsx(classes.root, 'gds-header_detail') },
34299
34249
  React__default.createElement(Grid$2, { item: true, xs: 5 }, props.platformWeb ? (React__default.createElement(Typography, { color: "default", variant: "body2", upperCase: true }, props.title)) : (React__default.createElement(Typography, { color: "primaryLight", variant: "h2", upperCase: true }, props.title))),
34300
34250
  React__default.createElement(Grid$2, { item: true, xs: 7 },
34301
- React__default.createElement(Grid$2, { container: true, alignItems: "center", justify: "flex-end", className: clsx(classes.root, 'gds-header_info') },
34251
+ React__default.createElement(Grid$2, { container: true, alignItems: "center", justifyContent: "flex-end", className: clsx(classes.root, 'gds-header_info') },
34302
34252
  props.from ? (React__default.createElement(Typography, { align: "right", variant: "body2" }, props.from)) : null,
34303
34253
  props.from && props.onClick ? React__default.createElement(Divider, { orientation: "vertical" }) : null,
34304
34254
  props.onClick ? (React__default.createElement(Button, { color: "primary", variant: "text", onClick: props.onClick }, "Change")) : null))),
@@ -35060,6 +35010,13 @@ function ActivityTypeScannedDoc(props) {
35060
35010
  React__default.createElement("path", { d: "M6.49805 22.9976C6.77419 22.9976 6.99805 22.7737 6.99805 22.4976C6.99805 22.2214 6.77419 21.9976 6.49805 21.9976H2.96491C2.57247 21.9976 2.34984 21.892 2.22432 21.7667C2.09884 21.6415 1.99805 21.4244 1.99805 21.0522L1.99805 17.4976C1.99805 17.2214 1.77419 16.9976 1.49805 16.9976C1.2219 16.9976 0.998047 17.2214 0.998047 17.4976V21.0522C0.998047 21.602 1.15022 22.1076 1.51793 22.4745C1.8856 22.8414 2.3964 22.9976 2.96491 22.9976H6.49805Z", fill: "#191919" })));
35061
35011
  }
35062
35012
 
35013
+ function ActivityTypeDefault(props) {
35014
+ return (React__default.createElement(SvgIcon$1, __assign$1({}, props, { viewBox: "0 0 24 24" }),
35015
+ React__default.createElement("path", { d: "M11.0946 2.24663C11.6543 1.91779 12.3457 1.91779 12.9054 2.24663L20.1054 6.47707C20.6593 6.8025 21 7.40068 21 8.04764V15.9524C21 16.5993 20.6593 17.1975 20.1054 17.5229L12.9053 21.7534C12.3457 22.0822 11.6542 22.0822 11.0945 21.7534L3.89457 17.5229C3.34071 17.1975 3 16.5993 3 15.9524V8.04764C3 7.40068 3.34072 6.8025 3.89458 6.47707L11.0946 2.24663Z", fill: "white" }),
35016
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M19.5988 7.33926L12.3988 3.10882C12.1519 2.96373 11.8481 2.96373 11.6012 3.10882L4.40117 7.33926C4.15567 7.48351 4 7.7521 4 8.04764V15.9524C4 16.2479 4.15567 16.5165 4.40117 16.6607L11.6011 20.8912C11.848 21.0363 12.1518 21.0363 12.3988 20.8912L19.5988 16.6607C19.8443 16.5165 20 16.2479 20 15.9524V8.04764C20 7.7521 19.8443 7.48351 19.5988 7.33926ZM12.9054 2.24663C12.3457 1.91779 11.6543 1.91779 11.0946 2.24663L3.89458 6.47707C3.34072 6.8025 3 7.40068 3 8.04764V15.9524C3 16.5993 3.34071 17.1975 3.89457 17.5229L11.0945 21.7534C11.6542 22.0822 12.3457 22.0822 12.9053 21.7534L20.1054 17.5229C20.6593 17.1975 21 16.5993 21 15.9524V8.04764C21 7.40068 20.6593 6.8025 20.1054 6.47707L12.9054 2.24663Z", fill: "#979593" }),
35017
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15ZM12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16Z", fill: "#979593" })));
35018
+ }
35019
+
35063
35020
  function DocTypeAppointment16(props) {
35064
35021
  return (React__default.createElement(SvgIcon$1, __assign$1({}, props, { viewBox: "0 0 32 32" }),
35065
35022
  React__default.createElement("g", { xmlns: "http://www.w3.org/2000/svg", fill: "none", fillRule: "evenodd" },
@@ -35391,6 +35348,13 @@ function ActivityTypeScannedDoc16(props) {
35391
35348
  React__default.createElement("path", { d: "M4.5 16C4.77614 16 5 15.7761 5 15.5C5 15.2239 4.77614 15 4.5 15H1.96686C1.57442 15 1.35179 14.8944 1.22627 14.7691C1.10079 14.6439 1 14.4268 1 14.0547L1 11.5C1 11.2239 0.776142 11 0.5 11C0.223857 11 0 11.2239 0 11.5V14.0547C0 14.6044 0.152171 15.11 0.519885 15.477C0.887556 15.8439 1.39835 16 1.96686 16H4.5Z", fill: "#191919" })));
35392
35349
  }
35393
35350
 
35351
+ function ActivityTypeDefault16(props) {
35352
+ return (React__default.createElement(SvgIcon$1, __assign$1({}, props, { viewBox: "0 0 16 16" }),
35353
+ React__default.createElement("path", { d: "M6.91409 1.32231C7.57503 0.894902 8.42521 0.894902 9.08616 1.32231L13.0862 3.90897C13.656 4.27748 14.0001 4.9098 14.0001 5.58842V10.4108C14.0001 11.0899 13.6556 11.7225 13.0852 12.0909L9.0851 14.6743C8.42461 15.1008 7.57548 15.1008 6.915 14.6742L2.91506 12.0909C2.34465 11.7225 2.00012 11.0899 2.00012 10.4108V5.58842C2.00012 4.9098 2.34424 4.27748 2.91409 3.90897L6.91409 1.32231Z", fill: "white" }),
35354
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.5431 4.7487L8.54314 2.16203C8.21267 1.94833 7.78758 1.94833 7.4571 2.16203L3.4571 4.7487C3.17218 4.93295 3.00012 5.24911 3.00012 5.58842V10.4108C3.00012 10.7504 3.17239 11.0667 3.45759 11.2509L7.45753 13.8342C7.78777 14.0475 8.21234 14.0475 8.54258 13.8342L12.5426 11.2509C12.8279 11.0667 13.0001 10.7503 13.0001 10.4108V5.58842C13.0001 5.24911 12.8281 4.93295 12.5431 4.7487ZM9.08616 1.32231C8.42521 0.894902 7.57503 0.894902 6.91409 1.32231L2.91409 3.90897C2.34424 4.27748 2.00012 4.9098 2.00012 5.58842V10.4108C2.00012 11.0899 2.34465 11.7225 2.91506 12.0909L6.915 14.6742C7.57548 15.1008 8.42461 15.1008 9.0851 14.6743L13.0852 12.0909C13.6556 11.7225 14.0001 11.0899 14.0001 10.4108V5.58842C14.0001 4.9098 13.656 4.27748 13.0862 3.90897L9.08616 1.32231Z", fill: "#979593" }),
35355
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.00012 9.99999C9.10469 9.99999 10.0001 9.10456 10.0001 7.99999C10.0001 6.89542 9.10469 5.99999 8.00012 5.99999C6.89555 5.99999 6.00012 6.89542 6.00012 7.99999C6.00012 9.10456 6.89555 9.99999 8.00012 9.99999ZM8.00012 11C9.65698 11 11.0001 9.65685 11.0001 7.99999C11.0001 6.34314 9.65698 4.99999 8.00012 4.99999C6.34327 4.99999 5.00012 6.34314 5.00012 7.99999C5.00012 9.65685 6.34327 11 8.00012 11Z", fill: "#979593" })));
35356
+ }
35357
+
35394
35358
  var AttachmentIcon = function (props) {
35395
35359
  props.ext; var _a = props.size, size = _a === void 0 ? "medium" : _a, defaultProps = __rest(props, ["ext", "size"]);
35396
35360
  var icon;
@@ -35500,6 +35464,10 @@ var AttachmentIcon = function (props) {
35500
35464
  icon =
35501
35465
  size === 'small' ? (React__default.createElement(ActivityTypeScannedDoc16, { fontSize: size })) : (React__default.createElement(ActivityTypeScannedDoc, { fontSize: size }));
35502
35466
  break;
35467
+ case 'activitydefault':
35468
+ icon =
35469
+ size === 'small' ? (React__default.createElement(ActivityTypeDefault16, { fontSize: size })) : (React__default.createElement(ActivityTypeDefault, { fontSize: size }));
35470
+ break;
35503
35471
  default:
35504
35472
  icon = size === 'small' ? React__default.createElement(DocTypeDefault16, { fontSize: size }) : React__default.createElement(DocTypeDefault, { fontSize: size });
35505
35473
  }
@@ -36431,6 +36399,48 @@ var isSameDay$1 = /*#__PURE__*/Object.freeze({
36431
36399
  'default': isSameDay
36432
36400
  });
36433
36401
 
36402
+ /**
36403
+ * @name isDate
36404
+ * @category Common Helpers
36405
+ * @summary Is the given value a date?
36406
+ *
36407
+ * @description
36408
+ * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
36409
+ *
36410
+ * ### v2.0.0 breaking changes:
36411
+ *
36412
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
36413
+ *
36414
+ * @param {*} value - the value to check
36415
+ * @returns {boolean} true if the given value is a date
36416
+ * @throws {TypeError} 1 arguments required
36417
+ *
36418
+ * @example
36419
+ * // For a valid date:
36420
+ * const result = isDate(new Date())
36421
+ * //=> true
36422
+ *
36423
+ * @example
36424
+ * // For an invalid date:
36425
+ * const result = isDate(new Date(NaN))
36426
+ * //=> true
36427
+ *
36428
+ * @example
36429
+ * // For some value:
36430
+ * const result = isDate('2014-02-31')
36431
+ * //=> false
36432
+ *
36433
+ * @example
36434
+ * // For an object:
36435
+ * const result = isDate({})
36436
+ * //=> false
36437
+ */
36438
+
36439
+ function isDate(value) {
36440
+ requiredArgs(1, arguments);
36441
+ return value instanceof Date || typeof value === 'object' && Object.prototype.toString.call(value) === '[object Date]';
36442
+ }
36443
+
36434
36444
  /**
36435
36445
  * @name isValid
36436
36446
  * @category Common Helpers
@@ -36475,24 +36485,29 @@ var isSameDay$1 = /*#__PURE__*/Object.freeze({
36475
36485
  *
36476
36486
  * @example
36477
36487
  * // For the valid date:
36478
- * var result = isValid(new Date(2014, 1, 31))
36488
+ * const result = isValid(new Date(2014, 1, 31))
36479
36489
  * //=> true
36480
36490
  *
36481
36491
  * @example
36482
36492
  * // For the value, convertable into a date:
36483
- * var result = isValid(1393804800000)
36493
+ * const result = isValid(1393804800000)
36484
36494
  * //=> true
36485
36495
  *
36486
36496
  * @example
36487
36497
  * // For the invalid date:
36488
- * var result = isValid(new Date(''))
36498
+ * const result = isValid(new Date(''))
36489
36499
  * //=> false
36490
36500
  */
36491
36501
 
36492
36502
  function isValid(dirtyDate) {
36493
36503
  requiredArgs(1, arguments);
36504
+
36505
+ if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
36506
+ return false;
36507
+ }
36508
+
36494
36509
  var date = toDate(dirtyDate);
36495
- return !isNaN(date);
36510
+ return !isNaN(Number(date));
36496
36511
  }
36497
36512
 
36498
36513
  var isValid$1 = /*#__PURE__*/Object.freeze({
@@ -36563,20 +36578,21 @@ var formatDistanceLocale = {
36563
36578
  other: 'almost {{count}} years'
36564
36579
  }
36565
36580
  };
36566
- function formatDistance(token, count, options) {
36567
- options = options || {};
36581
+
36582
+ var formatDistance = function (token, count, options) {
36568
36583
  var result;
36584
+ var tokenValue = formatDistanceLocale[token];
36569
36585
 
36570
- if (typeof formatDistanceLocale[token] === 'string') {
36571
- result = formatDistanceLocale[token];
36586
+ if (typeof tokenValue === 'string') {
36587
+ result = tokenValue;
36572
36588
  } else if (count === 1) {
36573
- result = formatDistanceLocale[token].one;
36589
+ result = tokenValue.one;
36574
36590
  } else {
36575
- result = formatDistanceLocale[token].other.replace('{{count}}', count);
36591
+ result = tokenValue.other.replace('{{count}}', count.toString());
36576
36592
  }
36577
36593
 
36578
- if (options.addSuffix) {
36579
- if (options.comparison > 0) {
36594
+ if (options !== null && options !== void 0 && options.addSuffix) {
36595
+ if (options.comparison && options.comparison > 0) {
36580
36596
  return 'in ' + result;
36581
36597
  } else {
36582
36598
  return result + ' ago';
@@ -36584,7 +36600,9 @@ function formatDistance(token, count, options) {
36584
36600
  }
36585
36601
 
36586
36602
  return result;
36587
- }
36603
+ };
36604
+
36605
+ var formatDistance$1 = formatDistance;
36588
36606
 
36589
36607
  function buildFormatLongFn(args) {
36590
36608
  return function () {
@@ -36638,9 +36656,12 @@ var formatRelativeLocale = {
36638
36656
  nextWeek: "eeee 'at' p",
36639
36657
  other: 'P'
36640
36658
  };
36641
- function formatRelative(token, _date, _baseDate, _options) {
36659
+
36660
+ var formatRelative = function (token, _date, _baseDate, _options) {
36642
36661
  return formatRelativeLocale[token];
36643
- }
36662
+ };
36663
+
36664
+ var formatRelative$1 = formatRelative;
36644
36665
 
36645
36666
  function buildLocalizeFn(args) {
36646
36667
  return function (dirtyIndex, dirtyOptions) {
@@ -36756,16 +36777,13 @@ var formattingDayPeriodValues = {
36756
36777
  }
36757
36778
  };
36758
36779
 
36759
- function ordinalNumber(dirtyNumber, _dirtyOptions) {
36780
+ var ordinalNumber = function (dirtyNumber, _options) {
36760
36781
  var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
36761
36782
  // if they are different for different grammatical genders,
36762
- // use `options.unit`:
36783
+ // use `options.unit`.
36763
36784
  //
36764
- // var options = dirtyOptions || {}
36765
- // var unit = String(options.unit)
36766
- //
36767
- // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
36768
- // 'day', 'hour', 'minute', 'second'
36785
+ // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
36786
+ // 'day', 'hour', 'minute', 'second'.
36769
36787
 
36770
36788
  var rem100 = number % 100;
36771
36789
 
@@ -36783,7 +36801,7 @@ function ordinalNumber(dirtyNumber, _dirtyOptions) {
36783
36801
  }
36784
36802
 
36785
36803
  return number + 'th';
36786
- }
36804
+ };
36787
36805
 
36788
36806
  var localize = {
36789
36807
  ordinalNumber: ordinalNumber,
@@ -36795,7 +36813,7 @@ var localize = {
36795
36813
  values: quarterValues,
36796
36814
  defaultWidth: 'wide',
36797
36815
  argumentCallback: function (quarter) {
36798
- return Number(quarter) - 1;
36816
+ return quarter - 1;
36799
36817
  }
36800
36818
  }),
36801
36819
  month: buildLocalizeFn({
@@ -36815,24 +36833,6 @@ var localize = {
36815
36833
  };
36816
36834
  var localize$1 = localize;
36817
36835
 
36818
- function buildMatchPatternFn(args) {
36819
- return function (string) {
36820
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
36821
- var matchResult = string.match(args.matchPattern);
36822
- if (!matchResult) return null;
36823
- var matchedString = matchResult[0];
36824
- var parseResult = string.match(args.parsePattern);
36825
- if (!parseResult) return null;
36826
- var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
36827
- value = options.valueCallback ? options.valueCallback(value) : value;
36828
- var rest = string.slice(matchedString.length);
36829
- return {
36830
- value: value,
36831
- rest: rest
36832
- };
36833
- };
36834
- }
36835
-
36836
36836
  function buildMatchFn(args) {
36837
36837
  return function (string) {
36838
36838
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -36882,6 +36882,24 @@ function findIndex(array, predicate) {
36882
36882
  return undefined;
36883
36883
  }
36884
36884
 
36885
+ function buildMatchPatternFn(args) {
36886
+ return function (string) {
36887
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
36888
+ var matchResult = string.match(args.matchPattern);
36889
+ if (!matchResult) return null;
36890
+ var matchedString = matchResult[0];
36891
+ var parseResult = string.match(args.parsePattern);
36892
+ if (!parseResult) return null;
36893
+ var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
36894
+ value = options.valueCallback ? options.valueCallback(value) : value;
36895
+ var rest = string.slice(matchedString.length);
36896
+ return {
36897
+ value: value,
36898
+ rest: rest
36899
+ };
36900
+ };
36901
+ }
36902
+
36885
36903
  var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
36886
36904
  var parseOrdinalNumberPattern = /\d+/i;
36887
36905
  var matchEraPatterns = {
@@ -36988,12 +37006,11 @@ var match$1 = match;
36988
37006
  * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
36989
37007
  * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
36990
37008
  */
36991
-
36992
37009
  var locale = {
36993
37010
  code: 'en-US',
36994
- formatDistance: formatDistance,
37011
+ formatDistance: formatDistance$1,
36995
37012
  formatLong: formatLong$1,
36996
- formatRelative: formatRelative,
37013
+ formatRelative: formatRelative$1,
36997
37014
  localize: localize$1,
36998
37015
  match: match$1,
36999
37016
  options: {
@@ -38440,28 +38457,28 @@ var unescapedLatinCharacterRegExp$1 = /[a-zA-Z]/;
38440
38457
  * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
38441
38458
  * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
38442
38459
  * | | EEEEE | M, T, W, T, F, S, S | |
38443
- * | | EEEEEE | Mo, Tu, We, Th, Fr, Su, Sa | |
38460
+ * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
38444
38461
  * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
38445
38462
  * | | io | 1st, 2nd, ..., 7th | 7 |
38446
38463
  * | | ii | 01, 02, ..., 07 | 7 |
38447
38464
  * | | iii | Mon, Tue, Wed, ..., Sun | 7 |
38448
38465
  * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
38449
38466
  * | | iiiii | M, T, W, T, F, S, S | 7 |
38450
- * | | iiiiii | Mo, Tu, We, Th, Fr, Su, Sa | 7 |
38467
+ * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
38451
38468
  * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
38452
38469
  * | | eo | 2nd, 3rd, ..., 1st | 7 |
38453
38470
  * | | ee | 02, 03, ..., 01 | |
38454
38471
  * | | eee | Mon, Tue, Wed, ..., Sun | |
38455
38472
  * | | eeee | Monday, Tuesday, ..., Sunday | 2 |
38456
38473
  * | | eeeee | M, T, W, T, F, S, S | |
38457
- * | | eeeeee | Mo, Tu, We, Th, Fr, Su, Sa | |
38474
+ * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
38458
38475
  * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
38459
38476
  * | | co | 2nd, 3rd, ..., 1st | 7 |
38460
38477
  * | | cc | 02, 03, ..., 01 | |
38461
38478
  * | | ccc | Mon, Tue, Wed, ..., Sun | |
38462
38479
  * | | cccc | Monday, Tuesday, ..., Sunday | 2 |
38463
38480
  * | | ccccc | M, T, W, T, F, S, S | |
38464
- * | | cccccc | Mo, Tu, We, Th, Fr, Su, Sa | |
38481
+ * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
38465
38482
  * | AM, PM | a..aa | AM, PM | |
38466
38483
  * | | aaa | am, pm | |
38467
38484
  * | | aaaa | a.m., p.m. | 2 |
@@ -41719,28 +41736,28 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
41719
41736
  * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |
41720
41737
  * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
41721
41738
  * | | | EEEEE | M, T, W, T, F, S, S | |
41722
- * | | | EEEEEE | Mo, Tu, We, Th, Fr, Su, Sa | |
41739
+ * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
41723
41740
  * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |
41724
41741
  * | | | io | 1st, 2nd, ..., 7th | 5 |
41725
41742
  * | | | ii | 01, 02, ..., 07 | 5 |
41726
41743
  * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |
41727
41744
  * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |
41728
41745
  * | | | iiiii | M, T, W, T, F, S, S | 5 |
41729
- * | | | iiiiii | Mo, Tu, We, Th, Fr, Su, Sa | 5 |
41746
+ * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |
41730
41747
  * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |
41731
41748
  * | | | eo | 2nd, 3rd, ..., 1st | 5 |
41732
41749
  * | | | ee | 02, 03, ..., 01 | |
41733
41750
  * | | | eee | Mon, Tue, Wed, ..., Sun | |
41734
41751
  * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |
41735
41752
  * | | | eeeee | M, T, W, T, F, S, S | |
41736
- * | | | eeeeee | Mo, Tu, We, Th, Fr, Su, Sa | |
41753
+ * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
41737
41754
  * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |
41738
41755
  * | | | co | 2nd, 3rd, ..., 1st | 5 |
41739
41756
  * | | | cc | 02, 03, ..., 01 | |
41740
41757
  * | | | ccc | Mon, Tue, Wed, ..., Sun | |
41741
41758
  * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |
41742
41759
  * | | | ccccc | M, T, W, T, F, S, S | |
41743
- * | | | cccccc | Mo, Tu, We, Th, Fr, Su, Sa | |
41760
+ * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
41744
41761
  * | AM, PM | 80 | a..aaa | AM, PM | |
41745
41762
  * | | | aaaa | a.m., p.m. | 2 |
41746
41763
  * | | | aaaaa | a, p | |
@@ -43637,6 +43654,40 @@ var addYears$1 = /*#__PURE__*/Object.freeze({
43637
43654
  'default': addYears
43638
43655
  });
43639
43656
 
43657
+ /**
43658
+ * @name subMonths
43659
+ * @category Month Helpers
43660
+ * @summary Subtract the specified number of months from the given date.
43661
+ *
43662
+ * @description
43663
+ * Subtract the specified number of months from the given date.
43664
+ *
43665
+ * ### v2.0.0 breaking changes:
43666
+ *
43667
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
43668
+ *
43669
+ * @param {Date|Number} date - the date to be changed
43670
+ * @param {Number} amount - the amount of months to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
43671
+ * @returns {Date} the new date with the months subtracted
43672
+ * @throws {TypeError} 2 arguments required
43673
+ *
43674
+ * @example
43675
+ * // Subtract 5 months from 1 February 2015:
43676
+ * const result = subMonths(new Date(2015, 1, 1), 5)
43677
+ * //=> Mon Sep 01 2014 00:00:00
43678
+ */
43679
+
43680
+ function subMonths(dirtyDate, dirtyAmount) {
43681
+ requiredArgs(2, arguments);
43682
+ var amount = toInteger(dirtyAmount);
43683
+ return addMonths(dirtyDate, -amount);
43684
+ }
43685
+
43686
+ var subMonths$1 = /*#__PURE__*/Object.freeze({
43687
+ __proto__: null,
43688
+ 'default': subMonths
43689
+ });
43690
+
43640
43691
  var styles = createCommonjsModule(function (module, exports) {
43641
43692
 
43642
43693
  Object.defineProperty(exports, "__esModule", {
@@ -43740,9 +43791,11 @@ var require$$15 = /*@__PURE__*/getAugmentedNamespace(setYear$1);
43740
43791
 
43741
43792
  var require$$16 = /*@__PURE__*/getAugmentedNamespace(addYears$1);
43742
43793
 
43794
+ var require$$22 = /*@__PURE__*/getAugmentedNamespace(subMonths$1);
43795
+
43743
43796
  var require$$4 = /*@__PURE__*/getAugmentedNamespace(addMonths$1);
43744
43797
 
43745
- var require$$23 = /*@__PURE__*/getAugmentedNamespace(enUS);
43798
+ var require$$24 = /*@__PURE__*/getAugmentedNamespace(enUS);
43746
43799
 
43747
43800
  var Calendar_1 = createCommonjsModule(function (module, exports) {
43748
43801
 
@@ -43803,9 +43856,11 @@ var _eachDayOfInterval = _interopRequireDefault(require$$20);
43803
43856
 
43804
43857
  var _format = _interopRequireDefault(require$$21);
43805
43858
 
43859
+ var _subMonths = _interopRequireDefault(require$$22);
43860
+
43806
43861
  var _addMonths = _interopRequireDefault(require$$4);
43807
43862
 
43808
- var _enUS = _interopRequireDefault(require$$23);
43863
+ var _enUS = _interopRequireDefault(require$$24);
43809
43864
 
43810
43865
  var _styles = _interopRequireDefault(styles);
43811
43866
 
@@ -43874,6 +43929,16 @@ var Calendar = /*#__PURE__*/function (_PureComponent) {
43874
43929
  var preventUnnecessary = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
43875
43930
 
43876
43931
  if (!props.scroll.enabled) {
43932
+ if (preventUnnecessary && props.preventSnapRefocus) {
43933
+ var focusedDateDiff = (0, _differenceInCalendarMonths.default)(date, _this.state.focusedDate);
43934
+ var isAllowedForward = props.calendarFocus === 'forwards' && focusedDateDiff >= 0;
43935
+ var isAllowedBackward = props.calendarFocus === 'backwards' && focusedDateDiff <= 0;
43936
+
43937
+ if ((isAllowedForward || isAllowedBackward) && Math.abs(focusedDateDiff) < props.months) {
43938
+ return;
43939
+ }
43940
+ }
43941
+
43877
43942
  _this.setState({
43878
43943
  focusedDate: date
43879
43944
  });
@@ -44438,6 +44503,11 @@ var Calendar = /*#__PURE__*/function (_PureComponent) {
44438
44503
  className: (0, _classnames3.default)(this.styles.months, isVertical ? this.styles.monthsVertical : this.styles.monthsHorizontal)
44439
44504
  }, new Array(this.props.months).fill(null).map(function (_, i) {
44440
44505
  var monthStep = (0, _addMonths.default)(_this5.state.focusedDate, i);
44506
+
44507
+ if (_this5.props.calendarFocus === 'backwards') {
44508
+ monthStep = (0, _subMonths.default)(_this5.state.focusedDate, _this5.props.months - 1 - i);
44509
+ }
44510
+
44441
44511
  return /*#__PURE__*/_react.default.createElement(_Month.default, _extends({}, _this5.props, {
44442
44512
  onPreviewChange: onPreviewChange || _this5.updatePreview,
44443
44513
  preview: preview || _this5.state.preview,
@@ -44495,6 +44565,8 @@ Calendar.defaultProps = {
44495
44565
  editableDateInputs: false,
44496
44566
  dragSelectionEnabled: true,
44497
44567
  fixedHeight: false,
44568
+ calendarFocus: 'forwards',
44569
+ preventSnapRefocus: false,
44498
44570
  ariaLabels: {}
44499
44571
  };
44500
44572
  Calendar.propTypes = {
@@ -44548,6 +44620,8 @@ Calendar.propTypes = {
44548
44620
  editableDateInputs: _propTypes.default.bool,
44549
44621
  dragSelectionEnabled: _propTypes.default.bool,
44550
44622
  fixedHeight: _propTypes.default.bool,
44623
+ calendarFocus: _propTypes.default.string,
44624
+ preventSnapRefocus: _propTypes.default.bool,
44551
44625
  ariaLabels: accessibility.ariaLabelsShape
44552
44626
  };
44553
44627
  var _default = Calendar;
@@ -46380,6 +46454,9 @@ var useStyles = makeStyles(function (theme) { return ({
46380
46454
  fontSize: 24
46381
46455
  }
46382
46456
  },
46457
+ activityIcon: {
46458
+ maxWidth: 24,
46459
+ },
46383
46460
  name: {
46384
46461
  marginTop: 0,
46385
46462
  marginBottom: 0,
@@ -46422,26 +46499,19 @@ var useStyles = makeStyles(function (theme) { return ({
46422
46499
  }); });
46423
46500
  var ActivityLog = function (props) {
46424
46501
  var classes = useStyles();
46425
- var name = props.name, time = props.time, ext = props.ext, onAttach = props.onAttach, onClick = props.onClick, users = props.users, attachment = props.attachment, action = props.action, avatarGroupTooltip = props.avatarGroupTooltip, _a = props.insertIconTooltip, insertIconTooltip = _a === void 0 ? 'Insert' : _a, hover = props.hover, _b = props.tooltip, tooltip = _b === void 0 ? 'Preview' : _b, _c = props.nameRef, nameRef = _c === void 0 ? undefined : _c, defaultProps = __rest(props, ["name", "time", "ext", "onAttach", "onClick", "users", "attachment", "action", "avatarGroupTooltip", "insertIconTooltip", "hover", "tooltip", "nameRef"]);
46502
+ var name = props.name, time = props.time, ext = props.ext, iconURL = props.iconURL, onAttach = props.onAttach, onClick = props.onClick, users = props.users, attachment = props.attachment, action = props.action, avatarGroupTooltip = props.avatarGroupTooltip, _a = props.insertIconTooltip, insertIconTooltip = _a === void 0 ? 'Insert' : _a, hover = props.hover, _b = props.tooltip, tooltip = _b === void 0 ? 'Preview' : _b, _c = props.nameRef, nameRef = _c === void 0 ? undefined : _c, defaultProps = __rest(props, ["name", "time", "ext", "iconURL", "onAttach", "onClick", "users", "attachment", "action", "avatarGroupTooltip", "insertIconTooltip", "hover", "tooltip", "nameRef"]);
46426
46503
  var chipGroup;
46427
46504
  action ? chipGroup = classes.chipGroup : chipGroup = '';
46428
46505
  return (React__default.createElement(MuiListItem, __assign$1({ className: classes.root }, defaultProps),
46429
- React__default.createElement(ListItemIcon$2, { className: clsx(classes.prependIcon, chipGroup, action ? classes.marginTop : '') }, attachment ? React__default.createElement(Tooltip, { title: insertIconTooltip },
46506
+ React__default.createElement(ListItemIcon$2, { className: clsx(classes.prependIcon, chipGroup, action ? classes.marginTop : '') }, attachment ? (React__default.createElement(Tooltip, { title: insertIconTooltip },
46430
46507
  React__default.createElement(IconButton, { onClick: onAttach },
46431
- React__default.createElement(InsertLinkIcon, null))) : ''),
46432
- React__default.createElement(ListItemIcon$2, { className: clsx(classes.docTypeIcon, chipGroup) },
46433
- React__default.createElement(AttachmentIcon, { ext: ext })),
46434
- React__default.createElement(ListItemText$2, { classes: { root: classes.name, primary: classes.primary }, onClick: onClick, secondaryTypographyProps: { component: 'div' }, secondary: action &&
46435
- React__default.createElement("div", { className: classes.chips }, action.map(function (tag) { return (React__default.createElement(Chip, { label: tag.label, key: tag.label, variant: tag.variant })); })) },
46436
- hover
46437
- ?
46438
- React__default.createElement(Tooltip, { title: tooltip },
46439
- React__default.createElement(Typography$2, { ref: nameRef, noWrap: true, variant: "subtitle1", color: 'primary', className: classes.mainName }, name))
46440
- :
46441
- React__default.createElement(Typography$2, { ref: nameRef, noWrap: true, variant: "subtitle1", color: 'primary', className: classes.mainName }, name),
46442
- users ?
46443
- React__default.createElement("div", { className: clsx(chipGroup) },
46444
- React__default.createElement(AvatarsGroup, { max: 2, size: "small", tooltip: avatarGroupTooltip, tooltipPlacement: 'bottom-end' }, users.map(function (person) { return (React__default.createElement(Avatar, { color: "default", size: "small", tooltip: person.name, key: person.initials }, person.initials)); }))) : '',
46508
+ React__default.createElement(InsertLinkIcon, null)))) : ('')),
46509
+ React__default.createElement(ListItemIcon$2, { className: clsx(classes.docTypeIcon, chipGroup) }, iconURL ? (React__default.createElement("img", { src: iconURL, className: classes.activityIcon })) : (React__default.createElement(AttachmentIcon, { ext: ext }))),
46510
+ React__default.createElement(ListItemText$2, { classes: { root: classes.name, primary: classes.primary }, onClick: onClick, secondaryTypographyProps: { component: 'div' }, secondary: action && (React__default.createElement("div", { className: classes.chips }, action.map(function (tag) { return (React__default.createElement(Chip, { label: tag.label, key: tag.label, variant: tag.variant })); }))) },
46511
+ hover ? (React__default.createElement(Tooltip, { title: tooltip },
46512
+ React__default.createElement(Typography$2, { ref: nameRef, noWrap: true, variant: "subtitle1", color: "primary", className: classes.mainName }, name))) : (React__default.createElement(Typography$2, { ref: nameRef, noWrap: true, variant: "subtitle1", color: "primary", className: classes.mainName }, name)),
46513
+ users ? (React__default.createElement("div", { className: clsx(chipGroup) },
46514
+ React__default.createElement(AvatarsGroup, { max: 2, size: "small", tooltip: avatarGroupTooltip, tooltipPlacement: "bottom-end" }, users.map(function (person) { return (React__default.createElement(Avatar, { color: "default", size: "small", tooltip: person.name, key: person.initials }, person.initials)); })))) : (''),
46445
46515
  React__default.createElement("div", { className: clsx(classes.time, chipGroup) },
46446
46516
  React__default.createElement(Typography$2, { variant: "body1" }, time)))));
46447
46517
  };
@@ -48169,8 +48239,12 @@ var themeDesktop = createTheme({
48169
48239
  minWidth: 'unset',
48170
48240
  padding: 0,
48171
48241
  margin: '0 15px',
48172
- border: 'none',
48242
+ border: '1px solid transparent',
48173
48243
  backgroundColor: 'transparent',
48244
+ '&:hover': {
48245
+ backgroundColor: '#DDE7F3',
48246
+ borderColor: '#CADEF3',
48247
+ },
48174
48248
  '& .MuiSvgIcon-root': {
48175
48249
  width: 32,
48176
48250
  height: 32,
@@ -48986,5 +49060,5 @@ function ReportingIcon(props) {
48986
49060
  React__default.createElement("path", { fillRule: "evenodd", fill: "currentColor", d: "M84.032 23.49l-12.807-5.123a4 4 0 01-6.827-.627l-12.404 2.481a4 4 0 11-7.962-.731l-12.807-5.123A3.994 3.994 0 0128 16c-.9 0-1.731-.297-2.4-.8L11.65 26.36A4 4 0 1110.4 24.8l13.95-11.16a4 4 0 117.618-1.13l12.807 5.124a4 4 0 016.827.627l12.404-2.481a4 4 0 117.962.731l12.807 5.123a4 4 0 11-.743 1.857zM0 88v-8h96v8H0zm4-40h8v24H4V48zm20-16h8v40h-8V32zm20 8h8v32h-8V40zm20-4h8v36h-8V36zm20 8h8v28h-8V44z" })));
48987
49061
  }
48988
49062
 
48989
- export { AccessIcon, Accordion, AccordionDetails, AccordionPanel, AccordionSummary, AccountingIcon, ActivityLog, AppBar, AppointmentCalendar, AssignCurvedIcon, AttachmentIcon, Autocomplete, Avatar, AvatarBusinessIcon, AvatarCompanyIcon, AvatarGovernmentIcon, AvatarPeopleIcon, AvatarPersonIcon, AvatarTrustIcon, AvatarsGroup, BottomListButton, Box, BrowseIcon, Button, ButtonCaretIcon, ButtonFilterIcon, CalendarIcon, Card, Checkbox, ChevronDownIcon, Chip, CrossIcon, CssBaseline, DatePicker, DateRangePicker, Dialog, Divider, DocTypeEmailDraft$2 as DocTypeEmailDraft, DocTypeEmailRecieved, DocTypeEmailSent, Drawer, DrawerMenu, Dropdown, EmailSentIcon, EmptyState, FooterActions, FormBody, FormContainer, FormGroup, FormHeader, Grid, HeaderToolbar, HomeIcon, IconButton, InfoCircleIcon, Input, InputLabel, InsertLinkIcon, LawconnectIcon, LeapLogo, List, ListItem, ListItemAvatar, ListItemHoverContent, ListItemIcon, ListItemText, ListSubheader, Loader, LoaderIcon, Menu, MenuContext, MenuHeader, MenuItem, MenuItemSystem, Modal, ModalActions, ModalContent, ModalTitle, MoreVerticalIcon, NewAppointmentIcon as NewAppoinmentIcon, PoweredByLawconnectLogo, PreviewIcon, Radio, RadioGroup, ReportingIcon, ResponseIcon, RevokeAccessIcon, SearchIcon, SelectFilterEmptyIcon, SelectFilterFilledIcon, SidebarLayout, Switch, Tab, TabListItem, Table, TableBody, TableCell, TableCellIcon, TableContainer, TableFooter, TableHead, TableRow, Tabs, Tag, ThemeProvider, TickIcon, Toolbar, ToolbarButton, Tooltip, TwoColumnLayout, Typography, UserLinkIcon, UserLockIcon, UsersIcon, WarningIcon, baseline, createFilterOptions, themeDesktop, themeWeb };
49063
+ export { AccessIcon, Accordion, AccordionDetails, AccordionPanel, AccordionSummary, AccountingIcon, ActivityLog, AppBar, AppointmentCalendar, AssignCurvedIcon, AttachmentIcon, Autocomplete, Avatar, AvatarBusinessIcon, AvatarCompanyIcon, AvatarGovernmentIcon, AvatarPeopleIcon, AvatarPersonIcon, AvatarTrustIcon, AvatarsGroup, BottomListButton, Box, BrowseIcon, Button, ButtonCaretIcon, ButtonFilterIcon, CalendarIcon, Card, Checkbox, ChevronDownIcon, Chip, CrossIcon, CssBaseline, DatePicker, DateRangePicker, Dialog, Divider, DocTypeEmailDraft$2 as DocTypeEmailDraft, DocTypeEmailRecieved, DocTypeEmailSent, Drawer, DrawerMenu, Dropdown, EmailSentIcon, EmptyState, FooterActions, FormBody, FormContainer, FormGroup, FormHeader, Grid, HeaderToolbar, HomeIcon, Icon, IconButton, InfoCircleIcon, Input, InputLabel, InsertLinkIcon, LawconnectIcon, LeapLogo, List, ListItem, ListItemAvatar, ListItemHoverContent, ListItemIcon, ListItemText, ListSubheader, Loader, LoaderIcon, Menu, MenuContext, MenuHeader, MenuItem, MenuItemSystem, Modal, ModalActions, ModalContent, ModalTitle, MoreVerticalIcon, NewAppointmentIcon as NewAppoinmentIcon, PoweredByLawconnectLogo, PreviewIcon, Radio, RadioGroup, ReportingIcon, ResponseIcon, RevokeAccessIcon, SearchIcon, SelectFilterEmptyIcon, SelectFilterFilledIcon, SidebarLayout, Switch, Tab, TabListItem, Table, TableBody, TableCell, TableCellIcon, TableContainer, TableFooter, TableHead, TableRow, Tabs, Tag, ThemeProvider, TickIcon, Toolbar, ToolbarButton, Tooltip, TwoColumnLayout, Typography, UserLinkIcon, UserLockIcon, UsersIcon, WarningIcon, baseline, createFilterOptions, themeDesktop, themeWeb };
48990
49064
  //# sourceMappingURL=index.esm.js.map