@galaxy-ds/core 1.1.44 → 1.1.48

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 (145) hide show
  1. package/dist/Autocomplete/Autocomplete.types.d.ts +1 -0
  2. package/dist/Box/Box.types.d.ts +1 -0
  3. package/dist/Button/Button.types.d.ts +1 -0
  4. package/dist/DrawerMenu/DrawerMenu.types.d.ts +1 -0
  5. package/dist/HeaderToolbar/HeaderToolbar.d.ts +1 -1
  6. package/dist/HeaderToolbar/HeaderToolbarProps.types.d.ts +7 -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/DocTypeAppointment.d.ts +1 -0
  30. package/dist/Icons/Doctype/DocTypeAppointmentCriticalDate.d.ts +1 -0
  31. package/dist/Icons/Doctype/DocTypeAudio.d.ts +1 -0
  32. package/dist/Icons/Doctype/DocTypeClausePrecedent.d.ts +1 -0
  33. package/dist/Icons/Doctype/DocTypeComment.d.ts +1 -0
  34. package/dist/Icons/Doctype/DocTypeCriticalDate.d.ts +1 -0
  35. package/dist/Icons/Doctype/DocTypeDeadline.d.ts +1 -0
  36. package/dist/Icons/Doctype/DocTypeDefault.d.ts +1 -0
  37. package/dist/Icons/Doctype/DocTypeEmail.d.ts +1 -0
  38. package/dist/Icons/Doctype/DocTypeEmailDraft.d.ts +1 -0
  39. package/dist/Icons/Doctype/DocTypeEmailReceived.d.ts +1 -0
  40. package/dist/Icons/Doctype/DocTypeEmailRecieved.d.ts +1 -0
  41. package/dist/Icons/Doctype/DocTypeEmailSent.d.ts +1 -0
  42. package/dist/Icons/Doctype/DocTypeExcel.d.ts +1 -0
  43. package/dist/Icons/Doctype/DocTypeFax.d.ts +1 -0
  44. package/dist/Icons/Doctype/DocTypeFileNote.d.ts +1 -0
  45. package/dist/Icons/Doctype/DocTypeFolder.d.ts +1 -0
  46. package/dist/Icons/Doctype/DocTypeImage.d.ts +1 -0
  47. package/dist/Icons/Doctype/DocTypeInfotrack.d.ts +1 -0
  48. package/dist/Icons/Doctype/DocTypeInvoiceRequest.d.ts +1 -0
  49. package/dist/Icons/Doctype/DocTypeInvoiceRequests.d.ts +1 -0
  50. package/dist/Icons/Doctype/DocTypeLetter.d.ts +1 -0
  51. package/dist/Icons/Doctype/DocTypeMemo.d.ts +1 -0
  52. package/dist/Icons/Doctype/DocTypePdf.d.ts +1 -0
  53. package/dist/Icons/Doctype/DocTypePowerpoint.d.ts +1 -0
  54. package/dist/Icons/Doctype/DocTypeSMS.d.ts +1 -0
  55. package/dist/Icons/Doctype/DocTypeSignatureDeclined.d.ts +1 -0
  56. package/dist/Icons/Doctype/DocTypeSignaturePending.d.ts +1 -0
  57. package/dist/Icons/Doctype/DocTypeSignatureRequest.d.ts +1 -0
  58. package/dist/Icons/Doctype/DocTypeSignatureSigned.d.ts +1 -0
  59. package/dist/Icons/Doctype/DocTypeTasks.d.ts +1 -0
  60. package/dist/Icons/Doctype/DocTypeTrust.d.ts +1 -0
  61. package/dist/Icons/Doctype/DocTypeVideo.d.ts +1 -0
  62. package/dist/Icons/Doctype/DocTypeWord.d.ts +1 -0
  63. package/dist/Icons/Doctype/DocTypeZip.d.ts +1 -0
  64. package/dist/Icons/Doctype16/DocTypeAppointment16.d.ts +1 -0
  65. package/dist/Icons/Doctype16/DocTypeAppointmentCriticalDate16.d.ts +1 -0
  66. package/dist/Icons/Doctype16/DocTypeAudio16.d.ts +1 -0
  67. package/dist/Icons/Doctype16/DocTypeClausePrecedent16.d.ts +1 -0
  68. package/dist/Icons/Doctype16/DocTypeComment16.d.ts +1 -0
  69. package/dist/Icons/Doctype16/DocTypeCriticalDate16.d.ts +1 -0
  70. package/dist/Icons/Doctype16/DocTypeDeadline16.d.ts +1 -0
  71. package/dist/Icons/Doctype16/DocTypeDefault16.d.ts +1 -0
  72. package/dist/Icons/Doctype16/DocTypeEmail16.d.ts +1 -0
  73. package/dist/Icons/Doctype16/DocTypeEmailDraft16.d.ts +1 -0
  74. package/dist/Icons/Doctype16/DocTypeEmailReceived16.d.ts +1 -0
  75. package/dist/Icons/Doctype16/DocTypeEmailSent16.d.ts +1 -0
  76. package/dist/Icons/Doctype16/DocTypeExcel16.d.ts +1 -0
  77. package/dist/Icons/Doctype16/DocTypeFax16.d.ts +1 -0
  78. package/dist/Icons/Doctype16/DocTypeFileNote16.d.ts +1 -0
  79. package/dist/Icons/Doctype16/DocTypeFolder16.d.ts +1 -0
  80. package/dist/Icons/Doctype16/DocTypeImage16.d.ts +1 -0
  81. package/dist/Icons/Doctype16/DocTypeInfotrack16.d.ts +1 -0
  82. package/dist/Icons/Doctype16/DocTypeInvoiceRequest16.d.ts +1 -0
  83. package/dist/Icons/Doctype16/DocTypeInvoiceRequests16.d.ts +1 -0
  84. package/dist/Icons/Doctype16/DocTypeLetter16.d.ts +1 -0
  85. package/dist/Icons/Doctype16/DocTypeMemo16.d.ts +1 -0
  86. package/dist/Icons/Doctype16/DocTypePdf16.d.ts +1 -0
  87. package/dist/Icons/Doctype16/DocTypePowerpoint16.d.ts +1 -0
  88. package/dist/Icons/Doctype16/DocTypeSMS16.d.ts +1 -0
  89. package/dist/Icons/Doctype16/DocTypeSignatureDeclined16.d.ts +1 -0
  90. package/dist/Icons/Doctype16/DocTypeSignaturePending16.d.ts +1 -0
  91. package/dist/Icons/Doctype16/DocTypeSignatureRequest16.d.ts +1 -0
  92. package/dist/Icons/Doctype16/DocTypeSignatureSigned16.d.ts +1 -0
  93. package/dist/Icons/Doctype16/DocTypeTasks16.d.ts +1 -0
  94. package/dist/Icons/Doctype16/DocTypeTrust16.d.ts +1 -0
  95. package/dist/Icons/Doctype16/DocTypeVideo16.d.ts +1 -0
  96. package/dist/Icons/Doctype16/DocTypeWord16.d.ts +1 -0
  97. package/dist/Icons/Doctype16/DocTypeZip16.d.ts +1 -0
  98. package/dist/Icons/EmailSentIcon.d.ts +1 -0
  99. package/dist/Icons/HomeIcon.d.ts +1 -0
  100. package/dist/Icons/InsertLink.d.ts +1 -0
  101. package/dist/Icons/Loader.d.ts +1 -0
  102. package/dist/Icons/Logos/LawconnectIcon.d.ts +1 -0
  103. package/dist/Icons/Logos/LeapLogo.d.ts +1 -0
  104. package/dist/Icons/Logos/poweredByLawconnect.d.ts +1 -0
  105. package/dist/Icons/MenuIcon.d.ts +1 -0
  106. package/dist/Icons/MoreVerticalIcon.d.ts +1 -0
  107. package/dist/Icons/NewAppointment.d.ts +1 -0
  108. package/dist/Icons/Power.d.ts +1 -0
  109. package/dist/Icons/Preview.d.ts +1 -0
  110. package/dist/Icons/ReportingIcon.d.ts +1 -0
  111. package/dist/Icons/ResponseIcon.d.ts +1 -0
  112. package/dist/Icons/RevokeAccess.d.ts +1 -0
  113. package/dist/Icons/Search.d.ts +1 -0
  114. package/dist/Icons/SelectFilterEmpty.d.ts +1 -0
  115. package/dist/Icons/SelectFilterFilled.d.ts +1 -0
  116. package/dist/Icons/Spinner.d.ts +3 -0
  117. package/dist/Icons/Tick.d.ts +1 -0
  118. package/dist/Icons/UserLink.d.ts +1 -0
  119. package/dist/Icons/UserLock.d.ts +1 -0
  120. package/dist/Icons/Users.d.ts +1 -0
  121. package/dist/List/List.types.d.ts +1 -0
  122. package/dist/ListItemHoverContent/ListItemHoverContent.types.d.ts +1 -0
  123. package/dist/ListSubheader/ListSubheader.types.d.ts +1 -0
  124. package/dist/Loader/Loader.types.d.ts +1 -0
  125. package/dist/MenuItem/MenuItem.types.d.ts +1 -0
  126. package/dist/MenuItemSystem/MenuItemSystem.types.d.ts +1 -0
  127. package/dist/TabListItem/TabListItem.types.d.ts +1 -0
  128. package/dist/Table/Table.types.d.ts +1 -0
  129. package/dist/TableBody/TableBody.types.d.ts +1 -0
  130. package/dist/TableCell/TableCell.types.d.ts +1 -0
  131. package/dist/TableCellIcon/TableCellIcon.types.d.ts +1 -0
  132. package/dist/TableFooter/TableFooter.types.d.ts +1 -0
  133. package/dist/TableHead/TableHead.types.d.ts +1 -0
  134. package/dist/TableRow/TableRow.types.d.ts +1 -0
  135. package/dist/Tabs/Tabs.d.ts +2 -2
  136. package/dist/Tabs/Tabs.types.d.ts +2 -3
  137. package/dist/Tooltip/Tooltip.types.d.ts +2 -10
  138. package/dist/Typography/Typography.types.d.ts +1 -0
  139. package/dist/index.d.ts +3 -1
  140. package/dist/index.esm.js +456 -305
  141. package/dist/index.esm.js.map +1 -1
  142. package/dist/index.js +1422 -1272
  143. package/dist/index.js.map +1 -1
  144. package/dist/package.json +2 -1
  145. package/package.json +2 -1
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
  });
@@ -30949,7 +30895,7 @@ function ChevronDownIcon(props) {
30949
30895
  React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.00001 6.08008L3.20001 6.88008L8.00001 11.6801L12.8 6.88008L12 6.08008L8.00001 10.0801L4.00001 6.08008Z", fill: "currentColor" })));
30950
30896
  }
30951
30897
 
30952
- var useStyles$y = makeStyles(function (theme) {
30898
+ var useStyles$z = makeStyles(function (theme) {
30953
30899
  return createStyles({
30954
30900
  root: function (props) { return ({
30955
30901
  backgroundColor: props.bgColor || theme.palette.grey[200]
@@ -30957,7 +30903,7 @@ var useStyles$y = makeStyles(function (theme) {
30957
30903
  });
30958
30904
  });
30959
30905
  var AccordionSummary = function (props) {
30960
- var classes = useStyles$y({ bgColor: props.bgColor });
30906
+ var classes = useStyles$z({ bgColor: props.bgColor });
30961
30907
  return (React__default.createElement(MuiAccordionSummary, __assign$1({ className: classes.root }, props, { expandIcon: React__default.createElement(ChevronDownIcon, { fontSize: 'small' }) })));
30962
30908
  };
30963
30909
 
@@ -33201,7 +33147,7 @@ var common = {
33201
33147
  opacity: opacity
33202
33148
  };
33203
33149
 
33204
- var useStyles$x = makeStyles({
33150
+ var useStyles$y = makeStyles({
33205
33151
  root: {
33206
33152
  "&.gds-text-primary": {
33207
33153
  color: common.brand.primary.main,
@@ -33234,7 +33180,7 @@ var useStyles$x = makeStyles({
33234
33180
  });
33235
33181
  var Typography = React__default.forwardRef(function (props, ref) {
33236
33182
  var color = props.color, upperCase = props.upperCase, rest = __rest(props, ["color", "upperCase"]);
33237
- var classes = useStyles$x(props);
33183
+ var classes = useStyles$y(props);
33238
33184
  var colorProp;
33239
33185
  switch (color) {
33240
33186
  case 'primary':
@@ -33267,7 +33213,7 @@ var Typography = React__default.forwardRef(function (props, ref) {
33267
33213
  return (React__default.createElement(Typography$2, __assign$1({ ref: ref }, rest, { className: clsx(classes.root, colorProp, upperCase ? 'gds-text-uppercase' : '') })));
33268
33214
  });
33269
33215
 
33270
- var useStyles$w = makeStyles({
33216
+ var useStyles$x = makeStyles({
33271
33217
  root: {
33272
33218
  '&.gds-divider': {
33273
33219
  marginTop: 2,
@@ -33285,7 +33231,7 @@ var useStyles$w = makeStyles({
33285
33231
  });
33286
33232
  var Divider = function (props) {
33287
33233
  var orientation = props.orientation, rest = __rest(props, ["orientation"]);
33288
- var classes = useStyles$w();
33234
+ var classes = useStyles$x();
33289
33235
  var variantProp;
33290
33236
  switch (orientation) {
33291
33237
  case 'horizontal':
@@ -33300,7 +33246,7 @@ var Divider = function (props) {
33300
33246
  return (React__default.createElement(Divider$2, __assign$1({}, rest, { className: clsx(classes.root, 'gds-divider', variantProp) })));
33301
33247
  };
33302
33248
 
33303
- var useStyles$v = makeStyles(function (theme) {
33249
+ var useStyles$w = makeStyles(function (theme) {
33304
33250
  return createStyles({
33305
33251
  inputRoot: {
33306
33252
  '& > *': {
@@ -33387,7 +33333,7 @@ var useStyles$v = makeStyles(function (theme) {
33387
33333
  });
33388
33334
  var Autocomplete = function (_a) {
33389
33335
  var label = _a.label, placeholder = _a.placeholder, _b = _a.platform, platform = _b === void 0 ? 'desktop' : _b, actionLabel = _a.actionLabel, actionClick = _a.actionClick, onChange = _a.onChange, bottomButtonHeight = _a.bottomButtonHeight, rest = __rest(_a, ["label", "placeholder", "platform", "actionLabel", "actionClick", "onChange", "bottomButtonHeight"]);
33390
- var classes = useStyles$v({ platform: platform, bottomButtonHeight: bottomButtonHeight });
33336
+ var classes = useStyles$w({ platform: platform, bottomButtonHeight: bottomButtonHeight });
33391
33337
  var _c = useState(placeholder), inputPlaceholder = _c[0], setInputPlaceholder = _c[1];
33392
33338
  var root = useRef(null);
33393
33339
  var onKeyDownHandler = function (event) {
@@ -33420,7 +33366,7 @@ var Autocomplete = function (_a) {
33420
33366
  }, onKeyDown: onKeyDownHandler, ref: root }, rest))));
33421
33367
  };
33422
33368
 
33423
- var useStyles$u = makeStyles(function () {
33369
+ var useStyles$v = makeStyles(function () {
33424
33370
  return createStyles({
33425
33371
  sizeSmall: {
33426
33372
  width: 18,
@@ -33451,7 +33397,7 @@ var useStyles$u = makeStyles(function () {
33451
33397
  var Avatar = function (props) {
33452
33398
  var tooltip = props.tooltip, tooltipPlacement = props.tooltipPlacement, rest = __rest(props, ["tooltip", "tooltipPlacement"]);
33453
33399
  var placement = tooltipPlacement !== undefined ? tooltipPlacement : "top";
33454
- var classes = useStyles$u(props);
33400
+ var classes = useStyles$v(props);
33455
33401
  var sizeProp;
33456
33402
  var colorProp;
33457
33403
  switch (rest.size) {
@@ -33686,7 +33632,7 @@ var pallette$1 = {
33686
33632
  };
33687
33633
  var pallettes$1 = __assign$1({ pallette: pallette$1 }, common);
33688
33634
 
33689
- var useStyles$t = makeStyles(createStyles({
33635
+ var useStyles$u = makeStyles(createStyles({
33690
33636
  root: {
33691
33637
  "&.gds-drawer-menu-item": {
33692
33638
  borderRadius: '0.5rem',
@@ -33759,7 +33705,7 @@ var useStyles$t = makeStyles(createStyles({
33759
33705
  }));
33760
33706
  var DrawerMenu = React__default.forwardRef(function (props, ref) {
33761
33707
  var children = props.children, startAdornment = props.startAdornment, submenu = props.submenu, _a = props.variant, variant = _a === void 0 ? 'light' : _a, value = props.value, open = props.open, expand = props.expand, rest = __rest(props, ["children", "startAdornment", "submenu", "variant", "value", "open", "expand"]);
33762
- var classes = useStyles$t();
33708
+ var classes = useStyles$u();
33763
33709
  var variantProp;
33764
33710
  switch (variant) {
33765
33711
  case 'light':
@@ -33876,7 +33822,7 @@ var typography$1 = {
33876
33822
  };
33877
33823
 
33878
33824
  // import Tooltip from '../Tooltip/Tooltip';
33879
- var useStyles$s = makeStyles(function (theme) {
33825
+ var useStyles$t = makeStyles(function (theme) {
33880
33826
  return createStyles({
33881
33827
  avatarBorder: {
33882
33828
  '& .MuiAvatar-root, & .MuiAvatarGroup-avatar': {
@@ -33941,7 +33887,7 @@ var useStyles$s = makeStyles(function (theme) {
33941
33887
  });
33942
33888
  });
33943
33889
  var AvatarsGroup = function (props) {
33944
- var classes = useStyles$s(props);
33890
+ var classes = useStyles$t(props);
33945
33891
  props.color; var tooltip = props.tooltip, tooltipPlacement = props.tooltipPlacement, defaultProps = __rest(props, ["color", "tooltip", "tooltipPlacement"]);
33946
33892
  var colorProp;
33947
33893
  switch (props.color) {
@@ -33990,7 +33936,7 @@ var Box = function (props) {
33990
33936
  return (React__default.createElement(Box$2, __assign$1({}, props)));
33991
33937
  };
33992
33938
 
33993
- var useStyles$r = makeStyles(function (theme) {
33939
+ var useStyles$s = makeStyles(function (theme) {
33994
33940
  return createStyles({
33995
33941
  root: {
33996
33942
  "&.gds-button--danger": {}
@@ -33998,7 +33944,7 @@ var useStyles$r = makeStyles(function (theme) {
33998
33944
  });
33999
33945
  });
34000
33946
  var Button = function (props) {
34001
- var classes = useStyles$r(props);
33947
+ var classes = useStyles$s(props);
34002
33948
  var isLoading = props.isLoading, isDanger = props.isDanger, defaultProps = __rest(props, ["isLoading", "isDanger"]);
34003
33949
  return (React__default.createElement(Button$2, __assign$1({ disableElevation: true, disableRipple: true }, defaultProps, { onClick: defaultProps.onClick, ref: defaultProps.refprop, className: clsx(classes.root, isDanger ? ' gds-button--danger' : '') }), !isLoading ? defaultProps.children : React__default.createElement(CircularProgress$1, { size: 16, color: "inherit" })));
34004
33950
  };
@@ -34016,7 +33962,7 @@ function CrossIcon(props) {
34016
33962
  React__default.createElement("path", { stroke: "currentColor", d: "M8.012 15.875L15.887 8M15.887 15.976L8.012 8.101" })));
34017
33963
  }
34018
33964
 
34019
- var useStyles$q = makeStyles({
33965
+ var useStyles$r = makeStyles({
34020
33966
  root: {
34021
33967
  '&.gds-chip-rounded': {
34022
33968
  borderRadius: 50,
@@ -34028,7 +33974,7 @@ var useStyles$q = makeStyles({
34028
33974
  },
34029
33975
  });
34030
33976
  var Chip = function (props) {
34031
- var classes = useStyles$q();
33977
+ var classes = useStyles$r();
34032
33978
  var variant = props.variant, transparent = props.transparent, rounded = props.rounded, defaultProps = __rest(props, ["variant", "transparent", "rounded"]);
34033
33979
  var variantProp;
34034
33980
  switch (variant) {
@@ -34056,7 +34002,7 @@ var Chip = function (props) {
34056
34002
  return (React__default.createElement(MuiChip, __assign$1({}, defaultProps, { size: "small", onDelete: defaultProps.onDelete, deleteIcon: React__default.createElement(CrossIcon, null), className: clsx(variantProp, classes.root, transparent ? 'gds-chip-transparent' : '', rounded ? 'gds-chip-rounded' : '') })));
34057
34003
  };
34058
34004
 
34059
- var useStyles$p = makeStyles({
34005
+ var useStyles$q = makeStyles({
34060
34006
  root: {
34061
34007
  "&.gds-card": {
34062
34008
  cursor: 'pointer'
@@ -34064,7 +34010,7 @@ var useStyles$p = makeStyles({
34064
34010
  },
34065
34011
  });
34066
34012
  var Card = function (props) {
34067
- var classes = useStyles$p();
34013
+ var classes = useStyles$q();
34068
34014
  var active = props.active, children = props.children; __rest(props, ["active", "children"]);
34069
34015
  return (React__default.createElement(MuiCard, { elevation: 0, className: clsx(classes.root, 'gds-card', active ? 'gds-card--active' : '') }, children));
34070
34016
  };
@@ -34090,7 +34036,7 @@ var Input = function (_a) {
34090
34036
  helperText && React__default.createElement(FormHelperText$1, { error: error }, helperText)));
34091
34037
  };
34092
34038
 
34093
- var useStyles$o = makeStyles(function () { return createStyles({
34039
+ var useStyles$p = makeStyles(function () { return createStyles({
34094
34040
  root: {
34095
34041
  width: function (props) { return props.width ? props.width : ''; }
34096
34042
  },
@@ -34101,7 +34047,7 @@ var useStyles$o = makeStyles(function () { return createStyles({
34101
34047
  }); });
34102
34048
  var Dropdown = function (_a) {
34103
34049
  var children = _a.children, _b = _a.elevation, elevation = _b === void 0 ? 3 : _b, _c = _a.align, align = _c === void 0 ? 'right' : _c, label = _a.label, width = _a.width, _d = _a.size, size = _d === void 0 ? 'medium' : _d, disabled = _a.disabled, _e = _a.variant, variant = _e === void 0 ? 'dropdown' : _e, fullWidth = _a.fullWidth, rest = __rest(_a, ["children", "elevation", "align", "label", "width", "size", "disabled", "variant", "fullWidth"]);
34104
- var classes = useStyles$o({ width: width });
34050
+ var classes = useStyles$p({ width: width });
34105
34051
  var isDefinedWidth = function (definedWidth) {
34106
34052
  return typeof definedWidth !== 'undefined' ? 'MuiInputBase-definedWidth' : '';
34107
34053
  };
@@ -34145,7 +34091,7 @@ var EmptyState = function (_a) {
34145
34091
  React__default.createElement(Typography$2, { color: 'textSecondary', variant: 'body1' }, description))));
34146
34092
  };
34147
34093
 
34148
- var useStyles$n = makeStyles(function (theme) { return ({
34094
+ var useStyles$o = makeStyles(function (theme) { return ({
34149
34095
  root: {
34150
34096
  "&.gds-formgroup": {
34151
34097
  width: '100%'
@@ -34161,11 +34107,11 @@ var useStyles$n = makeStyles(function (theme) { return ({
34161
34107
  }); });
34162
34108
  var FormGroup = function (_a) {
34163
34109
  var children = _a.children, _b = _a.spacing, spacing = _b === void 0 ? 0 : _b, _c = _a.alignItems, alignItems = _c === void 0 ? 'flex-start' : _c, _d = _a.margin, margin = _d === void 0 ? false : _d, props = __rest(_a, ["children", "spacing", "alignItems", "margin"]);
34164
- var classes = useStyles$n({ spacing: spacing, alignItems: alignItems });
34110
+ var classes = useStyles$o({ spacing: spacing, alignItems: alignItems });
34165
34111
  return (React__default.createElement(MuiFormGroup, __assign$1({ className: clsx(classes.root, 'gds-formgroup', margin ? 'formGroupMargin' : '') }, props), children));
34166
34112
  };
34167
34113
 
34168
- var useStyles$m = makeStyles({
34114
+ var useStyles$n = makeStyles({
34169
34115
  root: {
34170
34116
  "&.form-container": {
34171
34117
  display: "grid",
@@ -34177,11 +34123,11 @@ var useStyles$m = makeStyles({
34177
34123
  },
34178
34124
  });
34179
34125
  var FormContainer = function (props) {
34180
- var classes = useStyles$m(props);
34126
+ var classes = useStyles$n(props);
34181
34127
  return (React__default.createElement("form", { onSubmit: props.onSubmit, className: clsx(classes.root, "form-container") }, props.children));
34182
34128
  };
34183
34129
 
34184
- var useStyles$l = makeStyles({
34130
+ var useStyles$m = makeStyles({
34185
34131
  root: {
34186
34132
  "&.form-body": {
34187
34133
  display: 'flex',
@@ -34202,7 +34148,7 @@ var useStyles$l = makeStyles({
34202
34148
  });
34203
34149
  var FormBody = function (props) {
34204
34150
  var children = props.children;
34205
- var classes = useStyles$l(props);
34151
+ var classes = useStyles$m(props);
34206
34152
  return (React__default.createElement("div", { className: clsx(classes.root, "form-body") }, children));
34207
34153
  };
34208
34154
 
@@ -34221,12 +34167,16 @@ 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" })));
34227
34177
  }
34228
34178
 
34229
- var useStyles$k = makeStyles({
34179
+ var useStyles$l = makeStyles({
34230
34180
  root: {
34231
34181
  '&.gds-header': {
34232
34182
  overflow: "hidden",
@@ -34291,21 +34241,21 @@ var useStyles$k = makeStyles({
34291
34241
  },
34292
34242
  });
34293
34243
  var FormHeader = React__default.forwardRef(function (props, ref) {
34294
- var classes = useStyles$k();
34244
+ var classes = useStyles$l();
34295
34245
  return (React__default.createElement(Box$2, { className: clsx(classes.root, 'gds-header', props.fixed ? 'gds-header-fixed' : '') },
34296
34246
  React__default.createElement("div", { className: clsx(classes.root, 'gds-header_accent') },
34297
34247
  React__default.createElement(LawconnectIcon, { size: "260" })),
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))),
34305
34255
  React__default.createElement("div", { className: clsx(classes.root, 'gds-header_content') }, props.children)));
34306
34256
  });
34307
34257
 
34308
- var useStyles$j = makeStyles(function (theme) {
34258
+ var useStyles$k = makeStyles(function (theme) {
34309
34259
  return createStyles({
34310
34260
  root: {
34311
34261
  '& .MuiListSubheader-root': {
@@ -34325,13 +34275,13 @@ var useStyles$j = makeStyles(function (theme) {
34325
34275
  });
34326
34276
  var MenuHeader = function (props) {
34327
34277
  var children = props.children, rest = __rest(props, ["children"]);
34328
- var classes = useStyles$j();
34278
+ var classes = useStyles$k();
34329
34279
  return (React__default.createElement("div", { className: classes.root },
34330
34280
  React__default.createElement(ListSubheader$2, __assign$1({}, rest), children),
34331
34281
  React__default.createElement(Divider, null)));
34332
34282
  };
34333
34283
 
34334
- var useStyles$i = makeStyles(function (theme) {
34284
+ var useStyles$j = makeStyles(function (theme) {
34335
34285
  return createStyles({
34336
34286
  root: {
34337
34287
  color: common.brand.utility.border,
@@ -34347,7 +34297,7 @@ var useStyles$i = makeStyles(function (theme) {
34347
34297
  });
34348
34298
  var MenuContext = function (_a) {
34349
34299
  var title = _a.title, children = _a.children, props = __rest(_a, ["title", "children"]);
34350
- var classes = useStyles$i();
34300
+ var classes = useStyles$j();
34351
34301
  return (React__default.createElement(MuiMenu, __assign$1({ PopoverClasses: { paper: classes.root } }, props, { elevation: 0 }),
34352
34302
  title ? React__default.createElement(MenuHeader, null, title) : '',
34353
34303
  children));
@@ -34362,7 +34312,7 @@ function TickIcon(props) {
34362
34312
  React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.415 5.744l-.79.79 2.828 2.83 6.01-6.011-.79-.79-5.22 5.22-2.038-2.039z", fill: "currentColor" })));
34363
34313
  }
34364
34314
 
34365
- var useStyles$h = makeStyles(function (theme) {
34315
+ var useStyles$i = makeStyles(function (theme) {
34366
34316
  return createStyles({
34367
34317
  root: {
34368
34318
  '& .MuiDivider-root': {
@@ -34402,7 +34352,7 @@ var useStyles$h = makeStyles(function (theme) {
34402
34352
  });
34403
34353
  });
34404
34354
  var MenuItemSystem = React__default.forwardRef(function (props, ref) {
34405
- var classes = useStyles$h();
34355
+ var classes = useStyles$i();
34406
34356
  var children = props.children, prependIcon = props.prependIcon, border = props.border, rest = __rest(props, ["children", "prependIcon", "border"]);
34407
34357
  return (React__default.createElement("div", { className: classes.root },
34408
34358
  React__default.createElement(MuiMenuItem, __assign$1({ className: classes.MenuItem, ref: ref }, rest),
@@ -34430,7 +34380,7 @@ var ListItemAvatar = function (props) {
34430
34380
  return (React__default.createElement(MuiListItemAvatar, __assign$1({}, props)));
34431
34381
  };
34432
34382
 
34433
- var useStyles$g = makeStyles(function () {
34383
+ var useStyles$h = makeStyles(function () {
34434
34384
  return createStyles({
34435
34385
  root: {
34436
34386
  position: 'relative',
@@ -34470,7 +34420,7 @@ var ListItemHoverContent = function (_a) {
34470
34420
  var width2 = contentRef2.current.clientWidth;
34471
34421
  setWidth(width1 > width2 ? width1 : width2);
34472
34422
  }, []);
34473
- var classes = useStyles$g({ width: width });
34423
+ var classes = useStyles$h({ width: width });
34474
34424
  return (React__default.createElement("div", { className: classes.root },
34475
34425
  React__default.createElement("div", { ref: contentRef1, className: classes.hideOnHover }, hideOnHover),
34476
34426
  React__default.createElement("div", { ref: contentRef2, className: classes.showOnHover }, showOnHover)));
@@ -34485,7 +34435,7 @@ var ListSubheader = function (props) {
34485
34435
  return (React__default.createElement(ListSubheader$2, __assign$1({}, rest), children));
34486
34436
  };
34487
34437
 
34488
- var useStyles$f = makeStyles(function (theme) { return createStyles({
34438
+ var useStyles$g = makeStyles(function (theme) { return createStyles({
34489
34439
  root: {
34490
34440
  color: common.grey[600],
34491
34441
  '&::after': {
@@ -34524,36 +34474,36 @@ var useStyles$f = makeStyles(function (theme) { return createStyles({
34524
34474
  selected: {}
34525
34475
  }); });
34526
34476
  var Tab = function (props) {
34527
- var classes = useStyles$f();
34477
+ var classes = useStyles$g();
34528
34478
  return (React__default.createElement(MuiTab, __assign$1({ className: classes.root, component: 'div' }, props)));
34529
34479
  };
34530
34480
 
34531
- var useStyles$e = makeStyles(createStyles({
34481
+ var useStyles$f = makeStyles(createStyles({
34532
34482
  root: {
34533
34483
  flexGrow: 1,
34534
34484
  backgroundColor: common.brand.background.tabs,
34535
- '& .Mui-selected': {
34485
+ "& .Mui-selected": {
34536
34486
  // backgroundColor: common.brand.primary.contrastText,
34537
34487
  },
34538
34488
  },
34539
34489
  tabsRoot: {
34540
34490
  borderBottom: "1px solid " + common.brand.utility.border,
34541
- '&.MuiTabs-vertical': {
34542
- borderBottom: 'none',
34491
+ "&.MuiTabs-vertical": {
34492
+ borderBottom: "none",
34543
34493
  },
34544
34494
  },
34545
34495
  indicator: {
34546
- display: 'none',
34496
+ display: "none",
34547
34497
  },
34548
34498
  }));
34549
34499
  var Tabs = function (_a) {
34550
- var children = _a.children, _b = _a.orientation, orientation = _b === void 0 ? 'horizontal' : _b, props = __rest(_a, ["children", "orientation"]);
34551
- var classes = useStyles$e();
34500
+ var children = _a.children, _b = _a.orientation, orientation = _b === void 0 ? "horizontal" : _b, props = __rest(_a, ["children", "orientation"]);
34501
+ var classes = useStyles$f();
34552
34502
  return (React__default.createElement("div", { className: classes.root },
34553
34503
  React__default.createElement(MuiTabs, __assign$1({ orientation: orientation }, props, { classes: { root: classes.tabsRoot, indicator: classes.indicator }, indicatorColor: "secondary" }), children)));
34554
34504
  };
34555
34505
 
34556
- var useStyles$d = makeStyles(function (theme) { return createStyles({
34506
+ var useStyles$e = makeStyles(function (theme) { return createStyles({
34557
34507
  root: {
34558
34508
  backgroundColor: 'transparent',
34559
34509
  textTransform: 'none',
@@ -34623,7 +34573,7 @@ var TabListItem = function (_a) {
34623
34573
  var width2 = contentRef2.current.clientWidth;
34624
34574
  setWidth(width1 > width2 ? width1 : width2);
34625
34575
  }, []);
34626
- var classes = useStyles$d({ width: width });
34576
+ var classes = useStyles$e({ width: width });
34627
34577
  return (React__default.createElement(MuiListItem, __assign$1({ className: classes.root, button: true, disableGutters: true }, props),
34628
34578
  React__default.createElement(React__default.Fragment, null,
34629
34579
  children,
@@ -34693,7 +34643,7 @@ var RadioGroup = function (props) {
34693
34643
  React__default.createElement(MuiRadioGroup, __assign$1({}, defaultProps, { "aria-label": props.label, name: props.name, value: radioValue, onChange: handleChange }), props.children)));
34694
34644
  };
34695
34645
 
34696
- var useStyles$c = makeStyles(createStyles({
34646
+ var useStyles$d = makeStyles(createStyles({
34697
34647
  container: {
34698
34648
  height: '100%',
34699
34649
  overflow: 'hidden',
@@ -34714,7 +34664,7 @@ var Sidebar = function () { return null; };
34714
34664
  var Main = function () { return null; };
34715
34665
  var SidebarLayout = function (_a) {
34716
34666
  var children = _a.children, _b = _a.sidebarWidth, sidebarWidth = _b === void 0 ? 260 : _b, _c = _a.sidebarBgColor, sidebarBgColor = _c === void 0 ? '#f3f3f3' : _c; __rest(_a, ["children", "sidebarWidth", "sidebarBgColor"]);
34717
- var classes = useStyles$c();
34667
+ var classes = useStyles$d();
34718
34668
  var sidebar = children.find(function (el) { return el.type === Sidebar; });
34719
34669
  var main = children.find(function (el) { return el.type === Main; });
34720
34670
  return (React__default.createElement(Box$2, { display: "flex", className: classes.container },
@@ -34725,18 +34675,19 @@ SidebarLayout.Sidebar = Sidebar;
34725
34675
  SidebarLayout.Main = Main;
34726
34676
 
34727
34677
  // Generated with util/create-component.js
34728
- var useStyles$b = makeStyles({
34678
+ var useStyles$c = makeStyles({
34729
34679
  root: {},
34730
34680
  });
34731
34681
  var Toolbar = function (props) {
34732
- var classes = useStyles$b();
34682
+ var classes = useStyles$c();
34733
34683
  return (React__default.createElement("div", { className: classes.root },
34734
34684
  React__default.createElement(Toolbar$2, null, props.children)));
34735
34685
  };
34736
34686
 
34737
- var Tooltip = function (props) {
34738
- return (React__default.createElement(Tooltip$2, __assign$1({ arrow: true, TransitionProps: { timeout: 0 } }, props)));
34739
- };
34687
+ var Tooltip = React__default.forwardRef(function (props, ref) {
34688
+ var children = props.children, TransitionProps = props.TransitionProps, defaultProps = __rest(props, ["children", "TransitionProps"]);
34689
+ return (React__default.createElement(Tooltip$2, __assign$1({ arrow: true, TransitionProps: __assign$1(__assign$1({}, TransitionProps), { timeout: 0 }), ref: ref }, defaultProps), children));
34690
+ });
34740
34691
 
34741
34692
  function DocTypeAppointment$2(props) {
34742
34693
  return (React__default.createElement(SvgIcon$1, __assign$1({}, props, { viewBox: "0 0 48 48" }),
@@ -35563,7 +35514,7 @@ function CrossIcon16(props) {
35563
35514
  React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.27831 7.98596L3.1391 12.1252L3.84621 12.8323L7.98541 8.69307L12.1391 12.8468L12.8462 12.1396L8.69252 7.98596L12.8462 3.83227L12.1391 3.12517L7.98541 7.27885L3.84621 3.13965L3.1391 3.84675L7.27831 7.98596Z" })));
35564
35515
  }
35565
35516
 
35566
- var useStyles$a = makeStyles({
35517
+ var useStyles$b = makeStyles({
35567
35518
  root: {
35568
35519
  '&.gds-modal': {
35569
35520
  display: 'flex',
@@ -35680,7 +35631,7 @@ var useStyles$a = makeStyles({
35680
35631
  }
35681
35632
  });
35682
35633
  var Dialog = function (props) {
35683
- var classes = useStyles$a();
35634
+ var classes = useStyles$b();
35684
35635
  var platform = props.platform, title = props.title, message = props.message, children = props.children; __rest(props, ["platform", "title", "message", "children"]);
35685
35636
  var variantIcon;
35686
35637
  switch (props.variant) {
@@ -35707,15 +35658,46 @@ var Dialog = function (props) {
35707
35658
  React__default.createElement(DialogActions$1, null, children)))));
35708
35659
  };
35709
35660
 
35661
+ // Use theme.shape.borderRadius to detect if it's Desktop or not
35662
+ var useStyles$a = makeStyles(function (theme) {
35663
+ return createStyles({
35664
+ bgWrapper: function (props) { return ({
35665
+ background: "url(" + props.bgImageURL + ") no-repeat",
35666
+ backgroundSize: props.bgSize,
35667
+ backgroundPosition: props.bgPosition + " center",
35668
+ backgroundColor: props.bgColor ? props.bgColor + " !important" : '',
35669
+ }); },
35670
+ titleVis: function (props) { return ({
35671
+ display: props.titleVisibility === undefined
35672
+ ? theme.shape.borderRadius === 0
35673
+ ? ''
35674
+ : 'none'
35675
+ : props.titleVisibility
35676
+ ? ''
35677
+ : 'none',
35678
+ }); },
35679
+ containerDivider: function (props) { return ({
35680
+ borderLeft: props.divider === undefined
35681
+ ? theme.shape.borderRadius === 0
35682
+ ? "1px solid " + common.brand.utility.border
35683
+ : 'none'
35684
+ : props.divider
35685
+ ? "1px solid " + common.brand.utility.border
35686
+ : 'none',
35687
+ }); },
35688
+ });
35689
+ });
35710
35690
  var HeaderToolbar = function (_a) {
35711
- var title = _a.title, left = _a.left, right = _a.right; __rest(_a, ["title", "left", "right"]);
35712
- return (React__default.createElement(Toolbar$2, { className: 'gds-header-toolbar' },
35713
- React__default.createElement(Box$2, { display: 'flex', justifyContent: 'space-between', style: { width: '100%' } },
35714
- React__default.createElement(Box$2, { display: 'flex', flexDirection: 'column', justifyContent: 'stretch' },
35715
- title && React__default.createElement(Box$2, { className: 'gds-header-toolbar-title', mb: 3 },
35716
- React__default.createElement(Typography, { variant: 'h1', color: 'primary' }, title)),
35691
+ var _b;
35692
+ var title = _a.title, titleVisibility = _a.titleVisibility, left = _a.left, right = _a.right, bgColor = _a.bgColor, bgImageURL = _a.bgImageURL, _c = _a.bgPosition, bgPosition = _c === void 0 ? 'center' : _c, bgSize = _a.bgSize, divider = _a.divider; __rest(_a, ["title", "titleVisibility", "left", "right", "bgColor", "bgImageURL", "bgPosition", "bgSize", "divider"]);
35693
+ var classes = useStyles$a({ bgColor: bgColor, bgImageURL: bgImageURL, bgPosition: bgPosition, bgSize: bgSize, titleVisibility: titleVisibility, divider: divider });
35694
+ return (React__default.createElement(Toolbar$2, { className: clsx('gds-header-toolbar', classes.bgWrapper, (_b = {}, _b['with-title'] = titleVisibility, _b)) },
35695
+ React__default.createElement(Box$2, { display: "flex", justifyContent: "space-between", alignItems: "flex-end", style: { width: '100%' } },
35696
+ React__default.createElement(Box$2, { display: "flex", flexDirection: "column", justifyContent: "stretch" },
35697
+ title && (React__default.createElement(Box$2, { className: clsx("gds-header-toolbar-title", classes.titleVis), mb: 3 },
35698
+ React__default.createElement(Typography, { variant: "h1", color: "primary" }, title))),
35717
35699
  left),
35718
- right && React__default.createElement(Box$2, { className: 'gds-buttons-w-divider', borderLeft: "1px solid " + common.brand.utility.border }, right))));
35700
+ right && (React__default.createElement(Box$2, { className: clsx("gds-buttons-w-divider", classes.containerDivider) }, right)))));
35719
35701
  };
35720
35702
 
35721
35703
  function LoaderIcon(props) {
@@ -35728,6 +35710,28 @@ function LoaderIcon(props) {
35728
35710
  React__default.createElement("animate", { attributeName: "opacity", values: "1;.2; 1", begin: ".6", dur: "1.2s", calcMode: "paced", repeatCount: "indefinite" }))));
35729
35711
  }
35730
35712
 
35713
+ function SpinnerIcon(props) {
35714
+ return (React__default.createElement(SvgIcon$1, __assign$1({}, props, { viewBox: "0 0 120 120" }),
35715
+ React__default.createElement("g", { transform: "rotate(-90 43 -17)" },
35716
+ React__default.createElement("circle", { cx: "0", cy: "0", r: "8" },
35717
+ React__default.createElement("animateTransform", { id: "b", attributeName: "transform", dur: "0.2s", type: "translate", values: "0 0; 14 0; 0 0", begin: "0;a.end" }))),
35718
+ React__default.createElement("g", { transform: "rotate(-30 124.962 -145.406)" },
35719
+ React__default.createElement("circle", { cx: "0", cy: "0", r: "8" },
35720
+ React__default.createElement("animateTransform", { id: "c", attributeName: "transform", dur: "0.2s", type: "translate", values: "0 0; 14 0; 0 0", begin: "b.end" }))),
35721
+ React__default.createElement("g", { transform: "rotate(30 -98.962 205.406)" },
35722
+ React__default.createElement("circle", { cx: "0", cy: "0", r: "8" },
35723
+ React__default.createElement("animateTransform", { id: "d", attributeName: "transform", dur: "0.2s", type: "translate", values: "0 0; 14 0; 0 0", begin: "c.end" }))),
35724
+ React__default.createElement("g", { transform: "rotate(90 -17 77)" },
35725
+ React__default.createElement("circle", { cx: "0", cy: "0", r: "8" },
35726
+ React__default.createElement("animateTransform", { id: "e", attributeName: "transform", dur: "0.2s", type: "translate", values: "0 0; 14 0; 0 0", begin: "d.end-0.02s" }))),
35727
+ React__default.createElement("g", { transform: "rotate(150 4.962 42.594)" },
35728
+ React__default.createElement("circle", { cx: "0", cy: "0", r: "8" },
35729
+ React__default.createElement("animateTransform", { id: "f", attributeName: "transform", dur: "0.2s", type: "translate", values: "0 0; 14 0; 0 0", begin: "e.end" }))),
35730
+ React__default.createElement("g", { transform: "rotate(-150 21.038 17.406)" },
35731
+ React__default.createElement("circle", { cx: "0", cy: "0", r: "8" },
35732
+ React__default.createElement("animateTransform", { id: "a", attributeName: "transform", dur: "0.2s", type: "translate", values: "0 0; 14 0; 0 0", begin: "f.end" })))));
35733
+ }
35734
+
35731
35735
  var useStyles$9 = makeStyles(function (theme) { return ({
35732
35736
  root: {
35733
35737
  zIndex: theme.zIndex.drawer + 1,
@@ -35738,7 +35742,7 @@ var useStyles$9 = makeStyles(function (theme) { return ({
35738
35742
  }
35739
35743
  }); });
35740
35744
  var Loader = function (props) {
35741
- var background = props.background, transparent = props.transparent, _a = props.position, position = _a === void 0 ? 'fixed' : _a, rest = __rest(props, ["background", "transparent", "position"]);
35745
+ var background = props.background, transparent = props.transparent, spinner = props.spinner, _a = props.position, position = _a === void 0 ? 'fixed' : _a, rest = __rest(props, ["background", "transparent", "spinner", "position"]);
35742
35746
  var classes = useStyles$9({ position: position });
35743
35747
  var variantProp;
35744
35748
  if (transparent) {
@@ -35765,8 +35769,7 @@ var Loader = function (props) {
35765
35769
  variantProp = "customBackdropLight";
35766
35770
  }
35767
35771
  }
35768
- return (React__default.createElement(Backdrop$1, __assign$1({}, rest, { className: clsx(variantProp, classes.root), open: props.open }),
35769
- React__default.createElement(LoaderIcon, { color: "inherit" })));
35772
+ return (React__default.createElement(Backdrop$1, __assign$1({}, rest, { className: clsx(variantProp, classes.root), open: props.open }), spinner ? (React__default.createElement(SpinnerIcon, { color: "inherit" })) : (React__default.createElement(LoaderIcon, { color: "inherit" }))));
35770
35773
  };
35771
35774
 
35772
35775
  var Grid = function (_a) {
@@ -36449,6 +36452,48 @@ var isSameDay$1 = /*#__PURE__*/Object.freeze({
36449
36452
  'default': isSameDay
36450
36453
  });
36451
36454
 
36455
+ /**
36456
+ * @name isDate
36457
+ * @category Common Helpers
36458
+ * @summary Is the given value a date?
36459
+ *
36460
+ * @description
36461
+ * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
36462
+ *
36463
+ * ### v2.0.0 breaking changes:
36464
+ *
36465
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
36466
+ *
36467
+ * @param {*} value - the value to check
36468
+ * @returns {boolean} true if the given value is a date
36469
+ * @throws {TypeError} 1 arguments required
36470
+ *
36471
+ * @example
36472
+ * // For a valid date:
36473
+ * const result = isDate(new Date())
36474
+ * //=> true
36475
+ *
36476
+ * @example
36477
+ * // For an invalid date:
36478
+ * const result = isDate(new Date(NaN))
36479
+ * //=> true
36480
+ *
36481
+ * @example
36482
+ * // For some value:
36483
+ * const result = isDate('2014-02-31')
36484
+ * //=> false
36485
+ *
36486
+ * @example
36487
+ * // For an object:
36488
+ * const result = isDate({})
36489
+ * //=> false
36490
+ */
36491
+
36492
+ function isDate(value) {
36493
+ requiredArgs(1, arguments);
36494
+ return value instanceof Date || typeof value === 'object' && Object.prototype.toString.call(value) === '[object Date]';
36495
+ }
36496
+
36452
36497
  /**
36453
36498
  * @name isValid
36454
36499
  * @category Common Helpers
@@ -36493,24 +36538,29 @@ var isSameDay$1 = /*#__PURE__*/Object.freeze({
36493
36538
  *
36494
36539
  * @example
36495
36540
  * // For the valid date:
36496
- * var result = isValid(new Date(2014, 1, 31))
36541
+ * const result = isValid(new Date(2014, 1, 31))
36497
36542
  * //=> true
36498
36543
  *
36499
36544
  * @example
36500
36545
  * // For the value, convertable into a date:
36501
- * var result = isValid(1393804800000)
36546
+ * const result = isValid(1393804800000)
36502
36547
  * //=> true
36503
36548
  *
36504
36549
  * @example
36505
36550
  * // For the invalid date:
36506
- * var result = isValid(new Date(''))
36551
+ * const result = isValid(new Date(''))
36507
36552
  * //=> false
36508
36553
  */
36509
36554
 
36510
36555
  function isValid(dirtyDate) {
36511
36556
  requiredArgs(1, arguments);
36557
+
36558
+ if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
36559
+ return false;
36560
+ }
36561
+
36512
36562
  var date = toDate(dirtyDate);
36513
- return !isNaN(date);
36563
+ return !isNaN(Number(date));
36514
36564
  }
36515
36565
 
36516
36566
  var isValid$1 = /*#__PURE__*/Object.freeze({
@@ -36581,20 +36631,21 @@ var formatDistanceLocale = {
36581
36631
  other: 'almost {{count}} years'
36582
36632
  }
36583
36633
  };
36584
- function formatDistance(token, count, options) {
36585
- options = options || {};
36634
+
36635
+ var formatDistance = function (token, count, options) {
36586
36636
  var result;
36637
+ var tokenValue = formatDistanceLocale[token];
36587
36638
 
36588
- if (typeof formatDistanceLocale[token] === 'string') {
36589
- result = formatDistanceLocale[token];
36639
+ if (typeof tokenValue === 'string') {
36640
+ result = tokenValue;
36590
36641
  } else if (count === 1) {
36591
- result = formatDistanceLocale[token].one;
36642
+ result = tokenValue.one;
36592
36643
  } else {
36593
- result = formatDistanceLocale[token].other.replace('{{count}}', count);
36644
+ result = tokenValue.other.replace('{{count}}', count.toString());
36594
36645
  }
36595
36646
 
36596
- if (options.addSuffix) {
36597
- if (options.comparison > 0) {
36647
+ if (options !== null && options !== void 0 && options.addSuffix) {
36648
+ if (options.comparison && options.comparison > 0) {
36598
36649
  return 'in ' + result;
36599
36650
  } else {
36600
36651
  return result + ' ago';
@@ -36602,7 +36653,9 @@ function formatDistance(token, count, options) {
36602
36653
  }
36603
36654
 
36604
36655
  return result;
36605
- }
36656
+ };
36657
+
36658
+ var formatDistance$1 = formatDistance;
36606
36659
 
36607
36660
  function buildFormatLongFn(args) {
36608
36661
  return function () {
@@ -36656,9 +36709,12 @@ var formatRelativeLocale = {
36656
36709
  nextWeek: "eeee 'at' p",
36657
36710
  other: 'P'
36658
36711
  };
36659
- function formatRelative(token, _date, _baseDate, _options) {
36712
+
36713
+ var formatRelative = function (token, _date, _baseDate, _options) {
36660
36714
  return formatRelativeLocale[token];
36661
- }
36715
+ };
36716
+
36717
+ var formatRelative$1 = formatRelative;
36662
36718
 
36663
36719
  function buildLocalizeFn(args) {
36664
36720
  return function (dirtyIndex, dirtyOptions) {
@@ -36774,16 +36830,13 @@ var formattingDayPeriodValues = {
36774
36830
  }
36775
36831
  };
36776
36832
 
36777
- function ordinalNumber(dirtyNumber, _dirtyOptions) {
36833
+ var ordinalNumber = function (dirtyNumber, _options) {
36778
36834
  var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
36779
36835
  // if they are different for different grammatical genders,
36780
- // use `options.unit`:
36781
- //
36782
- // var options = dirtyOptions || {}
36783
- // var unit = String(options.unit)
36836
+ // use `options.unit`.
36784
36837
  //
36785
- // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
36786
- // 'day', 'hour', 'minute', 'second'
36838
+ // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
36839
+ // 'day', 'hour', 'minute', 'second'.
36787
36840
 
36788
36841
  var rem100 = number % 100;
36789
36842
 
@@ -36801,7 +36854,7 @@ function ordinalNumber(dirtyNumber, _dirtyOptions) {
36801
36854
  }
36802
36855
 
36803
36856
  return number + 'th';
36804
- }
36857
+ };
36805
36858
 
36806
36859
  var localize = {
36807
36860
  ordinalNumber: ordinalNumber,
@@ -36813,7 +36866,7 @@ var localize = {
36813
36866
  values: quarterValues,
36814
36867
  defaultWidth: 'wide',
36815
36868
  argumentCallback: function (quarter) {
36816
- return Number(quarter) - 1;
36869
+ return quarter - 1;
36817
36870
  }
36818
36871
  }),
36819
36872
  month: buildLocalizeFn({
@@ -36833,24 +36886,6 @@ var localize = {
36833
36886
  };
36834
36887
  var localize$1 = localize;
36835
36888
 
36836
- function buildMatchPatternFn(args) {
36837
- return function (string) {
36838
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
36839
- var matchResult = string.match(args.matchPattern);
36840
- if (!matchResult) return null;
36841
- var matchedString = matchResult[0];
36842
- var parseResult = string.match(args.parsePattern);
36843
- if (!parseResult) return null;
36844
- var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
36845
- value = options.valueCallback ? options.valueCallback(value) : value;
36846
- var rest = string.slice(matchedString.length);
36847
- return {
36848
- value: value,
36849
- rest: rest
36850
- };
36851
- };
36852
- }
36853
-
36854
36889
  function buildMatchFn(args) {
36855
36890
  return function (string) {
36856
36891
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -36900,6 +36935,24 @@ function findIndex(array, predicate) {
36900
36935
  return undefined;
36901
36936
  }
36902
36937
 
36938
+ function buildMatchPatternFn(args) {
36939
+ return function (string) {
36940
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
36941
+ var matchResult = string.match(args.matchPattern);
36942
+ if (!matchResult) return null;
36943
+ var matchedString = matchResult[0];
36944
+ var parseResult = string.match(args.parsePattern);
36945
+ if (!parseResult) return null;
36946
+ var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
36947
+ value = options.valueCallback ? options.valueCallback(value) : value;
36948
+ var rest = string.slice(matchedString.length);
36949
+ return {
36950
+ value: value,
36951
+ rest: rest
36952
+ };
36953
+ };
36954
+ }
36955
+
36903
36956
  var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
36904
36957
  var parseOrdinalNumberPattern = /\d+/i;
36905
36958
  var matchEraPatterns = {
@@ -37006,12 +37059,11 @@ var match$1 = match;
37006
37059
  * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
37007
37060
  * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
37008
37061
  */
37009
-
37010
37062
  var locale = {
37011
37063
  code: 'en-US',
37012
- formatDistance: formatDistance,
37064
+ formatDistance: formatDistance$1,
37013
37065
  formatLong: formatLong$1,
37014
- formatRelative: formatRelative,
37066
+ formatRelative: formatRelative$1,
37015
37067
  localize: localize$1,
37016
37068
  match: match$1,
37017
37069
  options: {
@@ -38458,28 +38510,28 @@ var unescapedLatinCharacterRegExp$1 = /[a-zA-Z]/;
38458
38510
  * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
38459
38511
  * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
38460
38512
  * | | EEEEE | M, T, W, T, F, S, S | |
38461
- * | | EEEEEE | Mo, Tu, We, Th, Fr, Su, Sa | |
38513
+ * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
38462
38514
  * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
38463
38515
  * | | io | 1st, 2nd, ..., 7th | 7 |
38464
38516
  * | | ii | 01, 02, ..., 07 | 7 |
38465
38517
  * | | iii | Mon, Tue, Wed, ..., Sun | 7 |
38466
38518
  * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
38467
38519
  * | | iiiii | M, T, W, T, F, S, S | 7 |
38468
- * | | iiiiii | Mo, Tu, We, Th, Fr, Su, Sa | 7 |
38520
+ * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
38469
38521
  * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
38470
38522
  * | | eo | 2nd, 3rd, ..., 1st | 7 |
38471
38523
  * | | ee | 02, 03, ..., 01 | |
38472
38524
  * | | eee | Mon, Tue, Wed, ..., Sun | |
38473
38525
  * | | eeee | Monday, Tuesday, ..., Sunday | 2 |
38474
38526
  * | | eeeee | M, T, W, T, F, S, S | |
38475
- * | | eeeeee | Mo, Tu, We, Th, Fr, Su, Sa | |
38527
+ * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
38476
38528
  * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
38477
38529
  * | | co | 2nd, 3rd, ..., 1st | 7 |
38478
38530
  * | | cc | 02, 03, ..., 01 | |
38479
38531
  * | | ccc | Mon, Tue, Wed, ..., Sun | |
38480
38532
  * | | cccc | Monday, Tuesday, ..., Sunday | 2 |
38481
38533
  * | | ccccc | M, T, W, T, F, S, S | |
38482
- * | | cccccc | Mo, Tu, We, Th, Fr, Su, Sa | |
38534
+ * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
38483
38535
  * | AM, PM | a..aa | AM, PM | |
38484
38536
  * | | aaa | am, pm | |
38485
38537
  * | | aaaa | a.m., p.m. | 2 |
@@ -41737,28 +41789,28 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
41737
41789
  * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |
41738
41790
  * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
41739
41791
  * | | | EEEEE | M, T, W, T, F, S, S | |
41740
- * | | | EEEEEE | Mo, Tu, We, Th, Fr, Su, Sa | |
41792
+ * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
41741
41793
  * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |
41742
41794
  * | | | io | 1st, 2nd, ..., 7th | 5 |
41743
41795
  * | | | ii | 01, 02, ..., 07 | 5 |
41744
41796
  * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |
41745
41797
  * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |
41746
41798
  * | | | iiiii | M, T, W, T, F, S, S | 5 |
41747
- * | | | iiiiii | Mo, Tu, We, Th, Fr, Su, Sa | 5 |
41799
+ * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |
41748
41800
  * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |
41749
41801
  * | | | eo | 2nd, 3rd, ..., 1st | 5 |
41750
41802
  * | | | ee | 02, 03, ..., 01 | |
41751
41803
  * | | | eee | Mon, Tue, Wed, ..., Sun | |
41752
41804
  * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |
41753
41805
  * | | | eeeee | M, T, W, T, F, S, S | |
41754
- * | | | eeeeee | Mo, Tu, We, Th, Fr, Su, Sa | |
41806
+ * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
41755
41807
  * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |
41756
41808
  * | | | co | 2nd, 3rd, ..., 1st | 5 |
41757
41809
  * | | | cc | 02, 03, ..., 01 | |
41758
41810
  * | | | ccc | Mon, Tue, Wed, ..., Sun | |
41759
41811
  * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |
41760
41812
  * | | | ccccc | M, T, W, T, F, S, S | |
41761
- * | | | cccccc | Mo, Tu, We, Th, Fr, Su, Sa | |
41813
+ * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
41762
41814
  * | AM, PM | 80 | a..aaa | AM, PM | |
41763
41815
  * | | | aaaa | a.m., p.m. | 2 |
41764
41816
  * | | | aaaaa | a, p | |
@@ -43655,6 +43707,40 @@ var addYears$1 = /*#__PURE__*/Object.freeze({
43655
43707
  'default': addYears
43656
43708
  });
43657
43709
 
43710
+ /**
43711
+ * @name subMonths
43712
+ * @category Month Helpers
43713
+ * @summary Subtract the specified number of months from the given date.
43714
+ *
43715
+ * @description
43716
+ * Subtract the specified number of months from the given date.
43717
+ *
43718
+ * ### v2.0.0 breaking changes:
43719
+ *
43720
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
43721
+ *
43722
+ * @param {Date|Number} date - the date to be changed
43723
+ * @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`.
43724
+ * @returns {Date} the new date with the months subtracted
43725
+ * @throws {TypeError} 2 arguments required
43726
+ *
43727
+ * @example
43728
+ * // Subtract 5 months from 1 February 2015:
43729
+ * const result = subMonths(new Date(2015, 1, 1), 5)
43730
+ * //=> Mon Sep 01 2014 00:00:00
43731
+ */
43732
+
43733
+ function subMonths(dirtyDate, dirtyAmount) {
43734
+ requiredArgs(2, arguments);
43735
+ var amount = toInteger(dirtyAmount);
43736
+ return addMonths(dirtyDate, -amount);
43737
+ }
43738
+
43739
+ var subMonths$1 = /*#__PURE__*/Object.freeze({
43740
+ __proto__: null,
43741
+ 'default': subMonths
43742
+ });
43743
+
43658
43744
  var styles = createCommonjsModule(function (module, exports) {
43659
43745
 
43660
43746
  Object.defineProperty(exports, "__esModule", {
@@ -43758,9 +43844,11 @@ var require$$15 = /*@__PURE__*/getAugmentedNamespace(setYear$1);
43758
43844
 
43759
43845
  var require$$16 = /*@__PURE__*/getAugmentedNamespace(addYears$1);
43760
43846
 
43847
+ var require$$22 = /*@__PURE__*/getAugmentedNamespace(subMonths$1);
43848
+
43761
43849
  var require$$4 = /*@__PURE__*/getAugmentedNamespace(addMonths$1);
43762
43850
 
43763
- var require$$23 = /*@__PURE__*/getAugmentedNamespace(enUS);
43851
+ var require$$24 = /*@__PURE__*/getAugmentedNamespace(enUS);
43764
43852
 
43765
43853
  var Calendar_1 = createCommonjsModule(function (module, exports) {
43766
43854
 
@@ -43821,9 +43909,11 @@ var _eachDayOfInterval = _interopRequireDefault(require$$20);
43821
43909
 
43822
43910
  var _format = _interopRequireDefault(require$$21);
43823
43911
 
43912
+ var _subMonths = _interopRequireDefault(require$$22);
43913
+
43824
43914
  var _addMonths = _interopRequireDefault(require$$4);
43825
43915
 
43826
- var _enUS = _interopRequireDefault(require$$23);
43916
+ var _enUS = _interopRequireDefault(require$$24);
43827
43917
 
43828
43918
  var _styles = _interopRequireDefault(styles);
43829
43919
 
@@ -43892,6 +43982,16 @@ var Calendar = /*#__PURE__*/function (_PureComponent) {
43892
43982
  var preventUnnecessary = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
43893
43983
 
43894
43984
  if (!props.scroll.enabled) {
43985
+ if (preventUnnecessary && props.preventSnapRefocus) {
43986
+ var focusedDateDiff = (0, _differenceInCalendarMonths.default)(date, _this.state.focusedDate);
43987
+ var isAllowedForward = props.calendarFocus === 'forwards' && focusedDateDiff >= 0;
43988
+ var isAllowedBackward = props.calendarFocus === 'backwards' && focusedDateDiff <= 0;
43989
+
43990
+ if ((isAllowedForward || isAllowedBackward) && Math.abs(focusedDateDiff) < props.months) {
43991
+ return;
43992
+ }
43993
+ }
43994
+
43895
43995
  _this.setState({
43896
43996
  focusedDate: date
43897
43997
  });
@@ -44456,6 +44556,11 @@ var Calendar = /*#__PURE__*/function (_PureComponent) {
44456
44556
  className: (0, _classnames3.default)(this.styles.months, isVertical ? this.styles.monthsVertical : this.styles.monthsHorizontal)
44457
44557
  }, new Array(this.props.months).fill(null).map(function (_, i) {
44458
44558
  var monthStep = (0, _addMonths.default)(_this5.state.focusedDate, i);
44559
+
44560
+ if (_this5.props.calendarFocus === 'backwards') {
44561
+ monthStep = (0, _subMonths.default)(_this5.state.focusedDate, _this5.props.months - 1 - i);
44562
+ }
44563
+
44459
44564
  return /*#__PURE__*/_react.default.createElement(_Month.default, _extends({}, _this5.props, {
44460
44565
  onPreviewChange: onPreviewChange || _this5.updatePreview,
44461
44566
  preview: preview || _this5.state.preview,
@@ -44513,6 +44618,8 @@ Calendar.defaultProps = {
44513
44618
  editableDateInputs: false,
44514
44619
  dragSelectionEnabled: true,
44515
44620
  fixedHeight: false,
44621
+ calendarFocus: 'forwards',
44622
+ preventSnapRefocus: false,
44516
44623
  ariaLabels: {}
44517
44624
  };
44518
44625
  Calendar.propTypes = {
@@ -44566,6 +44673,8 @@ Calendar.propTypes = {
44566
44673
  editableDateInputs: _propTypes.default.bool,
44567
44674
  dragSelectionEnabled: _propTypes.default.bool,
44568
44675
  fixedHeight: _propTypes.default.bool,
44676
+ calendarFocus: _propTypes.default.string,
44677
+ preventSnapRefocus: _propTypes.default.bool,
44569
44678
  ariaLabels: accessibility.ariaLabelsShape
44570
44679
  };
44571
44680
  var _default = Calendar;
@@ -46570,6 +46679,43 @@ var themeWeb = createTheme({
46570
46679
  borderRight: 0,
46571
46680
  },
46572
46681
  },
46682
+ MuiAccordion: {
46683
+ root: {
46684
+ '&.MuiPaper-root': {
46685
+ backgroundColor: 'white',
46686
+ },
46687
+ '&:before': {
46688
+ backgroundColor: "" + pallettes$1.brand.utility.border,
46689
+ },
46690
+ '&$expanded': {
46691
+ margin: 0,
46692
+ },
46693
+ },
46694
+ },
46695
+ MuiAccordionSummary: {
46696
+ root: {
46697
+ padding: '0 16px',
46698
+ minHeight: 48,
46699
+ '$expanded &': {
46700
+ minHeight: 48,
46701
+ },
46702
+ },
46703
+ content: {
46704
+ margin: '4px 0',
46705
+ '$expanded &': {
46706
+ margin: '4px 0',
46707
+ },
46708
+ },
46709
+ expandIcon: {
46710
+ padding: '6px 12px',
46711
+ transition: 'all 0.3s ease-out',
46712
+ },
46713
+ },
46714
+ MuiAccordionDetails: {
46715
+ root: {
46716
+ padding: 0,
46717
+ },
46718
+ },
46573
46719
  MuiAppBar: {
46574
46720
  root: {
46575
46721
  color: common.brand.neutral.white,
@@ -47654,15 +47800,15 @@ var themeWeb = createTheme({
47654
47800
  minHeight: 50,
47655
47801
  paddingLeft: 16,
47656
47802
  paddingRight: 16,
47657
- '& .gds-header-toolbar-title': {
47658
- display: 'none',
47659
- },
47660
47803
  '& .gds-buttons-w-divider': {
47661
- borderLeft: 'none',
47804
+ paddingLeft: 16,
47662
47805
  },
47663
47806
  '& .MuiInputBase-root, & .MuiButtonBase-root': {
47664
47807
  maxHeight: 32,
47665
47808
  },
47809
+ '&.with-title': {
47810
+ padding: 16,
47811
+ }
47666
47812
  },
47667
47813
  },
47668
47814
  },
@@ -47826,13 +47972,18 @@ var themeDesktop = createTheme({
47826
47972
  '&.MuiPaper-root': {
47827
47973
  backgroundColor: 'white',
47828
47974
  },
47975
+ '&:before': {
47976
+ backgroundColor: "" + pallettes.brand.utility.border,
47977
+ },
47978
+ '&$expanded': {
47979
+ margin: 0,
47980
+ }
47829
47981
  },
47830
47982
  },
47831
47983
  MuiAccordionSummary: {
47832
47984
  root: {
47833
47985
  padding: '0 10px',
47834
47986
  minHeight: 32,
47835
- borderBottom: "1px solid " + common.brand.utility.border,
47836
47987
  '$expanded &': {
47837
47988
  minHeight: 32,
47838
47989
  },
@@ -49004,5 +49155,5 @@ function ReportingIcon(props) {
49004
49155
  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" })));
49005
49156
  }
49006
49157
 
49007
- 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 };
49158
+ 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 };
49008
49159
  //# sourceMappingURL=index.esm.js.map