@nnc-digital/nnc-design-system 0.4.17 → 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 +13 -2
- package/build/index.esm.js.map +1 -1
- package/build/index.js +13 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -23199,6 +23199,17 @@ var WarningTextDisclaimer = function () {
|
|
|
23199
23199
|
"."));
|
|
23200
23200
|
};
|
|
23201
23201
|
|
|
23202
|
+
// Styling for the ul
|
|
23203
|
+
const AccessibleList = styled__default["default"].ul`
|
|
23204
|
+
list-style-type: none;
|
|
23205
|
+
padding-left: 0;
|
|
23206
|
+
`;
|
|
23207
|
+
|
|
23208
|
+
// Styling for the li
|
|
23209
|
+
const AccessibleListItem = styled__default["default"].li`
|
|
23210
|
+
margin-bottom: 10px;
|
|
23211
|
+
`;
|
|
23212
|
+
|
|
23202
23213
|
const AccessibleLinks = styled__default["default"].a`
|
|
23203
23214
|
${props => props.theme.fontStyles}
|
|
23204
23215
|
|
|
@@ -23257,8 +23268,8 @@ const AccessibleLinks = styled__default["default"].a`
|
|
|
23257
23268
|
|
|
23258
23269
|
var AccessibleLink = function (_a) {
|
|
23259
23270
|
var _b = _a.AccessibleLinksArray, AccessibleLinksArray = _b === void 0 ? null : _b;
|
|
23260
|
-
return (React__default["default"].createElement(
|
|
23261
|
-
return React__default["default"].createElement(
|
|
23271
|
+
return (React__default["default"].createElement(AccessibleList, null, AccessibleLinksArray && AccessibleLinksArray.map(function (link, i) {
|
|
23272
|
+
return React__default["default"].createElement(AccessibleListItem, { key: 'accessible-link-li-' + i },
|
|
23262
23273
|
React__default["default"].createElement(AccessibleLinks, { key: 'accessible-link-' + i, href: link.url }, link.title));
|
|
23263
23274
|
})));
|
|
23264
23275
|
};
|