@nnc-digital/nnc-design-system 0.4.16 → 0.4.17
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/build/index.esm.js
CHANGED
|
@@ -4427,6 +4427,7 @@ var BinCollection = function (_a) {
|
|
|
4427
4427
|
setNoResultsFound(false);
|
|
4428
4428
|
};
|
|
4429
4429
|
var formatTitle = function (apiTitle) {
|
|
4430
|
+
console.log(apiTitle);
|
|
4430
4431
|
var mappings = [
|
|
4431
4432
|
{
|
|
4432
4433
|
keyword: 'Refuse',
|
|
@@ -4494,6 +4495,10 @@ var BinCollection = function (_a) {
|
|
|
4494
4495
|
var order = ['General refuse bin', 'Recycling bin', 'Garden bin', 'Food caddy'];
|
|
4495
4496
|
var uniqueTitles = Array.from(new Set(Object.keys(calendarEvents).map(function (apiTitle) { return formatTitle(apiTitle); }).filter(function (title) { return title !== null; })));
|
|
4496
4497
|
var sortedTitles = uniqueTitles.sort(function (a, b) { return order.indexOf(a) - order.indexOf(b); });
|
|
4498
|
+
var noResultsFound = sortedTitles.length === 0;
|
|
4499
|
+
{
|
|
4500
|
+
noResultsFound && React.createElement("p", null, "No results found.");
|
|
4501
|
+
}
|
|
4497
4502
|
return sortedTitles.map(function (title, index) {
|
|
4498
4503
|
var apiTitlesForThisType = Object.keys(calendarEvents).filter(function (apiTitle) { return formatTitle(apiTitle) === title; });
|
|
4499
4504
|
return (React.createElement(React.Fragment, { key: "".concat(title, "-").concat(index) },
|
|
@@ -23237,8 +23242,9 @@ const AccessibleLinks = styled.a`
|
|
|
23237
23242
|
|
|
23238
23243
|
var AccessibleLink = function (_a) {
|
|
23239
23244
|
var _b = _a.AccessibleLinksArray, AccessibleLinksArray = _b === void 0 ? null : _b;
|
|
23240
|
-
return (React.createElement(
|
|
23241
|
-
return React.createElement(
|
|
23245
|
+
return (React.createElement("ul", null, AccessibleLinksArray && AccessibleLinksArray.map(function (link, i) {
|
|
23246
|
+
return React.createElement("li", { key: 'accessible-link-li-' + i },
|
|
23247
|
+
React.createElement(AccessibleLinks, { key: 'accessible-link-' + i, href: link.url }, link.title));
|
|
23242
23248
|
})));
|
|
23243
23249
|
};
|
|
23244
23250
|
|
|
@@ -23311,10 +23317,10 @@ const InnerContainer$1 = styled.div`
|
|
|
23311
23317
|
const BannerContentContainer = styled.div`
|
|
23312
23318
|
flex-grow: 1;
|
|
23313
23319
|
padding-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
23320
|
+
font-weight: bold;
|
|
23314
23321
|
`;
|
|
23315
23322
|
|
|
23316
23323
|
const BannerTitle = styled.p`
|
|
23317
|
-
font-weight: bold;
|
|
23318
23324
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
23319
23325
|
`;
|
|
23320
23326
|
|
|
@@ -23330,6 +23336,7 @@ const HideLink = styled.button`
|
|
|
23330
23336
|
background: none;
|
|
23331
23337
|
cursor: pointer;
|
|
23332
23338
|
flex-grow: 0;
|
|
23339
|
+
font-weight: bold;
|
|
23333
23340
|
|
|
23334
23341
|
&:focus {
|
|
23335
23342
|
outline: none;
|