@nnc-digital/nnc-design-system 0.4.24 → 0.4.26

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.
@@ -4507,11 +4507,13 @@ var BinCollection = function (_a) {
4507
4507
  }
4508
4508
  return sortedTitles.map(function (title, index) {
4509
4509
  var apiTitlesForThisType = Object.keys(calendarEvents).filter(function (apiTitle) { return formatTitle(apiTitle) === title; });
4510
+ var dates = apiTitlesForThisType.flatMap(function (apiTitle) { return calendarEvents[apiTitle]; })
4511
+ .map(function (date) { return new Date(date).toISOString().split('T')[0]; })
4512
+ .filter(function (date, index, array) { return array.indexOf(date) === index; })
4513
+ .sort(function (a, b) { return new Date(a).getTime() - new Date(b).getTime(); });
4510
4514
  return (React.createElement(React.Fragment, { key: "".concat(title, "-").concat(index) },
4511
4515
  React.createElement(Heading, { level: 3, text: title }),
4512
- apiTitlesForThisType.flatMap(function (apiTitle) { return calendarEvents[apiTitle]; })
4513
- .sort(function (a, b) { return new Date(a).getTime() - new Date(b).getTime(); })
4514
- .map(function (date) { return (React.createElement("p", null, date.toLocaleDateString('en-GB', { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }))); })));
4516
+ dates.map(function (date, index) { return (React.createElement("p", { key: index }, new Date(date).toLocaleDateString('en-GB', { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }))); })));
4515
4517
  });
4516
4518
  })()),
4517
4519
  Object.keys(calendarEvents).length > 0 && (React.createElement(FormButton, { size: "small", type: "button", "aria-label": "Reset", text: "Find a different address", onClick: resetForm }))));
@@ -23194,6 +23196,8 @@ var WarningTextDisclaimer = function () {
23194
23196
  const AccessibleList = styled.ul`
23195
23197
  list-style-type: none;
23196
23198
  padding-left: 0;
23199
+ margin: 0;
23200
+ margin-top: -1rem;
23197
23201
  `;
23198
23202
 
23199
23203
  // Styling for the li