@nnc-digital/nnc-design-system 1.0.0-beta6 → 1.0.0-beta7

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.
Files changed (34) hide show
  1. package/build/index.d.ts +2 -1
  2. package/build/index.js +27 -2
  3. package/build/index.js.map +1 -1
  4. package/build/index.mjs.js +27 -2
  5. package/build/index.mjs.js.map +1 -1
  6. package/build/library/events/Event/Event.d.ts +4 -0
  7. package/build/library/events/Event/Event.storydata.d.ts +4 -0
  8. package/build/library/events/Event/Event.types.d.ts +206 -0
  9. package/build/library/events/Event/index.d.ts +3 -0
  10. package/build/library/events/EventList/EventList.d.ts +4 -0
  11. package/build/library/events/EventList/EventList.storydata.d.ts +3 -0
  12. package/build/library/events/EventList/EventList.types.d.ts +152 -0
  13. package/build/library/events/EventList/index.d.ts +3 -0
  14. package/build/library/events/index.d.ts +5 -0
  15. package/build/library/events/utils/EventFilters.d.ts +57 -0
  16. package/build/library/events/utils/index.d.ts +1 -0
  17. package/build/library/pages/EventPage/EventPage.d.ts +13 -0
  18. package/build/library/pages/EventPage/index.d.ts +1 -0
  19. package/build/library/slices/RoadworksList/RoadworksList.types.d.ts +4 -0
  20. package/build/src/library/events/Event/Event.d.ts +4 -0
  21. package/build/src/library/events/Event/Event.storydata.d.ts +4 -0
  22. package/build/src/library/events/Event/Event.types.d.ts +206 -0
  23. package/build/src/library/events/Event/index.d.ts +3 -0
  24. package/build/src/library/events/EventList/EventList.d.ts +4 -0
  25. package/build/src/library/events/EventList/EventList.storydata.d.ts +3 -0
  26. package/build/src/library/events/EventList/EventList.types.d.ts +152 -0
  27. package/build/src/library/events/EventList/index.d.ts +3 -0
  28. package/build/src/library/events/index.d.ts +5 -0
  29. package/build/src/library/events/utils/EventFilters.d.ts +57 -0
  30. package/build/src/library/events/utils/index.d.ts +1 -0
  31. package/build/src/library/pages/EventPage/EventPage.d.ts +13 -0
  32. package/build/src/library/pages/EventPage/index.d.ts +1 -0
  33. package/build/src/library/slices/RoadworksList/RoadworksList.types.d.ts +4 -0
  34. package/package.json +1 -1
@@ -24287,6 +24287,31 @@ const NoMatches = styled.p`
24287
24287
  padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
24288
24288
  `;
24289
24289
 
24290
+ const RoadworkLink = styled.a`
24291
+ color: ${(props) => props.theme.theme_vars.colours.action};
24292
+ text-decoration: underline;
24293
+
24294
+ &:hover {
24295
+ text-decoration: none;
24296
+ }
24297
+
24298
+ &:focus {
24299
+ outline: 3px solid ${(props) => props.theme.theme_vars.colours.focus};
24300
+ outline-offset: 0;
24301
+ background-color: ${(props) => props.theme.theme_vars.colours.focus};
24302
+ color: ${(props) => props.theme.theme_vars.colours.black};
24303
+ text-decoration: none;
24304
+ }
24305
+
24306
+ &:visited {
24307
+ color: ${(props) => props.theme.theme_vars.colours.action_dark};
24308
+ }
24309
+
24310
+ h3 {
24311
+ color: inherit;
24312
+ }
24313
+ `;
24314
+
24290
24315
  /**
24291
24316
  * Primary UI component for user interaction
24292
24317
  * If value is set then treat as controlled component
@@ -24368,8 +24393,8 @@ var RoadworksList = function (_a) {
24368
24393
  return (React.createElement(Roadwork, { key: index },
24369
24394
  React.createElement(IconContainer$2, null,
24370
24395
  React.createElement(DynamicIcon, { icon: "mappin" }),
24371
- React.createElement(IconText, null,
24372
- React.createElement(Heading, { text: removeTrailingDot(roadwork.detailedLocation), level: 3 }))),
24396
+ React.createElement(IconText, null, roadwork.urlLinkAddress ? (React.createElement(RoadworkLink, { href: roadwork.urlLinkAddress, target: "_blank", rel: "noopener noreferrer" },
24397
+ React.createElement(Heading, { text: removeTrailingDot(roadwork.detailedLocation), level: 3 }))) : (React.createElement(Heading, { text: removeTrailingDot(roadwork.detailedLocation), level: 3 })))),
24373
24398
  React.createElement(IconContainer$2, null,
24374
24399
  React.createElement(DynamicIcon, { icon: "events" }),
24375
24400
  React.createElement(IconText, null,