@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.
@@ -44,7 +44,6 @@ export declare const pallette: {
44
44
  };
45
45
  declare const pallettes: {
46
46
  blue: {
47
- 300: string;
48
47
  200: string;
49
48
  100: string;
50
49
  50: string;
@@ -44,7 +44,6 @@ export declare const pallette: {
44
44
  };
45
45
  declare const pallettes: {
46
46
  blue: {
47
- 300: string;
48
47
  200: string;
49
48
  100: string;
50
49
  50: string;
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.2";
5683
+ this.version = "10.8.0";
5684
5684
  this.plugins = new PluginsRegistry();
5685
5685
  this.options = {
5686
5686
  id: {
@@ -33434,7 +33434,7 @@ var Avatar = function (props) {
33434
33434
  colorProp = "avatarDefault";
33435
33435
  }
33436
33436
  return (React__default.createElement(React__default.Fragment, null, tooltip ?
33437
- React__default.createElement(Tooltip$2, { title: tooltip, placement: placement },
33437
+ React__default.createElement(Tooltip$2, { arrow: true, title: tooltip, placement: placement },
33438
33438
  React__default.createElement(MuiAvatar, __assign$1({}, rest, { variant: "circular", className: clsx(sizeProp, colorProp) })))
33439
33439
  :
33440
33440
  React__default.createElement(MuiAvatar, __assign$1({}, rest, { variant: "circular", className: clsx(sizeProp, colorProp) }))));
@@ -34210,7 +34210,6 @@ var useStyles$n = makeStyles(function (theme) {
34210
34210
  var MenuItem = React__default.forwardRef(function (props, ref) {
34211
34211
  var children = props.children, startAdornment = props.startAdornment, value = props.value, system = props.system, border = props.border, rest = __rest(props, ["children", "startAdornment", "value", "system", "border"]);
34212
34212
  var classes = useStyles$n();
34213
- console.log("soph", props);
34214
34213
  return (React__default.createElement("div", { className: classes.root },
34215
34214
  React__default.createElement(MuiMenuItem, __assign$1({ ref: ref }, rest, { button: true, className: clsx(classes.root, system ? "gds-menu-item-system" : "", startAdornment ? "gds-menu-item-icon" : "") }),
34216
34215
  startAdornment ? (React__default.createElement(ListItemIcon, null, startAdornment)) : null,
@@ -36504,10 +36503,10 @@ var startOfDay$1 = /*#__PURE__*/Object.freeze({
36504
36503
  /**
36505
36504
  * @name isSameDay
36506
36505
  * @category Day Helpers
36507
- * @summary Are the given dates in the same day (and year and month)?
36506
+ * @summary Are the given dates in the same day?
36508
36507
  *
36509
36508
  * @description
36510
- * Are the given dates in the same day (and year and month)?
36509
+ * Are the given dates in the same day?
36511
36510
  *
36512
36511
  * ### v2.0.0 breaking changes:
36513
36512
  *
@@ -36515,23 +36514,13 @@ var startOfDay$1 = /*#__PURE__*/Object.freeze({
36515
36514
  *
36516
36515
  * @param {Date|Number} dateLeft - the first date to check
36517
36516
  * @param {Date|Number} dateRight - the second date to check
36518
- * @returns {Boolean} the dates are in the same day (and year and month)
36517
+ * @returns {Boolean} the dates are in the same day
36519
36518
  * @throws {TypeError} 2 arguments required
36520
36519
  *
36521
36520
  * @example
36522
36521
  * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
36523
36522
  * var result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
36524
36523
  * //=> true
36525
- *
36526
- * @example
36527
- * // Are 4 September and 4 October in the same day?
36528
- * var result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
36529
- * //=> false
36530
- *
36531
- * @example
36532
- * // Are 4 September, 2014 and 4 September, 2015 in the same day?
36533
- * var result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
36534
- * //=> false
36535
36524
  */
36536
36525
 
36537
36526
  function isSameDay(dirtyDateLeft, dirtyDateRight) {
@@ -36828,7 +36817,7 @@ function buildLocalizeFn(args) {
36828
36817
  valuesArray = args.values[_width] || args.values[_defaultWidth];
36829
36818
  }
36830
36819
 
36831
- 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!
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 challange you to try to remove it!
36832
36821
 
36833
36822
  return valuesArray[index];
36834
36823
  };
@@ -37247,6 +37236,101 @@ function subMilliseconds(dirtyDate, dirtyAmount) {
37247
37236
  return addMilliseconds(dirtyDate, -amount);
37248
37237
  }
37249
37238
 
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
+
37250
37334
  var MILLISECONDS_IN_DAY$1 = 86400000; // This function will be a part of public API when UTC function will be implemented.
37251
37335
  // See issue: https://github.com/date-fns/date-fns/issues/376
37252
37336
 
@@ -37349,7 +37433,7 @@ function startOfUTCWeek(dirtyDate, dirtyOptions) {
37349
37433
 
37350
37434
  function getUTCWeekYear(dirtyDate, dirtyOptions) {
37351
37435
  requiredArgs(1, arguments);
37352
- var date = toDate(dirtyDate);
37436
+ var date = toDate(dirtyDate, dirtyOptions);
37353
37437
  var year = date.getUTCFullYear();
37354
37438
  var options = dirtyOptions || {};
37355
37439
  var locale = options.locale;
@@ -37409,101 +37493,6 @@ function getUTCWeek(dirtyDate, options) {
37409
37493
  return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
37410
37494
  }
37411
37495
 
37412
- function addLeadingZeros(number, targetLength) {
37413
- var sign = number < 0 ? '-' : '';
37414
- var output = Math.abs(number).toString();
37415
-
37416
- while (output.length < targetLength) {
37417
- output = '0' + output;
37418
- }
37419
-
37420
- return sign + output;
37421
- }
37422
-
37423
- /*
37424
- * | | Unit | | Unit |
37425
- * |-----|--------------------------------|-----|--------------------------------|
37426
- * | a | AM, PM | A* | |
37427
- * | d | Day of month | D | |
37428
- * | h | Hour [1-12] | H | Hour [0-23] |
37429
- * | m | Minute | M | Month |
37430
- * | s | Second | S | Fraction of second |
37431
- * | y | Year (abs) | Y | |
37432
- *
37433
- * Letters marked by * are not implemented but reserved by Unicode standard.
37434
- */
37435
-
37436
- var formatters$2 = {
37437
- // Year
37438
- y: function (date, token) {
37439
- // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
37440
- // | Year | y | yy | yyy | yyyy | yyyyy |
37441
- // |----------|-------|----|-------|-------|-------|
37442
- // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
37443
- // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
37444
- // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
37445
- // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
37446
- // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
37447
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
37448
-
37449
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
37450
- return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
37451
- },
37452
- // Month
37453
- M: function (date, token) {
37454
- var month = date.getUTCMonth();
37455
- return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
37456
- },
37457
- // Day of the month
37458
- d: function (date, token) {
37459
- return addLeadingZeros(date.getUTCDate(), token.length);
37460
- },
37461
- // AM or PM
37462
- a: function (date, token) {
37463
- var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
37464
-
37465
- switch (token) {
37466
- case 'a':
37467
- case 'aa':
37468
- return dayPeriodEnumValue.toUpperCase();
37469
-
37470
- case 'aaa':
37471
- return dayPeriodEnumValue;
37472
-
37473
- case 'aaaaa':
37474
- return dayPeriodEnumValue[0];
37475
-
37476
- case 'aaaa':
37477
- default:
37478
- return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
37479
- }
37480
- },
37481
- // Hour [1-12]
37482
- h: function (date, token) {
37483
- return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
37484
- },
37485
- // Hour [0-23]
37486
- H: function (date, token) {
37487
- return addLeadingZeros(date.getUTCHours(), token.length);
37488
- },
37489
- // Minute
37490
- m: function (date, token) {
37491
- return addLeadingZeros(date.getUTCMinutes(), token.length);
37492
- },
37493
- // Second
37494
- s: function (date, token) {
37495
- return addLeadingZeros(date.getUTCSeconds(), token.length);
37496
- },
37497
- // Fraction of second
37498
- S: function (date, token) {
37499
- var numberOfDigits = token.length;
37500
- var milliseconds = date.getUTCMilliseconds();
37501
- var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
37502
- return addLeadingZeros(fractionalSeconds, token.length);
37503
- }
37504
- };
37505
- var lightFormatters = formatters$2;
37506
-
37507
37496
  var dayPeriodEnum = {
37508
37497
  am: 'am',
37509
37498
  pm: 'pm',
@@ -38415,7 +38404,7 @@ function timeLongFormatter(pattern, formatLong) {
38415
38404
  }
38416
38405
 
38417
38406
  function dateTimeLongFormatter(pattern, formatLong) {
38418
- var matchResult = pattern.match(/(P+)(p+)?/) || [];
38407
+ var matchResult = pattern.match(/(P+)(p+)?/);
38419
38408
  var datePattern = matchResult[1];
38420
38409
  var timePattern = matchResult[2];
38421
38410
 
@@ -38763,7 +38752,7 @@ var unescapedLatinCharacterRegExp$1 = /[a-zA-Z]/;
38763
38752
  * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
38764
38753
  * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
38765
38754
  *
38766
- * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
38755
+ * 9. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
38767
38756
  * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
38768
38757
  *
38769
38758
  * ### v2.0.0 breaking changes:
@@ -41400,7 +41389,7 @@ var parsers = {
41400
41389
  date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
41401
41390
  return date;
41402
41391
  },
41403
- incompatibleTokens: ['b', 'B', 'H', 'k', 't', 'T']
41392
+ incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T']
41404
41393
  },
41405
41394
  // AM, PM, midnight
41406
41395
  b: {
@@ -41442,7 +41431,7 @@ var parsers = {
41442
41431
  date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
41443
41432
  return date;
41444
41433
  },
41445
- incompatibleTokens: ['a', 'B', 'H', 'k', 't', 'T']
41434
+ incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T']
41446
41435
  },
41447
41436
  // in the morning, in the afternoon, in the evening, at night
41448
41437
  B: {
@@ -41578,7 +41567,7 @@ var parsers = {
41578
41567
 
41579
41568
  return date;
41580
41569
  },
41581
- incompatibleTokens: ['h', 'H', 'k', 't', 'T']
41570
+ incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T']
41582
41571
  },
41583
41572
  // Hour [1-24]
41584
41573
  k: {
@@ -41936,7 +41925,7 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
41936
41925
  * | | | tt | ... | 2 |
41937
41926
  * | Fraction of second | 30 | S | 0, 1, ..., 9 | |
41938
41927
  * | | | SS | 00, 01, ..., 99 | |
41939
- * | | | SSS | 000, 001, ..., 999 | |
41928
+ * | | | SSS | 000, 0001, ..., 999 | |
41940
41929
  * | | | SSSS | ... | 2 |
41941
41930
  * | Milliseconds timestamp | 20 | T | 512969520900 | |
41942
41931
  * | | | TT | ... | 2 |
@@ -43545,10 +43534,10 @@ var differenceInDays$1 = /*#__PURE__*/Object.freeze({
43545
43534
  /**
43546
43535
  * @name isSameMonth
43547
43536
  * @category Month Helpers
43548
- * @summary Are the given dates in the same month (and year)?
43537
+ * @summary Are the given dates in the same month?
43549
43538
  *
43550
43539
  * @description
43551
- * Are the given dates in the same month (and year)?
43540
+ * Are the given dates in the same month?
43552
43541
  *
43553
43542
  * ### v2.0.0 breaking changes:
43554
43543
  *
@@ -43556,18 +43545,13 @@ var differenceInDays$1 = /*#__PURE__*/Object.freeze({
43556
43545
  *
43557
43546
  * @param {Date|Number} dateLeft - the first date to check
43558
43547
  * @param {Date|Number} dateRight - the second date to check
43559
- * @returns {Boolean} the dates are in the same month (and year)
43548
+ * @returns {Boolean} the dates are in the same month
43560
43549
  * @throws {TypeError} 2 arguments required
43561
43550
  *
43562
43551
  * @example
43563
43552
  * // Are 2 September 2014 and 25 September 2014 in the same month?
43564
43553
  * var result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))
43565
43554
  * //=> true
43566
- *
43567
- * @example
43568
- * // Are 2 September 2014 and 25 September 2015 in the same month?
43569
- * var result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))
43570
- * //=> false
43571
43555
  */
43572
43556
 
43573
43557
  function isSameMonth(dirtyDateLeft, dirtyDateRight) {
@@ -47708,6 +47692,9 @@ var themeWeb = createTheme({
47708
47692
  },
47709
47693
  },
47710
47694
  },
47695
+ "& .MuiCheckbox-root": {
47696
+ marginRight: "12px"
47697
+ },
47711
47698
  '&.gds-drawer-menu-item': {
47712
47699
  backgroundColor: 'transparent',
47713
47700
  color: pallettes$1.grey['200'],
@@ -49286,7 +49273,7 @@ var themeDesktop = createTheme({
49286
49273
  margin: '5px 0 !important',
49287
49274
  },
49288
49275
  arrow: {
49289
- display: 'none',
49276
+ color: pallettes.grey[50],
49290
49277
  },
49291
49278
  },
49292
49279
  MuiSvgIcon: {