@galaxy-ds/core 1.1.43 → 1.1.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Autocomplete/Autocomplete.types.d.ts +1 -0
- package/dist/Box/Box.types.d.ts +1 -0
- package/dist/Button/Button.types.d.ts +1 -0
- package/dist/DrawerMenu/DrawerMenu.types.d.ts +1 -0
- package/dist/HeaderToolbar/HeaderToolbar.d.ts +1 -1
- package/dist/HeaderToolbar/HeaderToolbarProps.types.d.ts +5 -0
- package/dist/Icon/Icon.d.ts +4 -0
- package/dist/Icon/IconProps.types.d.ts +4 -0
- package/dist/Icons/Access.d.ts +1 -0
- package/dist/Icons/AccountingIcon.d.ts +1 -0
- package/dist/Icons/AssignCurvedIcon.d.ts +1 -0
- package/dist/Icons/AvatarBusiness.d.ts +1 -0
- package/dist/Icons/AvatarCompany.d.ts +1 -0
- package/dist/Icons/AvatarGovernment.d.ts +1 -0
- package/dist/Icons/AvatarPeople.d.ts +1 -0
- package/dist/Icons/AvatarPerson.d.ts +1 -0
- package/dist/Icons/AvatarTrust.d.ts +1 -0
- package/dist/Icons/ButtonCaret.d.ts +1 -0
- package/dist/Icons/ButtonFilter.d.ts +1 -0
- package/dist/Icons/Calendar.d.ts +1 -0
- package/dist/Icons/ChevronDown.d.ts +1 -0
- package/dist/Icons/Cross.d.ts +1 -0
- package/dist/Icons/CrossIcon16.d.ts +1 -0
- package/dist/Icons/Dialog/Alert.d.ts +1 -0
- package/dist/Icons/Dialog/Info.d.ts +1 -0
- package/dist/Icons/Dialog/InfoCircle.d.ts +1 -0
- package/dist/Icons/Dialog/LeapLogo.d.ts +1 -0
- package/dist/Icons/Dialog/Warning.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeAppointment.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeAppointmentCriticalDate.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeAudio.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeClausePrecedent.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeComment.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeCriticalDate.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeDeadline.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeDefault.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeEmail.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeEmailDraft.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeEmailReceived.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeEmailRecieved.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeEmailSent.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeExcel.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeFax.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeFileNote.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeFolder.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeImage.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeInfotrack.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeInvoiceRequest.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeInvoiceRequests.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeLetter.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeMemo.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypePdf.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypePowerpoint.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeSMS.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeSignatureDeclined.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeSignaturePending.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeSignatureRequest.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeSignatureSigned.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeTasks.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeTrust.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeVideo.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeWord.d.ts +1 -0
- package/dist/Icons/Doctype/DocTypeZip.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeAppointment16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeAppointmentCriticalDate16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeAudio16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeClausePrecedent16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeComment16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeCriticalDate16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeDeadline16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeDefault16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeEmail16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeEmailDraft16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeEmailReceived16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeEmailSent16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeExcel16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeFax16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeFileNote16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeFolder16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeImage16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeInfotrack16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeInvoiceRequest16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeInvoiceRequests16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeLetter16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeMemo16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypePdf16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypePowerpoint16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeSMS16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeSignatureDeclined16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeSignaturePending16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeSignatureRequest16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeSignatureSigned16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeTasks16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeTrust16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeVideo16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeWord16.d.ts +1 -0
- package/dist/Icons/Doctype16/DocTypeZip16.d.ts +1 -0
- package/dist/Icons/EmailSentIcon.d.ts +1 -0
- package/dist/Icons/HomeIcon.d.ts +1 -0
- package/dist/Icons/InsertLink.d.ts +1 -0
- package/dist/Icons/Loader.d.ts +1 -0
- package/dist/Icons/Logos/LawconnectIcon.d.ts +1 -0
- package/dist/Icons/Logos/LeapLogo.d.ts +1 -0
- package/dist/Icons/Logos/poweredByLawconnect.d.ts +1 -0
- package/dist/Icons/MenuIcon.d.ts +1 -0
- package/dist/Icons/MoreVerticalIcon.d.ts +1 -0
- package/dist/Icons/NewAppointment.d.ts +1 -0
- package/dist/Icons/Power.d.ts +1 -0
- package/dist/Icons/Preview.d.ts +1 -0
- package/dist/Icons/ReportingIcon.d.ts +1 -0
- package/dist/Icons/ResponseIcon.d.ts +1 -0
- package/dist/Icons/RevokeAccess.d.ts +1 -0
- package/dist/Icons/Search.d.ts +1 -0
- package/dist/Icons/SelectFilterEmpty.d.ts +1 -0
- package/dist/Icons/SelectFilterFilled.d.ts +1 -0
- package/dist/Icons/Spinner.d.ts +3 -0
- package/dist/Icons/Tick.d.ts +1 -0
- package/dist/Icons/UserLink.d.ts +1 -0
- package/dist/Icons/UserLock.d.ts +1 -0
- package/dist/Icons/Users.d.ts +1 -0
- package/dist/List/List.types.d.ts +1 -0
- package/dist/ListItemHoverContent/ListItemHoverContent.types.d.ts +1 -0
- package/dist/ListSubheader/ListSubheader.types.d.ts +1 -0
- package/dist/Loader/Loader.types.d.ts +1 -0
- package/dist/MenuItem/MenuItem.types.d.ts +1 -0
- package/dist/MenuItemSystem/MenuItemSystem.types.d.ts +1 -0
- package/dist/TabListItem/TabListItem.types.d.ts +1 -0
- package/dist/Table/Table.types.d.ts +1 -0
- package/dist/TableBody/TableBody.types.d.ts +1 -0
- package/dist/TableCell/TableCell.types.d.ts +1 -0
- package/dist/TableCellIcon/TableCellIcon.types.d.ts +1 -0
- package/dist/TableFooter/TableFooter.types.d.ts +1 -0
- package/dist/TableHead/TableHead.types.d.ts +1 -0
- package/dist/TableRow/TableRow.types.d.ts +1 -0
- package/dist/Tabs/Tabs.d.ts +2 -2
- package/dist/Tabs/Tabs.types.d.ts +2 -3
- package/dist/ToolbarButton/ToolbarButtonProps.types.d.ts +2 -0
- package/dist/Tooltip/Tooltip.types.d.ts +2 -10
- package/dist/Typography/Typography.types.d.ts +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.js +437 -302
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1403 -1269
- package/dist/index.js.map +1 -1
- package/dist/package.json +2 -1
- 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
|
|
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 +=
|
|
3847
|
-
result += indentStr(prop + ":
|
|
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 +=
|
|
3858
|
-
result += indentStr(_prop + ":
|
|
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 +=
|
|
3869
|
-
result += indentStr(_prop2 + ":
|
|
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 = "
|
|
3879
|
-
return indentStr(selector + "
|
|
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(
|
|
4058
|
-
if (
|
|
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(
|
|
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 + " {
|
|
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 = "
|
|
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
|
|
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
|
-
|
|
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 +=
|
|
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,
|
|
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];
|
|
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];
|
|
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
|
|
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 !==
|
|
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(
|
|
4672
|
+
plugins.onProcessStyle(rule.style, rule, sheet); // Update and add props.
|
|
4686
4673
|
|
|
4687
|
-
for (var prop in
|
|
4688
|
-
var nextValue =
|
|
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
|
-
|
|
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 =
|
|
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
|
-
|
|
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 +=
|
|
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 =
|
|
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
|
|
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 +=
|
|
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
|
|
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
|
|
5369
|
+
var registry = sheets.registry;
|
|
5379
5370
|
|
|
5380
|
-
if (registry
|
|
5371
|
+
if (registry.length > 0) {
|
|
5381
5372
|
// Try to insert before the next higher sheet.
|
|
5382
|
-
var sheet = findHigherSheet(registry
|
|
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
|
|
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
|
-
|
|
5461
|
-
c.insertRule(rule, index);
|
|
5450
|
+
container.insertRule(rule, index);
|
|
5462
5451
|
} // Keyframes rule.
|
|
5463
5452
|
else if ('appendRule' in container) {
|
|
5464
|
-
|
|
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)
|
|
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.
|
|
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 =
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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;
|
|
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
|
-
}
|
|
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
|
|
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)
|
|
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
|
|
6514
|
-
newObj[
|
|
6515
|
-
newObj[
|
|
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 =
|
|
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 =
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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",
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
34481
|
+
var useStyles$f = makeStyles(createStyles({
|
|
34532
34482
|
root: {
|
|
34533
34483
|
flexGrow: 1,
|
|
34534
34484
|
backgroundColor: common.brand.background.tabs,
|
|
34535
|
-
|
|
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
|
-
|
|
34542
|
-
borderBottom:
|
|
34491
|
+
"&.MuiTabs-vertical": {
|
|
34492
|
+
borderBottom: "none",
|
|
34543
34493
|
},
|
|
34544
34494
|
},
|
|
34545
34495
|
indicator: {
|
|
34546
|
-
display:
|
|
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 ?
|
|
34551
|
-
var classes = useStyles$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
34678
|
+
var useStyles$c = makeStyles({
|
|
34729
34679
|
root: {},
|
|
34730
34680
|
});
|
|
34731
34681
|
var Toolbar = function (props) {
|
|
34732
|
-
var classes = useStyles$
|
|
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
|
-
|
|
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$
|
|
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$
|
|
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,26 @@ var Dialog = function (props) {
|
|
|
35707
35658
|
React__default.createElement(DialogActions$1, null, children)))));
|
|
35708
35659
|
};
|
|
35709
35660
|
|
|
35661
|
+
var useStyles$a = makeStyles(function () {
|
|
35662
|
+
return createStyles({
|
|
35663
|
+
bgWrapper: function (props) { return ({
|
|
35664
|
+
background: "url(" + props.bgImageURL + ") no-repeat",
|
|
35665
|
+
backgroundSize: props.bgSize,
|
|
35666
|
+
backgroundPosition: props.bgPosition + " center",
|
|
35667
|
+
backgroundColor: props.bgColor ? props.bgColor + " !important" : '',
|
|
35668
|
+
}); },
|
|
35669
|
+
});
|
|
35670
|
+
});
|
|
35710
35671
|
var HeaderToolbar = function (_a) {
|
|
35711
|
-
var title = _a.title, left = _a.left, right = _a.right; __rest(_a, ["title", "left", "right"]);
|
|
35712
|
-
|
|
35713
|
-
|
|
35714
|
-
|
|
35715
|
-
|
|
35716
|
-
|
|
35672
|
+
var title = _a.title, left = _a.left, right = _a.right, bgColor = _a.bgColor, bgImageURL = _a.bgImageURL, _b = _a.bgPosition, bgPosition = _b === void 0 ? 'center' : _b, bgSize = _a.bgSize; __rest(_a, ["title", "left", "right", "bgColor", "bgImageURL", "bgPosition", "bgSize"]);
|
|
35673
|
+
var classes = useStyles$a({ bgColor: bgColor, bgImageURL: bgImageURL, bgPosition: bgPosition, bgSize: bgSize });
|
|
35674
|
+
return (React__default.createElement(Toolbar$2, { className: clsx('gds-header-toolbar', classes.bgWrapper) },
|
|
35675
|
+
React__default.createElement(Box$2, { display: "flex", justifyContent: "space-between", style: { width: '100%' } },
|
|
35676
|
+
React__default.createElement(Box$2, { display: "flex", flexDirection: "column", justifyContent: "stretch" },
|
|
35677
|
+
title && (React__default.createElement(Box$2, { className: "gds-header-toolbar-title", mb: 3 },
|
|
35678
|
+
React__default.createElement(Typography, { variant: "h1", color: "primary" }, title))),
|
|
35717
35679
|
left),
|
|
35718
|
-
right && React__default.createElement(Box$2, { className:
|
|
35680
|
+
right && (React__default.createElement(Box$2, { className: "gds-buttons-w-divider", borderLeft: "1px solid " + common.brand.utility.border }, right)))));
|
|
35719
35681
|
};
|
|
35720
35682
|
|
|
35721
35683
|
function LoaderIcon(props) {
|
|
@@ -35728,6 +35690,28 @@ function LoaderIcon(props) {
|
|
|
35728
35690
|
React__default.createElement("animate", { attributeName: "opacity", values: "1;.2; 1", begin: ".6", dur: "1.2s", calcMode: "paced", repeatCount: "indefinite" }))));
|
|
35729
35691
|
}
|
|
35730
35692
|
|
|
35693
|
+
function SpinnerIcon(props) {
|
|
35694
|
+
return (React__default.createElement(SvgIcon$1, __assign$1({}, props, { viewBox: "0 0 120 120" }),
|
|
35695
|
+
React__default.createElement("g", { transform: "rotate(-90 43 -17)" },
|
|
35696
|
+
React__default.createElement("circle", { cx: "0", cy: "0", r: "8" },
|
|
35697
|
+
React__default.createElement("animateTransform", { id: "b", attributeName: "transform", dur: "0.2s", type: "translate", values: "0 0; 14 0; 0 0", begin: "0;a.end" }))),
|
|
35698
|
+
React__default.createElement("g", { transform: "rotate(-30 124.962 -145.406)" },
|
|
35699
|
+
React__default.createElement("circle", { cx: "0", cy: "0", r: "8" },
|
|
35700
|
+
React__default.createElement("animateTransform", { id: "c", attributeName: "transform", dur: "0.2s", type: "translate", values: "0 0; 14 0; 0 0", begin: "b.end" }))),
|
|
35701
|
+
React__default.createElement("g", { transform: "rotate(30 -98.962 205.406)" },
|
|
35702
|
+
React__default.createElement("circle", { cx: "0", cy: "0", r: "8" },
|
|
35703
|
+
React__default.createElement("animateTransform", { id: "d", attributeName: "transform", dur: "0.2s", type: "translate", values: "0 0; 14 0; 0 0", begin: "c.end" }))),
|
|
35704
|
+
React__default.createElement("g", { transform: "rotate(90 -17 77)" },
|
|
35705
|
+
React__default.createElement("circle", { cx: "0", cy: "0", r: "8" },
|
|
35706
|
+
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" }))),
|
|
35707
|
+
React__default.createElement("g", { transform: "rotate(150 4.962 42.594)" },
|
|
35708
|
+
React__default.createElement("circle", { cx: "0", cy: "0", r: "8" },
|
|
35709
|
+
React__default.createElement("animateTransform", { id: "f", attributeName: "transform", dur: "0.2s", type: "translate", values: "0 0; 14 0; 0 0", begin: "e.end" }))),
|
|
35710
|
+
React__default.createElement("g", { transform: "rotate(-150 21.038 17.406)" },
|
|
35711
|
+
React__default.createElement("circle", { cx: "0", cy: "0", r: "8" },
|
|
35712
|
+
React__default.createElement("animateTransform", { id: "a", attributeName: "transform", dur: "0.2s", type: "translate", values: "0 0; 14 0; 0 0", begin: "f.end" })))));
|
|
35713
|
+
}
|
|
35714
|
+
|
|
35731
35715
|
var useStyles$9 = makeStyles(function (theme) { return ({
|
|
35732
35716
|
root: {
|
|
35733
35717
|
zIndex: theme.zIndex.drawer + 1,
|
|
@@ -35738,7 +35722,7 @@ var useStyles$9 = makeStyles(function (theme) { return ({
|
|
|
35738
35722
|
}
|
|
35739
35723
|
}); });
|
|
35740
35724
|
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"]);
|
|
35725
|
+
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
35726
|
var classes = useStyles$9({ position: position });
|
|
35743
35727
|
var variantProp;
|
|
35744
35728
|
if (transparent) {
|
|
@@ -35765,8 +35749,7 @@ var Loader = function (props) {
|
|
|
35765
35749
|
variantProp = "customBackdropLight";
|
|
35766
35750
|
}
|
|
35767
35751
|
}
|
|
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" })));
|
|
35752
|
+
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
35753
|
};
|
|
35771
35754
|
|
|
35772
35755
|
var Grid = function (_a) {
|
|
@@ -36449,6 +36432,48 @@ var isSameDay$1 = /*#__PURE__*/Object.freeze({
|
|
|
36449
36432
|
'default': isSameDay
|
|
36450
36433
|
});
|
|
36451
36434
|
|
|
36435
|
+
/**
|
|
36436
|
+
* @name isDate
|
|
36437
|
+
* @category Common Helpers
|
|
36438
|
+
* @summary Is the given value a date?
|
|
36439
|
+
*
|
|
36440
|
+
* @description
|
|
36441
|
+
* Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
|
|
36442
|
+
*
|
|
36443
|
+
* ### v2.0.0 breaking changes:
|
|
36444
|
+
*
|
|
36445
|
+
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
36446
|
+
*
|
|
36447
|
+
* @param {*} value - the value to check
|
|
36448
|
+
* @returns {boolean} true if the given value is a date
|
|
36449
|
+
* @throws {TypeError} 1 arguments required
|
|
36450
|
+
*
|
|
36451
|
+
* @example
|
|
36452
|
+
* // For a valid date:
|
|
36453
|
+
* const result = isDate(new Date())
|
|
36454
|
+
* //=> true
|
|
36455
|
+
*
|
|
36456
|
+
* @example
|
|
36457
|
+
* // For an invalid date:
|
|
36458
|
+
* const result = isDate(new Date(NaN))
|
|
36459
|
+
* //=> true
|
|
36460
|
+
*
|
|
36461
|
+
* @example
|
|
36462
|
+
* // For some value:
|
|
36463
|
+
* const result = isDate('2014-02-31')
|
|
36464
|
+
* //=> false
|
|
36465
|
+
*
|
|
36466
|
+
* @example
|
|
36467
|
+
* // For an object:
|
|
36468
|
+
* const result = isDate({})
|
|
36469
|
+
* //=> false
|
|
36470
|
+
*/
|
|
36471
|
+
|
|
36472
|
+
function isDate(value) {
|
|
36473
|
+
requiredArgs(1, arguments);
|
|
36474
|
+
return value instanceof Date || typeof value === 'object' && Object.prototype.toString.call(value) === '[object Date]';
|
|
36475
|
+
}
|
|
36476
|
+
|
|
36452
36477
|
/**
|
|
36453
36478
|
* @name isValid
|
|
36454
36479
|
* @category Common Helpers
|
|
@@ -36493,24 +36518,29 @@ var isSameDay$1 = /*#__PURE__*/Object.freeze({
|
|
|
36493
36518
|
*
|
|
36494
36519
|
* @example
|
|
36495
36520
|
* // For the valid date:
|
|
36496
|
-
*
|
|
36521
|
+
* const result = isValid(new Date(2014, 1, 31))
|
|
36497
36522
|
* //=> true
|
|
36498
36523
|
*
|
|
36499
36524
|
* @example
|
|
36500
36525
|
* // For the value, convertable into a date:
|
|
36501
|
-
*
|
|
36526
|
+
* const result = isValid(1393804800000)
|
|
36502
36527
|
* //=> true
|
|
36503
36528
|
*
|
|
36504
36529
|
* @example
|
|
36505
36530
|
* // For the invalid date:
|
|
36506
|
-
*
|
|
36531
|
+
* const result = isValid(new Date(''))
|
|
36507
36532
|
* //=> false
|
|
36508
36533
|
*/
|
|
36509
36534
|
|
|
36510
36535
|
function isValid(dirtyDate) {
|
|
36511
36536
|
requiredArgs(1, arguments);
|
|
36537
|
+
|
|
36538
|
+
if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
|
|
36539
|
+
return false;
|
|
36540
|
+
}
|
|
36541
|
+
|
|
36512
36542
|
var date = toDate(dirtyDate);
|
|
36513
|
-
return !isNaN(date);
|
|
36543
|
+
return !isNaN(Number(date));
|
|
36514
36544
|
}
|
|
36515
36545
|
|
|
36516
36546
|
var isValid$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -36581,20 +36611,21 @@ var formatDistanceLocale = {
|
|
|
36581
36611
|
other: 'almost {{count}} years'
|
|
36582
36612
|
}
|
|
36583
36613
|
};
|
|
36584
|
-
|
|
36585
|
-
|
|
36614
|
+
|
|
36615
|
+
var formatDistance = function (token, count, options) {
|
|
36586
36616
|
var result;
|
|
36617
|
+
var tokenValue = formatDistanceLocale[token];
|
|
36587
36618
|
|
|
36588
|
-
if (typeof
|
|
36589
|
-
result =
|
|
36619
|
+
if (typeof tokenValue === 'string') {
|
|
36620
|
+
result = tokenValue;
|
|
36590
36621
|
} else if (count === 1) {
|
|
36591
|
-
result =
|
|
36622
|
+
result = tokenValue.one;
|
|
36592
36623
|
} else {
|
|
36593
|
-
result =
|
|
36624
|
+
result = tokenValue.other.replace('{{count}}', count.toString());
|
|
36594
36625
|
}
|
|
36595
36626
|
|
|
36596
|
-
if (options.addSuffix) {
|
|
36597
|
-
if (options.comparison > 0) {
|
|
36627
|
+
if (options !== null && options !== void 0 && options.addSuffix) {
|
|
36628
|
+
if (options.comparison && options.comparison > 0) {
|
|
36598
36629
|
return 'in ' + result;
|
|
36599
36630
|
} else {
|
|
36600
36631
|
return result + ' ago';
|
|
@@ -36602,7 +36633,9 @@ function formatDistance(token, count, options) {
|
|
|
36602
36633
|
}
|
|
36603
36634
|
|
|
36604
36635
|
return result;
|
|
36605
|
-
}
|
|
36636
|
+
};
|
|
36637
|
+
|
|
36638
|
+
var formatDistance$1 = formatDistance;
|
|
36606
36639
|
|
|
36607
36640
|
function buildFormatLongFn(args) {
|
|
36608
36641
|
return function () {
|
|
@@ -36656,9 +36689,12 @@ var formatRelativeLocale = {
|
|
|
36656
36689
|
nextWeek: "eeee 'at' p",
|
|
36657
36690
|
other: 'P'
|
|
36658
36691
|
};
|
|
36659
|
-
|
|
36692
|
+
|
|
36693
|
+
var formatRelative = function (token, _date, _baseDate, _options) {
|
|
36660
36694
|
return formatRelativeLocale[token];
|
|
36661
|
-
}
|
|
36695
|
+
};
|
|
36696
|
+
|
|
36697
|
+
var formatRelative$1 = formatRelative;
|
|
36662
36698
|
|
|
36663
36699
|
function buildLocalizeFn(args) {
|
|
36664
36700
|
return function (dirtyIndex, dirtyOptions) {
|
|
@@ -36774,16 +36810,13 @@ var formattingDayPeriodValues = {
|
|
|
36774
36810
|
}
|
|
36775
36811
|
};
|
|
36776
36812
|
|
|
36777
|
-
function
|
|
36813
|
+
var ordinalNumber = function (dirtyNumber, _options) {
|
|
36778
36814
|
var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
|
|
36779
36815
|
// if they are different for different grammatical genders,
|
|
36780
|
-
// use `options.unit
|
|
36816
|
+
// use `options.unit`.
|
|
36781
36817
|
//
|
|
36782
|
-
//
|
|
36783
|
-
//
|
|
36784
|
-
//
|
|
36785
|
-
// where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
|
|
36786
|
-
// 'day', 'hour', 'minute', 'second'
|
|
36818
|
+
// `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
|
|
36819
|
+
// 'day', 'hour', 'minute', 'second'.
|
|
36787
36820
|
|
|
36788
36821
|
var rem100 = number % 100;
|
|
36789
36822
|
|
|
@@ -36801,7 +36834,7 @@ function ordinalNumber(dirtyNumber, _dirtyOptions) {
|
|
|
36801
36834
|
}
|
|
36802
36835
|
|
|
36803
36836
|
return number + 'th';
|
|
36804
|
-
}
|
|
36837
|
+
};
|
|
36805
36838
|
|
|
36806
36839
|
var localize = {
|
|
36807
36840
|
ordinalNumber: ordinalNumber,
|
|
@@ -36813,7 +36846,7 @@ var localize = {
|
|
|
36813
36846
|
values: quarterValues,
|
|
36814
36847
|
defaultWidth: 'wide',
|
|
36815
36848
|
argumentCallback: function (quarter) {
|
|
36816
|
-
return
|
|
36849
|
+
return quarter - 1;
|
|
36817
36850
|
}
|
|
36818
36851
|
}),
|
|
36819
36852
|
month: buildLocalizeFn({
|
|
@@ -36833,24 +36866,6 @@ var localize = {
|
|
|
36833
36866
|
};
|
|
36834
36867
|
var localize$1 = localize;
|
|
36835
36868
|
|
|
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
36869
|
function buildMatchFn(args) {
|
|
36855
36870
|
return function (string) {
|
|
36856
36871
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -36900,6 +36915,24 @@ function findIndex(array, predicate) {
|
|
|
36900
36915
|
return undefined;
|
|
36901
36916
|
}
|
|
36902
36917
|
|
|
36918
|
+
function buildMatchPatternFn(args) {
|
|
36919
|
+
return function (string) {
|
|
36920
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
36921
|
+
var matchResult = string.match(args.matchPattern);
|
|
36922
|
+
if (!matchResult) return null;
|
|
36923
|
+
var matchedString = matchResult[0];
|
|
36924
|
+
var parseResult = string.match(args.parsePattern);
|
|
36925
|
+
if (!parseResult) return null;
|
|
36926
|
+
var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
|
|
36927
|
+
value = options.valueCallback ? options.valueCallback(value) : value;
|
|
36928
|
+
var rest = string.slice(matchedString.length);
|
|
36929
|
+
return {
|
|
36930
|
+
value: value,
|
|
36931
|
+
rest: rest
|
|
36932
|
+
};
|
|
36933
|
+
};
|
|
36934
|
+
}
|
|
36935
|
+
|
|
36903
36936
|
var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
|
|
36904
36937
|
var parseOrdinalNumberPattern = /\d+/i;
|
|
36905
36938
|
var matchEraPatterns = {
|
|
@@ -37006,12 +37039,11 @@ var match$1 = match;
|
|
|
37006
37039
|
* @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
|
|
37007
37040
|
* @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
|
|
37008
37041
|
*/
|
|
37009
|
-
|
|
37010
37042
|
var locale = {
|
|
37011
37043
|
code: 'en-US',
|
|
37012
|
-
formatDistance: formatDistance,
|
|
37044
|
+
formatDistance: formatDistance$1,
|
|
37013
37045
|
formatLong: formatLong$1,
|
|
37014
|
-
formatRelative: formatRelative,
|
|
37046
|
+
formatRelative: formatRelative$1,
|
|
37015
37047
|
localize: localize$1,
|
|
37016
37048
|
match: match$1,
|
|
37017
37049
|
options: {
|
|
@@ -38458,28 +38490,28 @@ var unescapedLatinCharacterRegExp$1 = /[a-zA-Z]/;
|
|
|
38458
38490
|
* | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
|
|
38459
38491
|
* | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
|
|
38460
38492
|
* | | EEEEE | M, T, W, T, F, S, S | |
|
|
38461
|
-
* | | EEEEEE | Mo, Tu, We, Th, Fr,
|
|
38493
|
+
* | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
38462
38494
|
* | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
|
|
38463
38495
|
* | | io | 1st, 2nd, ..., 7th | 7 |
|
|
38464
38496
|
* | | ii | 01, 02, ..., 07 | 7 |
|
|
38465
38497
|
* | | iii | Mon, Tue, Wed, ..., Sun | 7 |
|
|
38466
38498
|
* | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
|
|
38467
38499
|
* | | iiiii | M, T, W, T, F, S, S | 7 |
|
|
38468
|
-
* | | iiiiii | Mo, Tu, We, Th, Fr,
|
|
38500
|
+
* | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
|
|
38469
38501
|
* | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
|
|
38470
38502
|
* | | eo | 2nd, 3rd, ..., 1st | 7 |
|
|
38471
38503
|
* | | ee | 02, 03, ..., 01 | |
|
|
38472
38504
|
* | | eee | Mon, Tue, Wed, ..., Sun | |
|
|
38473
38505
|
* | | eeee | Monday, Tuesday, ..., Sunday | 2 |
|
|
38474
38506
|
* | | eeeee | M, T, W, T, F, S, S | |
|
|
38475
|
-
* | | eeeeee | Mo, Tu, We, Th, Fr,
|
|
38507
|
+
* | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
38476
38508
|
* | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
|
|
38477
38509
|
* | | co | 2nd, 3rd, ..., 1st | 7 |
|
|
38478
38510
|
* | | cc | 02, 03, ..., 01 | |
|
|
38479
38511
|
* | | ccc | Mon, Tue, Wed, ..., Sun | |
|
|
38480
38512
|
* | | cccc | Monday, Tuesday, ..., Sunday | 2 |
|
|
38481
38513
|
* | | ccccc | M, T, W, T, F, S, S | |
|
|
38482
|
-
* | | cccccc | Mo, Tu, We, Th, Fr,
|
|
38514
|
+
* | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
38483
38515
|
* | AM, PM | a..aa | AM, PM | |
|
|
38484
38516
|
* | | aaa | am, pm | |
|
|
38485
38517
|
* | | aaaa | a.m., p.m. | 2 |
|
|
@@ -41737,28 +41769,28 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
|
41737
41769
|
* | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |
|
|
41738
41770
|
* | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
|
|
41739
41771
|
* | | | EEEEE | M, T, W, T, F, S, S | |
|
|
41740
|
-
* | | | EEEEEE | Mo, Tu, We, Th, Fr,
|
|
41772
|
+
* | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
41741
41773
|
* | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |
|
|
41742
41774
|
* | | | io | 1st, 2nd, ..., 7th | 5 |
|
|
41743
41775
|
* | | | ii | 01, 02, ..., 07 | 5 |
|
|
41744
41776
|
* | | | iii | Mon, Tue, Wed, ..., Sun | 5 |
|
|
41745
41777
|
* | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |
|
|
41746
41778
|
* | | | iiiii | M, T, W, T, F, S, S | 5 |
|
|
41747
|
-
* | | | iiiiii | Mo, Tu, We, Th, Fr,
|
|
41779
|
+
* | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |
|
|
41748
41780
|
* | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |
|
|
41749
41781
|
* | | | eo | 2nd, 3rd, ..., 1st | 5 |
|
|
41750
41782
|
* | | | ee | 02, 03, ..., 01 | |
|
|
41751
41783
|
* | | | eee | Mon, Tue, Wed, ..., Sun | |
|
|
41752
41784
|
* | | | eeee | Monday, Tuesday, ..., Sunday | 2 |
|
|
41753
41785
|
* | | | eeeee | M, T, W, T, F, S, S | |
|
|
41754
|
-
* | | | eeeeee | Mo, Tu, We, Th, Fr,
|
|
41786
|
+
* | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
41755
41787
|
* | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |
|
|
41756
41788
|
* | | | co | 2nd, 3rd, ..., 1st | 5 |
|
|
41757
41789
|
* | | | cc | 02, 03, ..., 01 | |
|
|
41758
41790
|
* | | | ccc | Mon, Tue, Wed, ..., Sun | |
|
|
41759
41791
|
* | | | cccc | Monday, Tuesday, ..., Sunday | 2 |
|
|
41760
41792
|
* | | | ccccc | M, T, W, T, F, S, S | |
|
|
41761
|
-
* | | | cccccc | Mo, Tu, We, Th, Fr,
|
|
41793
|
+
* | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
41762
41794
|
* | AM, PM | 80 | a..aaa | AM, PM | |
|
|
41763
41795
|
* | | | aaaa | a.m., p.m. | 2 |
|
|
41764
41796
|
* | | | aaaaa | a, p | |
|
|
@@ -43655,6 +43687,40 @@ var addYears$1 = /*#__PURE__*/Object.freeze({
|
|
|
43655
43687
|
'default': addYears
|
|
43656
43688
|
});
|
|
43657
43689
|
|
|
43690
|
+
/**
|
|
43691
|
+
* @name subMonths
|
|
43692
|
+
* @category Month Helpers
|
|
43693
|
+
* @summary Subtract the specified number of months from the given date.
|
|
43694
|
+
*
|
|
43695
|
+
* @description
|
|
43696
|
+
* Subtract the specified number of months from the given date.
|
|
43697
|
+
*
|
|
43698
|
+
* ### v2.0.0 breaking changes:
|
|
43699
|
+
*
|
|
43700
|
+
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
43701
|
+
*
|
|
43702
|
+
* @param {Date|Number} date - the date to be changed
|
|
43703
|
+
* @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`.
|
|
43704
|
+
* @returns {Date} the new date with the months subtracted
|
|
43705
|
+
* @throws {TypeError} 2 arguments required
|
|
43706
|
+
*
|
|
43707
|
+
* @example
|
|
43708
|
+
* // Subtract 5 months from 1 February 2015:
|
|
43709
|
+
* const result = subMonths(new Date(2015, 1, 1), 5)
|
|
43710
|
+
* //=> Mon Sep 01 2014 00:00:00
|
|
43711
|
+
*/
|
|
43712
|
+
|
|
43713
|
+
function subMonths(dirtyDate, dirtyAmount) {
|
|
43714
|
+
requiredArgs(2, arguments);
|
|
43715
|
+
var amount = toInteger(dirtyAmount);
|
|
43716
|
+
return addMonths(dirtyDate, -amount);
|
|
43717
|
+
}
|
|
43718
|
+
|
|
43719
|
+
var subMonths$1 = /*#__PURE__*/Object.freeze({
|
|
43720
|
+
__proto__: null,
|
|
43721
|
+
'default': subMonths
|
|
43722
|
+
});
|
|
43723
|
+
|
|
43658
43724
|
var styles = createCommonjsModule(function (module, exports) {
|
|
43659
43725
|
|
|
43660
43726
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -43758,9 +43824,11 @@ var require$$15 = /*@__PURE__*/getAugmentedNamespace(setYear$1);
|
|
|
43758
43824
|
|
|
43759
43825
|
var require$$16 = /*@__PURE__*/getAugmentedNamespace(addYears$1);
|
|
43760
43826
|
|
|
43827
|
+
var require$$22 = /*@__PURE__*/getAugmentedNamespace(subMonths$1);
|
|
43828
|
+
|
|
43761
43829
|
var require$$4 = /*@__PURE__*/getAugmentedNamespace(addMonths$1);
|
|
43762
43830
|
|
|
43763
|
-
var require$$
|
|
43831
|
+
var require$$24 = /*@__PURE__*/getAugmentedNamespace(enUS);
|
|
43764
43832
|
|
|
43765
43833
|
var Calendar_1 = createCommonjsModule(function (module, exports) {
|
|
43766
43834
|
|
|
@@ -43821,9 +43889,11 @@ var _eachDayOfInterval = _interopRequireDefault(require$$20);
|
|
|
43821
43889
|
|
|
43822
43890
|
var _format = _interopRequireDefault(require$$21);
|
|
43823
43891
|
|
|
43892
|
+
var _subMonths = _interopRequireDefault(require$$22);
|
|
43893
|
+
|
|
43824
43894
|
var _addMonths = _interopRequireDefault(require$$4);
|
|
43825
43895
|
|
|
43826
|
-
var _enUS = _interopRequireDefault(require$$
|
|
43896
|
+
var _enUS = _interopRequireDefault(require$$24);
|
|
43827
43897
|
|
|
43828
43898
|
var _styles = _interopRequireDefault(styles);
|
|
43829
43899
|
|
|
@@ -43892,6 +43962,16 @@ var Calendar = /*#__PURE__*/function (_PureComponent) {
|
|
|
43892
43962
|
var preventUnnecessary = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
43893
43963
|
|
|
43894
43964
|
if (!props.scroll.enabled) {
|
|
43965
|
+
if (preventUnnecessary && props.preventSnapRefocus) {
|
|
43966
|
+
var focusedDateDiff = (0, _differenceInCalendarMonths.default)(date, _this.state.focusedDate);
|
|
43967
|
+
var isAllowedForward = props.calendarFocus === 'forwards' && focusedDateDiff >= 0;
|
|
43968
|
+
var isAllowedBackward = props.calendarFocus === 'backwards' && focusedDateDiff <= 0;
|
|
43969
|
+
|
|
43970
|
+
if ((isAllowedForward || isAllowedBackward) && Math.abs(focusedDateDiff) < props.months) {
|
|
43971
|
+
return;
|
|
43972
|
+
}
|
|
43973
|
+
}
|
|
43974
|
+
|
|
43895
43975
|
_this.setState({
|
|
43896
43976
|
focusedDate: date
|
|
43897
43977
|
});
|
|
@@ -44456,6 +44536,11 @@ var Calendar = /*#__PURE__*/function (_PureComponent) {
|
|
|
44456
44536
|
className: (0, _classnames3.default)(this.styles.months, isVertical ? this.styles.monthsVertical : this.styles.monthsHorizontal)
|
|
44457
44537
|
}, new Array(this.props.months).fill(null).map(function (_, i) {
|
|
44458
44538
|
var monthStep = (0, _addMonths.default)(_this5.state.focusedDate, i);
|
|
44539
|
+
|
|
44540
|
+
if (_this5.props.calendarFocus === 'backwards') {
|
|
44541
|
+
monthStep = (0, _subMonths.default)(_this5.state.focusedDate, _this5.props.months - 1 - i);
|
|
44542
|
+
}
|
|
44543
|
+
|
|
44459
44544
|
return /*#__PURE__*/_react.default.createElement(_Month.default, _extends({}, _this5.props, {
|
|
44460
44545
|
onPreviewChange: onPreviewChange || _this5.updatePreview,
|
|
44461
44546
|
preview: preview || _this5.state.preview,
|
|
@@ -44513,6 +44598,8 @@ Calendar.defaultProps = {
|
|
|
44513
44598
|
editableDateInputs: false,
|
|
44514
44599
|
dragSelectionEnabled: true,
|
|
44515
44600
|
fixedHeight: false,
|
|
44601
|
+
calendarFocus: 'forwards',
|
|
44602
|
+
preventSnapRefocus: false,
|
|
44516
44603
|
ariaLabels: {}
|
|
44517
44604
|
};
|
|
44518
44605
|
Calendar.propTypes = {
|
|
@@ -44566,6 +44653,8 @@ Calendar.propTypes = {
|
|
|
44566
44653
|
editableDateInputs: _propTypes.default.bool,
|
|
44567
44654
|
dragSelectionEnabled: _propTypes.default.bool,
|
|
44568
44655
|
fixedHeight: _propTypes.default.bool,
|
|
44656
|
+
calendarFocus: _propTypes.default.string,
|
|
44657
|
+
preventSnapRefocus: _propTypes.default.bool,
|
|
44569
44658
|
ariaLabels: accessibility.ariaLabelsShape
|
|
44570
44659
|
};
|
|
44571
44660
|
var _default = Calendar;
|
|
@@ -46570,6 +46659,43 @@ var themeWeb = createTheme({
|
|
|
46570
46659
|
borderRight: 0,
|
|
46571
46660
|
},
|
|
46572
46661
|
},
|
|
46662
|
+
MuiAccordion: {
|
|
46663
|
+
root: {
|
|
46664
|
+
'&.MuiPaper-root': {
|
|
46665
|
+
backgroundColor: 'white',
|
|
46666
|
+
},
|
|
46667
|
+
'&:before': {
|
|
46668
|
+
backgroundColor: "" + pallettes$1.brand.utility.border,
|
|
46669
|
+
},
|
|
46670
|
+
'&$expanded': {
|
|
46671
|
+
margin: 0,
|
|
46672
|
+
},
|
|
46673
|
+
},
|
|
46674
|
+
},
|
|
46675
|
+
MuiAccordionSummary: {
|
|
46676
|
+
root: {
|
|
46677
|
+
padding: '0 16px',
|
|
46678
|
+
minHeight: 48,
|
|
46679
|
+
'$expanded &': {
|
|
46680
|
+
minHeight: 48,
|
|
46681
|
+
},
|
|
46682
|
+
},
|
|
46683
|
+
content: {
|
|
46684
|
+
margin: '4px 0',
|
|
46685
|
+
'$expanded &': {
|
|
46686
|
+
margin: '4px 0',
|
|
46687
|
+
},
|
|
46688
|
+
},
|
|
46689
|
+
expandIcon: {
|
|
46690
|
+
padding: '6px 12px',
|
|
46691
|
+
transition: 'all 0.3s ease-out',
|
|
46692
|
+
},
|
|
46693
|
+
},
|
|
46694
|
+
MuiAccordionDetails: {
|
|
46695
|
+
root: {
|
|
46696
|
+
padding: 0,
|
|
46697
|
+
},
|
|
46698
|
+
},
|
|
46573
46699
|
MuiAppBar: {
|
|
46574
46700
|
root: {
|
|
46575
46701
|
color: common.brand.neutral.white,
|
|
@@ -47826,13 +47952,18 @@ var themeDesktop = createTheme({
|
|
|
47826
47952
|
'&.MuiPaper-root': {
|
|
47827
47953
|
backgroundColor: 'white',
|
|
47828
47954
|
},
|
|
47955
|
+
'&:before': {
|
|
47956
|
+
backgroundColor: "" + pallettes.brand.utility.border,
|
|
47957
|
+
},
|
|
47958
|
+
'&$expanded': {
|
|
47959
|
+
margin: 0,
|
|
47960
|
+
}
|
|
47829
47961
|
},
|
|
47830
47962
|
},
|
|
47831
47963
|
MuiAccordionSummary: {
|
|
47832
47964
|
root: {
|
|
47833
47965
|
padding: '0 10px',
|
|
47834
47966
|
minHeight: 32,
|
|
47835
|
-
borderBottom: "1px solid " + common.brand.utility.border,
|
|
47836
47967
|
'$expanded &': {
|
|
47837
47968
|
minHeight: 32,
|
|
47838
47969
|
},
|
|
@@ -48183,8 +48314,12 @@ var themeDesktop = createTheme({
|
|
|
48183
48314
|
minWidth: 'unset',
|
|
48184
48315
|
padding: 0,
|
|
48185
48316
|
margin: '0 15px',
|
|
48186
|
-
border: '
|
|
48317
|
+
border: '1px solid transparent',
|
|
48187
48318
|
backgroundColor: 'transparent',
|
|
48319
|
+
'&:hover': {
|
|
48320
|
+
backgroundColor: '#DDE7F3',
|
|
48321
|
+
borderColor: '#CADEF3',
|
|
48322
|
+
},
|
|
48188
48323
|
'& .MuiSvgIcon-root': {
|
|
48189
48324
|
width: 32,
|
|
48190
48325
|
height: 32,
|
|
@@ -49000,5 +49135,5 @@ function ReportingIcon(props) {
|
|
|
49000
49135
|
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" })));
|
|
49001
49136
|
}
|
|
49002
49137
|
|
|
49003
|
-
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 };
|
|
49138
|
+
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 };
|
|
49004
49139
|
//# sourceMappingURL=index.esm.js.map
|