@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.js
CHANGED
|
@@ -5707,7 +5707,7 @@ var Jss =
|
|
|
5707
5707
|
function () {
|
|
5708
5708
|
function Jss(options) {
|
|
5709
5709
|
this.id = instanceCounter++;
|
|
5710
|
-
this.version = "10.8.
|
|
5710
|
+
this.version = "10.8.2";
|
|
5711
5711
|
this.plugins = new PluginsRegistry();
|
|
5712
5712
|
this.options = {
|
|
5713
5713
|
id: {
|
|
@@ -33794,7 +33794,7 @@ var typography$1 = {
|
|
|
33794
33794
|
h4: {
|
|
33795
33795
|
fontFamily: ['Open Sans', 'Helvetica', 'Arial'].join(','),
|
|
33796
33796
|
fontWeight: 500,
|
|
33797
|
-
fontSize: '
|
|
33797
|
+
fontSize: '16px',
|
|
33798
33798
|
lineHeight: '1.5rem',
|
|
33799
33799
|
letterSpacing: '0',
|
|
33800
33800
|
},
|
|
@@ -33953,9 +33953,10 @@ var AvatarsGroup = function (props) {
|
|
|
33953
33953
|
}
|
|
33954
33954
|
var clampedMax = props.max < 2 ? 2 : props.max;
|
|
33955
33955
|
var avatarCount = props.children.length > clampedMax ? props.children.length - clampedMax + 1 : 0;
|
|
33956
|
+
var count = props.children.length >= 2;
|
|
33956
33957
|
var avatars = props.children.length > 1 ? props.children.slice(0, props.children.length - avatarCount) : props.children;
|
|
33957
33958
|
return (React__default["default"].createElement(React__default["default"].Fragment, null, tooltip ?
|
|
33958
|
-
React__default["default"].createElement(AvatarGroup$1, __assign$1({}, defaultProps, { spacing: 6, className: clsx(classes.avatarBorder, sizeProp, colorProp) }),
|
|
33959
|
+
React__default["default"].createElement(AvatarGroup$1, __assign$1({}, defaultProps, { spacing: 6, className: clsx(count && classes.avatarBorder, sizeProp, colorProp) }),
|
|
33959
33960
|
React__default["default"].Children.map(avatars, function (child) {
|
|
33960
33961
|
return React__default["default"].cloneElement(child);
|
|
33961
33962
|
}),
|
|
@@ -33963,7 +33964,7 @@ var AvatarsGroup = function (props) {
|
|
|
33963
33964
|
"+",
|
|
33964
33965
|
avatarCount)) : null)
|
|
33965
33966
|
:
|
|
33966
|
-
React__default["default"].createElement(AvatarGroup$1, __assign$1({}, defaultProps, { spacing: 6, className: clsx(classes.avatarBorder, sizeProp, colorProp) }), props.children)));
|
|
33967
|
+
React__default["default"].createElement(AvatarGroup$1, __assign$1({}, defaultProps, { spacing: 6, className: clsx(count && classes.avatarBorder, sizeProp, colorProp) }), props.children)));
|
|
33967
33968
|
};
|
|
33968
33969
|
|
|
33969
33970
|
var Box = function (props) {
|
|
@@ -34330,7 +34331,7 @@ var FormHeader = React__default["default"].forwardRef(function (props, ref) {
|
|
|
34330
34331
|
React__default["default"].createElement("div", { className: clsx(classes.root, 'gds-header_accent') },
|
|
34331
34332
|
React__default["default"].createElement(LawconnectIcon, { size: "260" })),
|
|
34332
34333
|
React__default["default"].createElement(Box$2, { className: clsx(classes.root, 'gds-header_detail') },
|
|
34333
|
-
React__default["default"].createElement(Grid$2, { item: true, xs: 5 }, props.platformWeb ? (React__default["default"].createElement(Typography, { color: "default", variant: "body2", upperCase: true }, props.title)) : (React__default["default"].createElement(Typography, {
|
|
34334
|
+
React__default["default"].createElement(Grid$2, { item: true, xs: 5, className: clsx("gds-toolbar-title") }, props.platformWeb ? (React__default["default"].createElement(Typography, { color: "default", variant: "body2", upperCase: true }, props.title)) : (React__default["default"].createElement(Typography, { variant: "h4", upperCase: true }, props.title))),
|
|
34334
34335
|
React__default["default"].createElement(Grid$2, { item: true, xs: 7 },
|
|
34335
34336
|
React__default["default"].createElement(Grid$2, { container: true, alignItems: "center", justifyContent: "flex-end", className: clsx(classes.root, 'gds-header_info') },
|
|
34336
34337
|
props.from ? (React__default["default"].createElement(Typography, { align: "right", variant: "body2" }, props.from)) : null,
|
|
@@ -35795,6 +35796,9 @@ var useStyles$a = makeStyles(function (theme) {
|
|
|
35795
35796
|
justifyContent: "space-between",
|
|
35796
35797
|
alignItems: "flex-end",
|
|
35797
35798
|
}); },
|
|
35799
|
+
toolbarContent: {
|
|
35800
|
+
marginTop: '10px',
|
|
35801
|
+
}
|
|
35798
35802
|
});
|
|
35799
35803
|
});
|
|
35800
35804
|
var HeaderToolbar = function (_a) {
|
|
@@ -35803,10 +35807,10 @@ var HeaderToolbar = function (_a) {
|
|
|
35803
35807
|
var classes = useStyles$a({ bgColor: bgColor, bgImageURL: bgImageURL, right: right, bgPosition: bgPosition, bgSize: bgSize, titleVisibility: titleVisibility, divider: divider });
|
|
35804
35808
|
return (React__default["default"].createElement(Toolbar$2, { className: clsx('gds-header-toolbar', classes.bgWrapper, (_b = {}, _b['with-title'] = titleVisibility, _b)) },
|
|
35805
35809
|
React__default["default"].createElement(Box$2, { className: clsx(classes.toolbarWrap) },
|
|
35806
|
-
React__default["default"].createElement(Box$2, { className: clsx(classes.toolbarContainer) },
|
|
35810
|
+
React__default["default"].createElement(Box$2, { className: clsx(classes.toolbarContainer, "gds-toolbar-title") },
|
|
35807
35811
|
title && (tooltip ? (React__default["default"].createElement(Tooltip, { title: title, placement: "bottom-start" },
|
|
35808
|
-
React__default["default"].createElement(Typography, { gutterBottom: true, variant: "
|
|
35809
|
-
left),
|
|
35812
|
+
React__default["default"].createElement(Typography, { gutterBottom: true, variant: "h4", noWrap: true, upperCase: true }, title))) : (React__default["default"].createElement(Typography, { gutterBottom: true, variant: "h4", noWrap: true, upperCase: true }, title))),
|
|
35813
|
+
React__default["default"].createElement(Box$2, { className: clsx(classes.toolbarContent) }, left)),
|
|
35810
35814
|
right && (React__default["default"].createElement(Box$2, { className: clsx("gds-buttons-w-divider", classes.containerDivider) }, right)))));
|
|
35811
35815
|
};
|
|
35812
35816
|
|
|
@@ -36530,10 +36534,10 @@ var startOfDay$1 = /*#__PURE__*/Object.freeze({
|
|
|
36530
36534
|
/**
|
|
36531
36535
|
* @name isSameDay
|
|
36532
36536
|
* @category Day Helpers
|
|
36533
|
-
* @summary Are the given dates in the same day?
|
|
36537
|
+
* @summary Are the given dates in the same day (and year and month)?
|
|
36534
36538
|
*
|
|
36535
36539
|
* @description
|
|
36536
|
-
* Are the given dates in the same day?
|
|
36540
|
+
* Are the given dates in the same day (and year and month)?
|
|
36537
36541
|
*
|
|
36538
36542
|
* ### v2.0.0 breaking changes:
|
|
36539
36543
|
*
|
|
@@ -36541,13 +36545,23 @@ var startOfDay$1 = /*#__PURE__*/Object.freeze({
|
|
|
36541
36545
|
*
|
|
36542
36546
|
* @param {Date|Number} dateLeft - the first date to check
|
|
36543
36547
|
* @param {Date|Number} dateRight - the second date to check
|
|
36544
|
-
* @returns {Boolean} the dates are in the same day
|
|
36548
|
+
* @returns {Boolean} the dates are in the same day (and year and month)
|
|
36545
36549
|
* @throws {TypeError} 2 arguments required
|
|
36546
36550
|
*
|
|
36547
36551
|
* @example
|
|
36548
36552
|
* // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
|
|
36549
36553
|
* var result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
|
|
36550
36554
|
* //=> true
|
|
36555
|
+
*
|
|
36556
|
+
* @example
|
|
36557
|
+
* // Are 4 September and 4 October in the same day?
|
|
36558
|
+
* var result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
|
|
36559
|
+
* //=> false
|
|
36560
|
+
*
|
|
36561
|
+
* @example
|
|
36562
|
+
* // Are 4 September, 2014 and 4 September, 2015 in the same day?
|
|
36563
|
+
* var result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
|
|
36564
|
+
* //=> false
|
|
36551
36565
|
*/
|
|
36552
36566
|
|
|
36553
36567
|
function isSameDay(dirtyDateLeft, dirtyDateRight) {
|
|
@@ -36844,7 +36858,7 @@ function buildLocalizeFn(args) {
|
|
|
36844
36858
|
valuesArray = args.values[_width] || args.values[_defaultWidth];
|
|
36845
36859
|
}
|
|
36846
36860
|
|
|
36847
|
-
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
|
|
36861
|
+
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!
|
|
36848
36862
|
|
|
36849
36863
|
return valuesArray[index];
|
|
36850
36864
|
};
|
|
@@ -37263,101 +37277,6 @@ function subMilliseconds(dirtyDate, dirtyAmount) {
|
|
|
37263
37277
|
return addMilliseconds(dirtyDate, -amount);
|
|
37264
37278
|
}
|
|
37265
37279
|
|
|
37266
|
-
function addLeadingZeros(number, targetLength) {
|
|
37267
|
-
var sign = number < 0 ? '-' : '';
|
|
37268
|
-
var output = Math.abs(number).toString();
|
|
37269
|
-
|
|
37270
|
-
while (output.length < targetLength) {
|
|
37271
|
-
output = '0' + output;
|
|
37272
|
-
}
|
|
37273
|
-
|
|
37274
|
-
return sign + output;
|
|
37275
|
-
}
|
|
37276
|
-
|
|
37277
|
-
/*
|
|
37278
|
-
* | | Unit | | Unit |
|
|
37279
|
-
* |-----|--------------------------------|-----|--------------------------------|
|
|
37280
|
-
* | a | AM, PM | A* | |
|
|
37281
|
-
* | d | Day of month | D | |
|
|
37282
|
-
* | h | Hour [1-12] | H | Hour [0-23] |
|
|
37283
|
-
* | m | Minute | M | Month |
|
|
37284
|
-
* | s | Second | S | Fraction of second |
|
|
37285
|
-
* | y | Year (abs) | Y | |
|
|
37286
|
-
*
|
|
37287
|
-
* Letters marked by * are not implemented but reserved by Unicode standard.
|
|
37288
|
-
*/
|
|
37289
|
-
|
|
37290
|
-
var formatters$2 = {
|
|
37291
|
-
// Year
|
|
37292
|
-
y: function (date, token) {
|
|
37293
|
-
// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
|
|
37294
|
-
// | Year | y | yy | yyy | yyyy | yyyyy |
|
|
37295
|
-
// |----------|-------|----|-------|-------|-------|
|
|
37296
|
-
// | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
|
|
37297
|
-
// | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
|
|
37298
|
-
// | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
|
|
37299
|
-
// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
|
|
37300
|
-
// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
|
|
37301
|
-
var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
|
|
37302
|
-
|
|
37303
|
-
var year = signedYear > 0 ? signedYear : 1 - signedYear;
|
|
37304
|
-
return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
|
|
37305
|
-
},
|
|
37306
|
-
// Month
|
|
37307
|
-
M: function (date, token) {
|
|
37308
|
-
var month = date.getUTCMonth();
|
|
37309
|
-
return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
|
|
37310
|
-
},
|
|
37311
|
-
// Day of the month
|
|
37312
|
-
d: function (date, token) {
|
|
37313
|
-
return addLeadingZeros(date.getUTCDate(), token.length);
|
|
37314
|
-
},
|
|
37315
|
-
// AM or PM
|
|
37316
|
-
a: function (date, token) {
|
|
37317
|
-
var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
|
|
37318
|
-
|
|
37319
|
-
switch (token) {
|
|
37320
|
-
case 'a':
|
|
37321
|
-
case 'aa':
|
|
37322
|
-
return dayPeriodEnumValue.toUpperCase();
|
|
37323
|
-
|
|
37324
|
-
case 'aaa':
|
|
37325
|
-
return dayPeriodEnumValue;
|
|
37326
|
-
|
|
37327
|
-
case 'aaaaa':
|
|
37328
|
-
return dayPeriodEnumValue[0];
|
|
37329
|
-
|
|
37330
|
-
case 'aaaa':
|
|
37331
|
-
default:
|
|
37332
|
-
return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
|
|
37333
|
-
}
|
|
37334
|
-
},
|
|
37335
|
-
// Hour [1-12]
|
|
37336
|
-
h: function (date, token) {
|
|
37337
|
-
return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
|
|
37338
|
-
},
|
|
37339
|
-
// Hour [0-23]
|
|
37340
|
-
H: function (date, token) {
|
|
37341
|
-
return addLeadingZeros(date.getUTCHours(), token.length);
|
|
37342
|
-
},
|
|
37343
|
-
// Minute
|
|
37344
|
-
m: function (date, token) {
|
|
37345
|
-
return addLeadingZeros(date.getUTCMinutes(), token.length);
|
|
37346
|
-
},
|
|
37347
|
-
// Second
|
|
37348
|
-
s: function (date, token) {
|
|
37349
|
-
return addLeadingZeros(date.getUTCSeconds(), token.length);
|
|
37350
|
-
},
|
|
37351
|
-
// Fraction of second
|
|
37352
|
-
S: function (date, token) {
|
|
37353
|
-
var numberOfDigits = token.length;
|
|
37354
|
-
var milliseconds = date.getUTCMilliseconds();
|
|
37355
|
-
var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
|
|
37356
|
-
return addLeadingZeros(fractionalSeconds, token.length);
|
|
37357
|
-
}
|
|
37358
|
-
};
|
|
37359
|
-
var lightFormatters = formatters$2;
|
|
37360
|
-
|
|
37361
37280
|
var MILLISECONDS_IN_DAY$1 = 86400000; // This function will be a part of public API when UTC function will be implemented.
|
|
37362
37281
|
// See issue: https://github.com/date-fns/date-fns/issues/376
|
|
37363
37282
|
|
|
@@ -37460,7 +37379,7 @@ function startOfUTCWeek(dirtyDate, dirtyOptions) {
|
|
|
37460
37379
|
|
|
37461
37380
|
function getUTCWeekYear(dirtyDate, dirtyOptions) {
|
|
37462
37381
|
requiredArgs(1, arguments);
|
|
37463
|
-
var date = toDate(dirtyDate
|
|
37382
|
+
var date = toDate(dirtyDate);
|
|
37464
37383
|
var year = date.getUTCFullYear();
|
|
37465
37384
|
var options = dirtyOptions || {};
|
|
37466
37385
|
var locale = options.locale;
|
|
@@ -37520,6 +37439,101 @@ function getUTCWeek(dirtyDate, options) {
|
|
|
37520
37439
|
return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
|
|
37521
37440
|
}
|
|
37522
37441
|
|
|
37442
|
+
function addLeadingZeros(number, targetLength) {
|
|
37443
|
+
var sign = number < 0 ? '-' : '';
|
|
37444
|
+
var output = Math.abs(number).toString();
|
|
37445
|
+
|
|
37446
|
+
while (output.length < targetLength) {
|
|
37447
|
+
output = '0' + output;
|
|
37448
|
+
}
|
|
37449
|
+
|
|
37450
|
+
return sign + output;
|
|
37451
|
+
}
|
|
37452
|
+
|
|
37453
|
+
/*
|
|
37454
|
+
* | | Unit | | Unit |
|
|
37455
|
+
* |-----|--------------------------------|-----|--------------------------------|
|
|
37456
|
+
* | a | AM, PM | A* | |
|
|
37457
|
+
* | d | Day of month | D | |
|
|
37458
|
+
* | h | Hour [1-12] | H | Hour [0-23] |
|
|
37459
|
+
* | m | Minute | M | Month |
|
|
37460
|
+
* | s | Second | S | Fraction of second |
|
|
37461
|
+
* | y | Year (abs) | Y | |
|
|
37462
|
+
*
|
|
37463
|
+
* Letters marked by * are not implemented but reserved by Unicode standard.
|
|
37464
|
+
*/
|
|
37465
|
+
|
|
37466
|
+
var formatters$2 = {
|
|
37467
|
+
// Year
|
|
37468
|
+
y: function (date, token) {
|
|
37469
|
+
// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
|
|
37470
|
+
// | Year | y | yy | yyy | yyyy | yyyyy |
|
|
37471
|
+
// |----------|-------|----|-------|-------|-------|
|
|
37472
|
+
// | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
|
|
37473
|
+
// | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
|
|
37474
|
+
// | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
|
|
37475
|
+
// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
|
|
37476
|
+
// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
|
|
37477
|
+
var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
|
|
37478
|
+
|
|
37479
|
+
var year = signedYear > 0 ? signedYear : 1 - signedYear;
|
|
37480
|
+
return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
|
|
37481
|
+
},
|
|
37482
|
+
// Month
|
|
37483
|
+
M: function (date, token) {
|
|
37484
|
+
var month = date.getUTCMonth();
|
|
37485
|
+
return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
|
|
37486
|
+
},
|
|
37487
|
+
// Day of the month
|
|
37488
|
+
d: function (date, token) {
|
|
37489
|
+
return addLeadingZeros(date.getUTCDate(), token.length);
|
|
37490
|
+
},
|
|
37491
|
+
// AM or PM
|
|
37492
|
+
a: function (date, token) {
|
|
37493
|
+
var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
|
|
37494
|
+
|
|
37495
|
+
switch (token) {
|
|
37496
|
+
case 'a':
|
|
37497
|
+
case 'aa':
|
|
37498
|
+
return dayPeriodEnumValue.toUpperCase();
|
|
37499
|
+
|
|
37500
|
+
case 'aaa':
|
|
37501
|
+
return dayPeriodEnumValue;
|
|
37502
|
+
|
|
37503
|
+
case 'aaaaa':
|
|
37504
|
+
return dayPeriodEnumValue[0];
|
|
37505
|
+
|
|
37506
|
+
case 'aaaa':
|
|
37507
|
+
default:
|
|
37508
|
+
return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
|
|
37509
|
+
}
|
|
37510
|
+
},
|
|
37511
|
+
// Hour [1-12]
|
|
37512
|
+
h: function (date, token) {
|
|
37513
|
+
return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
|
|
37514
|
+
},
|
|
37515
|
+
// Hour [0-23]
|
|
37516
|
+
H: function (date, token) {
|
|
37517
|
+
return addLeadingZeros(date.getUTCHours(), token.length);
|
|
37518
|
+
},
|
|
37519
|
+
// Minute
|
|
37520
|
+
m: function (date, token) {
|
|
37521
|
+
return addLeadingZeros(date.getUTCMinutes(), token.length);
|
|
37522
|
+
},
|
|
37523
|
+
// Second
|
|
37524
|
+
s: function (date, token) {
|
|
37525
|
+
return addLeadingZeros(date.getUTCSeconds(), token.length);
|
|
37526
|
+
},
|
|
37527
|
+
// Fraction of second
|
|
37528
|
+
S: function (date, token) {
|
|
37529
|
+
var numberOfDigits = token.length;
|
|
37530
|
+
var milliseconds = date.getUTCMilliseconds();
|
|
37531
|
+
var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
|
|
37532
|
+
return addLeadingZeros(fractionalSeconds, token.length);
|
|
37533
|
+
}
|
|
37534
|
+
};
|
|
37535
|
+
var lightFormatters = formatters$2;
|
|
37536
|
+
|
|
37523
37537
|
var dayPeriodEnum = {
|
|
37524
37538
|
am: 'am',
|
|
37525
37539
|
pm: 'pm',
|
|
@@ -38431,7 +38445,7 @@ function timeLongFormatter(pattern, formatLong) {
|
|
|
38431
38445
|
}
|
|
38432
38446
|
|
|
38433
38447
|
function dateTimeLongFormatter(pattern, formatLong) {
|
|
38434
|
-
var matchResult = pattern.match(/(P+)(p+)?/);
|
|
38448
|
+
var matchResult = pattern.match(/(P+)(p+)?/) || [];
|
|
38435
38449
|
var datePattern = matchResult[1];
|
|
38436
38450
|
var timePattern = matchResult[2];
|
|
38437
38451
|
|
|
@@ -38779,7 +38793,7 @@ var unescapedLatinCharacterRegExp$1 = /[a-zA-Z]/;
|
|
|
38779
38793
|
* 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
|
|
38780
38794
|
* You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
|
|
38781
38795
|
*
|
|
38782
|
-
* 9. `D` and `DD` tokens represent days of the year but they are
|
|
38796
|
+
* 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
|
|
38783
38797
|
* You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
|
|
38784
38798
|
*
|
|
38785
38799
|
* ### v2.0.0 breaking changes:
|
|
@@ -41416,7 +41430,7 @@ var parsers = {
|
|
|
41416
41430
|
date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
|
|
41417
41431
|
return date;
|
|
41418
41432
|
},
|
|
41419
|
-
incompatibleTokens: ['b', 'B', 'H', '
|
|
41433
|
+
incompatibleTokens: ['b', 'B', 'H', 'k', 't', 'T']
|
|
41420
41434
|
},
|
|
41421
41435
|
// AM, PM, midnight
|
|
41422
41436
|
b: {
|
|
@@ -41458,7 +41472,7 @@ var parsers = {
|
|
|
41458
41472
|
date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
|
|
41459
41473
|
return date;
|
|
41460
41474
|
},
|
|
41461
|
-
incompatibleTokens: ['a', 'B', 'H', '
|
|
41475
|
+
incompatibleTokens: ['a', 'B', 'H', 'k', 't', 'T']
|
|
41462
41476
|
},
|
|
41463
41477
|
// in the morning, in the afternoon, in the evening, at night
|
|
41464
41478
|
B: {
|
|
@@ -41594,7 +41608,7 @@ var parsers = {
|
|
|
41594
41608
|
|
|
41595
41609
|
return date;
|
|
41596
41610
|
},
|
|
41597
|
-
incompatibleTokens: ['
|
|
41611
|
+
incompatibleTokens: ['h', 'H', 'k', 't', 'T']
|
|
41598
41612
|
},
|
|
41599
41613
|
// Hour [1-24]
|
|
41600
41614
|
k: {
|
|
@@ -41952,7 +41966,7 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
|
41952
41966
|
* | | | tt | ... | 2 |
|
|
41953
41967
|
* | Fraction of second | 30 | S | 0, 1, ..., 9 | |
|
|
41954
41968
|
* | | | SS | 00, 01, ..., 99 | |
|
|
41955
|
-
* | | | SSS | 000,
|
|
41969
|
+
* | | | SSS | 000, 001, ..., 999 | |
|
|
41956
41970
|
* | | | SSSS | ... | 2 |
|
|
41957
41971
|
* | Milliseconds timestamp | 20 | T | 512969520900 | |
|
|
41958
41972
|
* | | | TT | ... | 2 |
|
|
@@ -43561,10 +43575,10 @@ var differenceInDays$1 = /*#__PURE__*/Object.freeze({
|
|
|
43561
43575
|
/**
|
|
43562
43576
|
* @name isSameMonth
|
|
43563
43577
|
* @category Month Helpers
|
|
43564
|
-
* @summary Are the given dates in the same month?
|
|
43578
|
+
* @summary Are the given dates in the same month (and year)?
|
|
43565
43579
|
*
|
|
43566
43580
|
* @description
|
|
43567
|
-
* Are the given dates in the same month?
|
|
43581
|
+
* Are the given dates in the same month (and year)?
|
|
43568
43582
|
*
|
|
43569
43583
|
* ### v2.0.0 breaking changes:
|
|
43570
43584
|
*
|
|
@@ -43572,13 +43586,18 @@ var differenceInDays$1 = /*#__PURE__*/Object.freeze({
|
|
|
43572
43586
|
*
|
|
43573
43587
|
* @param {Date|Number} dateLeft - the first date to check
|
|
43574
43588
|
* @param {Date|Number} dateRight - the second date to check
|
|
43575
|
-
* @returns {Boolean} the dates are in the same month
|
|
43589
|
+
* @returns {Boolean} the dates are in the same month (and year)
|
|
43576
43590
|
* @throws {TypeError} 2 arguments required
|
|
43577
43591
|
*
|
|
43578
43592
|
* @example
|
|
43579
43593
|
* // Are 2 September 2014 and 25 September 2014 in the same month?
|
|
43580
43594
|
* var result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))
|
|
43581
43595
|
* //=> true
|
|
43596
|
+
*
|
|
43597
|
+
* @example
|
|
43598
|
+
* // Are 2 September 2014 and 25 September 2015 in the same month?
|
|
43599
|
+
* var result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))
|
|
43600
|
+
* //=> false
|
|
43582
43601
|
*/
|
|
43583
43602
|
|
|
43584
43603
|
function isSameMonth(dirtyDateLeft, dirtyDateRight) {
|
|
@@ -46919,6 +46938,19 @@ var themeWeb = createTheme({
|
|
|
46919
46938
|
padding: 0,
|
|
46920
46939
|
},
|
|
46921
46940
|
},
|
|
46941
|
+
MuiTypography: {
|
|
46942
|
+
root: {
|
|
46943
|
+
"&.MuiTypography-h4": {
|
|
46944
|
+
".gds-toolbar-title &": {
|
|
46945
|
+
textTransform: 'uppercase',
|
|
46946
|
+
color: pallettes$1.brand.primary.main + " !important",
|
|
46947
|
+
fontSize: typography$1.h4.fontSize,
|
|
46948
|
+
fontWeight: typography$1.h4.fontWeight,
|
|
46949
|
+
lineHeight: typography$1.h4.lineHeight,
|
|
46950
|
+
}
|
|
46951
|
+
}
|
|
46952
|
+
},
|
|
46953
|
+
},
|
|
46922
46954
|
MuiAppBar: {
|
|
46923
46955
|
root: {
|
|
46924
46956
|
color: common.brand.neutral.white,
|
|
@@ -47667,7 +47699,6 @@ var themeWeb = createTheme({
|
|
|
47667
47699
|
lineHeight: 1.5715,
|
|
47668
47700
|
letterSpacing: '0.01rem',
|
|
47669
47701
|
padding: '.25rem 1.25rem',
|
|
47670
|
-
'&.gds-startIcon': {},
|
|
47671
47702
|
'&:hover': {
|
|
47672
47703
|
backgroundColor: pallettes$1.brand.primary.transparent,
|
|
47673
47704
|
color: pallettes$1.brand.primary.main,
|
|
@@ -48045,6 +48076,9 @@ var themeWeb = createTheme({
|
|
|
48045
48076
|
paddingRight: 16,
|
|
48046
48077
|
'& .gds-buttons-w-divider': {
|
|
48047
48078
|
paddingLeft: 16,
|
|
48079
|
+
"& button:last-child": {
|
|
48080
|
+
marginLeft: '16px'
|
|
48081
|
+
}
|
|
48048
48082
|
},
|
|
48049
48083
|
'& .MuiInputBase-root, & .MuiButtonBase-root': {
|
|
48050
48084
|
maxHeight: 32,
|
|
@@ -49013,14 +49047,26 @@ var themeDesktop = createTheme({
|
|
|
49013
49047
|
backgroundColor: pallettes.brand.utility.accent.dark,
|
|
49014
49048
|
color: '#fff',
|
|
49015
49049
|
cursor: 'default',
|
|
49050
|
+
'&:not($selected) svg': {
|
|
49051
|
+
color: pallettes.brand.primary.contrastText,
|
|
49052
|
+
},
|
|
49016
49053
|
}, '&:hover .MuiListItemText-root .MuiTypography-root': {
|
|
49017
49054
|
color: '#fff',
|
|
49018
49055
|
}, '&$selected': {
|
|
49019
49056
|
backgroundColor: pallettes.brand.background.selected,
|
|
49020
49057
|
color: '#fff',
|
|
49058
|
+
'& svg': {
|
|
49059
|
+
color: pallettes.grey['50'],
|
|
49060
|
+
},
|
|
49061
|
+
}, '&.gds-menu-item-checked': {
|
|
49062
|
+
"&:not($selected) svg": {
|
|
49063
|
+
color: pallettes.pallette.action.selected,
|
|
49064
|
+
},
|
|
49021
49065
|
}, "&.gds-menu-item-icon": {
|
|
49066
|
+
paddingLeft: 32,
|
|
49022
49067
|
"& .MuiListItemIcon-root": {
|
|
49023
|
-
|
|
49068
|
+
position: 'absolute',
|
|
49069
|
+
left: 8,
|
|
49024
49070
|
}
|
|
49025
49071
|
}, '.customMultipleList &$selected': {
|
|
49026
49072
|
backgroundColor: '#fff',
|
|
@@ -49283,6 +49329,12 @@ var themeDesktop = createTheme({
|
|
|
49283
49329
|
MuiTypography: {
|
|
49284
49330
|
root: {
|
|
49285
49331
|
color: pallettes.brand.text.main,
|
|
49332
|
+
"&.MuiTypography-h4": {
|
|
49333
|
+
".gds-toolbar-title &": {
|
|
49334
|
+
marginBottom: '0',
|
|
49335
|
+
color: pallettes.brand.primary.light + " !important",
|
|
49336
|
+
}
|
|
49337
|
+
}
|
|
49286
49338
|
},
|
|
49287
49339
|
},
|
|
49288
49340
|
MuiTooltip: {
|