@galaxy-ds/core 1.1.44 → 1.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/HeaderToolbarProps.types.d.ts +1 -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/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/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/Tooltip/Tooltip.types.d.ts +1 -0
- package/dist/Typography/Typography.types.d.ts +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.js +288 -232
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1261 -1206
- package/dist/index.js.map +1 -1
- package/dist/package.json +2 -1
- package/package.json +2 -1
- package/dist/AccordionBody/AccordionBody.d.ts +0 -4
- package/dist/AccordionBody/AccordionBodyProps.types.d.ts +0 -5
- package/dist/Icons/ActivityType/ActivityTypeVideoCall.d.ts +0 -3
- package/dist/Icons/ActivityType/index.d.ts +0 -1
- package/dist/Themes/LawConnect/common.d.ts +0 -277
- package/dist/Themes/LawConnect/index.d.ts +0 -1
- package/dist/Themes/LawConnect/pallette.d.ts +0 -228
- package/dist/Themes/LawConnect/theme.d.ts +0 -1
- package/dist/Themes/LawConnect/typography.d.ts +0 -93
package/dist/index.esm.js
CHANGED
|
@@ -3769,15 +3769,16 @@ var join = function join(value, by) {
|
|
|
3769
3769
|
|
|
3770
3770
|
return result;
|
|
3771
3771
|
};
|
|
3772
|
-
|
|
3773
3772
|
/**
|
|
3774
|
-
* Converts array
|
|
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
|
});
|
|
@@ -34221,6 +34167,10 @@ var IconButton = React__default.forwardRef(function (props, ref) {
|
|
|
34221
34167
|
return (React__default.createElement(MuiIconButton, __assign$1({}, defaultProps, { ref: ref }), children));
|
|
34222
34168
|
});
|
|
34223
34169
|
|
|
34170
|
+
var Icon = function (props) {
|
|
34171
|
+
return (React__default.createElement(SvgIcon$1, __assign$1({}, props)));
|
|
34172
|
+
};
|
|
34173
|
+
|
|
34224
34174
|
function LawconnectIcon(props) {
|
|
34225
34175
|
return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", width: props.size + "px", viewBox: "0 0 141 140" },
|
|
34226
34176
|
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.163 119.104a69.739 69.739 0 0049.313 20.426h.133a69.68 69.68 0 0064.35-43.067 69.663 69.663 0 005.281-26.673h-33.528v.042a36.23 36.23 0 01-22.382 33.464 36.236 36.236 0 11-13.853-69.718V.05a69.74 69.74 0 00-49.314 119.054zm119.049-95.585c0 12.962-10.507 23.47-23.469 23.47-12.962 0-23.47-10.508-23.47-23.47S103.782.049 116.744.049s23.469 10.508 23.469 23.47z", fill: "#ecedef" })));
|
|
@@ -34298,7 +34248,7 @@ var FormHeader = React__default.forwardRef(function (props, ref) {
|
|
|
34298
34248
|
React__default.createElement(Box$2, { className: clsx(classes.root, 'gds-header_detail') },
|
|
34299
34249
|
React__default.createElement(Grid$2, { item: true, xs: 5 }, props.platformWeb ? (React__default.createElement(Typography, { color: "default", variant: "body2", upperCase: true }, props.title)) : (React__default.createElement(Typography, { color: "primaryLight", variant: "h2", upperCase: true }, props.title))),
|
|
34300
34250
|
React__default.createElement(Grid$2, { item: true, xs: 7 },
|
|
34301
|
-
React__default.createElement(Grid$2, { container: true, alignItems: "center",
|
|
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))),
|
|
@@ -36449,6 +36399,48 @@ var isSameDay$1 = /*#__PURE__*/Object.freeze({
|
|
|
36449
36399
|
'default': isSameDay
|
|
36450
36400
|
});
|
|
36451
36401
|
|
|
36402
|
+
/**
|
|
36403
|
+
* @name isDate
|
|
36404
|
+
* @category Common Helpers
|
|
36405
|
+
* @summary Is the given value a date?
|
|
36406
|
+
*
|
|
36407
|
+
* @description
|
|
36408
|
+
* Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
|
|
36409
|
+
*
|
|
36410
|
+
* ### v2.0.0 breaking changes:
|
|
36411
|
+
*
|
|
36412
|
+
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
36413
|
+
*
|
|
36414
|
+
* @param {*} value - the value to check
|
|
36415
|
+
* @returns {boolean} true if the given value is a date
|
|
36416
|
+
* @throws {TypeError} 1 arguments required
|
|
36417
|
+
*
|
|
36418
|
+
* @example
|
|
36419
|
+
* // For a valid date:
|
|
36420
|
+
* const result = isDate(new Date())
|
|
36421
|
+
* //=> true
|
|
36422
|
+
*
|
|
36423
|
+
* @example
|
|
36424
|
+
* // For an invalid date:
|
|
36425
|
+
* const result = isDate(new Date(NaN))
|
|
36426
|
+
* //=> true
|
|
36427
|
+
*
|
|
36428
|
+
* @example
|
|
36429
|
+
* // For some value:
|
|
36430
|
+
* const result = isDate('2014-02-31')
|
|
36431
|
+
* //=> false
|
|
36432
|
+
*
|
|
36433
|
+
* @example
|
|
36434
|
+
* // For an object:
|
|
36435
|
+
* const result = isDate({})
|
|
36436
|
+
* //=> false
|
|
36437
|
+
*/
|
|
36438
|
+
|
|
36439
|
+
function isDate(value) {
|
|
36440
|
+
requiredArgs(1, arguments);
|
|
36441
|
+
return value instanceof Date || typeof value === 'object' && Object.prototype.toString.call(value) === '[object Date]';
|
|
36442
|
+
}
|
|
36443
|
+
|
|
36452
36444
|
/**
|
|
36453
36445
|
* @name isValid
|
|
36454
36446
|
* @category Common Helpers
|
|
@@ -36493,24 +36485,29 @@ var isSameDay$1 = /*#__PURE__*/Object.freeze({
|
|
|
36493
36485
|
*
|
|
36494
36486
|
* @example
|
|
36495
36487
|
* // For the valid date:
|
|
36496
|
-
*
|
|
36488
|
+
* const result = isValid(new Date(2014, 1, 31))
|
|
36497
36489
|
* //=> true
|
|
36498
36490
|
*
|
|
36499
36491
|
* @example
|
|
36500
36492
|
* // For the value, convertable into a date:
|
|
36501
|
-
*
|
|
36493
|
+
* const result = isValid(1393804800000)
|
|
36502
36494
|
* //=> true
|
|
36503
36495
|
*
|
|
36504
36496
|
* @example
|
|
36505
36497
|
* // For the invalid date:
|
|
36506
|
-
*
|
|
36498
|
+
* const result = isValid(new Date(''))
|
|
36507
36499
|
* //=> false
|
|
36508
36500
|
*/
|
|
36509
36501
|
|
|
36510
36502
|
function isValid(dirtyDate) {
|
|
36511
36503
|
requiredArgs(1, arguments);
|
|
36504
|
+
|
|
36505
|
+
if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
|
|
36506
|
+
return false;
|
|
36507
|
+
}
|
|
36508
|
+
|
|
36512
36509
|
var date = toDate(dirtyDate);
|
|
36513
|
-
return !isNaN(date);
|
|
36510
|
+
return !isNaN(Number(date));
|
|
36514
36511
|
}
|
|
36515
36512
|
|
|
36516
36513
|
var isValid$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -36581,20 +36578,21 @@ var formatDistanceLocale = {
|
|
|
36581
36578
|
other: 'almost {{count}} years'
|
|
36582
36579
|
}
|
|
36583
36580
|
};
|
|
36584
|
-
|
|
36585
|
-
|
|
36581
|
+
|
|
36582
|
+
var formatDistance = function (token, count, options) {
|
|
36586
36583
|
var result;
|
|
36584
|
+
var tokenValue = formatDistanceLocale[token];
|
|
36587
36585
|
|
|
36588
|
-
if (typeof
|
|
36589
|
-
result =
|
|
36586
|
+
if (typeof tokenValue === 'string') {
|
|
36587
|
+
result = tokenValue;
|
|
36590
36588
|
} else if (count === 1) {
|
|
36591
|
-
result =
|
|
36589
|
+
result = tokenValue.one;
|
|
36592
36590
|
} else {
|
|
36593
|
-
result =
|
|
36591
|
+
result = tokenValue.other.replace('{{count}}', count.toString());
|
|
36594
36592
|
}
|
|
36595
36593
|
|
|
36596
|
-
if (options.addSuffix) {
|
|
36597
|
-
if (options.comparison > 0) {
|
|
36594
|
+
if (options !== null && options !== void 0 && options.addSuffix) {
|
|
36595
|
+
if (options.comparison && options.comparison > 0) {
|
|
36598
36596
|
return 'in ' + result;
|
|
36599
36597
|
} else {
|
|
36600
36598
|
return result + ' ago';
|
|
@@ -36602,7 +36600,9 @@ function formatDistance(token, count, options) {
|
|
|
36602
36600
|
}
|
|
36603
36601
|
|
|
36604
36602
|
return result;
|
|
36605
|
-
}
|
|
36603
|
+
};
|
|
36604
|
+
|
|
36605
|
+
var formatDistance$1 = formatDistance;
|
|
36606
36606
|
|
|
36607
36607
|
function buildFormatLongFn(args) {
|
|
36608
36608
|
return function () {
|
|
@@ -36656,9 +36656,12 @@ var formatRelativeLocale = {
|
|
|
36656
36656
|
nextWeek: "eeee 'at' p",
|
|
36657
36657
|
other: 'P'
|
|
36658
36658
|
};
|
|
36659
|
-
|
|
36659
|
+
|
|
36660
|
+
var formatRelative = function (token, _date, _baseDate, _options) {
|
|
36660
36661
|
return formatRelativeLocale[token];
|
|
36661
|
-
}
|
|
36662
|
+
};
|
|
36663
|
+
|
|
36664
|
+
var formatRelative$1 = formatRelative;
|
|
36662
36665
|
|
|
36663
36666
|
function buildLocalizeFn(args) {
|
|
36664
36667
|
return function (dirtyIndex, dirtyOptions) {
|
|
@@ -36774,16 +36777,13 @@ var formattingDayPeriodValues = {
|
|
|
36774
36777
|
}
|
|
36775
36778
|
};
|
|
36776
36779
|
|
|
36777
|
-
function
|
|
36780
|
+
var ordinalNumber = function (dirtyNumber, _options) {
|
|
36778
36781
|
var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
|
|
36779
36782
|
// if they are different for different grammatical genders,
|
|
36780
|
-
// use `options.unit
|
|
36781
|
-
//
|
|
36782
|
-
// var options = dirtyOptions || {}
|
|
36783
|
-
// var unit = String(options.unit)
|
|
36783
|
+
// use `options.unit`.
|
|
36784
36784
|
//
|
|
36785
|
-
//
|
|
36786
|
-
// 'day', 'hour', 'minute', 'second'
|
|
36785
|
+
// `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
|
|
36786
|
+
// 'day', 'hour', 'minute', 'second'.
|
|
36787
36787
|
|
|
36788
36788
|
var rem100 = number % 100;
|
|
36789
36789
|
|
|
@@ -36801,7 +36801,7 @@ function ordinalNumber(dirtyNumber, _dirtyOptions) {
|
|
|
36801
36801
|
}
|
|
36802
36802
|
|
|
36803
36803
|
return number + 'th';
|
|
36804
|
-
}
|
|
36804
|
+
};
|
|
36805
36805
|
|
|
36806
36806
|
var localize = {
|
|
36807
36807
|
ordinalNumber: ordinalNumber,
|
|
@@ -36813,7 +36813,7 @@ var localize = {
|
|
|
36813
36813
|
values: quarterValues,
|
|
36814
36814
|
defaultWidth: 'wide',
|
|
36815
36815
|
argumentCallback: function (quarter) {
|
|
36816
|
-
return
|
|
36816
|
+
return quarter - 1;
|
|
36817
36817
|
}
|
|
36818
36818
|
}),
|
|
36819
36819
|
month: buildLocalizeFn({
|
|
@@ -36833,24 +36833,6 @@ var localize = {
|
|
|
36833
36833
|
};
|
|
36834
36834
|
var localize$1 = localize;
|
|
36835
36835
|
|
|
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
36836
|
function buildMatchFn(args) {
|
|
36855
36837
|
return function (string) {
|
|
36856
36838
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -36900,6 +36882,24 @@ function findIndex(array, predicate) {
|
|
|
36900
36882
|
return undefined;
|
|
36901
36883
|
}
|
|
36902
36884
|
|
|
36885
|
+
function buildMatchPatternFn(args) {
|
|
36886
|
+
return function (string) {
|
|
36887
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
36888
|
+
var matchResult = string.match(args.matchPattern);
|
|
36889
|
+
if (!matchResult) return null;
|
|
36890
|
+
var matchedString = matchResult[0];
|
|
36891
|
+
var parseResult = string.match(args.parsePattern);
|
|
36892
|
+
if (!parseResult) return null;
|
|
36893
|
+
var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
|
|
36894
|
+
value = options.valueCallback ? options.valueCallback(value) : value;
|
|
36895
|
+
var rest = string.slice(matchedString.length);
|
|
36896
|
+
return {
|
|
36897
|
+
value: value,
|
|
36898
|
+
rest: rest
|
|
36899
|
+
};
|
|
36900
|
+
};
|
|
36901
|
+
}
|
|
36902
|
+
|
|
36903
36903
|
var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
|
|
36904
36904
|
var parseOrdinalNumberPattern = /\d+/i;
|
|
36905
36905
|
var matchEraPatterns = {
|
|
@@ -37006,12 +37006,11 @@ var match$1 = match;
|
|
|
37006
37006
|
* @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
|
|
37007
37007
|
* @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
|
|
37008
37008
|
*/
|
|
37009
|
-
|
|
37010
37009
|
var locale = {
|
|
37011
37010
|
code: 'en-US',
|
|
37012
|
-
formatDistance: formatDistance,
|
|
37011
|
+
formatDistance: formatDistance$1,
|
|
37013
37012
|
formatLong: formatLong$1,
|
|
37014
|
-
formatRelative: formatRelative,
|
|
37013
|
+
formatRelative: formatRelative$1,
|
|
37015
37014
|
localize: localize$1,
|
|
37016
37015
|
match: match$1,
|
|
37017
37016
|
options: {
|
|
@@ -38458,28 +38457,28 @@ var unescapedLatinCharacterRegExp$1 = /[a-zA-Z]/;
|
|
|
38458
38457
|
* | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
|
|
38459
38458
|
* | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
|
|
38460
38459
|
* | | EEEEE | M, T, W, T, F, S, S | |
|
|
38461
|
-
* | | EEEEEE | Mo, Tu, We, Th, Fr,
|
|
38460
|
+
* | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
38462
38461
|
* | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
|
|
38463
38462
|
* | | io | 1st, 2nd, ..., 7th | 7 |
|
|
38464
38463
|
* | | ii | 01, 02, ..., 07 | 7 |
|
|
38465
38464
|
* | | iii | Mon, Tue, Wed, ..., Sun | 7 |
|
|
38466
38465
|
* | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
|
|
38467
38466
|
* | | iiiii | M, T, W, T, F, S, S | 7 |
|
|
38468
|
-
* | | iiiiii | Mo, Tu, We, Th, Fr,
|
|
38467
|
+
* | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
|
|
38469
38468
|
* | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
|
|
38470
38469
|
* | | eo | 2nd, 3rd, ..., 1st | 7 |
|
|
38471
38470
|
* | | ee | 02, 03, ..., 01 | |
|
|
38472
38471
|
* | | eee | Mon, Tue, Wed, ..., Sun | |
|
|
38473
38472
|
* | | eeee | Monday, Tuesday, ..., Sunday | 2 |
|
|
38474
38473
|
* | | eeeee | M, T, W, T, F, S, S | |
|
|
38475
|
-
* | | eeeeee | Mo, Tu, We, Th, Fr,
|
|
38474
|
+
* | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
38476
38475
|
* | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
|
|
38477
38476
|
* | | co | 2nd, 3rd, ..., 1st | 7 |
|
|
38478
38477
|
* | | cc | 02, 03, ..., 01 | |
|
|
38479
38478
|
* | | ccc | Mon, Tue, Wed, ..., Sun | |
|
|
38480
38479
|
* | | cccc | Monday, Tuesday, ..., Sunday | 2 |
|
|
38481
38480
|
* | | ccccc | M, T, W, T, F, S, S | |
|
|
38482
|
-
* | | cccccc | Mo, Tu, We, Th, Fr,
|
|
38481
|
+
* | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
38483
38482
|
* | AM, PM | a..aa | AM, PM | |
|
|
38484
38483
|
* | | aaa | am, pm | |
|
|
38485
38484
|
* | | aaaa | a.m., p.m. | 2 |
|
|
@@ -41737,28 +41736,28 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
|
41737
41736
|
* | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |
|
|
41738
41737
|
* | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
|
|
41739
41738
|
* | | | EEEEE | M, T, W, T, F, S, S | |
|
|
41740
|
-
* | | | EEEEEE | Mo, Tu, We, Th, Fr,
|
|
41739
|
+
* | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
41741
41740
|
* | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |
|
|
41742
41741
|
* | | | io | 1st, 2nd, ..., 7th | 5 |
|
|
41743
41742
|
* | | | ii | 01, 02, ..., 07 | 5 |
|
|
41744
41743
|
* | | | iii | Mon, Tue, Wed, ..., Sun | 5 |
|
|
41745
41744
|
* | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |
|
|
41746
41745
|
* | | | iiiii | M, T, W, T, F, S, S | 5 |
|
|
41747
|
-
* | | | iiiiii | Mo, Tu, We, Th, Fr,
|
|
41746
|
+
* | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |
|
|
41748
41747
|
* | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |
|
|
41749
41748
|
* | | | eo | 2nd, 3rd, ..., 1st | 5 |
|
|
41750
41749
|
* | | | ee | 02, 03, ..., 01 | |
|
|
41751
41750
|
* | | | eee | Mon, Tue, Wed, ..., Sun | |
|
|
41752
41751
|
* | | | eeee | Monday, Tuesday, ..., Sunday | 2 |
|
|
41753
41752
|
* | | | eeeee | M, T, W, T, F, S, S | |
|
|
41754
|
-
* | | | eeeeee | Mo, Tu, We, Th, Fr,
|
|
41753
|
+
* | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
41755
41754
|
* | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |
|
|
41756
41755
|
* | | | co | 2nd, 3rd, ..., 1st | 5 |
|
|
41757
41756
|
* | | | cc | 02, 03, ..., 01 | |
|
|
41758
41757
|
* | | | ccc | Mon, Tue, Wed, ..., Sun | |
|
|
41759
41758
|
* | | | cccc | Monday, Tuesday, ..., Sunday | 2 |
|
|
41760
41759
|
* | | | ccccc | M, T, W, T, F, S, S | |
|
|
41761
|
-
* | | | cccccc | Mo, Tu, We, Th, Fr,
|
|
41760
|
+
* | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
41762
41761
|
* | AM, PM | 80 | a..aaa | AM, PM | |
|
|
41763
41762
|
* | | | aaaa | a.m., p.m. | 2 |
|
|
41764
41763
|
* | | | aaaaa | a, p | |
|
|
@@ -43655,6 +43654,40 @@ var addYears$1 = /*#__PURE__*/Object.freeze({
|
|
|
43655
43654
|
'default': addYears
|
|
43656
43655
|
});
|
|
43657
43656
|
|
|
43657
|
+
/**
|
|
43658
|
+
* @name subMonths
|
|
43659
|
+
* @category Month Helpers
|
|
43660
|
+
* @summary Subtract the specified number of months from the given date.
|
|
43661
|
+
*
|
|
43662
|
+
* @description
|
|
43663
|
+
* Subtract the specified number of months from the given date.
|
|
43664
|
+
*
|
|
43665
|
+
* ### v2.0.0 breaking changes:
|
|
43666
|
+
*
|
|
43667
|
+
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
43668
|
+
*
|
|
43669
|
+
* @param {Date|Number} date - the date to be changed
|
|
43670
|
+
* @param {Number} amount - the amount of months to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
|
|
43671
|
+
* @returns {Date} the new date with the months subtracted
|
|
43672
|
+
* @throws {TypeError} 2 arguments required
|
|
43673
|
+
*
|
|
43674
|
+
* @example
|
|
43675
|
+
* // Subtract 5 months from 1 February 2015:
|
|
43676
|
+
* const result = subMonths(new Date(2015, 1, 1), 5)
|
|
43677
|
+
* //=> Mon Sep 01 2014 00:00:00
|
|
43678
|
+
*/
|
|
43679
|
+
|
|
43680
|
+
function subMonths(dirtyDate, dirtyAmount) {
|
|
43681
|
+
requiredArgs(2, arguments);
|
|
43682
|
+
var amount = toInteger(dirtyAmount);
|
|
43683
|
+
return addMonths(dirtyDate, -amount);
|
|
43684
|
+
}
|
|
43685
|
+
|
|
43686
|
+
var subMonths$1 = /*#__PURE__*/Object.freeze({
|
|
43687
|
+
__proto__: null,
|
|
43688
|
+
'default': subMonths
|
|
43689
|
+
});
|
|
43690
|
+
|
|
43658
43691
|
var styles = createCommonjsModule(function (module, exports) {
|
|
43659
43692
|
|
|
43660
43693
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -43758,9 +43791,11 @@ var require$$15 = /*@__PURE__*/getAugmentedNamespace(setYear$1);
|
|
|
43758
43791
|
|
|
43759
43792
|
var require$$16 = /*@__PURE__*/getAugmentedNamespace(addYears$1);
|
|
43760
43793
|
|
|
43794
|
+
var require$$22 = /*@__PURE__*/getAugmentedNamespace(subMonths$1);
|
|
43795
|
+
|
|
43761
43796
|
var require$$4 = /*@__PURE__*/getAugmentedNamespace(addMonths$1);
|
|
43762
43797
|
|
|
43763
|
-
var require$$
|
|
43798
|
+
var require$$24 = /*@__PURE__*/getAugmentedNamespace(enUS);
|
|
43764
43799
|
|
|
43765
43800
|
var Calendar_1 = createCommonjsModule(function (module, exports) {
|
|
43766
43801
|
|
|
@@ -43821,9 +43856,11 @@ var _eachDayOfInterval = _interopRequireDefault(require$$20);
|
|
|
43821
43856
|
|
|
43822
43857
|
var _format = _interopRequireDefault(require$$21);
|
|
43823
43858
|
|
|
43859
|
+
var _subMonths = _interopRequireDefault(require$$22);
|
|
43860
|
+
|
|
43824
43861
|
var _addMonths = _interopRequireDefault(require$$4);
|
|
43825
43862
|
|
|
43826
|
-
var _enUS = _interopRequireDefault(require$$
|
|
43863
|
+
var _enUS = _interopRequireDefault(require$$24);
|
|
43827
43864
|
|
|
43828
43865
|
var _styles = _interopRequireDefault(styles);
|
|
43829
43866
|
|
|
@@ -43892,6 +43929,16 @@ var Calendar = /*#__PURE__*/function (_PureComponent) {
|
|
|
43892
43929
|
var preventUnnecessary = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
43893
43930
|
|
|
43894
43931
|
if (!props.scroll.enabled) {
|
|
43932
|
+
if (preventUnnecessary && props.preventSnapRefocus) {
|
|
43933
|
+
var focusedDateDiff = (0, _differenceInCalendarMonths.default)(date, _this.state.focusedDate);
|
|
43934
|
+
var isAllowedForward = props.calendarFocus === 'forwards' && focusedDateDiff >= 0;
|
|
43935
|
+
var isAllowedBackward = props.calendarFocus === 'backwards' && focusedDateDiff <= 0;
|
|
43936
|
+
|
|
43937
|
+
if ((isAllowedForward || isAllowedBackward) && Math.abs(focusedDateDiff) < props.months) {
|
|
43938
|
+
return;
|
|
43939
|
+
}
|
|
43940
|
+
}
|
|
43941
|
+
|
|
43895
43942
|
_this.setState({
|
|
43896
43943
|
focusedDate: date
|
|
43897
43944
|
});
|
|
@@ -44456,6 +44503,11 @@ var Calendar = /*#__PURE__*/function (_PureComponent) {
|
|
|
44456
44503
|
className: (0, _classnames3.default)(this.styles.months, isVertical ? this.styles.monthsVertical : this.styles.monthsHorizontal)
|
|
44457
44504
|
}, new Array(this.props.months).fill(null).map(function (_, i) {
|
|
44458
44505
|
var monthStep = (0, _addMonths.default)(_this5.state.focusedDate, i);
|
|
44506
|
+
|
|
44507
|
+
if (_this5.props.calendarFocus === 'backwards') {
|
|
44508
|
+
monthStep = (0, _subMonths.default)(_this5.state.focusedDate, _this5.props.months - 1 - i);
|
|
44509
|
+
}
|
|
44510
|
+
|
|
44459
44511
|
return /*#__PURE__*/_react.default.createElement(_Month.default, _extends({}, _this5.props, {
|
|
44460
44512
|
onPreviewChange: onPreviewChange || _this5.updatePreview,
|
|
44461
44513
|
preview: preview || _this5.state.preview,
|
|
@@ -44513,6 +44565,8 @@ Calendar.defaultProps = {
|
|
|
44513
44565
|
editableDateInputs: false,
|
|
44514
44566
|
dragSelectionEnabled: true,
|
|
44515
44567
|
fixedHeight: false,
|
|
44568
|
+
calendarFocus: 'forwards',
|
|
44569
|
+
preventSnapRefocus: false,
|
|
44516
44570
|
ariaLabels: {}
|
|
44517
44571
|
};
|
|
44518
44572
|
Calendar.propTypes = {
|
|
@@ -44566,6 +44620,8 @@ Calendar.propTypes = {
|
|
|
44566
44620
|
editableDateInputs: _propTypes.default.bool,
|
|
44567
44621
|
dragSelectionEnabled: _propTypes.default.bool,
|
|
44568
44622
|
fixedHeight: _propTypes.default.bool,
|
|
44623
|
+
calendarFocus: _propTypes.default.string,
|
|
44624
|
+
preventSnapRefocus: _propTypes.default.bool,
|
|
44569
44625
|
ariaLabels: accessibility.ariaLabelsShape
|
|
44570
44626
|
};
|
|
44571
44627
|
var _default = Calendar;
|
|
@@ -49004,5 +49060,5 @@ function ReportingIcon(props) {
|
|
|
49004
49060
|
React__default.createElement("path", { fillRule: "evenodd", fill: "currentColor", d: "M84.032 23.49l-12.807-5.123a4 4 0 01-6.827-.627l-12.404 2.481a4 4 0 11-7.962-.731l-12.807-5.123A3.994 3.994 0 0128 16c-.9 0-1.731-.297-2.4-.8L11.65 26.36A4 4 0 1110.4 24.8l13.95-11.16a4 4 0 117.618-1.13l12.807 5.124a4 4 0 016.827.627l12.404-2.481a4 4 0 117.962.731l12.807 5.123a4 4 0 11-.743 1.857zM0 88v-8h96v8H0zm4-40h8v24H4V48zm20-16h8v40h-8V32zm20 8h8v32h-8V40zm20-4h8v36h-8V36zm20 8h8v28h-8V44z" })));
|
|
49005
49061
|
}
|
|
49006
49062
|
|
|
49007
|
-
export { AccessIcon, Accordion, AccordionDetails, AccordionPanel, AccordionSummary, AccountingIcon, ActivityLog, AppBar, AppointmentCalendar, AssignCurvedIcon, AttachmentIcon, Autocomplete, Avatar, AvatarBusinessIcon, AvatarCompanyIcon, AvatarGovernmentIcon, AvatarPeopleIcon, AvatarPersonIcon, AvatarTrustIcon, AvatarsGroup, BottomListButton, Box, BrowseIcon, Button, ButtonCaretIcon, ButtonFilterIcon, CalendarIcon, Card, Checkbox, ChevronDownIcon, Chip, CrossIcon, CssBaseline, DatePicker, DateRangePicker, Dialog, Divider, DocTypeEmailDraft$2 as DocTypeEmailDraft, DocTypeEmailRecieved, DocTypeEmailSent, Drawer, DrawerMenu, Dropdown, EmailSentIcon, EmptyState, FooterActions, FormBody, FormContainer, FormGroup, FormHeader, Grid, HeaderToolbar, HomeIcon, IconButton, InfoCircleIcon, Input, InputLabel, InsertLinkIcon, LawconnectIcon, LeapLogo, List, ListItem, ListItemAvatar, ListItemHoverContent, ListItemIcon, ListItemText, ListSubheader, Loader, LoaderIcon, Menu, MenuContext, MenuHeader, MenuItem, MenuItemSystem, Modal, ModalActions, ModalContent, ModalTitle, MoreVerticalIcon, NewAppointmentIcon as NewAppoinmentIcon, PoweredByLawconnectLogo, PreviewIcon, Radio, RadioGroup, ReportingIcon, ResponseIcon, RevokeAccessIcon, SearchIcon, SelectFilterEmptyIcon, SelectFilterFilledIcon, SidebarLayout, Switch, Tab, TabListItem, Table, TableBody, TableCell, TableCellIcon, TableContainer, TableFooter, TableHead, TableRow, Tabs, Tag, ThemeProvider, TickIcon, Toolbar, ToolbarButton, Tooltip, TwoColumnLayout, Typography, UserLinkIcon, UserLockIcon, UsersIcon, WarningIcon, baseline, createFilterOptions, themeDesktop, themeWeb };
|
|
49063
|
+
export { AccessIcon, Accordion, AccordionDetails, AccordionPanel, AccordionSummary, AccountingIcon, ActivityLog, AppBar, AppointmentCalendar, AssignCurvedIcon, AttachmentIcon, Autocomplete, Avatar, AvatarBusinessIcon, AvatarCompanyIcon, AvatarGovernmentIcon, AvatarPeopleIcon, AvatarPersonIcon, AvatarTrustIcon, AvatarsGroup, BottomListButton, Box, BrowseIcon, Button, ButtonCaretIcon, ButtonFilterIcon, CalendarIcon, Card, Checkbox, ChevronDownIcon, Chip, CrossIcon, CssBaseline, DatePicker, DateRangePicker, Dialog, Divider, DocTypeEmailDraft$2 as DocTypeEmailDraft, DocTypeEmailRecieved, DocTypeEmailSent, Drawer, DrawerMenu, Dropdown, EmailSentIcon, EmptyState, FooterActions, FormBody, FormContainer, FormGroup, FormHeader, Grid, HeaderToolbar, HomeIcon, Icon, IconButton, InfoCircleIcon, Input, InputLabel, InsertLinkIcon, LawconnectIcon, LeapLogo, List, ListItem, ListItemAvatar, ListItemHoverContent, ListItemIcon, ListItemText, ListSubheader, Loader, LoaderIcon, Menu, MenuContext, MenuHeader, MenuItem, MenuItemSystem, Modal, ModalActions, ModalContent, ModalTitle, MoreVerticalIcon, NewAppointmentIcon as NewAppoinmentIcon, PoweredByLawconnectLogo, PreviewIcon, Radio, RadioGroup, ReportingIcon, ResponseIcon, RevokeAccessIcon, SearchIcon, SelectFilterEmptyIcon, SelectFilterFilledIcon, SidebarLayout, Switch, Tab, TabListItem, Table, TableBody, TableCell, TableCellIcon, TableContainer, TableFooter, TableHead, TableRow, Tabs, Tag, ThemeProvider, TickIcon, Toolbar, ToolbarButton, Tooltip, TwoColumnLayout, Typography, UserLinkIcon, UserLockIcon, UsersIcon, WarningIcon, baseline, createFilterOptions, themeDesktop, themeWeb };
|
|
49008
49064
|
//# sourceMappingURL=index.esm.js.map
|