@galaxy-ds/core 1.1.63 → 1.1.66
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/Themes/Desktop/pallette.d.ts +1 -0
- package/dist/Themes/Web/pallette.d.ts +1 -0
- package/dist/index.esm.js +171 -119
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +171 -119
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -5680,7 +5680,7 @@ var Jss =
|
|
|
5680
5680
|
function () {
|
|
5681
5681
|
function Jss(options) {
|
|
5682
5682
|
this.id = instanceCounter++;
|
|
5683
|
-
this.version = "10.8.
|
|
5683
|
+
this.version = "10.8.2";
|
|
5684
5684
|
this.plugins = new PluginsRegistry();
|
|
5685
5685
|
this.options = {
|
|
5686
5686
|
id: {
|
|
@@ -33767,7 +33767,7 @@ var typography$1 = {
|
|
|
33767
33767
|
h4: {
|
|
33768
33768
|
fontFamily: ['Open Sans', 'Helvetica', 'Arial'].join(','),
|
|
33769
33769
|
fontWeight: 500,
|
|
33770
|
-
fontSize: '
|
|
33770
|
+
fontSize: '16px',
|
|
33771
33771
|
lineHeight: '1.5rem',
|
|
33772
33772
|
letterSpacing: '0',
|
|
33773
33773
|
},
|
|
@@ -33926,9 +33926,10 @@ var AvatarsGroup = function (props) {
|
|
|
33926
33926
|
}
|
|
33927
33927
|
var clampedMax = props.max < 2 ? 2 : props.max;
|
|
33928
33928
|
var avatarCount = props.children.length > clampedMax ? props.children.length - clampedMax + 1 : 0;
|
|
33929
|
+
var count = props.children.length >= 2;
|
|
33929
33930
|
var avatars = props.children.length > 1 ? props.children.slice(0, props.children.length - avatarCount) : props.children;
|
|
33930
33931
|
return (React__default.createElement(React__default.Fragment, null, tooltip ?
|
|
33931
|
-
React__default.createElement(AvatarGroup$1, __assign$1({}, defaultProps, { spacing: 6, className: clsx(classes.avatarBorder, sizeProp, colorProp) }),
|
|
33932
|
+
React__default.createElement(AvatarGroup$1, __assign$1({}, defaultProps, { spacing: 6, className: clsx(count && classes.avatarBorder, sizeProp, colorProp) }),
|
|
33932
33933
|
React__default.Children.map(avatars, function (child) {
|
|
33933
33934
|
return React__default.cloneElement(child);
|
|
33934
33935
|
}),
|
|
@@ -33936,7 +33937,7 @@ var AvatarsGroup = function (props) {
|
|
|
33936
33937
|
"+",
|
|
33937
33938
|
avatarCount)) : null)
|
|
33938
33939
|
:
|
|
33939
|
-
React__default.createElement(AvatarGroup$1, __assign$1({}, defaultProps, { spacing: 6, className: clsx(classes.avatarBorder, sizeProp, colorProp) }), props.children)));
|
|
33940
|
+
React__default.createElement(AvatarGroup$1, __assign$1({}, defaultProps, { spacing: 6, className: clsx(count && classes.avatarBorder, sizeProp, colorProp) }), props.children)));
|
|
33940
33941
|
};
|
|
33941
33942
|
|
|
33942
33943
|
var Box = function (props) {
|
|
@@ -34303,7 +34304,7 @@ var FormHeader = React__default.forwardRef(function (props, ref) {
|
|
|
34303
34304
|
React__default.createElement("div", { className: clsx(classes.root, 'gds-header_accent') },
|
|
34304
34305
|
React__default.createElement(LawconnectIcon, { size: "260" })),
|
|
34305
34306
|
React__default.createElement(Box$2, { className: clsx(classes.root, 'gds-header_detail') },
|
|
34306
|
-
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, {
|
|
34307
|
+
React__default.createElement(Grid$2, { item: true, xs: 5, className: clsx("gds-toolbar-title") }, props.platformWeb ? (React__default.createElement(Typography, { color: "default", variant: "body2", upperCase: true }, props.title)) : (React__default.createElement(Typography, { variant: "h4", upperCase: true }, props.title))),
|
|
34307
34308
|
React__default.createElement(Grid$2, { item: true, xs: 7 },
|
|
34308
34309
|
React__default.createElement(Grid$2, { container: true, alignItems: "center", justifyContent: "flex-end", className: clsx(classes.root, 'gds-header_info') },
|
|
34309
34310
|
props.from ? (React__default.createElement(Typography, { align: "right", variant: "body2" }, props.from)) : null,
|
|
@@ -35768,6 +35769,9 @@ var useStyles$a = makeStyles(function (theme) {
|
|
|
35768
35769
|
justifyContent: "space-between",
|
|
35769
35770
|
alignItems: "flex-end",
|
|
35770
35771
|
}); },
|
|
35772
|
+
toolbarContent: {
|
|
35773
|
+
marginTop: '10px',
|
|
35774
|
+
}
|
|
35771
35775
|
});
|
|
35772
35776
|
});
|
|
35773
35777
|
var HeaderToolbar = function (_a) {
|
|
@@ -35776,10 +35780,10 @@ var HeaderToolbar = function (_a) {
|
|
|
35776
35780
|
var classes = useStyles$a({ bgColor: bgColor, bgImageURL: bgImageURL, right: right, bgPosition: bgPosition, bgSize: bgSize, titleVisibility: titleVisibility, divider: divider });
|
|
35777
35781
|
return (React__default.createElement(Toolbar$2, { className: clsx('gds-header-toolbar', classes.bgWrapper, (_b = {}, _b['with-title'] = titleVisibility, _b)) },
|
|
35778
35782
|
React__default.createElement(Box$2, { className: clsx(classes.toolbarWrap) },
|
|
35779
|
-
React__default.createElement(Box$2, { className: clsx(classes.toolbarContainer) },
|
|
35783
|
+
React__default.createElement(Box$2, { className: clsx(classes.toolbarContainer, "gds-toolbar-title") },
|
|
35780
35784
|
title && (tooltip ? (React__default.createElement(Tooltip, { title: title, placement: "bottom-start" },
|
|
35781
|
-
React__default.createElement(Typography, { gutterBottom: true, variant: "
|
|
35782
|
-
left),
|
|
35785
|
+
React__default.createElement(Typography, { gutterBottom: true, variant: "h4", noWrap: true, upperCase: true }, title))) : (React__default.createElement(Typography, { gutterBottom: true, variant: "h4", noWrap: true, upperCase: true }, title))),
|
|
35786
|
+
React__default.createElement(Box$2, { className: clsx(classes.toolbarContent) }, left)),
|
|
35783
35787
|
right && (React__default.createElement(Box$2, { className: clsx("gds-buttons-w-divider", classes.containerDivider) }, right)))));
|
|
35784
35788
|
};
|
|
35785
35789
|
|
|
@@ -36503,10 +36507,10 @@ var startOfDay$1 = /*#__PURE__*/Object.freeze({
|
|
|
36503
36507
|
/**
|
|
36504
36508
|
* @name isSameDay
|
|
36505
36509
|
* @category Day Helpers
|
|
36506
|
-
* @summary Are the given dates in the same day?
|
|
36510
|
+
* @summary Are the given dates in the same day (and year and month)?
|
|
36507
36511
|
*
|
|
36508
36512
|
* @description
|
|
36509
|
-
* Are the given dates in the same day?
|
|
36513
|
+
* Are the given dates in the same day (and year and month)?
|
|
36510
36514
|
*
|
|
36511
36515
|
* ### v2.0.0 breaking changes:
|
|
36512
36516
|
*
|
|
@@ -36514,13 +36518,23 @@ var startOfDay$1 = /*#__PURE__*/Object.freeze({
|
|
|
36514
36518
|
*
|
|
36515
36519
|
* @param {Date|Number} dateLeft - the first date to check
|
|
36516
36520
|
* @param {Date|Number} dateRight - the second date to check
|
|
36517
|
-
* @returns {Boolean} the dates are in the same day
|
|
36521
|
+
* @returns {Boolean} the dates are in the same day (and year and month)
|
|
36518
36522
|
* @throws {TypeError} 2 arguments required
|
|
36519
36523
|
*
|
|
36520
36524
|
* @example
|
|
36521
36525
|
* // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
|
|
36522
36526
|
* var result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
|
|
36523
36527
|
* //=> true
|
|
36528
|
+
*
|
|
36529
|
+
* @example
|
|
36530
|
+
* // Are 4 September and 4 October in the same day?
|
|
36531
|
+
* var result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
|
|
36532
|
+
* //=> false
|
|
36533
|
+
*
|
|
36534
|
+
* @example
|
|
36535
|
+
* // Are 4 September, 2014 and 4 September, 2015 in the same day?
|
|
36536
|
+
* var result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
|
|
36537
|
+
* //=> false
|
|
36524
36538
|
*/
|
|
36525
36539
|
|
|
36526
36540
|
function isSameDay(dirtyDateLeft, dirtyDateRight) {
|
|
@@ -36817,7 +36831,7 @@ function buildLocalizeFn(args) {
|
|
|
36817
36831
|
valuesArray = args.values[_width] || args.values[_defaultWidth];
|
|
36818
36832
|
}
|
|
36819
36833
|
|
|
36820
|
-
var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I
|
|
36834
|
+
var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
|
|
36821
36835
|
|
|
36822
36836
|
return valuesArray[index];
|
|
36823
36837
|
};
|
|
@@ -37236,101 +37250,6 @@ function subMilliseconds(dirtyDate, dirtyAmount) {
|
|
|
37236
37250
|
return addMilliseconds(dirtyDate, -amount);
|
|
37237
37251
|
}
|
|
37238
37252
|
|
|
37239
|
-
function addLeadingZeros(number, targetLength) {
|
|
37240
|
-
var sign = number < 0 ? '-' : '';
|
|
37241
|
-
var output = Math.abs(number).toString();
|
|
37242
|
-
|
|
37243
|
-
while (output.length < targetLength) {
|
|
37244
|
-
output = '0' + output;
|
|
37245
|
-
}
|
|
37246
|
-
|
|
37247
|
-
return sign + output;
|
|
37248
|
-
}
|
|
37249
|
-
|
|
37250
|
-
/*
|
|
37251
|
-
* | | Unit | | Unit |
|
|
37252
|
-
* |-----|--------------------------------|-----|--------------------------------|
|
|
37253
|
-
* | a | AM, PM | A* | |
|
|
37254
|
-
* | d | Day of month | D | |
|
|
37255
|
-
* | h | Hour [1-12] | H | Hour [0-23] |
|
|
37256
|
-
* | m | Minute | M | Month |
|
|
37257
|
-
* | s | Second | S | Fraction of second |
|
|
37258
|
-
* | y | Year (abs) | Y | |
|
|
37259
|
-
*
|
|
37260
|
-
* Letters marked by * are not implemented but reserved by Unicode standard.
|
|
37261
|
-
*/
|
|
37262
|
-
|
|
37263
|
-
var formatters$2 = {
|
|
37264
|
-
// Year
|
|
37265
|
-
y: function (date, token) {
|
|
37266
|
-
// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
|
|
37267
|
-
// | Year | y | yy | yyy | yyyy | yyyyy |
|
|
37268
|
-
// |----------|-------|----|-------|-------|-------|
|
|
37269
|
-
// | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
|
|
37270
|
-
// | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
|
|
37271
|
-
// | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
|
|
37272
|
-
// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
|
|
37273
|
-
// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
|
|
37274
|
-
var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
|
|
37275
|
-
|
|
37276
|
-
var year = signedYear > 0 ? signedYear : 1 - signedYear;
|
|
37277
|
-
return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
|
|
37278
|
-
},
|
|
37279
|
-
// Month
|
|
37280
|
-
M: function (date, token) {
|
|
37281
|
-
var month = date.getUTCMonth();
|
|
37282
|
-
return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
|
|
37283
|
-
},
|
|
37284
|
-
// Day of the month
|
|
37285
|
-
d: function (date, token) {
|
|
37286
|
-
return addLeadingZeros(date.getUTCDate(), token.length);
|
|
37287
|
-
},
|
|
37288
|
-
// AM or PM
|
|
37289
|
-
a: function (date, token) {
|
|
37290
|
-
var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
|
|
37291
|
-
|
|
37292
|
-
switch (token) {
|
|
37293
|
-
case 'a':
|
|
37294
|
-
case 'aa':
|
|
37295
|
-
return dayPeriodEnumValue.toUpperCase();
|
|
37296
|
-
|
|
37297
|
-
case 'aaa':
|
|
37298
|
-
return dayPeriodEnumValue;
|
|
37299
|
-
|
|
37300
|
-
case 'aaaaa':
|
|
37301
|
-
return dayPeriodEnumValue[0];
|
|
37302
|
-
|
|
37303
|
-
case 'aaaa':
|
|
37304
|
-
default:
|
|
37305
|
-
return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
|
|
37306
|
-
}
|
|
37307
|
-
},
|
|
37308
|
-
// Hour [1-12]
|
|
37309
|
-
h: function (date, token) {
|
|
37310
|
-
return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
|
|
37311
|
-
},
|
|
37312
|
-
// Hour [0-23]
|
|
37313
|
-
H: function (date, token) {
|
|
37314
|
-
return addLeadingZeros(date.getUTCHours(), token.length);
|
|
37315
|
-
},
|
|
37316
|
-
// Minute
|
|
37317
|
-
m: function (date, token) {
|
|
37318
|
-
return addLeadingZeros(date.getUTCMinutes(), token.length);
|
|
37319
|
-
},
|
|
37320
|
-
// Second
|
|
37321
|
-
s: function (date, token) {
|
|
37322
|
-
return addLeadingZeros(date.getUTCSeconds(), token.length);
|
|
37323
|
-
},
|
|
37324
|
-
// Fraction of second
|
|
37325
|
-
S: function (date, token) {
|
|
37326
|
-
var numberOfDigits = token.length;
|
|
37327
|
-
var milliseconds = date.getUTCMilliseconds();
|
|
37328
|
-
var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
|
|
37329
|
-
return addLeadingZeros(fractionalSeconds, token.length);
|
|
37330
|
-
}
|
|
37331
|
-
};
|
|
37332
|
-
var lightFormatters = formatters$2;
|
|
37333
|
-
|
|
37334
37253
|
var MILLISECONDS_IN_DAY$1 = 86400000; // This function will be a part of public API when UTC function will be implemented.
|
|
37335
37254
|
// See issue: https://github.com/date-fns/date-fns/issues/376
|
|
37336
37255
|
|
|
@@ -37433,7 +37352,7 @@ function startOfUTCWeek(dirtyDate, dirtyOptions) {
|
|
|
37433
37352
|
|
|
37434
37353
|
function getUTCWeekYear(dirtyDate, dirtyOptions) {
|
|
37435
37354
|
requiredArgs(1, arguments);
|
|
37436
|
-
var date = toDate(dirtyDate
|
|
37355
|
+
var date = toDate(dirtyDate);
|
|
37437
37356
|
var year = date.getUTCFullYear();
|
|
37438
37357
|
var options = dirtyOptions || {};
|
|
37439
37358
|
var locale = options.locale;
|
|
@@ -37493,6 +37412,101 @@ function getUTCWeek(dirtyDate, options) {
|
|
|
37493
37412
|
return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
|
|
37494
37413
|
}
|
|
37495
37414
|
|
|
37415
|
+
function addLeadingZeros(number, targetLength) {
|
|
37416
|
+
var sign = number < 0 ? '-' : '';
|
|
37417
|
+
var output = Math.abs(number).toString();
|
|
37418
|
+
|
|
37419
|
+
while (output.length < targetLength) {
|
|
37420
|
+
output = '0' + output;
|
|
37421
|
+
}
|
|
37422
|
+
|
|
37423
|
+
return sign + output;
|
|
37424
|
+
}
|
|
37425
|
+
|
|
37426
|
+
/*
|
|
37427
|
+
* | | Unit | | Unit |
|
|
37428
|
+
* |-----|--------------------------------|-----|--------------------------------|
|
|
37429
|
+
* | a | AM, PM | A* | |
|
|
37430
|
+
* | d | Day of month | D | |
|
|
37431
|
+
* | h | Hour [1-12] | H | Hour [0-23] |
|
|
37432
|
+
* | m | Minute | M | Month |
|
|
37433
|
+
* | s | Second | S | Fraction of second |
|
|
37434
|
+
* | y | Year (abs) | Y | |
|
|
37435
|
+
*
|
|
37436
|
+
* Letters marked by * are not implemented but reserved by Unicode standard.
|
|
37437
|
+
*/
|
|
37438
|
+
|
|
37439
|
+
var formatters$2 = {
|
|
37440
|
+
// Year
|
|
37441
|
+
y: function (date, token) {
|
|
37442
|
+
// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
|
|
37443
|
+
// | Year | y | yy | yyy | yyyy | yyyyy |
|
|
37444
|
+
// |----------|-------|----|-------|-------|-------|
|
|
37445
|
+
// | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
|
|
37446
|
+
// | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
|
|
37447
|
+
// | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
|
|
37448
|
+
// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
|
|
37449
|
+
// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
|
|
37450
|
+
var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
|
|
37451
|
+
|
|
37452
|
+
var year = signedYear > 0 ? signedYear : 1 - signedYear;
|
|
37453
|
+
return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
|
|
37454
|
+
},
|
|
37455
|
+
// Month
|
|
37456
|
+
M: function (date, token) {
|
|
37457
|
+
var month = date.getUTCMonth();
|
|
37458
|
+
return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
|
|
37459
|
+
},
|
|
37460
|
+
// Day of the month
|
|
37461
|
+
d: function (date, token) {
|
|
37462
|
+
return addLeadingZeros(date.getUTCDate(), token.length);
|
|
37463
|
+
},
|
|
37464
|
+
// AM or PM
|
|
37465
|
+
a: function (date, token) {
|
|
37466
|
+
var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
|
|
37467
|
+
|
|
37468
|
+
switch (token) {
|
|
37469
|
+
case 'a':
|
|
37470
|
+
case 'aa':
|
|
37471
|
+
return dayPeriodEnumValue.toUpperCase();
|
|
37472
|
+
|
|
37473
|
+
case 'aaa':
|
|
37474
|
+
return dayPeriodEnumValue;
|
|
37475
|
+
|
|
37476
|
+
case 'aaaaa':
|
|
37477
|
+
return dayPeriodEnumValue[0];
|
|
37478
|
+
|
|
37479
|
+
case 'aaaa':
|
|
37480
|
+
default:
|
|
37481
|
+
return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
|
|
37482
|
+
}
|
|
37483
|
+
},
|
|
37484
|
+
// Hour [1-12]
|
|
37485
|
+
h: function (date, token) {
|
|
37486
|
+
return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
|
|
37487
|
+
},
|
|
37488
|
+
// Hour [0-23]
|
|
37489
|
+
H: function (date, token) {
|
|
37490
|
+
return addLeadingZeros(date.getUTCHours(), token.length);
|
|
37491
|
+
},
|
|
37492
|
+
// Minute
|
|
37493
|
+
m: function (date, token) {
|
|
37494
|
+
return addLeadingZeros(date.getUTCMinutes(), token.length);
|
|
37495
|
+
},
|
|
37496
|
+
// Second
|
|
37497
|
+
s: function (date, token) {
|
|
37498
|
+
return addLeadingZeros(date.getUTCSeconds(), token.length);
|
|
37499
|
+
},
|
|
37500
|
+
// Fraction of second
|
|
37501
|
+
S: function (date, token) {
|
|
37502
|
+
var numberOfDigits = token.length;
|
|
37503
|
+
var milliseconds = date.getUTCMilliseconds();
|
|
37504
|
+
var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
|
|
37505
|
+
return addLeadingZeros(fractionalSeconds, token.length);
|
|
37506
|
+
}
|
|
37507
|
+
};
|
|
37508
|
+
var lightFormatters = formatters$2;
|
|
37509
|
+
|
|
37496
37510
|
var dayPeriodEnum = {
|
|
37497
37511
|
am: 'am',
|
|
37498
37512
|
pm: 'pm',
|
|
@@ -38404,7 +38418,7 @@ function timeLongFormatter(pattern, formatLong) {
|
|
|
38404
38418
|
}
|
|
38405
38419
|
|
|
38406
38420
|
function dateTimeLongFormatter(pattern, formatLong) {
|
|
38407
|
-
var matchResult = pattern.match(/(P+)(p+)?/);
|
|
38421
|
+
var matchResult = pattern.match(/(P+)(p+)?/) || [];
|
|
38408
38422
|
var datePattern = matchResult[1];
|
|
38409
38423
|
var timePattern = matchResult[2];
|
|
38410
38424
|
|
|
@@ -38752,7 +38766,7 @@ var unescapedLatinCharacterRegExp$1 = /[a-zA-Z]/;
|
|
|
38752
38766
|
* 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
|
|
38753
38767
|
* You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
|
|
38754
38768
|
*
|
|
38755
|
-
* 9. `D` and `DD` tokens represent days of the year but they are
|
|
38769
|
+
* 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
|
|
38756
38770
|
* You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
|
|
38757
38771
|
*
|
|
38758
38772
|
* ### v2.0.0 breaking changes:
|
|
@@ -41389,7 +41403,7 @@ var parsers = {
|
|
|
41389
41403
|
date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
|
|
41390
41404
|
return date;
|
|
41391
41405
|
},
|
|
41392
|
-
incompatibleTokens: ['b', 'B', 'H', '
|
|
41406
|
+
incompatibleTokens: ['b', 'B', 'H', 'k', 't', 'T']
|
|
41393
41407
|
},
|
|
41394
41408
|
// AM, PM, midnight
|
|
41395
41409
|
b: {
|
|
@@ -41431,7 +41445,7 @@ var parsers = {
|
|
|
41431
41445
|
date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
|
|
41432
41446
|
return date;
|
|
41433
41447
|
},
|
|
41434
|
-
incompatibleTokens: ['a', 'B', 'H', '
|
|
41448
|
+
incompatibleTokens: ['a', 'B', 'H', 'k', 't', 'T']
|
|
41435
41449
|
},
|
|
41436
41450
|
// in the morning, in the afternoon, in the evening, at night
|
|
41437
41451
|
B: {
|
|
@@ -41567,7 +41581,7 @@ var parsers = {
|
|
|
41567
41581
|
|
|
41568
41582
|
return date;
|
|
41569
41583
|
},
|
|
41570
|
-
incompatibleTokens: ['
|
|
41584
|
+
incompatibleTokens: ['h', 'H', 'k', 't', 'T']
|
|
41571
41585
|
},
|
|
41572
41586
|
// Hour [1-24]
|
|
41573
41587
|
k: {
|
|
@@ -41925,7 +41939,7 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
|
41925
41939
|
* | | | tt | ... | 2 |
|
|
41926
41940
|
* | Fraction of second | 30 | S | 0, 1, ..., 9 | |
|
|
41927
41941
|
* | | | SS | 00, 01, ..., 99 | |
|
|
41928
|
-
* | | | SSS | 000,
|
|
41942
|
+
* | | | SSS | 000, 001, ..., 999 | |
|
|
41929
41943
|
* | | | SSSS | ... | 2 |
|
|
41930
41944
|
* | Milliseconds timestamp | 20 | T | 512969520900 | |
|
|
41931
41945
|
* | | | TT | ... | 2 |
|
|
@@ -43534,10 +43548,10 @@ var differenceInDays$1 = /*#__PURE__*/Object.freeze({
|
|
|
43534
43548
|
/**
|
|
43535
43549
|
* @name isSameMonth
|
|
43536
43550
|
* @category Month Helpers
|
|
43537
|
-
* @summary Are the given dates in the same month?
|
|
43551
|
+
* @summary Are the given dates in the same month (and year)?
|
|
43538
43552
|
*
|
|
43539
43553
|
* @description
|
|
43540
|
-
* Are the given dates in the same month?
|
|
43554
|
+
* Are the given dates in the same month (and year)?
|
|
43541
43555
|
*
|
|
43542
43556
|
* ### v2.0.0 breaking changes:
|
|
43543
43557
|
*
|
|
@@ -43545,13 +43559,18 @@ var differenceInDays$1 = /*#__PURE__*/Object.freeze({
|
|
|
43545
43559
|
*
|
|
43546
43560
|
* @param {Date|Number} dateLeft - the first date to check
|
|
43547
43561
|
* @param {Date|Number} dateRight - the second date to check
|
|
43548
|
-
* @returns {Boolean} the dates are in the same month
|
|
43562
|
+
* @returns {Boolean} the dates are in the same month (and year)
|
|
43549
43563
|
* @throws {TypeError} 2 arguments required
|
|
43550
43564
|
*
|
|
43551
43565
|
* @example
|
|
43552
43566
|
* // Are 2 September 2014 and 25 September 2014 in the same month?
|
|
43553
43567
|
* var result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))
|
|
43554
43568
|
* //=> true
|
|
43569
|
+
*
|
|
43570
|
+
* @example
|
|
43571
|
+
* // Are 2 September 2014 and 25 September 2015 in the same month?
|
|
43572
|
+
* var result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))
|
|
43573
|
+
* //=> false
|
|
43555
43574
|
*/
|
|
43556
43575
|
|
|
43557
43576
|
function isSameMonth(dirtyDateLeft, dirtyDateRight) {
|
|
@@ -46892,6 +46911,19 @@ var themeWeb = createTheme({
|
|
|
46892
46911
|
padding: 0,
|
|
46893
46912
|
},
|
|
46894
46913
|
},
|
|
46914
|
+
MuiTypography: {
|
|
46915
|
+
root: {
|
|
46916
|
+
"&.MuiTypography-h4": {
|
|
46917
|
+
".gds-toolbar-title &": {
|
|
46918
|
+
textTransform: 'uppercase',
|
|
46919
|
+
color: pallettes$1.brand.primary.main + " !important",
|
|
46920
|
+
fontSize: typography$1.h4.fontSize,
|
|
46921
|
+
fontWeight: typography$1.h4.fontWeight,
|
|
46922
|
+
lineHeight: typography$1.h4.lineHeight,
|
|
46923
|
+
}
|
|
46924
|
+
}
|
|
46925
|
+
},
|
|
46926
|
+
},
|
|
46895
46927
|
MuiAppBar: {
|
|
46896
46928
|
root: {
|
|
46897
46929
|
color: common.brand.neutral.white,
|
|
@@ -47640,7 +47672,6 @@ var themeWeb = createTheme({
|
|
|
47640
47672
|
lineHeight: 1.5715,
|
|
47641
47673
|
letterSpacing: '0.01rem',
|
|
47642
47674
|
padding: '.25rem 1.25rem',
|
|
47643
|
-
'&.gds-startIcon': {},
|
|
47644
47675
|
'&:hover': {
|
|
47645
47676
|
backgroundColor: pallettes$1.brand.primary.transparent,
|
|
47646
47677
|
color: pallettes$1.brand.primary.main,
|
|
@@ -48018,6 +48049,9 @@ var themeWeb = createTheme({
|
|
|
48018
48049
|
paddingRight: 16,
|
|
48019
48050
|
'& .gds-buttons-w-divider': {
|
|
48020
48051
|
paddingLeft: 16,
|
|
48052
|
+
"& button:last-child": {
|
|
48053
|
+
marginLeft: '16px'
|
|
48054
|
+
}
|
|
48021
48055
|
},
|
|
48022
48056
|
'& .MuiInputBase-root, & .MuiButtonBase-root': {
|
|
48023
48057
|
maxHeight: 32,
|
|
@@ -48986,14 +49020,26 @@ var themeDesktop = createTheme({
|
|
|
48986
49020
|
backgroundColor: pallettes.brand.utility.accent.dark,
|
|
48987
49021
|
color: '#fff',
|
|
48988
49022
|
cursor: 'default',
|
|
49023
|
+
'&:not($selected) svg': {
|
|
49024
|
+
color: pallettes.brand.primary.contrastText,
|
|
49025
|
+
},
|
|
48989
49026
|
}, '&:hover .MuiListItemText-root .MuiTypography-root': {
|
|
48990
49027
|
color: '#fff',
|
|
48991
49028
|
}, '&$selected': {
|
|
48992
49029
|
backgroundColor: pallettes.brand.background.selected,
|
|
48993
49030
|
color: '#fff',
|
|
49031
|
+
'& svg': {
|
|
49032
|
+
color: pallettes.grey['50'],
|
|
49033
|
+
},
|
|
49034
|
+
}, '&.gds-menu-item-checked': {
|
|
49035
|
+
"&:not($selected) svg": {
|
|
49036
|
+
color: pallettes.pallette.action.selected,
|
|
49037
|
+
},
|
|
48994
49038
|
}, "&.gds-menu-item-icon": {
|
|
49039
|
+
paddingLeft: 32,
|
|
48995
49040
|
"& .MuiListItemIcon-root": {
|
|
48996
|
-
|
|
49041
|
+
position: 'absolute',
|
|
49042
|
+
left: 8,
|
|
48997
49043
|
}
|
|
48998
49044
|
}, '.customMultipleList &$selected': {
|
|
48999
49045
|
backgroundColor: '#fff',
|
|
@@ -49256,6 +49302,12 @@ var themeDesktop = createTheme({
|
|
|
49256
49302
|
MuiTypography: {
|
|
49257
49303
|
root: {
|
|
49258
49304
|
color: pallettes.brand.text.main,
|
|
49305
|
+
"&.MuiTypography-h4": {
|
|
49306
|
+
".gds-toolbar-title &": {
|
|
49307
|
+
marginBottom: '0',
|
|
49308
|
+
color: pallettes.brand.primary.light + " !important",
|
|
49309
|
+
}
|
|
49310
|
+
}
|
|
49259
49311
|
},
|
|
49260
49312
|
},
|
|
49261
49313
|
MuiTooltip: {
|