@nnc-digital/nnc-design-system 0.4.16 → 0.4.18
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) },
|
|
@@ -23179,6 +23184,17 @@ var WarningTextDisclaimer = function () {
|
|
|
23179
23184
|
"."));
|
|
23180
23185
|
};
|
|
23181
23186
|
|
|
23187
|
+
// Styling for the ul
|
|
23188
|
+
const AccessibleList = styled.ul`
|
|
23189
|
+
list-style-type: none;
|
|
23190
|
+
padding-left: 0;
|
|
23191
|
+
`;
|
|
23192
|
+
|
|
23193
|
+
// Styling for the li
|
|
23194
|
+
const AccessibleListItem = styled.li`
|
|
23195
|
+
margin-bottom: 10px;
|
|
23196
|
+
`;
|
|
23197
|
+
|
|
23182
23198
|
const AccessibleLinks = styled.a`
|
|
23183
23199
|
${props => props.theme.fontStyles}
|
|
23184
23200
|
|
|
@@ -23237,8 +23253,9 @@ const AccessibleLinks = styled.a`
|
|
|
23237
23253
|
|
|
23238
23254
|
var AccessibleLink = function (_a) {
|
|
23239
23255
|
var _b = _a.AccessibleLinksArray, AccessibleLinksArray = _b === void 0 ? null : _b;
|
|
23240
|
-
return (React.createElement(
|
|
23241
|
-
return React.createElement(
|
|
23256
|
+
return (React.createElement(AccessibleList, null, AccessibleLinksArray && AccessibleLinksArray.map(function (link, i) {
|
|
23257
|
+
return React.createElement(AccessibleListItem, { key: 'accessible-link-li-' + i },
|
|
23258
|
+
React.createElement(AccessibleLinks, { key: 'accessible-link-' + i, href: link.url }, link.title));
|
|
23242
23259
|
})));
|
|
23243
23260
|
};
|
|
23244
23261
|
|
|
@@ -23311,10 +23328,10 @@ const InnerContainer$1 = styled.div`
|
|
|
23311
23328
|
const BannerContentContainer = styled.div`
|
|
23312
23329
|
flex-grow: 1;
|
|
23313
23330
|
padding-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
23331
|
+
font-weight: bold;
|
|
23314
23332
|
`;
|
|
23315
23333
|
|
|
23316
23334
|
const BannerTitle = styled.p`
|
|
23317
|
-
font-weight: bold;
|
|
23318
23335
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
23319
23336
|
`;
|
|
23320
23337
|
|
|
@@ -23330,6 +23347,7 @@ const HideLink = styled.button`
|
|
|
23330
23347
|
background: none;
|
|
23331
23348
|
cursor: pointer;
|
|
23332
23349
|
flex-grow: 0;
|
|
23350
|
+
font-weight: bold;
|
|
23333
23351
|
|
|
23334
23352
|
&:focus {
|
|
23335
23353
|
outline: none;
|