@galaxy-ds/core 1.1.59 → 1.1.62

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/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.2";
5710
+ this.version = "10.8.0";
5711
5711
  this.plugins = new PluginsRegistry();
5712
5712
  this.options = {
5713
5713
  id: {
@@ -33461,7 +33461,7 @@ var Avatar = function (props) {
33461
33461
  colorProp = "avatarDefault";
33462
33462
  }
33463
33463
  return (React__default["default"].createElement(React__default["default"].Fragment, null, tooltip ?
33464
- React__default["default"].createElement(Tooltip$2, { title: tooltip, placement: placement },
33464
+ React__default["default"].createElement(Tooltip$2, { arrow: true, title: tooltip, placement: placement },
33465
33465
  React__default["default"].createElement(MuiAvatar, __assign$1({}, rest, { variant: "circular", className: clsx(sizeProp, colorProp) })))
33466
33466
  :
33467
33467
  React__default["default"].createElement(MuiAvatar, __assign$1({}, rest, { variant: "circular", className: clsx(sizeProp, colorProp) }))));
@@ -34237,7 +34237,6 @@ var useStyles$n = makeStyles(function (theme) {
34237
34237
  var MenuItem = React__default["default"].forwardRef(function (props, ref) {
34238
34238
  var children = props.children, startAdornment = props.startAdornment, value = props.value, system = props.system, border = props.border, rest = __rest(props, ["children", "startAdornment", "value", "system", "border"]);
34239
34239
  var classes = useStyles$n();
34240
- console.log("soph", props);
34241
34240
  return (React__default["default"].createElement("div", { className: classes.root },
34242
34241
  React__default["default"].createElement(MuiMenuItem, __assign$1({ ref: ref }, rest, { button: true, className: clsx(classes.root, system ? "gds-menu-item-system" : "", startAdornment ? "gds-menu-item-icon" : "") }),
34243
34242
  startAdornment ? (React__default["default"].createElement(ListItemIcon, null, startAdornment)) : null,
@@ -36531,10 +36530,10 @@ var startOfDay$1 = /*#__PURE__*/Object.freeze({
36531
36530
  /**
36532
36531
  * @name isSameDay
36533
36532
  * @category Day Helpers
36534
- * @summary Are the given dates in the same day (and year and month)?
36533
+ * @summary Are the given dates in the same day?
36535
36534
  *
36536
36535
  * @description
36537
- * Are the given dates in the same day (and year and month)?
36536
+ * Are the given dates in the same day?
36538
36537
  *
36539
36538
  * ### v2.0.0 breaking changes:
36540
36539
  *
@@ -36542,23 +36541,13 @@ var startOfDay$1 = /*#__PURE__*/Object.freeze({
36542
36541
  *
36543
36542
  * @param {Date|Number} dateLeft - the first date to check
36544
36543
  * @param {Date|Number} dateRight - the second date to check
36545
- * @returns {Boolean} the dates are in the same day (and year and month)
36544
+ * @returns {Boolean} the dates are in the same day
36546
36545
  * @throws {TypeError} 2 arguments required
36547
36546
  *
36548
36547
  * @example
36549
36548
  * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
36550
36549
  * var result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
36551
36550
  * //=> true
36552
- *
36553
- * @example
36554
- * // Are 4 September and 4 October in the same day?
36555
- * var result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
36556
- * //=> false
36557
- *
36558
- * @example
36559
- * // Are 4 September, 2014 and 4 September, 2015 in the same day?
36560
- * var result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
36561
- * //=> false
36562
36551
  */
36563
36552
 
36564
36553
  function isSameDay(dirtyDateLeft, dirtyDateRight) {
@@ -36855,7 +36844,7 @@ function buildLocalizeFn(args) {
36855
36844
  valuesArray = args.values[_width] || args.values[_defaultWidth];
36856
36845
  }
36857
36846
 
36858
- 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!
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 challange you to try to remove it!
36859
36848
 
36860
36849
  return valuesArray[index];
36861
36850
  };
@@ -37274,6 +37263,101 @@ function subMilliseconds(dirtyDate, dirtyAmount) {
37274
37263
  return addMilliseconds(dirtyDate, -amount);
37275
37264
  }
37276
37265
 
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
+
37277
37361
  var MILLISECONDS_IN_DAY$1 = 86400000; // This function will be a part of public API when UTC function will be implemented.
37278
37362
  // See issue: https://github.com/date-fns/date-fns/issues/376
37279
37363
 
@@ -37376,7 +37460,7 @@ function startOfUTCWeek(dirtyDate, dirtyOptions) {
37376
37460
 
37377
37461
  function getUTCWeekYear(dirtyDate, dirtyOptions) {
37378
37462
  requiredArgs(1, arguments);
37379
- var date = toDate(dirtyDate);
37463
+ var date = toDate(dirtyDate, dirtyOptions);
37380
37464
  var year = date.getUTCFullYear();
37381
37465
  var options = dirtyOptions || {};
37382
37466
  var locale = options.locale;
@@ -37436,101 +37520,6 @@ function getUTCWeek(dirtyDate, options) {
37436
37520
  return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
37437
37521
  }
37438
37522
 
37439
- function addLeadingZeros(number, targetLength) {
37440
- var sign = number < 0 ? '-' : '';
37441
- var output = Math.abs(number).toString();
37442
-
37443
- while (output.length < targetLength) {
37444
- output = '0' + output;
37445
- }
37446
-
37447
- return sign + output;
37448
- }
37449
-
37450
- /*
37451
- * | | Unit | | Unit |
37452
- * |-----|--------------------------------|-----|--------------------------------|
37453
- * | a | AM, PM | A* | |
37454
- * | d | Day of month | D | |
37455
- * | h | Hour [1-12] | H | Hour [0-23] |
37456
- * | m | Minute | M | Month |
37457
- * | s | Second | S | Fraction of second |
37458
- * | y | Year (abs) | Y | |
37459
- *
37460
- * Letters marked by * are not implemented but reserved by Unicode standard.
37461
- */
37462
-
37463
- var formatters$2 = {
37464
- // Year
37465
- y: function (date, token) {
37466
- // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
37467
- // | Year | y | yy | yyy | yyyy | yyyyy |
37468
- // |----------|-------|----|-------|-------|-------|
37469
- // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
37470
- // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
37471
- // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
37472
- // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
37473
- // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
37474
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
37475
-
37476
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
37477
- return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
37478
- },
37479
- // Month
37480
- M: function (date, token) {
37481
- var month = date.getUTCMonth();
37482
- return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
37483
- },
37484
- // Day of the month
37485
- d: function (date, token) {
37486
- return addLeadingZeros(date.getUTCDate(), token.length);
37487
- },
37488
- // AM or PM
37489
- a: function (date, token) {
37490
- var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
37491
-
37492
- switch (token) {
37493
- case 'a':
37494
- case 'aa':
37495
- return dayPeriodEnumValue.toUpperCase();
37496
-
37497
- case 'aaa':
37498
- return dayPeriodEnumValue;
37499
-
37500
- case 'aaaaa':
37501
- return dayPeriodEnumValue[0];
37502
-
37503
- case 'aaaa':
37504
- default:
37505
- return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
37506
- }
37507
- },
37508
- // Hour [1-12]
37509
- h: function (date, token) {
37510
- return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
37511
- },
37512
- // Hour [0-23]
37513
- H: function (date, token) {
37514
- return addLeadingZeros(date.getUTCHours(), token.length);
37515
- },
37516
- // Minute
37517
- m: function (date, token) {
37518
- return addLeadingZeros(date.getUTCMinutes(), token.length);
37519
- },
37520
- // Second
37521
- s: function (date, token) {
37522
- return addLeadingZeros(date.getUTCSeconds(), token.length);
37523
- },
37524
- // Fraction of second
37525
- S: function (date, token) {
37526
- var numberOfDigits = token.length;
37527
- var milliseconds = date.getUTCMilliseconds();
37528
- var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
37529
- return addLeadingZeros(fractionalSeconds, token.length);
37530
- }
37531
- };
37532
- var lightFormatters = formatters$2;
37533
-
37534
37523
  var dayPeriodEnum = {
37535
37524
  am: 'am',
37536
37525
  pm: 'pm',
@@ -38442,7 +38431,7 @@ function timeLongFormatter(pattern, formatLong) {
38442
38431
  }
38443
38432
 
38444
38433
  function dateTimeLongFormatter(pattern, formatLong) {
38445
- var matchResult = pattern.match(/(P+)(p+)?/) || [];
38434
+ var matchResult = pattern.match(/(P+)(p+)?/);
38446
38435
  var datePattern = matchResult[1];
38447
38436
  var timePattern = matchResult[2];
38448
38437
 
@@ -38790,7 +38779,7 @@ var unescapedLatinCharacterRegExp$1 = /[a-zA-Z]/;
38790
38779
  * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
38791
38780
  * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
38792
38781
  *
38793
- * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
38782
+ * 9. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
38794
38783
  * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
38795
38784
  *
38796
38785
  * ### v2.0.0 breaking changes:
@@ -41427,7 +41416,7 @@ var parsers = {
41427
41416
  date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
41428
41417
  return date;
41429
41418
  },
41430
- incompatibleTokens: ['b', 'B', 'H', 'k', 't', 'T']
41419
+ incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T']
41431
41420
  },
41432
41421
  // AM, PM, midnight
41433
41422
  b: {
@@ -41469,7 +41458,7 @@ var parsers = {
41469
41458
  date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
41470
41459
  return date;
41471
41460
  },
41472
- incompatibleTokens: ['a', 'B', 'H', 'k', 't', 'T']
41461
+ incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T']
41473
41462
  },
41474
41463
  // in the morning, in the afternoon, in the evening, at night
41475
41464
  B: {
@@ -41605,7 +41594,7 @@ var parsers = {
41605
41594
 
41606
41595
  return date;
41607
41596
  },
41608
- incompatibleTokens: ['h', 'H', 'k', 't', 'T']
41597
+ incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T']
41609
41598
  },
41610
41599
  // Hour [1-24]
41611
41600
  k: {
@@ -41963,7 +41952,7 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
41963
41952
  * | | | tt | ... | 2 |
41964
41953
  * | Fraction of second | 30 | S | 0, 1, ..., 9 | |
41965
41954
  * | | | SS | 00, 01, ..., 99 | |
41966
- * | | | SSS | 000, 001, ..., 999 | |
41955
+ * | | | SSS | 000, 0001, ..., 999 | |
41967
41956
  * | | | SSSS | ... | 2 |
41968
41957
  * | Milliseconds timestamp | 20 | T | 512969520900 | |
41969
41958
  * | | | TT | ... | 2 |
@@ -43572,10 +43561,10 @@ var differenceInDays$1 = /*#__PURE__*/Object.freeze({
43572
43561
  /**
43573
43562
  * @name isSameMonth
43574
43563
  * @category Month Helpers
43575
- * @summary Are the given dates in the same month (and year)?
43564
+ * @summary Are the given dates in the same month?
43576
43565
  *
43577
43566
  * @description
43578
- * Are the given dates in the same month (and year)?
43567
+ * Are the given dates in the same month?
43579
43568
  *
43580
43569
  * ### v2.0.0 breaking changes:
43581
43570
  *
@@ -43583,18 +43572,13 @@ var differenceInDays$1 = /*#__PURE__*/Object.freeze({
43583
43572
  *
43584
43573
  * @param {Date|Number} dateLeft - the first date to check
43585
43574
  * @param {Date|Number} dateRight - the second date to check
43586
- * @returns {Boolean} the dates are in the same month (and year)
43575
+ * @returns {Boolean} the dates are in the same month
43587
43576
  * @throws {TypeError} 2 arguments required
43588
43577
  *
43589
43578
  * @example
43590
43579
  * // Are 2 September 2014 and 25 September 2014 in the same month?
43591
43580
  * var result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))
43592
43581
  * //=> true
43593
- *
43594
- * @example
43595
- * // Are 2 September 2014 and 25 September 2015 in the same month?
43596
- * var result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))
43597
- * //=> false
43598
43582
  */
43599
43583
 
43600
43584
  function isSameMonth(dirtyDateLeft, dirtyDateRight) {
@@ -47735,6 +47719,9 @@ var themeWeb = createTheme({
47735
47719
  },
47736
47720
  },
47737
47721
  },
47722
+ "& .MuiCheckbox-root": {
47723
+ marginRight: "12px"
47724
+ },
47738
47725
  '&.gds-drawer-menu-item': {
47739
47726
  backgroundColor: 'transparent',
47740
47727
  color: pallettes$1.grey['200'],
@@ -49313,7 +49300,7 @@ var themeDesktop = createTheme({
49313
49300
  margin: '5px 0 !important',
49314
49301
  },
49315
49302
  arrow: {
49316
- display: 'none',
49303
+ color: pallettes.grey[50],
49317
49304
  },
49318
49305
  },
49319
49306
  MuiSvgIcon: {